diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/backbone/computation_graph.py b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/backbone/computation_graph.py new file mode 100644 index 0000000000000000000000000000000000000000..9ee3a3710b8c5415bcb6d2350b51b58838f49bdc --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/backbone/computation_graph.py @@ -0,0 +1,6008 @@ +from __future__ import annotations +import torch +class GraphModule(torch.nn.Module): + def forward(self, s0: "Sym(s0)", L_input_ids_: "i32[s0]", L_self_modules_embed_tokens_parameters_weight_: "bf16[152064, 3584]", L_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", s1: "Sym(s0)", L_positions_: "i64[s0]", L_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]", L_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", L_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", L_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", L_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", L_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", L_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", L_self_modules_norm_parameters_weight_: "bf16[3584]"): + l_input_ids_ = L_input_ids_ + l_self_modules_embed_tokens_parameters_weight_ = L_self_modules_embed_tokens_parameters_weight_ + l_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_positions_ = L_positions_ + l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = L_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ + l_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_ = L_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_ + l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_ = L_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_ + l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_ = L_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_ + l_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_ = L_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_ + l_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_ = L_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_ + l_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_ = L_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_ + l_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_ = L_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_ + l_self_modules_norm_parameters_weight_ = L_self_modules_norm_parameters_weight_ + + # No stacktrace found for following nodes + submod_0 = self.submod_0(l_input_ids_, s0, l_self_modules_embed_tokens_parameters_weight_, l_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); l_input_ids_ = l_self_modules_embed_tokens_parameters_weight_ = l_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem = submod_0[0] + getitem_1 = submod_0[1] + getitem_2 = submod_0[2] + getitem_3 = submod_0[3] + getitem_4 = submod_0[4]; submod_0 = None + submod_1 = self.submod_1(getitem, s0, getitem_1, getitem_2, getitem_3); getitem = getitem_1 = getitem_2 = submod_1 = None + submod_2 = self.submod_2(getitem_3, s0, l_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_, getitem_4, l_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_3 = l_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_4 = l_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_5 = submod_2[0] + getitem_6 = submod_2[1] + getitem_7 = submod_2[2] + getitem_8 = submod_2[3] + getitem_9 = submod_2[4]; submod_2 = None + submod_3 = self.submod_3(getitem_5, s0, getitem_6, getitem_7, getitem_8); getitem_5 = getitem_6 = getitem_7 = submod_3 = None + submod_4 = self.submod_4(getitem_8, s0, l_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_, getitem_9, l_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_8 = l_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_9 = l_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_10 = submod_4[0] + getitem_11 = submod_4[1] + getitem_12 = submod_4[2] + getitem_13 = submod_4[3] + getitem_14 = submod_4[4]; submod_4 = None + submod_5 = self.submod_5(getitem_10, s0, getitem_11, getitem_12, getitem_13); getitem_10 = getitem_11 = getitem_12 = submod_5 = None + submod_6 = self.submod_6(getitem_13, s0, l_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_, getitem_14, l_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_13 = l_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_14 = l_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_15 = submod_6[0] + getitem_16 = submod_6[1] + getitem_17 = submod_6[2] + getitem_18 = submod_6[3] + getitem_19 = submod_6[4]; submod_6 = None + submod_7 = self.submod_7(getitem_15, s0, getitem_16, getitem_17, getitem_18); getitem_15 = getitem_16 = getitem_17 = submod_7 = None + submod_8 = self.submod_8(getitem_18, s0, l_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_, getitem_19, l_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_18 = l_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_19 = l_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_20 = submod_8[0] + getitem_21 = submod_8[1] + getitem_22 = submod_8[2] + getitem_23 = submod_8[3] + getitem_24 = submod_8[4]; submod_8 = None + submod_9 = self.submod_9(getitem_20, s0, getitem_21, getitem_22, getitem_23); getitem_20 = getitem_21 = getitem_22 = submod_9 = None + submod_10 = self.submod_10(getitem_23, s0, l_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_, getitem_24, l_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_23 = l_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_24 = l_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_25 = submod_10[0] + getitem_26 = submod_10[1] + getitem_27 = submod_10[2] + getitem_28 = submod_10[3] + getitem_29 = submod_10[4]; submod_10 = None + submod_11 = self.submod_11(getitem_25, s0, getitem_26, getitem_27, getitem_28); getitem_25 = getitem_26 = getitem_27 = submod_11 = None + submod_12 = self.submod_12(getitem_28, s0, l_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_, getitem_29, l_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_28 = l_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_29 = l_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_30 = submod_12[0] + getitem_31 = submod_12[1] + getitem_32 = submod_12[2] + getitem_33 = submod_12[3] + getitem_34 = submod_12[4]; submod_12 = None + submod_13 = self.submod_13(getitem_30, s0, getitem_31, getitem_32, getitem_33); getitem_30 = getitem_31 = getitem_32 = submod_13 = None + submod_14 = self.submod_14(getitem_33, s0, l_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_, getitem_34, l_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_33 = l_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_34 = l_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_35 = submod_14[0] + getitem_36 = submod_14[1] + getitem_37 = submod_14[2] + getitem_38 = submod_14[3] + getitem_39 = submod_14[4]; submod_14 = None + submod_15 = self.submod_15(getitem_35, s0, getitem_36, getitem_37, getitem_38); getitem_35 = getitem_36 = getitem_37 = submod_15 = None + submod_16 = self.submod_16(getitem_38, s0, l_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_, getitem_39, l_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_38 = l_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_39 = l_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_40 = submod_16[0] + getitem_41 = submod_16[1] + getitem_42 = submod_16[2] + getitem_43 = submod_16[3] + getitem_44 = submod_16[4]; submod_16 = None + submod_17 = self.submod_17(getitem_40, s0, getitem_41, getitem_42, getitem_43); getitem_40 = getitem_41 = getitem_42 = submod_17 = None + submod_18 = self.submod_18(getitem_43, s0, l_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_, getitem_44, l_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_43 = l_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_44 = l_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_45 = submod_18[0] + getitem_46 = submod_18[1] + getitem_47 = submod_18[2] + getitem_48 = submod_18[3] + getitem_49 = submod_18[4]; submod_18 = None + submod_19 = self.submod_19(getitem_45, s0, getitem_46, getitem_47, getitem_48); getitem_45 = getitem_46 = getitem_47 = submod_19 = None + submod_20 = self.submod_20(getitem_48, s0, l_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_, getitem_49, l_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_48 = l_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_49 = l_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_50 = submod_20[0] + getitem_51 = submod_20[1] + getitem_52 = submod_20[2] + getitem_53 = submod_20[3] + getitem_54 = submod_20[4]; submod_20 = None + submod_21 = self.submod_21(getitem_50, s0, getitem_51, getitem_52, getitem_53); getitem_50 = getitem_51 = getitem_52 = submod_21 = None + submod_22 = self.submod_22(getitem_53, s0, l_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_, getitem_54, l_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_53 = l_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_54 = l_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_55 = submod_22[0] + getitem_56 = submod_22[1] + getitem_57 = submod_22[2] + getitem_58 = submod_22[3] + getitem_59 = submod_22[4]; submod_22 = None + submod_23 = self.submod_23(getitem_55, s0, getitem_56, getitem_57, getitem_58); getitem_55 = getitem_56 = getitem_57 = submod_23 = None + submod_24 = self.submod_24(getitem_58, s0, l_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_, getitem_59, l_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_58 = l_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_59 = l_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_60 = submod_24[0] + getitem_61 = submod_24[1] + getitem_62 = submod_24[2] + getitem_63 = submod_24[3] + getitem_64 = submod_24[4]; submod_24 = None + submod_25 = self.submod_25(getitem_60, s0, getitem_61, getitem_62, getitem_63); getitem_60 = getitem_61 = getitem_62 = submod_25 = None + submod_26 = self.submod_26(getitem_63, s0, l_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_, getitem_64, l_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_63 = l_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_64 = l_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_65 = submod_26[0] + getitem_66 = submod_26[1] + getitem_67 = submod_26[2] + getitem_68 = submod_26[3] + getitem_69 = submod_26[4]; submod_26 = None + submod_27 = self.submod_27(getitem_65, s0, getitem_66, getitem_67, getitem_68); getitem_65 = getitem_66 = getitem_67 = submod_27 = None + submod_28 = self.submod_28(getitem_68, s0, l_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_, getitem_69, l_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_68 = l_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_69 = l_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_70 = submod_28[0] + getitem_71 = submod_28[1] + getitem_72 = submod_28[2] + getitem_73 = submod_28[3] + getitem_74 = submod_28[4]; submod_28 = None + submod_29 = self.submod_29(getitem_70, s0, getitem_71, getitem_72, getitem_73); getitem_70 = getitem_71 = getitem_72 = submod_29 = None + submod_30 = self.submod_30(getitem_73, s0, l_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_, getitem_74, l_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_73 = l_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_74 = l_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_75 = submod_30[0] + getitem_76 = submod_30[1] + getitem_77 = submod_30[2] + getitem_78 = submod_30[3] + getitem_79 = submod_30[4]; submod_30 = None + submod_31 = self.submod_31(getitem_75, s0, getitem_76, getitem_77, getitem_78); getitem_75 = getitem_76 = getitem_77 = submod_31 = None + submod_32 = self.submod_32(getitem_78, s0, l_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_, getitem_79, l_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_78 = l_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_79 = l_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_80 = submod_32[0] + getitem_81 = submod_32[1] + getitem_82 = submod_32[2] + getitem_83 = submod_32[3] + getitem_84 = submod_32[4]; submod_32 = None + submod_33 = self.submod_33(getitem_80, s0, getitem_81, getitem_82, getitem_83); getitem_80 = getitem_81 = getitem_82 = submod_33 = None + submod_34 = self.submod_34(getitem_83, s0, l_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_, getitem_84, l_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_83 = l_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_84 = l_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_85 = submod_34[0] + getitem_86 = submod_34[1] + getitem_87 = submod_34[2] + getitem_88 = submod_34[3] + getitem_89 = submod_34[4]; submod_34 = None + submod_35 = self.submod_35(getitem_85, s0, getitem_86, getitem_87, getitem_88); getitem_85 = getitem_86 = getitem_87 = submod_35 = None + submod_36 = self.submod_36(getitem_88, s0, l_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_, getitem_89, l_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_88 = l_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_89 = l_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_90 = submod_36[0] + getitem_91 = submod_36[1] + getitem_92 = submod_36[2] + getitem_93 = submod_36[3] + getitem_94 = submod_36[4]; submod_36 = None + submod_37 = self.submod_37(getitem_90, s0, getitem_91, getitem_92, getitem_93); getitem_90 = getitem_91 = getitem_92 = submod_37 = None + submod_38 = self.submod_38(getitem_93, s0, l_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_, getitem_94, l_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_93 = l_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_94 = l_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_95 = submod_38[0] + getitem_96 = submod_38[1] + getitem_97 = submod_38[2] + getitem_98 = submod_38[3] + getitem_99 = submod_38[4]; submod_38 = None + submod_39 = self.submod_39(getitem_95, s0, getitem_96, getitem_97, getitem_98); getitem_95 = getitem_96 = getitem_97 = submod_39 = None + submod_40 = self.submod_40(getitem_98, s0, l_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_, getitem_99, l_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_98 = l_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_99 = l_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_100 = submod_40[0] + getitem_101 = submod_40[1] + getitem_102 = submod_40[2] + getitem_103 = submod_40[3] + getitem_104 = submod_40[4]; submod_40 = None + submod_41 = self.submod_41(getitem_100, s0, getitem_101, getitem_102, getitem_103); getitem_100 = getitem_101 = getitem_102 = submod_41 = None + submod_42 = self.submod_42(getitem_103, s0, l_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_, getitem_104, l_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_103 = l_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_104 = l_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_105 = submod_42[0] + getitem_106 = submod_42[1] + getitem_107 = submod_42[2] + getitem_108 = submod_42[3] + getitem_109 = submod_42[4]; submod_42 = None + submod_43 = self.submod_43(getitem_105, s0, getitem_106, getitem_107, getitem_108); getitem_105 = getitem_106 = getitem_107 = submod_43 = None + submod_44 = self.submod_44(getitem_108, s0, l_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_, getitem_109, l_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_108 = l_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_109 = l_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_110 = submod_44[0] + getitem_111 = submod_44[1] + getitem_112 = submod_44[2] + getitem_113 = submod_44[3] + getitem_114 = submod_44[4]; submod_44 = None + submod_45 = self.submod_45(getitem_110, s0, getitem_111, getitem_112, getitem_113); getitem_110 = getitem_111 = getitem_112 = submod_45 = None + submod_46 = self.submod_46(getitem_113, s0, l_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_, getitem_114, l_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_113 = l_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_114 = l_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_115 = submod_46[0] + getitem_116 = submod_46[1] + getitem_117 = submod_46[2] + getitem_118 = submod_46[3] + getitem_119 = submod_46[4]; submod_46 = None + submod_47 = self.submod_47(getitem_115, s0, getitem_116, getitem_117, getitem_118); getitem_115 = getitem_116 = getitem_117 = submod_47 = None + submod_48 = self.submod_48(getitem_118, s0, l_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_, getitem_119, l_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_118 = l_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_119 = l_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_120 = submod_48[0] + getitem_121 = submod_48[1] + getitem_122 = submod_48[2] + getitem_123 = submod_48[3] + getitem_124 = submod_48[4]; submod_48 = None + submod_49 = self.submod_49(getitem_120, s0, getitem_121, getitem_122, getitem_123); getitem_120 = getitem_121 = getitem_122 = submod_49 = None + submod_50 = self.submod_50(getitem_123, s0, l_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_, getitem_124, l_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_123 = l_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_124 = l_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_125 = submod_50[0] + getitem_126 = submod_50[1] + getitem_127 = submod_50[2] + getitem_128 = submod_50[3] + getitem_129 = submod_50[4]; submod_50 = None + submod_51 = self.submod_51(getitem_125, s0, getitem_126, getitem_127, getitem_128); getitem_125 = getitem_126 = getitem_127 = submod_51 = None + submod_52 = self.submod_52(getitem_128, s0, l_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_, getitem_129, l_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_128 = l_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_129 = l_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + getitem_130 = submod_52[0] + getitem_131 = submod_52[1] + getitem_132 = submod_52[2] + getitem_133 = submod_52[3] + getitem_134 = submod_52[4]; submod_52 = None + submod_53 = self.submod_53(getitem_130, s0, getitem_131, getitem_132, getitem_133); getitem_130 = getitem_131 = getitem_132 = submod_53 = None + submod_54 = self.submod_54(getitem_133, s0, l_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_, getitem_134, l_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_, l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_, l_positions_, l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_); getitem_133 = l_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_134 = l_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_ = l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_ = l_positions_ = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = None + getitem_135 = submod_54[0] + getitem_136 = submod_54[1] + getitem_137 = submod_54[2] + getitem_138 = submod_54[3] + getitem_139 = submod_54[4]; submod_54 = None + submod_55 = self.submod_55(getitem_135, s0, getitem_136, getitem_137, getitem_138); getitem_135 = getitem_136 = getitem_137 = submod_55 = None + submod_56 = self.submod_56(getitem_138, s0, l_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_, getitem_139, l_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_, l_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_, l_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_, l_self_modules_norm_parameters_weight_); getitem_138 = s0 = l_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_ = getitem_139 = l_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_ = l_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_ = l_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_ = l_self_modules_norm_parameters_weight_ = None + return (submod_56,) + + class submod_0(torch.nn.Module): + def forward(self, l_input_ids_: "i32[s0]", s0: "Sym(s0)", l_self_modules_embed_tokens_parameters_weight_: "bf16[152064, 3584]", l_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/vocab_parallel_embedding.py:409 in forward, code: masked_input.long()) + long: "i64[s0]" = l_input_ids_.long(); l_input_ids_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/vocab_parallel_embedding.py:51 in embedding, code: return F.embedding(input_, layer.weight) + embedding: "bf16[s0, 3584]" = torch.nn.functional.embedding(long, l_self_modules_embed_tokens_parameters_weight_); long = l_self_modules_embed_tokens_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/torch/_dynamo/polyfills/__init__.py:156 in instantiate_user_defined_class_object, code: obj.__init__(*args, **kwargs) + _log_api_usage_once = torch._C._log_api_usage_once('python.nn_module'); _log_api_usage_once = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = embedding.to(torch.float32) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = to.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add); add = None + mul: "f32[s0, 3584]" = to * rsqrt; to = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_1: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_1 * l_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_; to_1 = l_self_modules_layers_modules_0_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 4608]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_1 = l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_0_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear.split([3584, 512, 512], dim = -1); linear = None + getitem: "bf16[s0, 3584]" = split[0] + getitem_1: "bf16[s0, 512]" = split[1] + getitem_2: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_3: "bf16[s0, 64]" = chunk[0] + getitem_4: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view: "bf16[s0, 28, 128]" = getitem.view(s0, -1, 128); getitem = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_5: "bf16[s0, 28, 128]" = view[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_6: "bf16[s0, 28, 0]" = view[(Ellipsis, slice(128, None, None))]; view = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_3.unsqueeze(-2) + to_2: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_4.unsqueeze(-2) + to_3: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_5, 2, dim = -1); getitem_5 = None + getitem_7: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_8: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_2: "bf16[s0, 28, 64]" = getitem_7 * to_2 + mul_3: "bf16[s0, 28, 64]" = getitem_8 * to_3 + sub: "bf16[s0, 28, 64]" = mul_2 - mul_3; mul_2 = mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_4: "bf16[s0, 28, 64]" = getitem_8 * to_2; getitem_8 = to_2 = None + mul_5: "bf16[s0, 28, 64]" = getitem_7 * to_3; getitem_7 = to_3 = None + add_1: "bf16[s0, 28, 64]" = mul_4 + mul_5; mul_4 = mul_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_1), dim = -1); sub = add_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_6), dim = -1); cat = getitem_6 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_1.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 4, 128]" = getitem_1.view(s0, -1, 128); getitem_1 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_9: "bf16[s0, 4, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_10: "bf16[s0, 4, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_3.unsqueeze(-2); getitem_3 = None + to_4: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_4.unsqueeze(-2); getitem_4 = None + to_5: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_9, 2, dim = -1); getitem_9 = None + getitem_11: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_12: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_6: "bf16[s0, 4, 64]" = getitem_11 * to_4 + mul_7: "bf16[s0, 4, 64]" = getitem_12 * to_5 + sub_1: "bf16[s0, 4, 64]" = mul_6 - mul_7; mul_6 = mul_7 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_8: "bf16[s0, 4, 64]" = getitem_12 * to_4; getitem_12 = to_4 = None + mul_9: "bf16[s0, 4, 64]" = getitem_11 * to_5; getitem_11 = to_5 = None + add_2: "bf16[s0, 4, 64]" = mul_8 + mul_9; mul_8 = mul_9 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_2), dim = -1); sub_1 = add_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_10), dim = -1); cat_2 = getitem_10 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_2: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_4: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = getitem_2.view(-1, 4, 128); getitem_2 = None + return (view_2, view_4, view_5, view_3, embedding) + + class submod_1(torch.nn.Module): + def forward(self, query_2: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_2: "bf16[s0, 4, 128]", value: "bf16[s0, 4, 128]", output_1: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_2, key_2, value, output_1, 'model.layers.0.self_attn.attn'); query_2 = key_2 = value = output_1 = unified_attention_with_output = None + return () + + class submod_2(torch.nn.Module): + def forward(self, output_1: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", output_parallel: "bf16[s0, 3584]", l_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_1.view(-1, 3584); output_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_0_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = output_parallel.to(torch.float32); output_parallel = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_0_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_0_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_0_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_1_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_1_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_3(torch.nn.Module): + def forward(self, query_5: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_5: "bf16[s0, 4, 128]", value_1: "bf16[s0, 4, 128]", output_3: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_5, key_5, value_1, output_3, 'model.layers.1.self_attn.attn'); query_5 = key_5 = value_1 = output_3 = unified_attention_with_output = None + return () + + class submod_4(torch.nn.Module): + def forward(self, output_3: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_1: "bf16[s0, 3584]", l_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_3.view(-1, 3584); output_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_1_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_1.to(torch.float32); residual_1 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_1_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_1_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_1_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_2_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_2_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_5(torch.nn.Module): + def forward(self, query_8: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_8: "bf16[s0, 4, 128]", value_2: "bf16[s0, 4, 128]", output_5: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_8, key_8, value_2, output_5, 'model.layers.2.self_attn.attn'); query_8 = key_8 = value_2 = output_5 = unified_attention_with_output = None + return () + + class submod_6(torch.nn.Module): + def forward(self, output_5: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_3: "bf16[s0, 3584]", l_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_5.view(-1, 3584); output_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_2_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_3.to(torch.float32); residual_3 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_2_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_2_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_2_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_3_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_3_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_7(torch.nn.Module): + def forward(self, query_11: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_11: "bf16[s0, 4, 128]", value_3: "bf16[s0, 4, 128]", output_7: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_11, key_11, value_3, output_7, 'model.layers.3.self_attn.attn'); query_11 = key_11 = value_3 = output_7 = unified_attention_with_output = None + return () + + class submod_8(torch.nn.Module): + def forward(self, output_7: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_5: "bf16[s0, 3584]", l_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_7.view(-1, 3584); output_7 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_3_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_5.to(torch.float32); residual_5 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_3_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_3_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_3_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_4_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_4_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_9(torch.nn.Module): + def forward(self, query_14: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_14: "bf16[s0, 4, 128]", value_4: "bf16[s0, 4, 128]", output_9: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_14, key_14, value_4, output_9, 'model.layers.4.self_attn.attn'); query_14 = key_14 = value_4 = output_9 = unified_attention_with_output = None + return () + + class submod_10(torch.nn.Module): + def forward(self, output_9: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_7: "bf16[s0, 3584]", l_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_9.view(-1, 3584); output_9 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_4_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_7.to(torch.float32); residual_7 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_4_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_4_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_4_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_5_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_5_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_11(torch.nn.Module): + def forward(self, query_17: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_17: "bf16[s0, 4, 128]", value_5: "bf16[s0, 4, 128]", output_11: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_17, key_17, value_5, output_11, 'model.layers.5.self_attn.attn'); query_17 = key_17 = value_5 = output_11 = unified_attention_with_output = None + return () + + class submod_12(torch.nn.Module): + def forward(self, output_11: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_9: "bf16[s0, 3584]", l_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_11.view(-1, 3584); output_11 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_5_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_9.to(torch.float32); residual_9 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_5_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_5_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_5_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_6_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_6_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_13(torch.nn.Module): + def forward(self, query_20: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_20: "bf16[s0, 4, 128]", value_6: "bf16[s0, 4, 128]", output_13: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_20, key_20, value_6, output_13, 'model.layers.6.self_attn.attn'); query_20 = key_20 = value_6 = output_13 = unified_attention_with_output = None + return () + + class submod_14(torch.nn.Module): + def forward(self, output_13: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_11: "bf16[s0, 3584]", l_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_13.view(-1, 3584); output_13 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_6_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_11.to(torch.float32); residual_11 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_6_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_6_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_6_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_7_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_7_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_15(torch.nn.Module): + def forward(self, query_23: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_23: "bf16[s0, 4, 128]", value_7: "bf16[s0, 4, 128]", output_15: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_23, key_23, value_7, output_15, 'model.layers.7.self_attn.attn'); query_23 = key_23 = value_7 = output_15 = unified_attention_with_output = None + return () + + class submod_16(torch.nn.Module): + def forward(self, output_15: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_13: "bf16[s0, 3584]", l_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_15.view(-1, 3584); output_15 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_7_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_13.to(torch.float32); residual_13 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_7_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_7_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_7_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_8_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_8_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_17(torch.nn.Module): + def forward(self, query_26: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_26: "bf16[s0, 4, 128]", value_8: "bf16[s0, 4, 128]", output_17: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_26, key_26, value_8, output_17, 'model.layers.8.self_attn.attn'); query_26 = key_26 = value_8 = output_17 = unified_attention_with_output = None + return () + + class submod_18(torch.nn.Module): + def forward(self, output_17: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_15: "bf16[s0, 3584]", l_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_17.view(-1, 3584); output_17 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_8_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_15.to(torch.float32); residual_15 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_8_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_8_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_8_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_9_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_9_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_19(torch.nn.Module): + def forward(self, query_29: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_29: "bf16[s0, 4, 128]", value_9: "bf16[s0, 4, 128]", output_19: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_29, key_29, value_9, output_19, 'model.layers.9.self_attn.attn'); query_29 = key_29 = value_9 = output_19 = unified_attention_with_output = None + return () + + class submod_20(torch.nn.Module): + def forward(self, output_19: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_17: "bf16[s0, 3584]", l_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_19.view(-1, 3584); output_19 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_9_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_17.to(torch.float32); residual_17 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_9_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_9_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_9_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_10_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_10_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_21(torch.nn.Module): + def forward(self, query_32: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_32: "bf16[s0, 4, 128]", value_10: "bf16[s0, 4, 128]", output_21: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_32, key_32, value_10, output_21, 'model.layers.10.self_attn.attn'); query_32 = key_32 = value_10 = output_21 = unified_attention_with_output = None + return () + + class submod_22(torch.nn.Module): + def forward(self, output_21: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_19: "bf16[s0, 3584]", l_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_21.view(-1, 3584); output_21 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_10_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_19.to(torch.float32); residual_19 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_10_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_10_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_10_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_11_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_11_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_23(torch.nn.Module): + def forward(self, query_35: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_35: "bf16[s0, 4, 128]", value_11: "bf16[s0, 4, 128]", output_23: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_35, key_35, value_11, output_23, 'model.layers.11.self_attn.attn'); query_35 = key_35 = value_11 = output_23 = unified_attention_with_output = None + return () + + class submod_24(torch.nn.Module): + def forward(self, output_23: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_21: "bf16[s0, 3584]", l_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_23.view(-1, 3584); output_23 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_11_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_21.to(torch.float32); residual_21 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_11_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_11_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_11_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_12_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_12_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_25(torch.nn.Module): + def forward(self, query_38: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_38: "bf16[s0, 4, 128]", value_12: "bf16[s0, 4, 128]", output_25: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_38, key_38, value_12, output_25, 'model.layers.12.self_attn.attn'); query_38 = key_38 = value_12 = output_25 = unified_attention_with_output = None + return () + + class submod_26(torch.nn.Module): + def forward(self, output_25: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_23: "bf16[s0, 3584]", l_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_25.view(-1, 3584); output_25 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_12_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_23.to(torch.float32); residual_23 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_12_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_12_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_12_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_13_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_13_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_27(torch.nn.Module): + def forward(self, query_41: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_41: "bf16[s0, 4, 128]", value_13: "bf16[s0, 4, 128]", output_27: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_41, key_41, value_13, output_27, 'model.layers.13.self_attn.attn'); query_41 = key_41 = value_13 = output_27 = unified_attention_with_output = None + return () + + class submod_28(torch.nn.Module): + def forward(self, output_27: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_25: "bf16[s0, 3584]", l_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_27.view(-1, 3584); output_27 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_13_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_25.to(torch.float32); residual_25 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_13_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_13_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_13_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_14_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_14_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_29(torch.nn.Module): + def forward(self, query_44: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_44: "bf16[s0, 4, 128]", value_14: "bf16[s0, 4, 128]", output_29: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_44, key_44, value_14, output_29, 'model.layers.14.self_attn.attn'); query_44 = key_44 = value_14 = output_29 = unified_attention_with_output = None + return () + + class submod_30(torch.nn.Module): + def forward(self, output_29: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_27: "bf16[s0, 3584]", l_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_29.view(-1, 3584); output_29 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_14_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_27.to(torch.float32); residual_27 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_14_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_14_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_14_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_15_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_15_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_31(torch.nn.Module): + def forward(self, query_47: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_47: "bf16[s0, 4, 128]", value_15: "bf16[s0, 4, 128]", output_31: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_47, key_47, value_15, output_31, 'model.layers.15.self_attn.attn'); query_47 = key_47 = value_15 = output_31 = unified_attention_with_output = None + return () + + class submod_32(torch.nn.Module): + def forward(self, output_31: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_29: "bf16[s0, 3584]", l_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_31.view(-1, 3584); output_31 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_15_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_29.to(torch.float32); residual_29 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_15_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_15_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_15_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_16_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_16_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_33(torch.nn.Module): + def forward(self, query_50: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_50: "bf16[s0, 4, 128]", value_16: "bf16[s0, 4, 128]", output_33: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_50, key_50, value_16, output_33, 'model.layers.16.self_attn.attn'); query_50 = key_50 = value_16 = output_33 = unified_attention_with_output = None + return () + + class submod_34(torch.nn.Module): + def forward(self, output_33: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_31: "bf16[s0, 3584]", l_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_33.view(-1, 3584); output_33 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_16_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_31.to(torch.float32); residual_31 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_16_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_16_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_16_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_17_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_17_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_35(torch.nn.Module): + def forward(self, query_53: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_53: "bf16[s0, 4, 128]", value_17: "bf16[s0, 4, 128]", output_35: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_53, key_53, value_17, output_35, 'model.layers.17.self_attn.attn'); query_53 = key_53 = value_17 = output_35 = unified_attention_with_output = None + return () + + class submod_36(torch.nn.Module): + def forward(self, output_35: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_33: "bf16[s0, 3584]", l_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_35.view(-1, 3584); output_35 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_17_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_33.to(torch.float32); residual_33 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_17_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_17_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_17_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_18_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_18_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_37(torch.nn.Module): + def forward(self, query_56: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_56: "bf16[s0, 4, 128]", value_18: "bf16[s0, 4, 128]", output_37: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_56, key_56, value_18, output_37, 'model.layers.18.self_attn.attn'); query_56 = key_56 = value_18 = output_37 = unified_attention_with_output = None + return () + + class submod_38(torch.nn.Module): + def forward(self, output_37: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_35: "bf16[s0, 3584]", l_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_37.view(-1, 3584); output_37 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_18_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_35.to(torch.float32); residual_35 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_18_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_18_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_18_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_19_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_19_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_39(torch.nn.Module): + def forward(self, query_59: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_59: "bf16[s0, 4, 128]", value_19: "bf16[s0, 4, 128]", output_39: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_59, key_59, value_19, output_39, 'model.layers.19.self_attn.attn'); query_59 = key_59 = value_19 = output_39 = unified_attention_with_output = None + return () + + class submod_40(torch.nn.Module): + def forward(self, output_39: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_37: "bf16[s0, 3584]", l_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_39.view(-1, 3584); output_39 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_19_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_37.to(torch.float32); residual_37 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_19_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_19_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_19_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_20_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_20_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_41(torch.nn.Module): + def forward(self, query_62: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_62: "bf16[s0, 4, 128]", value_20: "bf16[s0, 4, 128]", output_41: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_62, key_62, value_20, output_41, 'model.layers.20.self_attn.attn'); query_62 = key_62 = value_20 = output_41 = unified_attention_with_output = None + return () + + class submod_42(torch.nn.Module): + def forward(self, output_41: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_39: "bf16[s0, 3584]", l_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_41.view(-1, 3584); output_41 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_20_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_39.to(torch.float32); residual_39 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_20_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_20_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_20_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_21_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_21_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_43(torch.nn.Module): + def forward(self, query_65: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_65: "bf16[s0, 4, 128]", value_21: "bf16[s0, 4, 128]", output_43: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_65, key_65, value_21, output_43, 'model.layers.21.self_attn.attn'); query_65 = key_65 = value_21 = output_43 = unified_attention_with_output = None + return () + + class submod_44(torch.nn.Module): + def forward(self, output_43: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_41: "bf16[s0, 3584]", l_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_43.view(-1, 3584); output_43 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_21_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_41.to(torch.float32); residual_41 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_21_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_21_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_21_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_22_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_22_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_45(torch.nn.Module): + def forward(self, query_68: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_68: "bf16[s0, 4, 128]", value_22: "bf16[s0, 4, 128]", output_45: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_68, key_68, value_22, output_45, 'model.layers.22.self_attn.attn'); query_68 = key_68 = value_22 = output_45 = unified_attention_with_output = None + return () + + class submod_46(torch.nn.Module): + def forward(self, output_45: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_43: "bf16[s0, 3584]", l_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_45.view(-1, 3584); output_45 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_22_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_43.to(torch.float32); residual_43 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_22_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_22_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_22_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_23_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_23_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_47(torch.nn.Module): + def forward(self, query_71: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_71: "bf16[s0, 4, 128]", value_23: "bf16[s0, 4, 128]", output_47: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_71, key_71, value_23, output_47, 'model.layers.23.self_attn.attn'); query_71 = key_71 = value_23 = output_47 = unified_attention_with_output = None + return () + + class submod_48(torch.nn.Module): + def forward(self, output_47: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_45: "bf16[s0, 3584]", l_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_47.view(-1, 3584); output_47 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_23_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_45.to(torch.float32); residual_45 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_23_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_23_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_23_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_24_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_24_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_49(torch.nn.Module): + def forward(self, query_74: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_74: "bf16[s0, 4, 128]", value_24: "bf16[s0, 4, 128]", output_49: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_74, key_74, value_24, output_49, 'model.layers.24.self_attn.attn'); query_74 = key_74 = value_24 = output_49 = unified_attention_with_output = None + return () + + class submod_50(torch.nn.Module): + def forward(self, output_49: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_47: "bf16[s0, 3584]", l_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_49.view(-1, 3584); output_49 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_24_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_47.to(torch.float32); residual_47 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_24_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_24_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_24_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_25_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_25_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_51(torch.nn.Module): + def forward(self, query_77: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_77: "bf16[s0, 4, 128]", value_25: "bf16[s0, 4, 128]", output_51: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_77, key_77, value_25, output_51, 'model.layers.25.self_attn.attn'); query_77 = key_77 = value_25 = output_51 = unified_attention_with_output = None + return () + + class submod_52(torch.nn.Module): + def forward(self, output_51: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_49: "bf16[s0, 3584]", l_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_51.view(-1, 3584); output_51 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_25_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_49.to(torch.float32); residual_49 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_25_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_25_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_25_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_26_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_26_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_53(torch.nn.Module): + def forward(self, query_80: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_80: "bf16[s0, 4, 128]", value_26: "bf16[s0, 4, 128]", output_53: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_80, key_80, value_26, output_53, 'model.layers.26.self_attn.attn'); query_80 = key_80 = value_26 = output_53 = unified_attention_with_output = None + return () + + class submod_54(torch.nn.Module): + def forward(self, output_53: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_51: "bf16[s0, 3584]", l_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_: "bf16[4608, 3584]", l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_: "bf16[4608]", l_positions_: "i64[s0]", l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_: "bf16[131072, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_53.view(-1, 3584); output_53 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_26_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_51.to(torch.float32); residual_51 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_26_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_26_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_26_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_; to_7 = l_self_modules_layers_modules_27_modules_input_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_3: "bf16[s0, 4608]" = torch._C._nn.linear(mul_4, l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_, l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_); mul_4 = l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_weight_ = l_self_modules_layers_modules_27_modules_self_attn_modules_qkv_proj_parameters_bias_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/models/qwen2.py:182 in forward, code: q, k, v = qkv.split([self.q_size, self.kv_size, self.kv_size], dim=-1) + split = linear_3.split([3584, 512, 512], dim = -1); linear_3 = None + getitem_2: "bf16[s0, 3584]" = split[0] + getitem_3: "bf16[s0, 512]" = split[1] + getitem_4: "bf16[s0, 512]" = split[2]; split = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:70 in forward_native, code: positions = positions.flatten() + flatten: "i64[s0]" = l_positions_.flatten(); l_positions_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:72 in forward_native, code: cos_sin = self.cos_sin_cache.index_select(0, positions) + index_select: "bf16[s0, 128]" = l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_.index_select(0, flatten); l_self_modules_layers_modules_0_modules_self_attn_modules_rotary_emb_buffers_cos_sin_cache_ = flatten = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:73 in forward_native, code: cos, sin = cos_sin.chunk(2, dim=-1) + chunk = index_select.chunk(2, dim = -1); index_select = None + getitem_5: "bf16[s0, 64]" = chunk[0] + getitem_6: "bf16[s0, 64]" = chunk[1]; chunk = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:75 in forward_native, code: query_shape = query.shape + size = getitem_2.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:76 in forward_native, code: query = query.view(num_tokens, -1, self.head_size) + view_1: "bf16[s0, 28, 128]" = getitem_2.view(s0, -1, 128); getitem_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:77 in forward_native, code: query_rot = query[..., :self.rotary_dim] + getitem_7: "bf16[s0, 28, 128]" = view_1[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:78 in forward_native, code: query_pass = query[..., self.rotary_dim:] + getitem_8: "bf16[s0, 28, 0]" = view_1[(Ellipsis, slice(128, None, None))]; view_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2) + to_8: "bf16[s0, 1, 64]" = unsqueeze.to(torch.bfloat16); unsqueeze = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_1: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2) + to_9: "bf16[s0, 1, 64]" = unsqueeze_1.to(torch.bfloat16); unsqueeze_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_1 = torch.chunk(getitem_7, 2, dim = -1); getitem_7 = None + getitem_9: "bf16[s0, 28, 64]" = chunk_1[0] + getitem_10: "bf16[s0, 28, 64]" = chunk_1[1]; chunk_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_5: "bf16[s0, 28, 64]" = getitem_9 * to_8 + mul_6: "bf16[s0, 28, 64]" = getitem_10 * to_9 + sub: "bf16[s0, 28, 64]" = mul_5 - mul_6; mul_5 = mul_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_7: "bf16[s0, 28, 64]" = getitem_10 * to_8; getitem_10 = to_8 = None + mul_8: "bf16[s0, 28, 64]" = getitem_9 * to_9; getitem_9 = to_9 = None + add_4: "bf16[s0, 28, 64]" = mul_7 + mul_8; mul_7 = mul_8 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat: "bf16[s0, 28, 128]" = torch.cat((sub, add_4), dim = -1); sub = add_4 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:81 in forward_native, code: query = torch.cat((query_rot, query_pass), dim=-1).reshape(query_shape) + cat_1: "bf16[s0, 28, 128]" = torch.cat((cat, getitem_8), dim = -1); cat = getitem_8 = None + reshape: "bf16[s0, 3584]" = cat_1.reshape(size); cat_1 = size = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:85 in forward_native, code: key_shape = key.shape + size_1 = getitem_3.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:86 in forward_native, code: key = key.view(num_tokens, -1, self.head_size) + view_2: "bf16[s0, 4, 128]" = getitem_3.view(s0, -1, 128); getitem_3 = s0 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:87 in forward_native, code: key_rot = key[..., :self.rotary_dim] + getitem_11: "bf16[s0, 4, 128]" = view_2[(Ellipsis, slice(None, 128, None))] + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:88 in forward_native, code: key_pass = key[..., self.rotary_dim:] + getitem_12: "bf16[s0, 4, 0]" = view_2[(Ellipsis, slice(128, None, None))]; view_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:34 in apply_rotary_emb_torch, code: cos = cos.unsqueeze(-2).to(x.dtype) + unsqueeze_2: "bf16[s0, 1, 64]" = getitem_5.unsqueeze(-2); getitem_5 = None + to_10: "bf16[s0, 1, 64]" = unsqueeze_2.to(torch.bfloat16); unsqueeze_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:35 in apply_rotary_emb_torch, code: sin = sin.unsqueeze(-2).to(x.dtype) + unsqueeze_3: "bf16[s0, 1, 64]" = getitem_6.unsqueeze(-2); getitem_6 = None + to_11: "bf16[s0, 1, 64]" = unsqueeze_3.to(torch.bfloat16); unsqueeze_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:37 in apply_rotary_emb_torch, code: x1, x2 = torch.chunk(x, 2, dim=-1) + chunk_2 = torch.chunk(getitem_11, 2, dim = -1); getitem_11 = None + getitem_13: "bf16[s0, 4, 64]" = chunk_2[0] + getitem_14: "bf16[s0, 4, 64]" = chunk_2[1]; chunk_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:41 in apply_rotary_emb_torch, code: o1 = x1 * cos - x2 * sin + mul_9: "bf16[s0, 4, 64]" = getitem_13 * to_10 + mul_10: "bf16[s0, 4, 64]" = getitem_14 * to_11 + sub_1: "bf16[s0, 4, 64]" = mul_9 - mul_10; mul_9 = mul_10 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:42 in apply_rotary_emb_torch, code: o2 = x2 * cos + x1 * sin + mul_11: "bf16[s0, 4, 64]" = getitem_14 * to_10; getitem_14 = to_10 = None + mul_12: "bf16[s0, 4, 64]" = getitem_13 * to_11; getitem_13 = to_11 = None + add_5: "bf16[s0, 4, 64]" = mul_11 + mul_12; mul_11 = mul_12 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/common.py:44 in apply_rotary_emb_torch, code: return torch.cat((o1, o2), dim=-1) + cat_2: "bf16[s0, 4, 128]" = torch.cat((sub_1, add_5), dim = -1); sub_1 = add_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/rotary_embedding/base.py:91 in forward_native, code: key = torch.cat((key_rot, key_pass), dim=-1).reshape(key_shape) + cat_3: "bf16[s0, 4, 128]" = torch.cat((cat_2, getitem_12), dim = -1); cat_2 = getitem_12 = None + reshape_1: "bf16[s0, 512]" = cat_3.reshape(size_1); cat_3 = size_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:242 in forward, code: if output_shape is not None else query.shape) + size_2 = reshape.size() + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:243 in forward, code: output = torch.zeros(output_shape, + zeros: "bf16[s0, 3584]" = torch.zeros(size_2, dtype = torch.bfloat16, device = device(type='cuda', index=0)); size_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:254 in forward, code: query = query.view(-1, self.num_heads, self.head_size) + view_3: "bf16[s0, 28, 128]" = reshape.view(-1, 28, 128); reshape = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:255 in forward, code: output = output.view(-1, self.num_heads, self.head_size) + view_4: "bf16[s0, 28, 128]" = zeros.view(-1, 28, 128); zeros = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:257 in forward, code: key = key.view(-1, self.num_kv_heads, self.head_size) + view_5: "bf16[s0, 4, 128]" = reshape_1.view(-1, 4, 128); reshape_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:259 in forward, code: value = value.view(-1, self.num_kv_heads, self.head_size) + view_6: "bf16[s0, 4, 128]" = getitem_4.view(-1, 4, 128); getitem_4 = None + return (view_3, view_5, view_6, view_4, to_6) + + class submod_55(torch.nn.Module): + def forward(self, query_83: "bf16[s0, 28, 128]", s0: "Sym(s0)", key_83: "bf16[s0, 4, 128]", value_27: "bf16[s0, 4, 128]", output_55: "bf16[s0, 28, 128]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:274 in forward, code: torch.ops.vllm.unified_attention_with_output( + unified_attention_with_output = torch.ops.vllm.unified_attention_with_output(query_83, key_83, value_27, output_55, 'model.layers.27.self_attn.attn'); query_83 = key_83 = value_27 = output_55 = unified_attention_with_output = None + return () + + class submod_56(torch.nn.Module): + def forward(self, output_55: "bf16[s0, 28, 128]", s0: "Sym(s0)", l_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_: "bf16[3584, 3584]", residual_53: "bf16[s0, 3584]", l_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_: "bf16[3584]", l_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_: "bf16[37888, 3584]", l_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_: "bf16[3584, 18944]", l_self_modules_norm_parameters_weight_: "bf16[3584]"): + # File: /home/x/.local/lib/python3.12/site-packages/vllm/attention/layer.py:276 in forward, code: return output.view(-1, hidden_size) + view: "bf16[s0, 3584]" = output_55.view(-1, 3584); output_55 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear: "bf16[s0, 3584]" = torch._C._nn.linear(view, l_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_, None); view = l_self_modules_layers_modules_27_modules_self_attn_modules_o_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to: "f32[s0, 3584]" = linear.to(torch.float32); linear = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_1: "f32[s0, 3584]" = residual_53.to(torch.float32); residual_53 = None + add: "f32[s0, 3584]" = to + to_1; to = to_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_2: "bf16[s0, 3584]" = add.to(torch.bfloat16) + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_1: "f32[s0, 3584]" = add.pow(2) + mean: "f32[s0, 1]" = pow_1.mean(dim = -1, keepdim = True); pow_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_1: "f32[s0, 1]" = mean + 1e-06; mean = None + rsqrt: "f32[s0, 1]" = torch.rsqrt(add_1); add_1 = None + mul: "f32[s0, 3584]" = add * rsqrt; add = rsqrt = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_3: "bf16[s0, 3584]" = mul.to(torch.bfloat16); mul = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_1: "bf16[s0, 3584]" = to_3 * l_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_; to_3 = l_self_modules_layers_modules_27_modules_post_attention_layernorm_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_1: "bf16[s0, 37888]" = torch._C._nn.linear(mul_1, l_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_, None); mul_1 = l_self_modules_layers_modules_27_modules_mlp_modules_gate_up_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/activation.py:79 in forward_native, code: return F.silu(x[..., :d]) * x[..., d:] + getitem: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(None, 18944, None))] + silu: "bf16[s0, 18944]" = torch.nn.functional.silu(getitem); getitem = None + getitem_1: "bf16[s0, 18944]" = linear_1[(Ellipsis, slice(18944, None, None))]; linear_1 = None + mul_2: "bf16[s0, 18944]" = silu * getitem_1; silu = getitem_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/utils.py:92 in default_unquantized_gemm, code: return torch.nn.functional.linear(x, weight, bias) + linear_2: "bf16[s0, 3584]" = torch._C._nn.linear(mul_2, l_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_, None); mul_2 = l_self_modules_layers_modules_27_modules_mlp_modules_down_proj_parameters_weight_ = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:125 in forward_native, code: x = x.to(torch.float32) + to_4: "f32[s0, 3584]" = linear_2.to(torch.float32); linear_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:127 in forward_native, code: x = x + residual.to(torch.float32) + to_5: "f32[s0, 3584]" = to_2.to(torch.float32); to_2 = None + add_2: "f32[s0, 3584]" = to_4 + to_5; to_4 = to_5 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:128 in forward_native, code: residual = x.to(orig_dtype) + to_6: "bf16[s0, 3584]" = add_2.to(torch.bfloat16); to_6 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:145 in forward_native, code: variance = x_var.pow(2).mean(dim=-1, keepdim=True) + pow_2: "f32[s0, 3584]" = add_2.pow(2) + mean_1: "f32[s0, 1]" = pow_2.mean(dim = -1, keepdim = True); pow_2 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:147 in forward_native, code: x = x * torch.rsqrt(variance + self.variance_epsilon) + add_3: "f32[s0, 1]" = mean_1 + 1e-06; mean_1 = None + rsqrt_1: "f32[s0, 1]" = torch.rsqrt(add_3); add_3 = None + mul_3: "f32[s0, 3584]" = add_2 * rsqrt_1; add_2 = rsqrt_1 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:148 in forward_native, code: x = x.to(orig_dtype) + to_7: "bf16[s0, 3584]" = mul_3.to(torch.bfloat16); mul_3 = None + + # File: /home/x/.local/lib/python3.12/site-packages/vllm/model_executor/layers/layernorm.py:150 in forward_native, code: x = x * self.weight + mul_4: "bf16[s0, 3584]" = to_7 * l_self_modules_norm_parameters_weight_; to_7 = l_self_modules_norm_parameters_weight_ = None + return mul_4 + \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/fs/cfskh2mdyfj22dss4y4cpndimbeaqmdvmfwc2kbeeopatr66npkt.py b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/fs/cfskh2mdyfj22dss4y4cpndimbeaqmdvmfwc2kbeeopatr66npkt.py new file mode 100644 index 0000000000000000000000000000000000000000..b0551137882cbb26239dbacccd6f313bd1d539c4 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/fs/cfskh2mdyfj22dss4y4cpndimbeaqmdvmfwc2kbeeopatr66npkt.py @@ -0,0 +1,65 @@ + +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.pointwise( + size_hints={'x': 4194304}, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*bf16', 'in_ptr1': '*i64', 'in_ptr2': '*bf16', 'out_ptr0': '*bf16', 'xnumel': 'i32', 'XBLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (4,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_poi_fused_cat_4', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 6, 'num_reduction': 0, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False}, + min_elem_per_thread=0 +) +@triton.jit +def triton_poi_fused_cat_4(in_ptr0, in_ptr1, in_ptr2, out_ptr0, xnumel, XBLOCK : tl.constexpr): + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:] + xmask = xindex < xnumel + x0 = (xindex % 128) + x1 = ((xindex // 128) % 4) + x2 = xindex // 512 + x4 = xindex + tmp0 = x0 + tmp1 = tl.full([1], 0, tl.int64) + tmp2 = tmp0 >= tmp1 + tmp3 = tl.full([1], 64, tl.int64) + tmp4 = tmp0 < tmp3 + tmp5 = tl.load(in_ptr0 + (3584 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp6 = tl.load(in_ptr1 + (x2), xmask & tmp4, eviction_policy='evict_last', other=0.0) + tmp7 = tl.full([XBLOCK], 131072, tl.int32) + tmp8 = tmp6 + tmp7 + tmp9 = tmp6 < 0 + tmp10 = tl.where(tmp9, tmp8, tmp6) + tl.device_assert(((0 <= tl.broadcast_to(tmp10, [XBLOCK])) & (tl.broadcast_to(tmp10, [XBLOCK]) < 131072)) | ~(xmask & tmp4), "index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072") + tmp12 = tl.load(in_ptr2 + (128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp13 = tmp5 * tmp12 + tmp14 = tl.load(in_ptr0 + (3648 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp15 = tl.load(in_ptr2 + (64 + 128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp16 = tmp14 * tmp15 + tmp17 = tmp13 - tmp16 + tmp18 = tl.full(tmp17.shape, 0.0, tmp17.dtype) + tmp19 = tl.where(tmp4, tmp17, tmp18) + tmp20 = tmp0 >= tmp3 + tmp21 = tl.full([1], 128, tl.int64) + tmp22 = tmp0 < tmp21 + tmp23 = tl.load(in_ptr0 + (3648 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp24 = tl.load(in_ptr1 + (x2), xmask & tmp20, eviction_policy='evict_last', other=0.0) + tmp25 = tl.full([XBLOCK], 131072, tl.int32) + tmp26 = tmp24 + tmp25 + tmp27 = tmp24 < 0 + tmp28 = tl.where(tmp27, tmp26, tmp24) + tl.device_assert(((0 <= tl.broadcast_to(tmp28, [XBLOCK])) & (tl.broadcast_to(tmp28, [XBLOCK]) < 131072)) | ~(xmask & tmp20), "index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072") + tmp30 = tl.load(in_ptr2 + (128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp31 = tmp23 * tmp30 + tmp32 = tl.load(in_ptr0 + (3584 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp33 = tl.load(in_ptr2 + (64 + 128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp34 = tmp32 * tmp33 + tmp35 = tmp31 + tmp34 + tmp36 = tl.full(tmp35.shape, 0.0, tmp35.dtype) + tmp37 = tl.where(tmp20, tmp35, tmp36) + tmp38 = tl.where(tmp4, tmp19, tmp37) + tl.store(out_ptr0 + (x4), tmp38, xmask) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/fs/e6992cd62d821ebcd5127e9b808957313ca6438ffabca12f64e17a0a6e7f19a3.best_config b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/fs/e6992cd62d821ebcd5127e9b808957313ca6438ffabca12f64e17a0a6e7f19a3.best_config new file mode 100644 index 0000000000000000000000000000000000000000..527bd2f19e9b58ff6101e012358a0952851c7c74 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/fs/e6992cd62d821ebcd5127e9b808957313ca6438ffabca12f64e17a0a6e7f19a3.best_config @@ -0,0 +1 @@ +{"XBLOCK": 1024, "num_warps": 4, "num_stages": 1, "configs_hash": "3ca5c3e34d35093f3c9ab2829a9faeebad5e61c4ca13d5ed6053d7b71ce60d5a", "found_by_coordesc": false, "time_taken_ms": 12} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/9951aeebb36ea3d940675958440fd5e1aef95db7493ee16b18874b4b25e8836d.best_config b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/9951aeebb36ea3d940675958440fd5e1aef95db7493ee16b18874b4b25e8836d.best_config new file mode 100644 index 0000000000000000000000000000000000000000..527bd2f19e9b58ff6101e012358a0952851c7c74 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/9951aeebb36ea3d940675958440fd5e1aef95db7493ee16b18874b4b25e8836d.best_config @@ -0,0 +1 @@ +{"XBLOCK": 1024, "num_warps": 4, "num_stages": 1, "configs_hash": "3ca5c3e34d35093f3c9ab2829a9faeebad5e61c4ca13d5ed6053d7b71ce60d5a", "found_by_coordesc": false, "time_taken_ms": 12} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py new file mode 100644 index 0000000000000000000000000000000000000000..71690809e7e6436e61d70dd2436b18d4467c6c29 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py @@ -0,0 +1,65 @@ + +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.pointwise( + size_hints={'x': 4194304}, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*bf16', 'in_ptr1': '*i64', 'in_ptr2': '*bf16', 'out_ptr0': '*bf16', 'xnumel': 'i32', 'XBLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (4,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_poi_fused_cat_2', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 6, 'num_reduction': 0, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False}, + min_elem_per_thread=0 +) +@triton.jit +def triton_poi_fused_cat_2(in_ptr0, in_ptr1, in_ptr2, out_ptr0, xnumel, XBLOCK : tl.constexpr): + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:] + xmask = xindex < xnumel + x0 = (xindex % 128) + x1 = ((xindex // 128) % 4) + x2 = xindex // 512 + x4 = xindex + tmp0 = x0 + tmp1 = tl.full([1], 0, tl.int64) + tmp2 = tmp0 >= tmp1 + tmp3 = tl.full([1], 64, tl.int64) + tmp4 = tmp0 < tmp3 + tmp5 = tl.load(in_ptr0 + (3584 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp6 = tl.load(in_ptr1 + (x2), xmask & tmp4, eviction_policy='evict_last', other=0.0) + tmp7 = tl.full([XBLOCK], 131072, tl.int32) + tmp8 = tmp6 + tmp7 + tmp9 = tmp6 < 0 + tmp10 = tl.where(tmp9, tmp8, tmp6) + tl.device_assert(((0 <= tl.broadcast_to(tmp10, [XBLOCK])) & (tl.broadcast_to(tmp10, [XBLOCK]) < 131072)) | ~(xmask & tmp4), "index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072") + tmp12 = tl.load(in_ptr2 + (128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp13 = tmp5 * tmp12 + tmp14 = tl.load(in_ptr0 + (3648 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp15 = tl.load(in_ptr2 + (64 + 128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp16 = tmp14 * tmp15 + tmp17 = tmp13 - tmp16 + tmp18 = tl.full(tmp17.shape, 0.0, tmp17.dtype) + tmp19 = tl.where(tmp4, tmp17, tmp18) + tmp20 = tmp0 >= tmp3 + tmp21 = tl.full([1], 128, tl.int64) + tmp22 = tmp0 < tmp21 + tmp23 = tl.load(in_ptr0 + (3648 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp24 = tl.load(in_ptr1 + (x2), xmask & tmp20, eviction_policy='evict_last', other=0.0) + tmp25 = tl.full([XBLOCK], 131072, tl.int32) + tmp26 = tmp24 + tmp25 + tmp27 = tmp24 < 0 + tmp28 = tl.where(tmp27, tmp26, tmp24) + tl.device_assert(((0 <= tl.broadcast_to(tmp28, [XBLOCK])) & (tl.broadcast_to(tmp28, [XBLOCK]) < 131072)) | ~(xmask & tmp20), "index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072") + tmp30 = tl.load(in_ptr2 + (128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp31 = tmp23 * tmp30 + tmp32 = tl.load(in_ptr0 + (3584 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp33 = tl.load(in_ptr2 + (64 + 128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp34 = tmp32 * tmp33 + tmp35 = tmp31 + tmp34 + tmp36 = tl.full(tmp35.shape, 0.0, tmp35.dtype) + tmp37 = tl.where(tmp20, tmp35, tmp36) + tmp38 = tl.where(tmp4, tmp19, tmp37) + tl.store(out_ptr0 + (x4), tmp38, xmask) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/kx/ckxvdfgxhb3qwf2i5askplyvuxh257jqaiodjraqxsprweahmslo.py b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/kx/ckxvdfgxhb3qwf2i5askplyvuxh257jqaiodjraqxsprweahmslo.py new file mode 100644 index 0000000000000000000000000000000000000000..83cf85f03043a6fea3fa84a506a715d432fd10c1 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/kx/ckxvdfgxhb3qwf2i5askplyvuxh257jqaiodjraqxsprweahmslo.py @@ -0,0 +1,377 @@ +# AOT ID: ['0_inference'] +from ctypes import c_void_p, c_long, c_int +import torch +import math +import random +import os +import tempfile +from math import inf, nan +from cmath import nanj +from torch._inductor.hooks import run_intermediate_hooks +from torch._inductor.utils import maybe_profile +from torch._inductor.codegen.memory_planning import _align as align +from torch import device, empty_strided +from torch._inductor.async_compile import AsyncCompile +from torch._inductor.select_algorithm import extern_kernels +from torch._inductor.codegen.multi_kernel import MultiKernelCall +import triton +import triton.language as tl +from torch._inductor.runtime.triton_heuristics import start_graph, end_graph +from torch._C import _cuda_getCurrentRawStream as get_raw_stream +from torch._C import _cuda_getCurrentRawStream as get_raw_stream + +aten = torch.ops.aten +inductor_ops = torch.ops.inductor +_quantized = torch.ops._quantized +assert_size_stride = torch._C._dynamo.guards.assert_size_stride +empty_strided_cpu = torch._C._dynamo.guards._empty_strided_cpu +empty_strided_cuda = torch._C._dynamo.guards._empty_strided_cuda +empty_strided_xpu = torch._C._dynamo.guards._empty_strided_xpu +reinterpret_tensor = torch._C._dynamo.guards._reinterpret_tensor +alloc_from_pool = torch.ops.inductor._alloc_from_pool +async_compile = AsyncCompile() +empty_strided_p2p = torch._C._distributed_c10d._SymmetricMemory.empty_strided_p2p + + +# kernel path: /home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py +# Topologically Sorted Source Nodes: [long, embedding, to, pow_1, mean, add, rsqrt, mul, to_1, mul_1], Original ATen: [aten._to_copy, aten.embedding, aten.pow, aten.mean, aten.add, aten.rsqrt, aten.mul] +# Source node to ATen node mapping: +# add => add_14 +# embedding => embedding +# long => convert_element_type +# mean => mean +# mul => mul_10 +# mul_1 => mul_15 +# pow_1 => pow_1 +# rsqrt => rsqrt +# to => convert_element_type_1 +# to_1 => convert_element_type_2 +# Graph fragment: +# %convert_element_type : [num_users=1] = call_function[target=torch.ops.prims.convert_element_type.default](args = (%arg0_1, torch.int64), kwargs = {}) +# %embedding : [num_users=2] = call_function[target=torch.ops.aten.embedding.default](args = (%arg2_1, %convert_element_type), kwargs = {}) +# %convert_element_type_1 : [num_users=2] = call_function[target=torch.ops.prims.convert_element_type.default](args = (%embedding, torch.float32), kwargs = {}) +# %pow_1 : [num_users=1] = call_function[target=torch.ops.aten.pow.Tensor_Scalar](args = (%convert_element_type_1, 2), kwargs = {}) +# %mean : [num_users=1] = call_function[target=torch.ops.aten.mean.dim](args = (%pow_1, [-1], True), kwargs = {}) +# %add_14 : [num_users=1] = call_function[target=torch.ops.aten.add.Tensor](args = (%mean, 1e-06), kwargs = {}) +# %rsqrt : [num_users=1] = call_function[target=torch.ops.aten.rsqrt.default](args = (%add_14,), kwargs = {}) +# %mul_10 : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%convert_element_type_1, %rsqrt), kwargs = {}) +# %convert_element_type_2 : [num_users=1] = call_function[target=torch.ops.prims.convert_element_type.default](args = (%mul_10, torch.bfloat16), kwargs = {}) +# %mul_15 : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%convert_element_type_2, %arg3_1), kwargs = {}) +triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0 = async_compile.triton('triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0', ''' +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.reduction( + size_hints={'x': 8192, 'r0_': 4096}, + reduction_hint=ReductionHint.INNER, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*i32', 'in_ptr1': '*bf16', 'in_ptr2': '*bf16', 'out_ptr0': '*bf16', 'out_ptr2': '*bf16', 'xnumel': 'i32', 'r0_numel': 'i32', 'XBLOCK': 'constexpr', 'R0_BLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (4,): [['tt.divisibility', 16]], (6,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 3, 'num_reduction': 1, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False} +) +@triton.jit +def triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0(in_ptr0, in_ptr1, in_ptr2, out_ptr0, out_ptr2, xnumel, r0_numel, XBLOCK : tl.constexpr, R0_BLOCK : tl.constexpr): + r0_numel = 3584 + rnumel = r0_numel + RBLOCK: tl.constexpr = R0_BLOCK + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:, None] + xmask = xindex < xnumel + r0_base = tl.arange(0, R0_BLOCK)[None, :] + rbase = r0_base + x0 = xindex + tmp0 = tl.load(in_ptr0 + (x0), xmask, eviction_policy='evict_last') + _tmp11 = tl.full([XBLOCK, R0_BLOCK], 0, tl.float32) + for r0_offset in range(0, r0_numel, R0_BLOCK): + r0_index = r0_offset + r0_base + r0_mask = r0_index < r0_numel + roffset = r0_offset + rindex = r0_index + r0_1 = r0_index + tmp1 = tmp0.to(tl.int64) + tmp2 = tl.full([XBLOCK, R0_BLOCK], 152064, tl.int32) + tmp3 = tmp1 + tmp2 + tmp4 = tmp1 < 0 + tmp5 = tl.where(tmp4, tmp3, tmp1) + tl.device_assert(((0 <= tmp5) & (tmp5 < 152064)) | ~(xmask), "index out of bounds: 0 <= tmp5 < 152064") + tmp7 = tl.load(in_ptr1 + (r0_1 + 3584*tmp5), xmask & r0_mask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp8 = tmp7.to(tl.float32) + tmp9 = tmp8 * tmp8 + tmp10 = tl.broadcast_to(tmp9, [XBLOCK, R0_BLOCK]) + tmp12 = _tmp11 + tmp10 + _tmp11 = tl.where(r0_mask & xmask, tmp12, _tmp11) + tl.store(out_ptr0 + (r0_1 + 3584*x0), tmp7, r0_mask & xmask) + tmp11 = tl.sum(_tmp11, 1)[:, None] + for r0_offset in range(0, r0_numel, R0_BLOCK): + r0_index = r0_offset + r0_base + r0_mask = r0_index < r0_numel + roffset = r0_offset + rindex = r0_index + r0_1 = r0_index + tmp13 = tl.load(out_ptr0 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp22 = tl.load(in_ptr2 + (r0_1), r0_mask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp14 = tmp13.to(tl.float32) + tmp15 = 3584.0 + tmp16 = (tmp11 / tmp15) + tmp17 = 1e-06 + tmp18 = tmp16 + tmp17 + tmp19 = libdevice.rsqrt(tmp18) + tmp20 = tmp14 * tmp19 + tmp21 = tmp20.to(tl.float32) + tmp23 = tmp21 * tmp22 + tl.store(out_ptr2 + (r0_1 + 3584*x0), tmp23, r0_mask & xmask) +''', device_str='cuda') + + +# kernel path: /home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py +# Topologically Sorted Source Nodes: [cat], Original ATen: [aten.cat] +# Source node to ATen node mapping: +# cat => cat +# Graph fragment: +# %cat : [num_users=1] = call_function[target=torch.ops.aten.cat.default](args = ([%sub_26, %add_97], -1), kwargs = {}) +triton_poi_fused_cat_1 = async_compile.triton('triton_poi_fused_cat_1', ''' +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.pointwise( + size_hints={'x': 33554432}, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*bf16', 'in_ptr1': '*i64', 'in_ptr2': '*bf16', 'out_ptr0': '*bf16', 'xnumel': 'i32', 'XBLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (4,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_poi_fused_cat_1', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 6, 'num_reduction': 0, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False}, + min_elem_per_thread=0 +) +@triton.jit +def triton_poi_fused_cat_1(in_ptr0, in_ptr1, in_ptr2, out_ptr0, xnumel, XBLOCK : tl.constexpr): + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:] + xmask = xindex < xnumel + x0 = (xindex % 128) + x1 = ((xindex // 128) % 28) + x2 = xindex // 3584 + x4 = xindex + tmp0 = x0 + tmp1 = tl.full([1], 0, tl.int64) + tmp2 = tmp0 >= tmp1 + tmp3 = tl.full([1], 64, tl.int64) + tmp4 = tmp0 < tmp3 + tmp5 = tl.load(in_ptr0 + (128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp6 = tl.load(in_ptr1 + (x2), xmask & tmp4, eviction_policy='evict_last', other=0.0) + tmp7 = tl.full([XBLOCK], 131072, tl.int32) + tmp8 = tmp6 + tmp7 + tmp9 = tmp6 < 0 + tmp10 = tl.where(tmp9, tmp8, tmp6) + tl.device_assert(((0 <= tl.broadcast_to(tmp10, [XBLOCK])) & (tl.broadcast_to(tmp10, [XBLOCK]) < 131072)) | ~(xmask & tmp4), "index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072") + tmp12 = tl.load(in_ptr2 + (128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp13 = tmp5 * tmp12 + tmp14 = tl.load(in_ptr0 + (64 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp15 = tl.load(in_ptr2 + (64 + 128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp16 = tmp14 * tmp15 + tmp17 = tmp13 - tmp16 + tmp18 = tl.full(tmp17.shape, 0.0, tmp17.dtype) + tmp19 = tl.where(tmp4, tmp17, tmp18) + tmp20 = tmp0 >= tmp3 + tmp21 = tl.full([1], 128, tl.int64) + tmp22 = tmp0 < tmp21 + tmp23 = tl.load(in_ptr0 + (64 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp24 = tl.load(in_ptr1 + (x2), xmask & tmp20, eviction_policy='evict_last', other=0.0) + tmp25 = tl.full([XBLOCK], 131072, tl.int32) + tmp26 = tmp24 + tmp25 + tmp27 = tmp24 < 0 + tmp28 = tl.where(tmp27, tmp26, tmp24) + tl.device_assert(((0 <= tl.broadcast_to(tmp28, [XBLOCK])) & (tl.broadcast_to(tmp28, [XBLOCK]) < 131072)) | ~(xmask & tmp20), "index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072") + tmp30 = tl.load(in_ptr2 + (128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp31 = tmp23 * tmp30 + tmp32 = tl.load(in_ptr0 + (128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp33 = tl.load(in_ptr2 + (64 + 128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp34 = tmp32 * tmp33 + tmp35 = tmp31 + tmp34 + tmp36 = tl.full(tmp35.shape, 0.0, tmp35.dtype) + tmp37 = tl.where(tmp20, tmp35, tmp36) + tmp38 = tl.where(tmp4, tmp19, tmp37) + tl.store(out_ptr0 + (x4), tmp38, xmask) +''', device_str='cuda') + + +# kernel path: /home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py +# Topologically Sorted Source Nodes: [cat_2], Original ATen: [aten.cat] +# Source node to ATen node mapping: +# cat_2 => cat_1 +# Graph fragment: +# %cat_1 : [num_users=1] = call_function[target=torch.ops.aten.cat.default](args = ([%sub_43, %add_159], -1), kwargs = {}) +triton_poi_fused_cat_2 = async_compile.triton('triton_poi_fused_cat_2', ''' +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.pointwise( + size_hints={'x': 4194304}, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*bf16', 'in_ptr1': '*i64', 'in_ptr2': '*bf16', 'out_ptr0': '*bf16', 'xnumel': 'i32', 'XBLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (4,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_poi_fused_cat_2', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 6, 'num_reduction': 0, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False}, + min_elem_per_thread=0 +) +@triton.jit +def triton_poi_fused_cat_2(in_ptr0, in_ptr1, in_ptr2, out_ptr0, xnumel, XBLOCK : tl.constexpr): + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:] + xmask = xindex < xnumel + x0 = (xindex % 128) + x1 = ((xindex // 128) % 4) + x2 = xindex // 512 + x4 = xindex + tmp0 = x0 + tmp1 = tl.full([1], 0, tl.int64) + tmp2 = tmp0 >= tmp1 + tmp3 = tl.full([1], 64, tl.int64) + tmp4 = tmp0 < tmp3 + tmp5 = tl.load(in_ptr0 + (3584 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp6 = tl.load(in_ptr1 + (x2), xmask & tmp4, eviction_policy='evict_last', other=0.0) + tmp7 = tl.full([XBLOCK], 131072, tl.int32) + tmp8 = tmp6 + tmp7 + tmp9 = tmp6 < 0 + tmp10 = tl.where(tmp9, tmp8, tmp6) + tl.device_assert(((0 <= tl.broadcast_to(tmp10, [XBLOCK])) & (tl.broadcast_to(tmp10, [XBLOCK]) < 131072)) | ~(xmask & tmp4), "index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072") + tmp12 = tl.load(in_ptr2 + (128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp13 = tmp5 * tmp12 + tmp14 = tl.load(in_ptr0 + (3648 + 128*x1 + 4608*x2 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp15 = tl.load(in_ptr2 + (64 + 128*tmp10 + (x0)), xmask & tmp4, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp16 = tmp14 * tmp15 + tmp17 = tmp13 - tmp16 + tmp18 = tl.full(tmp17.shape, 0.0, tmp17.dtype) + tmp19 = tl.where(tmp4, tmp17, tmp18) + tmp20 = tmp0 >= tmp3 + tmp21 = tl.full([1], 128, tl.int64) + tmp22 = tmp0 < tmp21 + tmp23 = tl.load(in_ptr0 + (3648 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp24 = tl.load(in_ptr1 + (x2), xmask & tmp20, eviction_policy='evict_last', other=0.0) + tmp25 = tl.full([XBLOCK], 131072, tl.int32) + tmp26 = tmp24 + tmp25 + tmp27 = tmp24 < 0 + tmp28 = tl.where(tmp27, tmp26, tmp24) + tl.device_assert(((0 <= tl.broadcast_to(tmp28, [XBLOCK])) & (tl.broadcast_to(tmp28, [XBLOCK]) < 131072)) | ~(xmask & tmp20), "index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072") + tmp30 = tl.load(in_ptr2 + (128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp31 = tmp23 * tmp30 + tmp32 = tl.load(in_ptr0 + (3584 + 128*x1 + 4608*x2 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp33 = tl.load(in_ptr2 + (64 + 128*tmp28 + ((-64) + x0)), xmask & tmp20, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp34 = tmp32 * tmp33 + tmp35 = tmp31 + tmp34 + tmp36 = tl.full(tmp35.shape, 0.0, tmp35.dtype) + tmp37 = tl.where(tmp20, tmp35, tmp36) + tmp38 = tl.where(tmp4, tmp19, tmp37) + tl.store(out_ptr0 + (x4), tmp38, xmask) +''', device_str='cuda') + + +# kernel path: /home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/vl/cvldluh6ekwrc6dg3fhtk6itaod5famu6kcfiasoqowee4rnccf2.py +# Topologically Sorted Source Nodes: [view_3], Original ATen: [aten.view] +# Source node to ATen node mapping: +# view_3 => full_default +# Graph fragment: +# %full_default : [num_users=1] = call_function[target=torch.ops.aten.full.default](args = ([%arg1_1, 28, 128], 0.0), kwargs = {dtype: torch.bfloat16, layout: torch.strided, device: cuda:0, pin_memory: False}) +triton_poi_fused_view_3 = async_compile.triton('triton_poi_fused_view_3', ''' +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.pointwise( + size_hints={'x': 33554432}, + filename=__file__, + triton_meta={'signature': {'out_ptr0': '*bf16', 'xnumel': 'i32', 'XBLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_poi_fused_view_3', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 0, 'num_reduction': 0, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False}, + min_elem_per_thread=0 +) +@triton.jit +def triton_poi_fused_view_3(out_ptr0, xnumel, XBLOCK : tl.constexpr): + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:] + xmask = xindex < xnumel + x0 = xindex + tmp0 = 0.0 + tl.store(out_ptr0 + (x0), tmp0, xmask) +''', device_str='cuda') + + +async_compile.wait(globals()) +del async_compile + +def call(args): + arg0_1, arg1_1, arg2_1, arg3_1, arg4_1, arg5_1, arg6_1, arg7_1 = args + args.clear() + s0 = arg1_1 + assert_size_stride(arg0_1, (s0, ), (1, )) + assert_size_stride(arg2_1, (152064, 3584), (3584, 1)) + assert_size_stride(arg3_1, (3584, ), (1, )) + assert_size_stride(arg4_1, (4608, 3584), (3584, 1)) + assert_size_stride(arg5_1, (4608, ), (1, )) + assert_size_stride(arg6_1, (s0, ), (1, )) + assert_size_stride(arg7_1, (131072, 128), (128, 1)) + with torch.cuda._DeviceGuard(0): + torch.cuda.set_device(0) + buf0 = empty_strided_cuda((s0, 3584), (3584, 1), torch.bfloat16) + buf2 = empty_strided_cuda((s0, 3584), (3584, 1), torch.bfloat16) + # Topologically Sorted Source Nodes: [long, embedding, to, pow_1, mean, add, rsqrt, mul, to_1, mul_1], Original ATen: [aten._to_copy, aten.embedding, aten.pow, aten.mean, aten.add, aten.rsqrt, aten.mul] + stream0 = get_raw_stream(0) + triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.run(arg0_1, arg2_1, arg3_1, buf0, buf2, s0, 3584, stream=stream0) + del arg0_1 + del arg2_1 + del arg3_1 + buf3 = empty_strided_cuda((s0, 4608), (4608, 1), torch.bfloat16) + # Topologically Sorted Source Nodes: [to, pow_1, mean, add, rsqrt, mul, to_1, mul_1, linear], Original ATen: [aten._to_copy, aten.pow, aten.mean, aten.add, aten.rsqrt, aten.mul, aten.addmm] + extern_kernels.addmm(arg5_1, buf2, reinterpret_tensor(arg4_1, (3584, 4608), (1, 3584), 0), alpha=1, beta=1, out=buf3) + del arg4_1 + del arg5_1 + buf4 = reinterpret_tensor(buf2, (s0, 28, 128), (3584, 128, 1), 0); del buf2 # reuse + # Topologically Sorted Source Nodes: [cat], Original ATen: [aten.cat] + triton_poi_fused_cat_1_xnumel = 3584*s0 + stream0 = get_raw_stream(0) + triton_poi_fused_cat_1.run(buf3, arg6_1, arg7_1, buf4, triton_poi_fused_cat_1_xnumel, stream=stream0) + buf5 = empty_strided_cuda((s0, 4, 128), (512, 128, 1), torch.bfloat16) + # Topologically Sorted Source Nodes: [cat_2], Original ATen: [aten.cat] + triton_poi_fused_cat_2_xnumel = 512*s0 + stream0 = get_raw_stream(0) + triton_poi_fused_cat_2.run(buf3, arg6_1, arg7_1, buf5, triton_poi_fused_cat_2_xnumel, stream=stream0) + del arg6_1 + del arg7_1 + buf6 = empty_strided_cuda((s0, 28, 128), (3584, 128, 1), torch.bfloat16) + # Topologically Sorted Source Nodes: [view_3], Original ATen: [aten.view] + triton_poi_fused_view_3_xnumel = 3584*s0 + stream0 = get_raw_stream(0) + triton_poi_fused_view_3.run(buf6, triton_poi_fused_view_3_xnumel, stream=stream0) + return (buf4, buf5, reinterpret_tensor(buf3, (s0, 4, 128), (4608, 128, 1), 4096), buf6, buf0, ) + + +def benchmark_compiled_module(times=10, repeat=10): + from torch._dynamo.testing import rand_strided + from torch._inductor.utils import print_performance + arg0_1 = rand_strided((8192, ), (1, ), device='cuda:0', dtype=torch.int32) + arg1_1 = 8192 + arg2_1 = rand_strided((152064, 3584), (3584, 1), device='cuda:0', dtype=torch.bfloat16) + arg3_1 = rand_strided((3584, ), (1, ), device='cuda:0', dtype=torch.bfloat16) + arg4_1 = rand_strided((4608, 3584), (3584, 1), device='cuda:0', dtype=torch.bfloat16) + arg5_1 = rand_strided((4608, ), (1, ), device='cuda:0', dtype=torch.bfloat16) + arg6_1 = rand_strided((8192, ), (1, ), device='cuda:0', dtype=torch.int64) + arg7_1 = rand_strided((131072, 128), (128, 1), device='cuda:0', dtype=torch.bfloat16) + fn = lambda: call([arg0_1, arg1_1, arg2_1, arg3_1, arg4_1, arg5_1, arg6_1, arg7_1]) + return print_performance(fn, times=times, repeat=repeat) + + +if __name__ == "__main__": + from torch._inductor.wrapper_benchmark import compiled_module_main + compiled_module_main('None', benchmark_compiled_module) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py new file mode 100644 index 0000000000000000000000000000000000000000..a5a3206f248ddf8a98ba67673093097ea12c3ac9 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py @@ -0,0 +1,65 @@ + +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.reduction( + size_hints={'x': 8192, 'r0_': 4096}, + reduction_hint=ReductionHint.INNER, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*bf16', 'in_ptr1': '*bf16', 'in_ptr2': '*bf16', 'out_ptr1': '*bf16', 'xnumel': 'i32', 'r0_numel': 'i32', 'XBLOCK': 'constexpr', 'R0_BLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (5,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 5, 'num_reduction': 1, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False} +) +@triton.jit +def triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0(in_ptr0, in_ptr1, in_ptr2, out_ptr1, xnumel, r0_numel, XBLOCK : tl.constexpr, R0_BLOCK : tl.constexpr): + r0_numel = 3584 + rnumel = r0_numel + RBLOCK: tl.constexpr = R0_BLOCK + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:, None] + xmask = xindex < xnumel + r0_base = tl.arange(0, R0_BLOCK)[None, :] + rbase = r0_base + x0 = xindex + _tmp7 = tl.full([XBLOCK, R0_BLOCK], 0, tl.float32) + for r0_offset in range(0, r0_numel, R0_BLOCK): + r0_index = r0_offset + r0_base + r0_mask = r0_index < r0_numel + roffset = r0_offset + rindex = r0_index + r0_1 = r0_index + tmp0 = tl.load(in_ptr0 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp2 = tl.load(in_ptr1 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp1 = tmp0.to(tl.float32) + tmp3 = tmp2.to(tl.float32) + tmp4 = tmp1 + tmp3 + tmp5 = tmp4 * tmp4 + tmp6 = tl.broadcast_to(tmp5, [XBLOCK, R0_BLOCK]) + tmp8 = _tmp7 + tmp6 + _tmp7 = tl.where(r0_mask & xmask, tmp8, _tmp7) + tmp7 = tl.sum(_tmp7, 1)[:, None] + for r0_offset in range(0, r0_numel, R0_BLOCK): + r0_index = r0_offset + r0_base + r0_mask = r0_index < r0_numel + roffset = r0_offset + rindex = r0_index + r0_1 = r0_index + tmp9 = tl.load(in_ptr0 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp11 = tl.load(in_ptr1 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp21 = tl.load(in_ptr2 + (r0_1), r0_mask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp10 = tmp9.to(tl.float32) + tmp12 = tmp11.to(tl.float32) + tmp13 = tmp10 + tmp12 + tmp14 = 3584.0 + tmp15 = (tmp7 / tmp14) + tmp16 = 1e-06 + tmp17 = tmp15 + tmp16 + tmp18 = libdevice.rsqrt(tmp17) + tmp19 = tmp13 * tmp18 + tmp20 = tmp19.to(tl.float32) + tmp22 = tmp20 * tmp21 + tl.store(out_ptr1 + (r0_1 + 3584*x0), tmp22, r0_mask & xmask) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/rl/crlfh6vfyrefv57vpikmf3lb2kgqzyaqhnhdzoizj44yuurmo5ql.py b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/rl/crlfh6vfyrefv57vpikmf3lb2kgqzyaqhnhdzoizj44yuurmo5ql.py new file mode 100644 index 0000000000000000000000000000000000000000..99af9b40d181b9adc532368dcc78e0060cf286b3 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/rl/crlfh6vfyrefv57vpikmf3lb2kgqzyaqhnhdzoizj44yuurmo5ql.py @@ -0,0 +1,73 @@ + +import triton +import triton.language as tl + +from torch._inductor.runtime import triton_helpers, triton_heuristics +from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math +from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, DeviceProperties +triton_helpers.set_driver_to_gpu() + +@triton_heuristics.reduction( + size_hints={'x': 8192, 'r0_': 4096}, + reduction_hint=ReductionHint.INNER, + filename=__file__, + triton_meta={'signature': {'in_ptr0': '*bf16', 'in_ptr1': '*bf16', 'in_ptr2': '*bf16', 'in_ptr3': '*bf16', 'out_ptr1': '*bf16', 'out_ptr2': '*bf16', 'xnumel': 'i32', 'r0_numel': 'i32', 'XBLOCK': 'constexpr', 'R0_BLOCK': 'constexpr'}, 'device': DeviceProperties(type='cuda', index=0, multi_processor_count=132, cc=90, major=9, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, warp_size=32), 'constants': {}, 'configs': [{(0,): [['tt.divisibility', 16]], (1,): [['tt.divisibility', 16]], (2,): [['tt.divisibility', 16]], (3,): [['tt.divisibility', 16]], (4,): [['tt.divisibility', 16]], (5,): [['tt.divisibility', 16]], (7,): [['tt.divisibility', 16]]}]}, + inductor_meta={'grid_type': 'Grid1D', 'autotune_hints': set(), 'kernel_name': 'triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2', 'mutated_arg_names': [], 'optimize_mem': True, 'no_x_dim': False, 'num_load': 7, 'num_reduction': 1, 'backend_hash': 'F43D6982A315236AF8E29EA38FBEB3BFF1A29D8B91A2D6952242D4C92EF73270', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False} +) +@triton.jit +def triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2(in_ptr0, in_ptr1, in_ptr2, in_ptr3, out_ptr1, out_ptr2, xnumel, r0_numel, XBLOCK : tl.constexpr, R0_BLOCK : tl.constexpr): + r0_numel = 3584 + rnumel = r0_numel + RBLOCK: tl.constexpr = R0_BLOCK + xoffset = tl.program_id(0) * XBLOCK + xindex = xoffset + tl.arange(0, XBLOCK)[:, None] + xmask = xindex < xnumel + r0_base = tl.arange(0, R0_BLOCK)[None, :] + rbase = r0_base + x0 = xindex + _tmp10 = tl.full([XBLOCK, R0_BLOCK], 0, tl.float32) + for r0_offset in range(0, r0_numel, R0_BLOCK): + r0_index = r0_offset + r0_base + r0_mask = r0_index < r0_numel + roffset = r0_offset + rindex = r0_index + r0_1 = r0_index + tmp0 = tl.load(in_ptr0 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp2 = tl.load(in_ptr1 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp4 = tl.load(in_ptr2 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp1 = tmp0.to(tl.float32) + tmp3 = tmp2.to(tl.float32) + tmp5 = tmp4.to(tl.float32) + tmp6 = tmp3 + tmp5 + tmp7 = tmp1 + tmp6 + tmp8 = tmp7 * tmp7 + tmp9 = tl.broadcast_to(tmp8, [XBLOCK, R0_BLOCK]) + tmp11 = _tmp10 + tmp9 + _tmp10 = tl.where(r0_mask & xmask, tmp11, _tmp10) + tmp10 = tl.sum(_tmp10, 1)[:, None] + for r0_offset in range(0, r0_numel, R0_BLOCK): + r0_index = r0_offset + r0_base + r0_mask = r0_index < r0_numel + roffset = r0_offset + rindex = r0_index + r0_1 = r0_index + tmp12 = tl.load(in_ptr0 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp14 = tl.load(in_ptr1 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp16 = tl.load(in_ptr2 + (r0_1 + 3584*x0), r0_mask & xmask, eviction_policy='evict_first', other=0.0).to(tl.float32) + tmp27 = tl.load(in_ptr3 + (r0_1), r0_mask, eviction_policy='evict_last', other=0.0).to(tl.float32) + tmp13 = tmp12.to(tl.float32) + tmp15 = tmp14.to(tl.float32) + tmp17 = tmp16.to(tl.float32) + tmp18 = tmp15 + tmp17 + tmp19 = tmp13 + tmp18 + tmp20 = 3584.0 + tmp21 = (tmp10 / tmp20) + tmp22 = 1e-06 + tmp23 = tmp21 + tmp22 + tmp24 = libdevice.rsqrt(tmp23) + tmp25 = tmp19 * tmp24 + tmp26 = tmp25.to(tl.float32) + tmp28 = tmp26 * tmp27 + tmp29 = tmp19.to(tl.float32) + tl.store(out_ptr1 + (r0_1 + 3584*x0), tmp28, r0_mask & xmask) + tl.store(out_ptr2 + (r0_1 + 3584*x0), tmp29, r0_mask & xmask) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/vl/e9fe9833e650e31ed083cf1b1d3b94e571fa8ac83d3dcbe46f0bb262ae60cb1a.best_config b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/vl/e9fe9833e650e31ed083cf1b1d3b94e571fa8ac83d3dcbe46f0bb262ae60cb1a.best_config new file mode 100644 index 0000000000000000000000000000000000000000..f95a97f6d38f97b428d9068fa0da3cec07b1ec18 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/vl/e9fe9833e650e31ed083cf1b1d3b94e571fa8ac83d3dcbe46f0bb262ae60cb1a.best_config @@ -0,0 +1 @@ +{"XBLOCK": 1024, "num_warps": 4, "num_stages": 1, "configs_hash": "3ca5c3e34d35093f3c9ab2829a9faeebad5e61c4ca13d5ed6053d7b71ce60d5a", "found_by_coordesc": false, "time_taken_ms": 16} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/56GRXI34W4GACMMG3DGUF6QSRGNYNUEAXKCSMJ7BXVXUVGHL27YA/triton_poi_fused_cat_2.json b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/56GRXI34W4GACMMG3DGUF6QSRGNYNUEAXKCSMJ7BXVXUVGHL27YA/triton_poi_fused_cat_2.json new file mode 100644 index 0000000000000000000000000000000000000000..166510e854477ee029a649fa5fdd43f8a3e93b24 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/56GRXI34W4GACMMG3DGUF6QSRGNYNUEAXKCSMJ7BXVXUVGHL27YA/triton_poi_fused_cat_2.json @@ -0,0 +1 @@ +{"hash": "ef8d1ba37cb70c013186d8cd42fa12899b86d080ba852627e1bd6f4a98ebd7f0", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 4, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/.local/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 0, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_poi_fused_cat_2"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/5VJWGVMJ4PCN72YPQKLCBR2EFNJZVDLX75I2N2L5E2N6PXCORMPA/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0.ttir b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/5VJWGVMJ4PCN72YPQKLCBR2EFNJZVDLX75I2N2L5E2N6PXCORMPA/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0.ttir new file mode 100644 index 0000000000000000000000000000000000000000..8efdf9e0d94daaa1efb66166436a61e04fec68ad --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/5VJWGVMJ4PCN72YPQKLCBR2EFNJZVDLX75I2N2L5E2N6PXCORMPA/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0.ttir @@ -0,0 +1,138 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0) +#loc1 = loc(unknown) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":44:25) +#loc54 = loc(callsite(#loc1 at #loc24)) +module { + tt.func public @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_0(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0), %arg4: i32 loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0), %arg5: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<1x2048xbf16> loc(#loc1) + %c2048_i32 = arith.constant 2048 : i32 loc(#loc1) + %c3584_i32 = arith.constant 3584 : i32 loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %cst_0 = arith.constant dense<9.99999997E-7> : tensor<1x1xf32> loc(#loc1) + %cst_1 = arith.constant dense<3.584000e+03> : tensor<1x1xf32> loc(#loc1) + %cst_2 = arith.constant dense<3584> : tensor<1x2048xi32> loc(#loc1) + %cst_3 = arith.constant dense<0.000000e+00> : tensor<1x2048xf32> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.cmpi slt, %0, %arg4 : i32 loc(#loc3) + %2 = tt.make_range {end = 2048 : i32, start = 0 : i32} : tensor<2048xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 0 : i32} : tensor<2048xi32> -> tensor<1x2048xi32> loc(#loc5) + %4 = scf.for %arg6 = %c0_i32 to %c3584_i32 step %c2048_i32 iter_args(%arg7 = %cst_3) -> (tensor<1x2048xf32>) : i32 { + %7 = tt.splat %arg6 : i32 -> tensor<1x2048xi32> loc(#loc7) + %8 = arith.addi %7, %3 : tensor<1x2048xi32> loc(#loc7) + %9 = arith.cmpi slt, %8, %cst_2 : tensor<1x2048xi32> loc(#loc8) + %10 = arith.muli %0, %c3584_i32 : i32 loc(#loc9) + %11 = tt.splat %10 : i32 -> tensor<1x2048xi32> loc(#loc51) + %12 = arith.addi %8, %11 : tensor<1x2048xi32> loc(#loc10) + %13 = tt.splat %arg0 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc11) + %14 = tt.addptr %13, %12 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc11) + %15 = tt.splat %1 : i1 -> tensor<1x2048xi1> loc(#loc52) + %16 = arith.andi %9, %15 : tensor<1x2048xi1> loc(#loc12) + %17 = tt.load %14, %16, %cst evictionPolicy = evict_last : tensor<1x2048x!tt.ptr> loc(#loc13) + %18 = arith.extf %17 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc14) + %19 = tt.splat %arg1 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc15) + %20 = tt.addptr %19, %12 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc15) + %21 = tt.load %20, %16, %cst evictionPolicy = evict_last : tensor<1x2048x!tt.ptr> loc(#loc16) + %22 = arith.extf %21 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc17) + %23 = arith.addf %18, %22 : tensor<1x2048xf32> loc(#loc18) + %24 = arith.mulf %23, %23 : tensor<1x2048xf32> loc(#loc19) + %25 = arith.addf %arg7, %24 : tensor<1x2048xf32> loc(#loc20) + %26 = arith.select %16, %25, %arg7 : tensor<1x2048xi1>, tensor<1x2048xf32> loc(#loc21) + scf.yield %26 : tensor<1x2048xf32> loc(#loc22) + } loc(#loc6) + %5 = "tt.reduce"(%4) <{axis = 1 : i32}> ({ + ^bb0(%arg6: f32 loc(callsite(#loc1 at #loc24)), %arg7: f32 loc(callsite(#loc1 at #loc24))): + %7 = arith.addf %arg6, %arg7 : f32 loc(#loc58) + tt.reduce.return %7 : f32 loc(#loc53) + }) : (tensor<1x2048xf32>) -> tensor<1xf32> loc(#loc53) + %6 = tt.expand_dims %5 {axis = 1 : i32} : tensor<1xf32> -> tensor<1x1xf32> loc(#loc26) + scf.for %arg6 = %c0_i32 to %c3584_i32 step %c2048_i32 : i32 { + %7 = tt.splat %arg6 : i32 -> tensor<1x2048xi32> loc(#loc28) + %8 = arith.addi %7, %3 : tensor<1x2048xi32> loc(#loc28) + %9 = arith.cmpi slt, %8, %cst_2 : tensor<1x2048xi32> loc(#loc29) + %10 = arith.muli %0, %c3584_i32 : i32 loc(#loc30) + %11 = tt.splat %10 : i32 -> tensor<1x2048xi32> loc(#loc56) + %12 = arith.addi %8, %11 : tensor<1x2048xi32> loc(#loc31) + %13 = tt.splat %arg0 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc32) + %14 = tt.addptr %13, %12 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc32) + %15 = tt.splat %1 : i1 -> tensor<1x2048xi1> loc(#loc57) + %16 = arith.andi %9, %15 : tensor<1x2048xi1> loc(#loc33) + %17 = tt.load %14, %16, %cst evictionPolicy = evict_first : tensor<1x2048x!tt.ptr> loc(#loc34) + %18 = arith.extf %17 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc35) + %19 = tt.splat %arg1 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc36) + %20 = tt.addptr %19, %12 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc36) + %21 = tt.load %20, %16, %cst evictionPolicy = evict_first : tensor<1x2048x!tt.ptr> loc(#loc37) + %22 = arith.extf %21 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc38) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc39) + %24 = tt.addptr %23, %8 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc39) + %25 = tt.load %24, %9, %cst evictionPolicy = evict_last : tensor<1x2048x!tt.ptr> loc(#loc40) + %26 = arith.extf %25 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc41) + %27 = arith.addf %18, %22 : tensor<1x2048xf32> loc(#loc42) + %28 = arith.divf %6, %cst_1 : tensor<1x1xf32> loc(#loc43) + %29 = arith.addf %28, %cst_0 : tensor<1x1xf32> loc(#loc44) + %30 = tt.extern_elementwise %29 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1x1xf32>) -> tensor<1x1xf32> loc(#loc45) + %31 = tt.broadcast %30 : tensor<1x1xf32> -> tensor<1x2048xf32> loc(#loc46) + %32 = arith.mulf %27, %31 : tensor<1x2048xf32> loc(#loc46) + %33 = arith.mulf %32, %26 : tensor<1x2048xf32> loc(#loc47) + %34 = tt.splat %arg3 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc48) + %35 = tt.addptr %34, %12 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc48) + %36 = arith.truncf %33 : tensor<1x2048xf32> to tensor<1x2048xbf16> loc(#loc49) + tt.store %35, %36, %16 : tensor<1x2048x!tt.ptr> loc(#loc49) + } loc(#loc27) + tt.return loc(#loc50) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":24:21) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":25:27) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":25:37) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":29:40) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":30:31) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":31:29) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":35:46) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":35:41) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":35:34) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":35:61) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":35:51) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":35:112) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":36:34) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":36:51) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":36:112) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":39:22) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":40:22) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":42:23) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":43:48) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":43:8) +#loc23 = loc("/home/x/.local/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc25 = loc("/home/x/.local/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":44:28) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":45:40) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":46:31) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":47:29) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":51:46) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":51:41) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":51:34) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":51:61) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":51:51) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":51:113) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":52:35) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":52:52) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":52:114) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":53:35) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":53:42) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":53:95) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":56:24) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":58:24) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":60:24) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":61:32) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":62:24) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":64:24) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":65:29) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":65:53) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/pw/cpwpvywcxi3pfee3hihkhgruiudxch5x5fjmrfni32pbrohqnjnc.py":45:4) +#loc51 = loc(fused[#loc10, #loc9]) +#loc52 = loc(fused[#loc12, #loc3]) +#loc53 = loc(callsite(#loc23 at #loc24)) +#loc55 = loc(callsite(#loc25 at #loc23)) +#loc56 = loc(fused[#loc31, #loc30]) +#loc57 = loc(fused[#loc33, #loc3]) +#loc58 = loc(callsite(#loc55 at #loc24)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/__grp__triton_poi_fused_cat_1.json b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/__grp__triton_poi_fused_cat_1.json new file mode 100644 index 0000000000000000000000000000000000000000..cb8d611bede4db5bc658a4fd40e720fa73e36d54 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/__grp__triton_poi_fused_cat_1.json @@ -0,0 +1 @@ +{"child_paths": {"triton_poi_fused_cat_1.ttir": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.ttir", "triton_poi_fused_cat_1.ttgir": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.ttgir", "triton_poi_fused_cat_1.llir": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.llir", "triton_poi_fused_cat_1.ptx": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.ptx", "triton_poi_fused_cat_1.cubin": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.cubin", "triton_poi_fused_cat_1.json": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.llir b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.llir new file mode 100644 index 0000000000000000000000000000000000000000..0a5e51f353520e95b1591451dbd40de62c62fff9 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.llir @@ -0,0 +1,356 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@assertFunc_1 = internal constant [8 x i8] c"unknown\00" +@assertFile_1 = internal constant [134 x i8] c"/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py\00" +@assertMessage_1 = internal constant [68 x i8] c"index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072\00" +@assertFunc_0 = internal constant [8 x i8] c"unknown\00" +@assertFile_0 = internal constant [134 x i8] c"/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py\00" +@assertMessage_0 = internal constant [68 x i8] c"index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072\00" + +; Function Attrs: noreturn +declare !dbg !6 void @__assertfail(ptr, ptr, i32, ptr, i64) local_unnamed_addr #0 + +define ptx_kernel void @triton_poi_fused_cat_1(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(1) %2, ptr addrspace(1) %3, i32 %4, ptr addrspace(1) readnone captures(none) %5) local_unnamed_addr !dbg !10 { + %7 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !11 + %8 = shl i32 %7, 10, !dbg !12 + %9 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !13 + %10 = shl i32 %9, 3, !dbg !13 + %11 = and i32 %10, 1016, !dbg !13 + %12 = or disjoint i32 %11, %8, !dbg !14 + %13 = icmp slt i32 %12, %4, !dbg !15 + %14 = sdiv i32 %12, 128, !dbg !16 + %15 = mul i32 %14, 128, !dbg !17 + %.decomposed = sub i32 %12, %15, !dbg !17 + %16 = srem i32 %14, 28, !dbg !18 + %17 = sdiv i32 %12, 3584, !dbg !19 + %18 = icmp slt i32 %.decomposed, 64, !dbg !20 + %19 = shl nsw i32 %16, 7, !dbg !21 + %20 = mul i32 %17, 4608, !dbg !22 + %21 = add i32 %19, %20, !dbg !23 + %22 = add i32 %21, %.decomposed, !dbg !24 + %23 = sext i32 %22 to i64, !dbg !25 + %24 = getelementptr bfloat, ptr addrspace(1) %0, i64 %23, !dbg !25 + %25 = and i1 %18, %13, !dbg !26 + %26 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %24, i1 %25) #3, !dbg !27 + %27 = sext i32 %17 to i64, !dbg !28 + %28 = getelementptr i64, ptr addrspace(1) %1, i64 %27, !dbg !28 + %29 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %30 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %31 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %32 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %33 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %34 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %35 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %36 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %25) #3, !dbg !29 + %37 = lshr i64 %29, 46, !dbg !30 + %38 = and i64 %37, 131072, !dbg !30 + %39 = add i64 %38, %29, !dbg !30 + %40 = icmp ugt i64 %39, 131071, !dbg !31 + %.not1 = and i1 %25, %40, !dbg !32 + br i1 %.not1, label %41, label %42, !dbg !32 + +41: ; preds = %6 + tail call void @__assertfail(ptr nonnull @assertMessage_0, ptr nonnull @assertFile_0, i32 37, ptr nonnull @assertFunc_0, i64 1), !dbg !32 + unreachable, !dbg !32 + +42: ; preds = %6 + %43 = sext i32 %.decomposed to i64, !dbg !20 + tail call void @llvm.nvvm.barrier0(), !dbg !32 + %44 = shl i64 %39, 7, !dbg !33 + %45 = getelementptr bfloat, ptr addrspace(1) %2, i64 %44, !dbg !34 + %46 = getelementptr bfloat, ptr addrspace(1) %45, i64 %43, !dbg !34 + %47 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %46, i1 %25) #3, !dbg !35 + %48 = or disjoint i32 %19, 64, !dbg !36 + %49 = add i32 %48, %20, !dbg !37 + %50 = add i32 %49, %.decomposed, !dbg !38 + %51 = sext i32 %50 to i64, !dbg !39 + %52 = getelementptr bfloat, ptr addrspace(1) %0, i64 %51, !dbg !39 + %53 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %52, i1 %25) #3, !dbg !40 + %54 = or disjoint i64 %44, 64, !dbg !41 + %55 = getelementptr bfloat, ptr addrspace(1) %2, i64 %54, !dbg !42 + %56 = getelementptr bfloat, ptr addrspace(1) %55, i64 %43, !dbg !42 + %57 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %56, i1 %25) #3, !dbg !43 + %58 = icmp sgt i32 %.decomposed, 63, !dbg !44 + %59 = add nsw i32 %.decomposed, -64, !dbg !45 + %60 = add i32 %49, %59, !dbg !46 + %61 = sext i32 %60 to i64, !dbg !47 + %62 = getelementptr bfloat, ptr addrspace(1) %0, i64 %61, !dbg !47 + %63 = and i1 %58, %13, !dbg !48 + %64 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %62, i1 %63) #3, !dbg !49 + %65 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %66 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %67 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %68 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %69 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %70 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %71 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %72 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %28, i1 %63) #3, !dbg !50 + %73 = lshr i64 %65, 46, !dbg !51 + %74 = and i64 %73, 131072, !dbg !51 + %75 = add i64 %74, %65, !dbg !51 + %76 = icmp ugt i64 %75, 131071, !dbg !52 + %.not2 = and i1 %63, %76, !dbg !53 + br i1 %.not2, label %77, label %78, !dbg !53 + +77: ; preds = %42 + tail call void @__assertfail(ptr nonnull @assertMessage_1, ptr nonnull @assertFile_1, i32 55, ptr nonnull @assertFunc_1, i64 1), !dbg !53 + unreachable, !dbg !53 + +78: ; preds = %42 + %79 = extractvalue { i32, i32, i32, i32 } %64, 3, !dbg !49 + %80 = bitcast i32 %79 to <2 x bfloat>, !dbg !49 + %81 = extractvalue { i32, i32, i32, i32 } %64, 2, !dbg !49 + %82 = bitcast i32 %81 to <2 x bfloat>, !dbg !49 + %83 = extractvalue { i32, i32, i32, i32 } %64, 1, !dbg !49 + %84 = bitcast i32 %83 to <2 x bfloat>, !dbg !49 + %85 = extractvalue { i32, i32, i32, i32 } %64, 0, !dbg !49 + %86 = bitcast i32 %85 to <2 x bfloat>, !dbg !49 + %87 = extractvalue { i32, i32, i32, i32 } %26, 3, !dbg !27 + %88 = bitcast i32 %87 to <2 x bfloat>, !dbg !27 + %89 = extractvalue { i32, i32, i32, i32 } %47, 3, !dbg !35 + %90 = bitcast i32 %89 to <2 x bfloat>, !dbg !35 + %91 = extractvalue { i32, i32, i32, i32 } %53, 3, !dbg !40 + %92 = bitcast i32 %91 to <2 x bfloat>, !dbg !40 + %93 = extractvalue { i32, i32, i32, i32 } %57, 3, !dbg !43 + %94 = bitcast i32 %93 to <2 x bfloat>, !dbg !43 + %95 = extractvalue { i32, i32, i32, i32 } %26, 2, !dbg !27 + %96 = bitcast i32 %95 to <2 x bfloat>, !dbg !27 + %97 = extractvalue { i32, i32, i32, i32 } %47, 2, !dbg !35 + %98 = bitcast i32 %97 to <2 x bfloat>, !dbg !35 + %99 = extractvalue { i32, i32, i32, i32 } %53, 2, !dbg !40 + %100 = bitcast i32 %99 to <2 x bfloat>, !dbg !40 + %101 = extractvalue { i32, i32, i32, i32 } %57, 2, !dbg !43 + %102 = bitcast i32 %101 to <2 x bfloat>, !dbg !43 + %103 = extractvalue { i32, i32, i32, i32 } %26, 1, !dbg !27 + %104 = bitcast i32 %103 to <2 x bfloat>, !dbg !27 + %105 = extractvalue { i32, i32, i32, i32 } %47, 1, !dbg !35 + %106 = bitcast i32 %105 to <2 x bfloat>, !dbg !35 + %107 = extractvalue { i32, i32, i32, i32 } %53, 1, !dbg !40 + %108 = bitcast i32 %107 to <2 x bfloat>, !dbg !40 + %109 = extractvalue { i32, i32, i32, i32 } %57, 1, !dbg !43 + %110 = bitcast i32 %109 to <2 x bfloat>, !dbg !43 + %111 = extractvalue { i32, i32, i32, i32 } %26, 0, !dbg !27 + %112 = bitcast i32 %111 to <2 x bfloat>, !dbg !27 + %113 = extractvalue { i32, i32, i32, i32 } %47, 0, !dbg !35 + %114 = bitcast i32 %113 to <2 x bfloat>, !dbg !35 + %115 = extractvalue { i32, i32, i32, i32 } %53, 0, !dbg !40 + %116 = bitcast i32 %115 to <2 x bfloat>, !dbg !40 + %117 = extractvalue { i32, i32, i32, i32 } %57, 0, !dbg !43 + %118 = bitcast i32 %117 to <2 x bfloat>, !dbg !43 + tail call void @llvm.nvvm.barrier0(), !dbg !53 + %119 = shl i64 %75, 7, !dbg !54 + %120 = sext i32 %59 to i64, !dbg !55 + %121 = getelementptr bfloat, ptr addrspace(1) %2, i64 %119, !dbg !56 + %122 = getelementptr bfloat, ptr addrspace(1) %121, i64 %120, !dbg !56 + %123 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %122, i1 %63) #3, !dbg !57 + %124 = extractvalue { i32, i32, i32, i32 } %123, 0, !dbg !57 + %125 = bitcast i32 %124 to <2 x bfloat>, !dbg !57 + %126 = extractvalue { i32, i32, i32, i32 } %123, 1, !dbg !57 + %127 = bitcast i32 %126 to <2 x bfloat>, !dbg !57 + %128 = extractvalue { i32, i32, i32, i32 } %123, 2, !dbg !57 + %129 = bitcast i32 %128 to <2 x bfloat>, !dbg !57 + %130 = extractvalue { i32, i32, i32, i32 } %123, 3, !dbg !57 + %131 = bitcast i32 %130 to <2 x bfloat>, !dbg !57 + %132 = add i32 %21, %59, !dbg !58 + %133 = sext i32 %132 to i64, !dbg !59 + %134 = getelementptr bfloat, ptr addrspace(1) %0, i64 %133, !dbg !59 + %135 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %134, i1 %63) #3, !dbg !60 + %136 = extractvalue { i32, i32, i32, i32 } %135, 0, !dbg !60 + %137 = bitcast i32 %136 to <2 x bfloat>, !dbg !60 + %138 = extractvalue { i32, i32, i32, i32 } %135, 1, !dbg !60 + %139 = bitcast i32 %138 to <2 x bfloat>, !dbg !60 + %140 = extractvalue { i32, i32, i32, i32 } %135, 2, !dbg !60 + %141 = bitcast i32 %140 to <2 x bfloat>, !dbg !60 + %142 = extractvalue { i32, i32, i32, i32 } %135, 3, !dbg !60 + %143 = bitcast i32 %142 to <2 x bfloat>, !dbg !60 + %144 = or disjoint i64 %119, 64, !dbg !61 + %145 = getelementptr bfloat, ptr addrspace(1) %2, i64 %144, !dbg !62 + %146 = getelementptr bfloat, ptr addrspace(1) %145, i64 %120, !dbg !62 + %147 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %146, i1 %63) #3, !dbg !63 + %148 = extractvalue { i32, i32, i32, i32 } %147, 0, !dbg !63 + %149 = bitcast i32 %148 to <2 x bfloat>, !dbg !63 + %150 = extractvalue { i32, i32, i32, i32 } %147, 1, !dbg !63 + %151 = bitcast i32 %150 to <2 x bfloat>, !dbg !63 + %152 = extractvalue { i32, i32, i32, i32 } %147, 2, !dbg !63 + %153 = bitcast i32 %152 to <2 x bfloat>, !dbg !63 + %154 = extractvalue { i32, i32, i32, i32 } %147, 3, !dbg !63 + %155 = bitcast i32 %154 to <2 x bfloat>, !dbg !63 + %156 = sext i32 %12 to i64, !dbg !64 + %157 = getelementptr bfloat, ptr addrspace(1) %3, i64 %156, !dbg !64 + %158 = fpext <2 x bfloat> %86 to <2 x float>, !dbg !65 + %159 = fpext <2 x bfloat> %112 to <2 x float>, !dbg !66 + %160 = fpext <2 x bfloat> %114 to <2 x float>, !dbg !67 + %161 = fmul <2 x float> %159, %160, !dbg !68 + %162 = fpext <2 x bfloat> %116 to <2 x float>, !dbg !69 + %163 = fpext <2 x bfloat> %118 to <2 x float>, !dbg !70 + %164 = fmul <2 x float> %162, %163, !dbg !71 + %165 = fsub <2 x float> %161, %164, !dbg !72 + %166 = fpext <2 x bfloat> %125 to <2 x float>, !dbg !73 + %167 = fmul <2 x float> %158, %166, !dbg !74 + %168 = fpext <2 x bfloat> %137 to <2 x float>, !dbg !75 + %169 = fpext <2 x bfloat> %149 to <2 x float>, !dbg !76 + %170 = fmul <2 x float> %168, %169, !dbg !77 + %171 = fadd <2 x float> %167, %170, !dbg !78 + %172 = insertelement <2 x i1> poison, i1 %18, i64 0, !dbg !79 + %173 = shufflevector <2 x i1> %172, <2 x i1> poison, <2 x i32> zeroinitializer, !dbg !79 + %174 = select <2 x i1> %173, <2 x float> %165, <2 x float> %171, !dbg !79 + %175 = fptrunc <2 x float> %174 to <2 x bfloat>, !dbg !80 + %176 = fpext <2 x bfloat> %84 to <2 x float>, !dbg !65 + %177 = fpext <2 x bfloat> %104 to <2 x float>, !dbg !66 + %178 = fpext <2 x bfloat> %106 to <2 x float>, !dbg !67 + %179 = fmul <2 x float> %177, %178, !dbg !68 + %180 = fpext <2 x bfloat> %108 to <2 x float>, !dbg !69 + %181 = fpext <2 x bfloat> %110 to <2 x float>, !dbg !70 + %182 = fmul <2 x float> %180, %181, !dbg !71 + %183 = fsub <2 x float> %179, %182, !dbg !72 + %184 = fpext <2 x bfloat> %127 to <2 x float>, !dbg !73 + %185 = fmul <2 x float> %176, %184, !dbg !74 + %186 = fpext <2 x bfloat> %139 to <2 x float>, !dbg !75 + %187 = fpext <2 x bfloat> %151 to <2 x float>, !dbg !76 + %188 = fmul <2 x float> %186, %187, !dbg !77 + %189 = fadd <2 x float> %185, %188, !dbg !78 + %190 = select <2 x i1> %173, <2 x float> %183, <2 x float> %189, !dbg !79 + %191 = fptrunc <2 x float> %190 to <2 x bfloat>, !dbg !80 + %192 = fpext <2 x bfloat> %82 to <2 x float>, !dbg !65 + %193 = fpext <2 x bfloat> %96 to <2 x float>, !dbg !66 + %194 = fpext <2 x bfloat> %98 to <2 x float>, !dbg !67 + %195 = fmul <2 x float> %193, %194, !dbg !68 + %196 = fpext <2 x bfloat> %100 to <2 x float>, !dbg !69 + %197 = fpext <2 x bfloat> %102 to <2 x float>, !dbg !70 + %198 = fmul <2 x float> %196, %197, !dbg !71 + %199 = fsub <2 x float> %195, %198, !dbg !72 + %200 = fpext <2 x bfloat> %129 to <2 x float>, !dbg !73 + %201 = fmul <2 x float> %192, %200, !dbg !74 + %202 = fpext <2 x bfloat> %141 to <2 x float>, !dbg !75 + %203 = fpext <2 x bfloat> %153 to <2 x float>, !dbg !76 + %204 = fmul <2 x float> %202, %203, !dbg !77 + %205 = fadd <2 x float> %201, %204, !dbg !78 + %206 = select <2 x i1> %173, <2 x float> %199, <2 x float> %205, !dbg !79 + %207 = fptrunc <2 x float> %206 to <2 x bfloat>, !dbg !80 + %208 = fpext <2 x bfloat> %80 to <2 x float>, !dbg !65 + %209 = fpext <2 x bfloat> %88 to <2 x float>, !dbg !66 + %210 = fpext <2 x bfloat> %90 to <2 x float>, !dbg !67 + %211 = fmul <2 x float> %209, %210, !dbg !68 + %212 = fpext <2 x bfloat> %92 to <2 x float>, !dbg !69 + %213 = fpext <2 x bfloat> %94 to <2 x float>, !dbg !70 + %214 = fmul <2 x float> %212, %213, !dbg !71 + %215 = fsub <2 x float> %211, %214, !dbg !72 + %216 = fpext <2 x bfloat> %131 to <2 x float>, !dbg !73 + %217 = fmul <2 x float> %208, %216, !dbg !74 + %218 = fpext <2 x bfloat> %143 to <2 x float>, !dbg !75 + %219 = fpext <2 x bfloat> %155 to <2 x float>, !dbg !76 + %220 = fmul <2 x float> %218, %219, !dbg !77 + %221 = fadd <2 x float> %217, %220, !dbg !78 + %222 = select <2 x i1> %173, <2 x float> %215, <2 x float> %221, !dbg !79 + %223 = fptrunc <2 x float> %222 to <2 x bfloat>, !dbg !80 + %224 = bitcast <2 x bfloat> %175 to i32, !dbg !80 + %225 = bitcast <2 x bfloat> %191 to i32, !dbg !80 + %226 = bitcast <2 x bfloat> %207 to i32, !dbg !80 + %227 = bitcast <2 x bfloat> %223 to i32, !dbg !80 + tail call void asm sideeffect "@$5 st.global.v4.b32 [ $4 + 0 ], { $0, $1, $2, $3 };", "r,r,r,r,l,b"(i32 %224, i32 %225, i32 %226, i32 %227, ptr addrspace(1) %157, i1 %13) #3, !dbg !80 + ret void, !dbg !81 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { noreturn } +attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py", directory: "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm") +!4 = !{ptr @triton_poi_fused_cat_1, !"reqntidx", i32 128} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = !DISubprogram(name: "__assertfail", linkageName: "__assertfail", scope: !7, file: !7, type: !8, spFlags: DISPFlagOptimized) +!7 = !DIFile(filename: "", directory: "") +!8 = !DISubroutineType(cc: DW_CC_normal, types: !9) +!9 = !{} +!10 = distinct !DISubprogram(name: "triton_poi_fused_cat_1", linkageName: "triton_poi_fused_cat_1", scope: !3, file: !3, line: 18, type: !8, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!11 = !DILocation(line: 19, column: 28, scope: !10) +!12 = !DILocation(line: 19, column: 33, scope: !10) +!13 = !DILocation(line: 20, column: 36, scope: !10) +!14 = !DILocation(line: 20, column: 23, scope: !10) +!15 = !DILocation(line: 21, column: 21, scope: !10) +!16 = !DILocation(line: 23, column: 21, scope: !10) +!17 = !DILocation(line: 22, column: 19, scope: !10) +!18 = !DILocation(line: 23, column: 28, scope: !10) +!19 = !DILocation(line: 24, column: 19, scope: !10) +!20 = !DILocation(line: 30, column: 18, scope: !10) +!21 = !DILocation(line: 31, column: 34, scope: !10) +!22 = !DILocation(line: 31, column: 44, scope: !10) +!23 = !DILocation(line: 31, column: 39, scope: !10) +!24 = !DILocation(line: 31, column: 50, scope: !10) +!25 = !DILocation(line: 31, column: 30, scope: !10) +!26 = !DILocation(line: 31, column: 64, scope: !10) +!27 = !DILocation(line: 31, column: 56, scope: !10) +!28 = !DILocation(line: 32, column: 30, scope: !10) +!29 = !DILocation(line: 32, column: 35, scope: !10) +!30 = !DILocation(line: 36, column: 33, scope: !10) +!31 = !DILocation(line: 37, column: 65, scope: !10) +!32 = !DILocation(line: 37, column: 128, scope: !10) +!33 = !DILocation(line: 38, column: 35, scope: !10) +!34 = !DILocation(line: 38, column: 31, scope: !10) +!35 = !DILocation(line: 38, column: 50, scope: !10) +!36 = !DILocation(line: 40, column: 36, scope: !10) +!37 = !DILocation(line: 40, column: 45, scope: !10) +!38 = !DILocation(line: 40, column: 56, scope: !10) +!39 = !DILocation(line: 40, column: 31, scope: !10) +!40 = !DILocation(line: 40, column: 62, scope: !10) +!41 = !DILocation(line: 41, column: 36, scope: !10) +!42 = !DILocation(line: 41, column: 31, scope: !10) +!43 = !DILocation(line: 41, column: 55, scope: !10) +!44 = !DILocation(line: 46, column: 20, scope: !10) +!45 = !DILocation(line: 49, column: 64, scope: !10) +!46 = !DILocation(line: 49, column: 56, scope: !10) +!47 = !DILocation(line: 49, column: 31, scope: !10) +!48 = !DILocation(line: 49, column: 78, scope: !10) +!49 = !DILocation(line: 49, column: 70, scope: !10) +!50 = !DILocation(line: 50, column: 36, scope: !10) +!51 = !DILocation(line: 54, column: 35, scope: !10) +!52 = !DILocation(line: 55, column: 65, scope: !10) +!53 = !DILocation(line: 55, column: 129, scope: !10) +!54 = !DILocation(line: 56, column: 35, scope: !10) +!55 = !DILocation(line: 56, column: 44, scope: !10) +!56 = !DILocation(line: 56, column: 31, scope: !10) +!57 = !DILocation(line: 56, column: 58, scope: !10) +!58 = !DILocation(line: 58, column: 51, scope: !10) +!59 = !DILocation(line: 58, column: 31, scope: !10) +!60 = !DILocation(line: 58, column: 65, scope: !10) +!61 = !DILocation(line: 59, column: 36, scope: !10) +!62 = !DILocation(line: 59, column: 31, scope: !10) +!63 = !DILocation(line: 59, column: 63, scope: !10) +!64 = !DILocation(line: 65, column: 25, scope: !10) +!65 = !DILocation(line: 49, column: 129, scope: !10) +!66 = !DILocation(line: 31, column: 114, scope: !10) +!67 = !DILocation(line: 38, column: 108, scope: !10) +!68 = !DILocation(line: 39, column: 19, scope: !10) +!69 = !DILocation(line: 40, column: 120, scope: !10) +!70 = !DILocation(line: 41, column: 113, scope: !10) +!71 = !DILocation(line: 42, column: 20, scope: !10) +!72 = !DILocation(line: 43, column: 20, scope: !10) +!73 = !DILocation(line: 56, column: 117, scope: !10) +!74 = !DILocation(line: 57, column: 20, scope: !10) +!75 = !DILocation(line: 58, column: 124, scope: !10) +!76 = !DILocation(line: 59, column: 122, scope: !10) +!77 = !DILocation(line: 60, column: 20, scope: !10) +!78 = !DILocation(line: 61, column: 20, scope: !10) +!79 = !DILocation(line: 0, scope: !10) +!80 = !DILocation(line: 65, column: 37, scope: !10) +!81 = !DILocation(line: 65, column: 4, scope: !10) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.ttgir b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..503a307c03b21b28d27b4c2fb5037f50b2055e31 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/BYJOQAU3AABYVRHMFUFDBINMWKEVL4QD43PIQ4TTQIYQCLHUG7GQ/triton_poi_fused_cat_1.ttgir @@ -0,0 +1,206 @@ +#blocked = #ttg.blocked<{sizePerThread = [8], threadsPerWarp = [32], warpsPerCTA = [4], order = [0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 4 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_poi_fused_cat_1(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg4: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<64> : tensor<1024xi64, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<0.000000e+00> : tensor<1024xf32, #blocked> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<1024xi64, #blocked> loc(#loc1) + %cst_2 = arith.constant dense<0> : tensor<1024xi64, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<131072> : tensor<1024xi64, #blocked> loc(#loc1) + %cst_4 = arith.constant dense<0.000000e+00> : tensor<1024xbf16, #blocked> loc(#loc1) + %c1024_i32 = arith.constant 1024 : i32 loc(#loc1) + %cst_5 = arith.constant dense<128> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_6 = arith.constant dense<28> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_7 = arith.constant dense<3584> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_8 = arith.constant dense<4608> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_9 = arith.constant dense : tensor<1024xi1, #blocked> loc(#loc1) + %cst_10 = arith.constant dense<64> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_11 = arith.constant dense<-64> : tensor<1024xi32, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c1024_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 1024 : i32, start = 0 : i32} : tensor<1024xi32, #blocked> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<1024xi32, #blocked> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<1024xi32, #blocked> loc(#loc5) + %5 = tt.splat %arg4 : i32 -> tensor<1024xi32, #blocked> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<1024xi32, #blocked> loc(#loc6) + %7 = arith.remsi %4, %cst_5 : tensor<1024xi32, #blocked> loc(#loc7) + %8 = arith.divsi %4, %cst_5 : tensor<1024xi32, #blocked> loc(#loc8) + %9 = arith.remsi %8, %cst_6 : tensor<1024xi32, #blocked> loc(#loc9) + %10 = arith.divsi %4, %cst_7 : tensor<1024xi32, #blocked> loc(#loc10) + %11 = arith.extsi %7 : tensor<1024xi32, #blocked> to tensor<1024xi64, #blocked> loc(#loc11) + %12 = arith.cmpi slt, %11, %cst : tensor<1024xi64, #blocked> loc(#loc11) + %13 = arith.muli %9, %cst_5 : tensor<1024xi32, #blocked> loc(#loc12) + %14 = arith.muli %10, %cst_8 : tensor<1024xi32, #blocked> loc(#loc13) + %15 = arith.addi %13, %14 : tensor<1024xi32, #blocked> loc(#loc14) + %16 = arith.addi %15, %7 : tensor<1024xi32, #blocked> loc(#loc15) + %17 = tt.splat %arg0 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc16) + %18 = tt.addptr %17, %16 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc16) + %19 = arith.andi %6, %12 : tensor<1024xi1, #blocked> loc(#loc17) + %20 = tt.load %18, %19, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc18) + %21 = arith.extf %20 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc19) + %22 = tt.splat %arg1 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc20) + %23 = tt.addptr %22, %10 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc20) + %24 = tt.load %23, %19, %cst_2 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc21) + %25 = arith.addi %24, %cst_3 : tensor<1024xi64, #blocked> loc(#loc22) + %26 = arith.cmpi slt, %24, %cst_2 : tensor<1024xi64, #blocked> loc(#loc23) + %27 = arith.select %26, %25, %24 : tensor<1024xi1, #blocked>, tensor<1024xi64, #blocked> loc(#loc24) + %28 = arith.cmpi sge, %27, %cst_2 : tensor<1024xi64, #blocked> loc(#loc25) + %29 = arith.cmpi slt, %27, %cst_3 : tensor<1024xi64, #blocked> loc(#loc26) + %30 = arith.andi %28, %29 : tensor<1024xi1, #blocked> loc(#loc27) + %31 = arith.xori %19, %cst_9 : tensor<1024xi1, #blocked> loc(#loc28) + %32 = arith.ori %30, %31 : tensor<1024xi1, #blocked> loc(#loc29) + tt.assert %32, "index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072" : tensor<1024xi1, #blocked> loc(#loc30) + %33 = arith.muli %27, %cst_1 : tensor<1024xi64, #blocked> loc(#loc31) + %34 = arith.addi %33, %11 : tensor<1024xi64, #blocked> loc(#loc32) + %35 = tt.splat %arg2 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc33) + %36 = tt.addptr %35, %34 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi64, #blocked> loc(#loc33) + %37 = tt.load %36, %19, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc34) + %38 = arith.extf %37 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc35) + %39 = arith.mulf %21, %38 : tensor<1024xf32, #blocked> loc(#loc36) + %40 = arith.addi %13, %cst_10 : tensor<1024xi32, #blocked> loc(#loc37) + %41 = arith.addi %40, %14 : tensor<1024xi32, #blocked> loc(#loc38) + %42 = arith.addi %41, %7 : tensor<1024xi32, #blocked> loc(#loc39) + %43 = tt.addptr %17, %42 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc40) + %44 = tt.load %43, %19, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc41) + %45 = arith.extf %44 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc42) + %46 = arith.addi %33, %cst : tensor<1024xi64, #blocked> loc(#loc43) + %47 = arith.addi %46, %11 : tensor<1024xi64, #blocked> loc(#loc44) + %48 = tt.addptr %35, %47 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi64, #blocked> loc(#loc45) + %49 = tt.load %48, %19, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc46) + %50 = arith.extf %49 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc47) + %51 = arith.mulf %45, %50 : tensor<1024xf32, #blocked> loc(#loc48) + %52 = arith.subf %39, %51 : tensor<1024xf32, #blocked> loc(#loc49) + %53 = arith.cmpi sge, %11, %cst : tensor<1024xi64, #blocked> loc(#loc50) + %54 = arith.addi %7, %cst_11 : tensor<1024xi32, #blocked> loc(#loc51) + %55 = arith.addi %41, %54 : tensor<1024xi32, #blocked> loc(#loc52) + %56 = tt.addptr %17, %55 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc53) + %57 = arith.andi %6, %53 : tensor<1024xi1, #blocked> loc(#loc54) + %58 = tt.load %56, %57, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc55) + %59 = arith.extf %58 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc56) + %60 = tt.load %23, %57, %cst_2 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc57) + %61 = arith.addi %60, %cst_3 : tensor<1024xi64, #blocked> loc(#loc58) + %62 = arith.cmpi slt, %60, %cst_2 : tensor<1024xi64, #blocked> loc(#loc59) + %63 = arith.select %62, %61, %60 : tensor<1024xi1, #blocked>, tensor<1024xi64, #blocked> loc(#loc60) + %64 = arith.cmpi sge, %63, %cst_2 : tensor<1024xi64, #blocked> loc(#loc61) + %65 = arith.cmpi slt, %63, %cst_3 : tensor<1024xi64, #blocked> loc(#loc62) + %66 = arith.andi %64, %65 : tensor<1024xi1, #blocked> loc(#loc63) + %67 = arith.xori %57, %cst_9 : tensor<1024xi1, #blocked> loc(#loc64) + %68 = arith.ori %66, %67 : tensor<1024xi1, #blocked> loc(#loc65) + tt.assert %68, "index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072" : tensor<1024xi1, #blocked> loc(#loc66) + %69 = arith.muli %63, %cst_1 : tensor<1024xi64, #blocked> loc(#loc67) + %70 = arith.extsi %54 : tensor<1024xi32, #blocked> to tensor<1024xi64, #blocked> loc(#loc68) + %71 = arith.addi %69, %70 : tensor<1024xi64, #blocked> loc(#loc68) + %72 = tt.addptr %35, %71 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi64, #blocked> loc(#loc69) + %73 = tt.load %72, %57, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc70) + %74 = arith.extf %73 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc71) + %75 = arith.mulf %59, %74 : tensor<1024xf32, #blocked> loc(#loc72) + %76 = arith.addi %15, %54 : tensor<1024xi32, #blocked> loc(#loc73) + %77 = tt.addptr %17, %76 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc74) + %78 = tt.load %77, %57, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc75) + %79 = arith.extf %78 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc76) + %80 = arith.addi %69, %cst : tensor<1024xi64, #blocked> loc(#loc77) + %81 = arith.addi %80, %70 : tensor<1024xi64, #blocked> loc(#loc78) + %82 = tt.addptr %35, %81 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi64, #blocked> loc(#loc79) + %83 = tt.load %82, %57, %cst_4 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc80) + %84 = arith.extf %83 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc81) + %85 = arith.mulf %79, %84 : tensor<1024xf32, #blocked> loc(#loc82) + %86 = arith.addf %75, %85 : tensor<1024xf32, #blocked> loc(#loc83) + %87 = arith.select %53, %86, %cst_0 : tensor<1024xi1, #blocked>, tensor<1024xf32, #blocked> loc(#loc84) + %88 = arith.select %12, %52, %87 : tensor<1024xi1, #blocked>, tensor<1024xf32, #blocked> loc(#loc90) + %89 = tt.splat %arg3 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc87) + %90 = tt.addptr %89, %4 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc87) + %91 = arith.truncf %88 : tensor<1024xf32, #blocked> to tensor<1024xbf16, #blocked> loc(#loc88) + tt.store %90, %91, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc88) + tt.return loc(#loc89) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":23:28) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":30:18) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:34) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:44) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:39) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:50) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:30) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:64) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:56) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:114) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":32:30) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":32:35) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":34:18) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":35:18) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":36:33) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:28) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:100) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:65) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:113) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:111) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:128) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:35) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:44) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:31) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:50) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:108) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":39:19) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:36) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:45) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:56) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:31) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:62) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:120) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:36) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:49) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:31) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:55) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:113) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":42:20) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":43:20) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":46:20) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:64) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:56) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:31) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:78) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:70) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:129) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":50:36) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":52:20) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":53:20) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":54:35) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:28) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:100) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:65) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:113) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:111) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:129) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:35) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:44) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:31) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:58) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:117) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":57:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:51) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:31) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:65) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:124) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:36) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:49) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:31) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:63) +#loc81 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:122) +#loc82 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":60:20) +#loc83 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":61:20) +#loc84 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":63:35) +#loc85 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":64:34) +#loc86 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":45:34) +#loc87 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":65:25) +#loc88 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":65:37) +#loc89 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":65:4) +#loc90 = loc(fused[#loc85, #loc86]) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/__grp__triton_poi_fused_cat_2.json b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/__grp__triton_poi_fused_cat_2.json new file mode 100644 index 0000000000000000000000000000000000000000..2887b5e69e3a9b711d1af89af2feab2ef150aa4f --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/__grp__triton_poi_fused_cat_2.json @@ -0,0 +1 @@ +{"child_paths": {"triton_poi_fused_cat_2.ttir": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.ttir", "triton_poi_fused_cat_2.ttgir": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.ttgir", "triton_poi_fused_cat_2.llir": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.llir", "triton_poi_fused_cat_2.ptx": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.ptx", "triton_poi_fused_cat_2.cubin": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.cubin", "triton_poi_fused_cat_2.json": "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.ptx b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.ptx new file mode 100644 index 0000000000000000000000000000000000000000..8dd02f041d86eb137e202141e77a0584ab1e1356 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/H7DURMMQ2HZPVNXDZQV7XUMBZAAA7SUNIOX3MKWQ7JZH2F7ESYMQ/triton_poi_fused_cat_2.ptx @@ -0,0 +1,522 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_poi_fused_cat_2 // -- Begin function triton_poi_fused_cat_2 +.extern .func __assertfail +( + .param .b64 __assertfail_param_0, + .param .b64 __assertfail_param_1, + .param .b32 __assertfail_param_2, + .param .b64 __assertfail_param_3, + .param .b64 __assertfail_param_4 +) +.noreturn; +.global .align 1 .b8 assertFunc_1[8] = {117, 110, 107, 110, 111, 119, 110}; +.global .align 1 .b8 assertFile_1[134] = {47, 104, 111, 109, 101, 47, 120, 47, 46, 99, 97, 99, 104, 101, 47, 118, 108, 108, 109, 47, 116, 111, 114, 99, 104, 95, 99, 111, 109, 112, 105, 108, 101, 95, 99, 97, 99, 104, 101, 47, 48, 54, 57, 99, 101, 51, 101, 97, 50, 98, 47, 114, 97, 110, 107, 95, 48, 95, 48, 47, 105, 110, 100, 117, 99, 116, 111, 114, 95, 99, 97, 99, 104, 101, 47, 106, 99, 47, 99, 106, 99, 103, 120, 105, 101, 105, 98, 113, 98, 105, 108, 104, 52, 107, 110, 54, 50, 118, 107, 113, 119, 103, 113, 50, 53, 97, 54, 120, 122, 52, 117, 103, 107, 122, 120, 109, 105, 119, 53, 104, 109, 122, 109, 102, 50, 113, 105, 106, 117, 115, 46, 112, 121}; +.global .align 1 .b8 assertMessage_1[68] = {105, 110, 100, 101, 120, 32, 111, 117, 116, 32, 111, 102, 32, 98, 111, 117, 110, 100, 115, 58, 32, 48, 32, 60, 61, 32, 116, 108, 46, 98, 114, 111, 97, 100, 99, 97, 115, 116, 95, 116, 111, 40, 116, 109, 112, 50, 56, 44, 32, 91, 88, 66, 76, 79, 67, 75, 93, 41, 32, 60, 32, 49, 51, 49, 48, 55, 50}; +.global .align 1 .b8 assertFunc_0[8] = {117, 110, 107, 110, 111, 119, 110}; +.global .align 1 .b8 assertFile_0[134] = {47, 104, 111, 109, 101, 47, 120, 47, 46, 99, 97, 99, 104, 101, 47, 118, 108, 108, 109, 47, 116, 111, 114, 99, 104, 95, 99, 111, 109, 112, 105, 108, 101, 95, 99, 97, 99, 104, 101, 47, 48, 54, 57, 99, 101, 51, 101, 97, 50, 98, 47, 114, 97, 110, 107, 95, 48, 95, 48, 47, 105, 110, 100, 117, 99, 116, 111, 114, 95, 99, 97, 99, 104, 101, 47, 106, 99, 47, 99, 106, 99, 103, 120, 105, 101, 105, 98, 113, 98, 105, 108, 104, 52, 107, 110, 54, 50, 118, 107, 113, 119, 103, 113, 50, 53, 97, 54, 120, 122, 52, 117, 103, 107, 122, 120, 109, 105, 119, 53, 104, 109, 122, 109, 102, 50, 113, 105, 106, 117, 115, 46, 112, 121}; +.global .align 1 .b8 assertMessage_0[68] = {105, 110, 100, 101, 120, 32, 111, 117, 116, 32, 111, 102, 32, 98, 111, 117, 110, 100, 115, 58, 32, 48, 32, 60, 61, 32, 116, 108, 46, 98, 114, 111, 97, 100, 99, 97, 115, 116, 95, 116, 111, 40, 116, 109, 112, 49, 48, 44, 32, 91, 88, 66, 76, 79, 67, 75, 93, 41, 32, 60, 32, 49, 51, 49, 48, 55, 50}; + // @triton_poi_fused_cat_2 +.visible .entry triton_poi_fused_cat_2( + .param .u64 .ptr .global .align 1 triton_poi_fused_cat_2_param_0, + .param .u64 .ptr .global .align 1 triton_poi_fused_cat_2_param_1, + .param .u64 .ptr .global .align 1 triton_poi_fused_cat_2_param_2, + .param .u64 .ptr .global .align 1 triton_poi_fused_cat_2_param_3, + .param .u32 triton_poi_fused_cat_2_param_4, + .param .u64 .ptr .global .align 1 triton_poi_fused_cat_2_param_5 +) +.reqntid 256, 1, 1 +{ + .reg .pred %p<27>; + .reg .b16 %rs<17>; + .reg .b32 %r<52>; + .reg .f32 %f<29>; + .reg .b64 %rd<54>; + .loc 1 18 0 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:18:0 + +// %bb.0: + ld.param.u32 %r11, [triton_poi_fused_cat_2_param_4]; + ld.param.u64 %rd5, [triton_poi_fused_cat_2_param_0]; + ld.param.u64 %rd13, [triton_poi_fused_cat_2_param_1]; +$L__tmp0: + .loc 1 19 28 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:19:28 + mov.u32 %r14, %ctaid.x; + .loc 1 19 33 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:19:33 + shl.b32 %r15, %r14, 9; + .loc 1 20 36 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:20:36 + mov.u32 %r16, %tid.x; + shl.b32 %r17, %r16, 1; + and.b32 %r18, %r17, 510; + .loc 1 20 23 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:20:23 + or.b32 %r1, %r18, %r15; + .loc 1 21 21 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:21:21 + setp.lt.s32 %p6, %r1, %r11; + .loc 1 23 21 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:23:21 + bfe.s32 %r19, %r14, 22, 1; + shr.u32 %r20, %r19, 25; + add.s32 %r21, %r1, %r20; + shr.s32 %r22, %r21, 7; + .loc 1 22 19 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:22:19 + and.b32 %r23, %r21, -128; + sub.s32 %r2, %r1, %r23; + .loc 1 23 28 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:23:28 + shr.u32 %r24, %r22, 30; + add.s32 %r25, %r22, %r24; + and.b32 %r26, %r25, 33554428; + sub.s32 %r27, %r22, %r26; + .loc 1 24 19 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:24:19 + shr.u32 %r28, %r19, 23; + add.s32 %r29, %r1, %r28; + shr.s32 %r30, %r29, 9; + .loc 1 30 18 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:30:18 + setp.lt.s32 %p7, %r2, 64; + .loc 1 31 41 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:41 + shl.b32 %r31, %r27, 7; + .loc 1 31 37 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:37 + mad.lo.s32 %r3, %r30, 4608, %r31; + .loc 1 31 46 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:46 + add.s32 %r4, %r3, 3584; + .loc 1 31 57 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:57 + add.s32 %r32, %r4, %r2; + .loc 1 31 30 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:30 + mul.wide.s32 %rd14, %r32, 2; + add.s64 %rd8, %rd5, %rd14; + .loc 1 31 71 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:71 + and.pred %p5, %p7, %p6; + not.pred %p8, %p5; + mov.b32 %r13, 0; + .loc 1 31 63 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:63 + // begin inline asm + mov.u32 %r12, %r13; + @%p5 ld.global.L1::evict_last.b32 { %r12 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 32 30 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:32:30 + mul.wide.s32 %rd15, %r30, 8; + add.s64 %rd12, %rd13, %rd15; + .loc 1 32 35 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:32:35 + // begin inline asm + mov.u64 %rd9, 0x0; + @%p5 ld.global.L1::evict_last.b64 { %rd9 }, [ %rd12 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd11, 0x0; + @%p5 ld.global.L1::evict_last.b64 { %rd11 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 36 33 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:36:33 + shr.u64 %rd16, %rd9, 46; + and.b64 %rd17, %rd16, 131072; + add.s64 %rd2, %rd17, %rd9; + .loc 1 37 65 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:37:65 + setp.lt.u64 %p9, %rd2, 131072; + .loc 1 37 128 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:37:128 + or.pred %p10, %p8, %p9; + @%p10 bra $L__BB0_2; + bra.uni $L__BB0_1; +$L__BB0_2: + .loc 1 0 128 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:0:128 + ld.param.u64 %rd6, [triton_poi_fused_cat_2_param_2]; + .loc 1 37 128 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:37:128 + bar.sync 0; + .loc 1 38 31 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:38:31 + shl.b64 %rd26, %rd2, 8; + add.s64 %rd27, %rd6, %rd26; + mul.wide.s32 %rd28, %r2, 2; + add.s64 %rd18, %rd27, %rd28; + .loc 1 38 50 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:38:50 + // begin inline asm + mov.u32 %r33, %r13; + @%p5 ld.global.L1::evict_last.b32 { %r33 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 40 47 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:40:47 + add.s32 %r41, %r3, 3648; + .loc 1 40 58 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:40:58 + add.s32 %r42, %r41, %r2; + .loc 1 40 31 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:40:31 + mul.wide.s32 %rd29, %r42, 2; + add.s64 %rd19, %rd5, %rd29; + .loc 1 40 64 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:40:64 + // begin inline asm + mov.u32 %r35, %r13; + @%p5 ld.global.L1::evict_last.b32 { %r35 }, [ %rd19 + 0 ]; + // end inline asm + .loc 1 41 31 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:41:31 + add.s64 %rd20, %rd18, 128; + .loc 1 41 55 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:41:55 + // begin inline asm + mov.u32 %r37, %r13; + @%p5 ld.global.L1::evict_last.b32 { %r37 }, [ %rd20 + 0 ]; + // end inline asm + .loc 1 46 20 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:46:20 + setp.gt.s32 %p18, %r2, 63; + .loc 1 49 66 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:49:66 + add.s32 %r9, %r2, -64; + .loc 1 49 58 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:49:58 + add.s32 %r43, %r41, %r9; + .loc 1 49 31 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:49:31 + mul.wide.s32 %rd30, %r43, 2; + add.s64 %rd21, %rd5, %rd30; + .loc 1 49 80 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:49:80 + and.pred %p16, %p18, %p6; + not.pred %p19, %p16; + .loc 1 49 72 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:49:72 + // begin inline asm + mov.u32 %r39, %r13; + @%p16 ld.global.L1::evict_last.b32 { %r39 }, [ %rd21 + 0 ]; + // end inline asm + .loc 1 50 36 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:50:36 + // begin inline asm + mov.u64 %rd22, 0x0; + @%p16 ld.global.L1::evict_last.b64 { %rd22 }, [ %rd12 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd24, 0x0; + @%p16 ld.global.L1::evict_last.b64 { %rd24 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 54 35 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:54:35 + shr.u64 %rd31, %rd22, 46; + and.b64 %rd32, %rd31, 131072; + add.s64 %rd4, %rd32, %rd22; + .loc 1 55 65 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:55:65 + setp.lt.u64 %p20, %rd4, 131072; + .loc 1 55 129 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:55:129 + or.pred %p21, %p19, %p20; + @%p21 bra $L__BB0_4; + bra.uni $L__BB0_3; +$L__BB0_4: + .loc 1 0 129 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:0:129 + ld.param.u64 %rd7, [triton_poi_fused_cat_2_param_3]; + cvt.s64.s32 %rd3, %r2; + .loc 1 55 129 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:55:129 + bar.sync 0; + .loc 1 56 31 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:56:31 + shl.b64 %rd37, %rd4, 8; + add.s64 %rd38, %rd6, %rd37; + shl.b64 %rd39, %rd3, 1; + add.s64 %rd35, %rd38, %rd39; + add.s64 %rd33, %rd35, -128; + mov.b32 %r45, 0; + .loc 1 56 58 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:56:58 + // begin inline asm + mov.u32 %r44, %r45; + @%p16 ld.global.L1::evict_last.b32 { %r44 }, [ %rd33 + 0 ]; + // end inline asm + .loc 1 58 58 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:58:58 + add.s32 %r51, %r4, %r9; + .loc 1 58 31 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:58:31 + mul.wide.s32 %rd40, %r51, 2; + add.s64 %rd34, %rd5, %rd40; + .loc 1 58 72 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:58:72 + // begin inline asm + mov.u32 %r46, %r45; + @%p16 ld.global.L1::evict_last.b32 { %r46 }, [ %rd34 + 0 ]; + // end inline asm + .loc 1 59 63 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:59:63 + // begin inline asm + mov.u32 %r48, %r45; + @%p16 ld.global.L1::evict_last.b32 { %r48 }, [ %rd35 + 0 ]; + // end inline asm + .loc 1 65 25 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:65:25 + mul.wide.s32 %rd41, %r1, 2; + add.s64 %rd36, %rd7, %rd41; + .loc 1 49 131 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:49:131 + mov.b32 {%rs1, %rs2}, %r39; + cvt.f32.bf16 %f1, %rs1; + cvt.f32.bf16 %f2, %rs2; + .loc 1 31 121 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:31:121 + mov.b32 {%rs3, %rs4}, %r12; + cvt.f32.bf16 %f3, %rs3; + cvt.f32.bf16 %f4, %rs4; + .loc 1 38 108 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:38:108 + mov.b32 {%rs5, %rs6}, %r33; + cvt.f32.bf16 %f5, %rs5; + cvt.f32.bf16 %f6, %rs6; + .loc 1 40 122 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:40:122 + mov.b32 {%rs7, %rs8}, %r35; + cvt.f32.bf16 %f7, %rs8; + cvt.f32.bf16 %f8, %rs7; + .loc 1 41 113 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:41:113 + mov.b32 {%rs9, %rs10}, %r37; + cvt.f32.bf16 %f9, %rs10; + cvt.f32.bf16 %f10, %rs9; + .loc 1 42 20 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:42:20 + mul.f32 %f11, %f8, %f10; + mul.f32 %f12, %f7, %f9; + .loc 1 43 20 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:43:20 + neg.f32 %f13, %f12; + fma.rn.f32 %f14, %f4, %f6, %f13; + neg.f32 %f15, %f11; + fma.rn.f32 %f16, %f3, %f5, %f15; + .loc 1 56 117 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:56:117 + mov.b32 {%rs11, %rs12}, %r44; + cvt.f32.bf16 %f17, %rs11; + cvt.f32.bf16 %f18, %rs12; + .loc 1 58 131 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:58:131 + mov.b32 {%rs13, %rs14}, %r46; + cvt.f32.bf16 %f19, %rs14; + cvt.f32.bf16 %f20, %rs13; + .loc 1 59 122 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:59:122 + mov.b32 {%rs15, %rs16}, %r48; + cvt.f32.bf16 %f21, %rs16; + cvt.f32.bf16 %f22, %rs15; + .loc 1 60 20 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:60:20 + mul.f32 %f23, %f20, %f22; + mul.f32 %f24, %f19, %f21; + .loc 1 61 20 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:61:20 + fma.rn.f32 %f25, %f2, %f18, %f24; + fma.rn.f32 %f26, %f1, %f17, %f23; + .loc 1 0 0 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:0:0 + selp.f32 %f27, %f16, %f26, %p7; + selp.f32 %f28, %f14, %f25, %p7; + .loc 1 65 37 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:65:37 + cvt.rn.bf16x2.f32 %r50, %f28, %f27; + // begin inline asm + @%p6 st.global.b32 [ %rd36 + 0 ], { %r50 }; + // end inline asm + .loc 1 65 4 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:65:4 + ret; +$L__BB0_1: + .loc 1 37 128 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:37:128 + mov.u64 %rd48, assertMessage_0; + cvta.global.u64 %rd49, %rd48; + mov.u64 %rd50, assertFile_0; + cvta.global.u64 %rd51, %rd50; + mov.u64 %rd52, assertFunc_0; + cvta.global.u64 %rd53, %rd52; + { // callseq 8, 0 + .param .b64 param0; + st.param.b64 [param0], %rd49; + .param .b64 param1; + st.param.b64 [param1], %rd51; + .param .b32 param2; + st.param.b32 [param2], 37; + .param .b64 param3; + st.param.b64 [param3], %rd53; + .param .b64 param4; + st.param.b64 [param4], 1; + call.uni + __assertfail, + ( + param0, + param1, + param2, + param3, + param4 + ); + } // callseq 8 + trap; +$L__BB0_3: + .loc 1 55 129 // cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py:55:129 + mov.u64 %rd42, assertMessage_1; + cvta.global.u64 %rd43, %rd42; + mov.u64 %rd44, assertFile_1; + cvta.global.u64 %rd45, %rd44; + mov.u64 %rd46, assertFunc_1; + cvta.global.u64 %rd47, %rd46; + { // callseq 7, 0 + .param .b64 param0; + st.param.b64 [param0], %rd43; + .param .b64 param1; + st.param.b64 [param1], %rd45; + .param .b32 param2; + st.param.b32 [param2], 55; + .param .b64 param3; + st.param.b64 [param3], %rd47; + .param .b64 param4; + st.param.b64 [param4], 1; + call.uni + __assertfail, + ( + param0, + param1, + param2, + param3, + param4 + ); + } // callseq 7 + trap; +$L__tmp1: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/jc/cjcgxieibqbilh4kn62vkqwgq25a6xz4ugkzxmiw5hmzmf2qijus.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 0 // DW_CHILDREN_no +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 155 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0x94 DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 106 +.b8 99 +.b8 103 +.b8 120 +.b8 105 +.b8 101 +.b8 105 +.b8 98 +.b8 113 +.b8 98 +.b8 105 +.b8 108 +.b8 104 +.b8 52 +.b8 107 +.b8 110 +.b8 54 +.b8 50 +.b8 118 +.b8 107 +.b8 113 +.b8 119 +.b8 103 +.b8 113 +.b8 50 +.b8 53 +.b8 97 +.b8 54 +.b8 120 +.b8 122 +.b8 52 +.b8 117 +.b8 103 +.b8 107 +.b8 122 +.b8 120 +.b8 109 +.b8 105 +.b8 119 +.b8 53 +.b8 104 +.b8 109 +.b8 122 +.b8 109 +.b8 102 +.b8 50 +.b8 113 +.b8 105 +.b8 106 +.b8 117 +.b8 115 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 48 +.b8 54 +.b8 57 +.b8 99 +.b8 101 +.b8 51 +.b8 101 +.b8 97 +.b8 50 +.b8 98 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 106 +.b8 99 +.b8 0 + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/JGBJTSHFQO5ZMSSDR5JQ4N6IDDC3AKTV33H2WXFG26XWQP3IZ4ZA/triton_poi_fused_cat_1.ttir b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/JGBJTSHFQO5ZMSSDR5JQ4N6IDDC3AKTV33H2WXFG26XWQP3IZ4ZA/triton_poi_fused_cat_1.ttir new file mode 100644 index 0000000000000000000000000000000000000000..b515b615aa923f19c8ee3325f20f5c0f8029c66d --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/JGBJTSHFQO5ZMSSDR5JQ4N6IDDC3AKTV33H2WXFG26XWQP3IZ4ZA/triton_poi_fused_cat_1.ttir @@ -0,0 +1,205 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0) +module { + tt.func public @triton_poi_fused_cat_1(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0), %arg4: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<131072> : tensor<512xi64> loc(#loc1) + %cst_0 = arith.constant dense<0> : tensor<512xi64> loc(#loc1) + %cst_1 = arith.constant dense<0.000000e+00> : tensor<512xbf16> loc(#loc1) + %cst_2 = arith.constant dense<-64> : tensor<512xi32> loc(#loc1) + %cst_3 = arith.constant dense<64> : tensor<512xi32> loc(#loc1) + %cst_4 = arith.constant dense<128> : tensor<512xi64> loc(#loc1) + %cst_5 = arith.constant dense : tensor<512xi1> loc(#loc1) + %cst_6 = arith.constant dense<0.000000e+00> : tensor<512xf32> loc(#loc1) + %cst_7 = arith.constant dense<4608> : tensor<512xi32> loc(#loc1) + %cst_8 = arith.constant dense<64> : tensor<512xi64> loc(#loc1) + %cst_9 = arith.constant dense<3584> : tensor<512xi32> loc(#loc1) + %cst_10 = arith.constant dense<28> : tensor<512xi32> loc(#loc1) + %cst_11 = arith.constant dense<128> : tensor<512xi32> loc(#loc1) + %c512_i32 = arith.constant 512 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c512_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 512 : i32, start = 0 : i32} : tensor<512xi32> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<512xi32> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<512xi32> loc(#loc5) + %5 = tt.splat %arg4 : i32 -> tensor<512xi32> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<512xi32> loc(#loc6) + %7 = arith.remsi %4, %cst_11 : tensor<512xi32> loc(#loc7) + %8 = arith.divsi %4, %cst_11 : tensor<512xi32> loc(#loc8) + %9 = arith.remsi %8, %cst_10 : tensor<512xi32> loc(#loc9) + %10 = arith.divsi %4, %cst_9 : tensor<512xi32> loc(#loc10) + %11 = arith.extsi %7 : tensor<512xi32> to tensor<512xi64> loc(#loc11) + %12 = arith.cmpi slt, %11, %cst_8 : tensor<512xi64> loc(#loc11) + %13 = arith.muli %9, %cst_11 : tensor<512xi32> loc(#loc12) + %14 = arith.muli %10, %cst_7 : tensor<512xi32> loc(#loc13) + %15 = arith.addi %13, %14 : tensor<512xi32> loc(#loc14) + %16 = arith.addi %15, %7 : tensor<512xi32> loc(#loc15) + %17 = tt.splat %arg0 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc16) + %18 = tt.addptr %17, %16 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc16) + %19 = arith.andi %6, %12 : tensor<512xi1> loc(#loc17) + %20 = tt.load %18, %19, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc18) + %21 = arith.extf %20 : tensor<512xbf16> to tensor<512xf32> loc(#loc19) + %22 = tt.splat %arg1 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc20) + %23 = tt.addptr %22, %10 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc20) + %24 = tt.load %23, %19, %cst_0 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc21) + %25 = arith.addi %24, %cst : tensor<512xi64> loc(#loc22) + %26 = arith.cmpi slt, %24, %cst_0 : tensor<512xi64> loc(#loc23) + %27 = arith.select %26, %25, %24 : tensor<512xi1>, tensor<512xi64> loc(#loc24) + %28 = arith.cmpi sge, %27, %cst_0 : tensor<512xi64> loc(#loc25) + %29 = arith.cmpi slt, %27, %cst : tensor<512xi64> loc(#loc26) + %30 = arith.andi %28, %29 : tensor<512xi1> loc(#loc27) + %31 = arith.xori %19, %cst_5 : tensor<512xi1> loc(#loc28) + %32 = arith.ori %30, %31 : tensor<512xi1> loc(#loc29) + tt.assert %32, "index out of bounds: 0 <= tl.broadcast_to(tmp10, [XBLOCK]) < 131072" : tensor<512xi1> loc(#loc30) + %33 = arith.muli %27, %cst_4 : tensor<512xi64> loc(#loc31) + %34 = arith.addi %33, %11 : tensor<512xi64> loc(#loc32) + %35 = tt.splat %arg2 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc33) + %36 = tt.addptr %35, %34 : tensor<512x!tt.ptr>, tensor<512xi64> loc(#loc33) + %37 = tt.load %36, %19, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc34) + %38 = arith.extf %37 : tensor<512xbf16> to tensor<512xf32> loc(#loc35) + %39 = arith.mulf %21, %38 : tensor<512xf32> loc(#loc36) + %40 = arith.addi %13, %cst_3 : tensor<512xi32> loc(#loc37) + %41 = arith.addi %40, %14 : tensor<512xi32> loc(#loc38) + %42 = arith.addi %41, %7 : tensor<512xi32> loc(#loc39) + %43 = tt.addptr %17, %42 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc40) + %44 = tt.load %43, %19, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc41) + %45 = arith.extf %44 : tensor<512xbf16> to tensor<512xf32> loc(#loc42) + %46 = arith.addi %33, %cst_8 : tensor<512xi64> loc(#loc43) + %47 = arith.addi %46, %11 : tensor<512xi64> loc(#loc44) + %48 = tt.addptr %35, %47 : tensor<512x!tt.ptr>, tensor<512xi64> loc(#loc45) + %49 = tt.load %48, %19, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc46) + %50 = arith.extf %49 : tensor<512xbf16> to tensor<512xf32> loc(#loc47) + %51 = arith.mulf %45, %50 : tensor<512xf32> loc(#loc48) + %52 = arith.subf %39, %51 : tensor<512xf32> loc(#loc49) + %53 = arith.cmpi sge, %11, %cst_8 : tensor<512xi64> loc(#loc50) + %54 = arith.addi %7, %cst_2 : tensor<512xi32> loc(#loc51) + %55 = arith.addi %41, %54 : tensor<512xi32> loc(#loc52) + %56 = tt.addptr %17, %55 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc53) + %57 = arith.andi %6, %53 : tensor<512xi1> loc(#loc54) + %58 = tt.load %56, %57, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc55) + %59 = arith.extf %58 : tensor<512xbf16> to tensor<512xf32> loc(#loc56) + %60 = tt.load %23, %57, %cst_0 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc57) + %61 = arith.addi %60, %cst : tensor<512xi64> loc(#loc58) + %62 = arith.cmpi slt, %60, %cst_0 : tensor<512xi64> loc(#loc59) + %63 = arith.select %62, %61, %60 : tensor<512xi1>, tensor<512xi64> loc(#loc60) + %64 = arith.cmpi sge, %63, %cst_0 : tensor<512xi64> loc(#loc61) + %65 = arith.cmpi slt, %63, %cst : tensor<512xi64> loc(#loc62) + %66 = arith.andi %64, %65 : tensor<512xi1> loc(#loc63) + %67 = arith.xori %57, %cst_5 : tensor<512xi1> loc(#loc64) + %68 = arith.ori %66, %67 : tensor<512xi1> loc(#loc65) + tt.assert %68, "index out of bounds: 0 <= tl.broadcast_to(tmp28, [XBLOCK]) < 131072" : tensor<512xi1> loc(#loc66) + %69 = arith.muli %63, %cst_4 : tensor<512xi64> loc(#loc67) + %70 = arith.extsi %54 : tensor<512xi32> to tensor<512xi64> loc(#loc68) + %71 = arith.addi %69, %70 : tensor<512xi64> loc(#loc68) + %72 = tt.addptr %35, %71 : tensor<512x!tt.ptr>, tensor<512xi64> loc(#loc69) + %73 = tt.load %72, %57, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc70) + %74 = arith.extf %73 : tensor<512xbf16> to tensor<512xf32> loc(#loc71) + %75 = arith.mulf %59, %74 : tensor<512xf32> loc(#loc72) + %76 = arith.addi %15, %54 : tensor<512xi32> loc(#loc73) + %77 = tt.addptr %17, %76 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc74) + %78 = tt.load %77, %57, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc75) + %79 = arith.extf %78 : tensor<512xbf16> to tensor<512xf32> loc(#loc76) + %80 = arith.addi %69, %cst_8 : tensor<512xi64> loc(#loc77) + %81 = arith.addi %80, %70 : tensor<512xi64> loc(#loc78) + %82 = tt.addptr %35, %81 : tensor<512x!tt.ptr>, tensor<512xi64> loc(#loc79) + %83 = tt.load %82, %57, %cst_1 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc80) + %84 = arith.extf %83 : tensor<512xbf16> to tensor<512xf32> loc(#loc81) + %85 = arith.mulf %79, %84 : tensor<512xf32> loc(#loc82) + %86 = arith.addf %75, %85 : tensor<512xf32> loc(#loc83) + %87 = arith.select %53, %86, %cst_6 : tensor<512xi1>, tensor<512xf32> loc(#loc84) + %88 = arith.select %12, %52, %87 : tensor<512xi1>, tensor<512xf32> loc(#loc90) + %89 = tt.splat %arg3 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc87) + %90 = tt.addptr %89, %4 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc87) + %91 = arith.truncf %88 : tensor<512xf32> to tensor<512xbf16> loc(#loc88) + tt.store %90, %91, %6 : tensor<512x!tt.ptr> loc(#loc88) + tt.return loc(#loc89) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":23:28) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":30:18) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:34) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:44) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:39) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:50) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:30) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:64) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:56) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":31:114) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":32:30) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":32:35) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":34:18) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":35:18) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":36:33) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:28) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:100) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:65) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:113) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:111) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":37:128) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:35) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:44) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:31) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:50) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":38:108) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":39:19) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:36) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:45) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:56) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:31) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:62) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":40:120) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:36) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:49) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:31) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:55) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":41:113) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":42:20) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":43:20) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":46:20) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:64) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:56) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:31) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:78) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:70) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":49:129) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":50:36) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":52:20) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":53:20) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":54:35) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:28) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:100) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:65) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:113) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:111) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":55:129) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:35) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:44) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:31) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:58) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":56:117) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":57:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:51) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:31) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:65) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":58:124) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:36) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:49) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:31) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:63) +#loc81 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":59:122) +#loc82 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":60:20) +#loc83 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":61:20) +#loc84 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":63:35) +#loc85 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":64:34) +#loc86 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":45:34) +#loc87 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":65:25) +#loc88 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":65:37) +#loc89 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/zm/czmwqln3pmd5itf5nbvnjurfzsxg24x3rxugagktrk6mefwreaah.py":65:4) +#loc90 = loc(fused[#loc85, #loc86]) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/NZ4RRAGQZEUI36VICEM2HXVDV76GVUUMDMXZI67YY57ZOH6LFYLQ/triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.llir b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/NZ4RRAGQZEUI36VICEM2HXVDV76GVUUMDMXZI67YY57ZOH6LFYLQ/triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.llir new file mode 100644 index 0000000000000000000000000000000000000000..8fcedbfdfa5d9152ad735e7576a100fa0197e686 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/NZ4RRAGQZEUI36VICEM2HXVDV76GVUUMDMXZI67YY57ZOH6LFYLQ/triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.llir @@ -0,0 +1,329 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@assertFunc_0 = internal constant [8 x i8] c"unknown\00" +@assertFile_0 = internal constant [134 x i8] c"/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py\00" +@assertMessage_0 = internal constant [40 x i8] c"index out of bounds: 0 <= tmp5 < 152064\00" +@global_smem = external addrspace(3) global [0 x i8], align 16 +@.str = private unnamed_addr constant [11 x i8] c"__CUDA_FTZ\00", align 1 + +; Function Attrs: noreturn +declare !dbg !6 void @__assertfail(ptr, ptr, i32, ptr, i64) local_unnamed_addr #0 + +define ptx_kernel void @triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(1) %2, ptr addrspace(1) %3, ptr addrspace(1) %4, i32 %5, i32 %6, ptr addrspace(1) readnone captures(none) %7) local_unnamed_addr !dbg !10 { + %9 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !11 + %10 = icmp slt i32 %9, %5, !dbg !12 + %11 = sext i32 %9 to i64, !dbg !13 + %12 = getelementptr i32, ptr addrspace(1) %0, i64 %11, !dbg !13 + %13 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %12, i1 %10) #6, !dbg !14 + %14 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %12, i1 %10) #6, !dbg !14 + %15 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %12, i1 %10) #6, !dbg !14 + %16 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %12, i1 %10) #6, !dbg !14 + %17 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %12, i1 %10) #6, !dbg !14 + %18 = sext i32 %17 to i64, !dbg !15 + %19 = add nsw i64 %18, 152064, !dbg !16 + %20 = icmp slt i32 %17, 0, !dbg !17 + %21 = select i1 %20, i64 %19, i64 %18, !dbg !18 + %22 = icmp ugt i64 %21, 152063, !dbg !19 + %.not3 = and i1 %10, %22, !dbg !20 + br i1 %.not3, label %146, label %.split.preheader, !dbg !21 + +.split.preheader: ; preds = %8 + %23 = icmp slt i32 %16, 0, !dbg !17 + %24 = sext i32 %16 to i64, !dbg !15 + %25 = add nsw i64 %24, 152064, !dbg !16 + %26 = select i1 %23, i64 %25, i64 %24, !dbg !18 + %.idx = mul nsw i64 %26, 7168 + %27 = getelementptr i8, ptr addrspace(1) %1, i64 %.idx + %28 = mul i32 %9, 3584, !dbg !22 + %29 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !23 + %30 = shl i32 %29, 2, !dbg !23 + %31 = and i32 %30, 2044, !dbg !23 + %32 = lshr i32 %29, 5, !dbg !23 + %33 = and i32 %29, 31, !dbg !23 + %34 = zext nneg i32 %31 to i64, !dbg !24 + tail call void @llvm.nvvm.barrier0(), !dbg !21 + %35 = getelementptr bfloat, ptr addrspace(1) %27, i64 %34, !dbg !25 + %36 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %35, i1 %10) #6, !dbg !26 + %37 = extractvalue { i32, i32 } %36, 0, !dbg !26 + %38 = bitcast i32 %37 to <2 x bfloat>, !dbg !26 + %39 = extractvalue { i32, i32 } %36, 1, !dbg !26 + %40 = bitcast i32 %39 to <2 x bfloat>, !dbg !26 + %41 = extractelement <2 x bfloat> %40, i64 0, !dbg !26 + %42 = extractelement <2 x bfloat> %40, i64 1, !dbg !26 + %43 = fpext bfloat %41 to float, !dbg !27 + %44 = fpext bfloat %42 to float, !dbg !27 + %45 = fmul float %43, %43, !dbg !28 + %46 = fmul float %44, %44, !dbg !28 + %47 = select i1 %10, float %45, float 0.000000e+00, !dbg !29 + %48 = select i1 %10, float %46, float 0.000000e+00, !dbg !29 + %49 = add i32 %31, %28, !dbg !30 + %50 = sext i32 %49 to i64, !dbg !31 + %51 = getelementptr bfloat, ptr addrspace(1) %3, i64 %50, !dbg !31 + tail call void asm sideeffect "@$3 st.global.v2.b32 [ $2 + 0 ], { $0, $1 };", "r,r,l,b"(i32 %37, i32 %39, ptr addrspace(1) %51, i1 %10) #6, !dbg !32 + %52 = or disjoint i64 %34, 2048, !dbg !33 + %53 = icmp samesign ult i64 %52, 3584, !dbg !34 + tail call void @llvm.nvvm.barrier0(), !dbg !21 + %54 = getelementptr bfloat, ptr addrspace(1) %27, i64 %52, !dbg !25 + %55 = and i1 %10, %53, !dbg !35 + %56 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %54, i1 %55) #6, !dbg !26 + %57 = extractvalue { i32, i32 } %56, 0, !dbg !26 + %58 = bitcast i32 %57 to <2 x bfloat>, !dbg !26 + %59 = extractvalue { i32, i32 } %56, 1, !dbg !26 + %60 = bitcast i32 %59 to <2 x bfloat>, !dbg !26 + %61 = extractelement <2 x bfloat> %60, i64 0, !dbg !26 + %62 = extractelement <2 x bfloat> %60, i64 1, !dbg !26 + %63 = fpext bfloat %61 to float, !dbg !27 + %64 = fpext bfloat %62 to float, !dbg !27 + %65 = fmul float %63, %63, !dbg !28 + %66 = fmul float %64, %64, !dbg !28 + %67 = fadd float %47, %65, !dbg !36 + %68 = fadd float %48, %66, !dbg !36 + %69 = fpext <2 x bfloat> %38 to <2 x float>, !dbg !27 + %70 = fmul <2 x float> %69, %69, !dbg !28 + %71 = insertelement <2 x i1> poison, i1 %10, i64 0, !dbg !29 + %72 = shufflevector <2 x i1> %71, <2 x i1> poison, <2 x i32> zeroinitializer, !dbg !29 + %73 = select <2 x i1> %72, <2 x float> %70, <2 x float> zeroinitializer, !dbg !29 + %74 = fpext <2 x bfloat> %58 to <2 x float>, !dbg !27 + %75 = fmul <2 x float> %74, %74, !dbg !28 + %76 = fadd <2 x float> %73, %75, !dbg !36 + %77 = insertelement <2 x i1> poison, i1 %55, i64 0, !dbg !29 + %78 = shufflevector <2 x i1> %77, <2 x i1> poison, <2 x i32> zeroinitializer, !dbg !29 + %79 = select <2 x i1> %78, <2 x float> %76, <2 x float> %73, !dbg !29 + %80 = select i1 %55, float %67, float %47, !dbg !29 + %81 = select i1 %55, float %68, float %48, !dbg !29 + %82 = trunc nuw nsw i64 %52 to i32, !dbg !30 + %83 = add i32 %28, %82, !dbg !30 + %84 = sext i32 %83 to i64, !dbg !31 + %85 = getelementptr bfloat, ptr addrspace(1) %3, i64 %84, !dbg !31 + tail call void asm sideeffect "@$3 st.global.v2.b32 [ $2 + 0 ], { $0, $1 };", "r,r,l,b"(i32 %57, i32 %59, ptr addrspace(1) %85, i1 %55) #6, !dbg !32 + %shift = shufflevector <2 x float> %79, <2 x float> poison, <2 x i32> , !dbg !37 + %86 = fadd <2 x float> %79, %shift, !dbg !37 + %87 = extractelement <2 x float> %86, i64 0, !dbg !37 + %88 = fadd float %80, %87, !dbg !37 + %89 = fadd float %81, %88, !dbg !37 + %90 = bitcast float %89 to i32, !dbg !42 + %91 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %90, i32 16, i32 31), !dbg !42 + %92 = bitcast i32 %91 to float, !dbg !42 + %93 = fadd float %89, %92, !dbg !37 + %94 = bitcast float %93 to i32, !dbg !42 + %95 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %94, i32 8, i32 31), !dbg !42 + %96 = bitcast i32 %95 to float, !dbg !42 + %97 = fadd float %93, %96, !dbg !37 + %98 = bitcast float %97 to i32, !dbg !42 + %99 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %98, i32 4, i32 31), !dbg !42 + %100 = bitcast i32 %99 to float, !dbg !42 + %101 = fadd float %97, %100, !dbg !37 + %102 = bitcast float %101 to i32, !dbg !42 + %103 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %102, i32 2, i32 31), !dbg !42 + %104 = bitcast i32 %103 to float, !dbg !42 + %105 = fadd float %101, %104, !dbg !37 + %106 = bitcast float %105 to i32, !dbg !42 + %107 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %106, i32 1, i32 31), !dbg !42 + %108 = bitcast i32 %107 to float, !dbg !42 + %109 = fadd float %105, %108, !dbg !37 + %110 = and i32 %32, 15, !dbg !42 + %111 = icmp eq i32 %33, 0, !dbg !42 + %112 = zext nneg i32 %110 to i64, !dbg !42 + %113 = getelementptr float, ptr addrspace(3) @global_smem, i64 %112, !dbg !42 + %114 = bitcast float %109 to <1 x i32>, !dbg !42 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %113, <1 x i32> %114, i1 %111) #6, !dbg !42 + tail call void @llvm.nvvm.barrier0(), !dbg !42 + %115 = icmp slt i32 %29, 16, !dbg !42 + %116 = sext i32 %29 to i64, !dbg !42 + %117 = getelementptr float, ptr addrspace(3) @global_smem, i64 %116, !dbg !42 + %118 = tail call i32 asm sideeffect "@$2 ld.shared.b32 $0, [ $1 + 0 ];", "=r,r,b"(ptr addrspace(3) %117, i1 %115) #6, !dbg !42 + %119 = bitcast i32 %118 to float, !dbg !42 + %120 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %118, i32 8, i32 31), !dbg !42 + %121 = bitcast i32 %120 to float, !dbg !42 + %122 = fadd float %119, %121, !dbg !37 + %123 = bitcast float %122 to i32, !dbg !42 + %124 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %123, i32 4, i32 31), !dbg !42 + %125 = bitcast i32 %124 to float, !dbg !42 + %126 = fadd float %122, %125, !dbg !37 + %127 = bitcast float %126 to i32, !dbg !42 + %128 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %127, i32 2, i32 31), !dbg !42 + %129 = bitcast i32 %128 to float, !dbg !42 + %130 = fadd float %126, %129, !dbg !37 + %131 = bitcast float %130 to i32, !dbg !42 + %132 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %131, i32 1, i32 31), !dbg !42 + %133 = bitcast i32 %132 to float, !dbg !42 + %134 = fadd float %130, %133, !dbg !37 + %135 = and i32 %29, 15, !dbg !42 + %136 = icmp eq i32 %135, 0, !dbg !42 + %137 = and i1 %115, %136, !dbg !42 + %138 = bitcast float %134 to <1 x i32>, !dbg !42 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %117, <1 x i32> %138, i1 %137) #6, !dbg !42 + tail call void @llvm.nvvm.barrier0(), !dbg !42 + %139 = load float, ptr addrspace(3) @global_smem, align 16, !dbg !42 + %140 = tail call float @llvm.nvvm.div.full(float %139, float 3.584000e+03), !dbg !43 + %141 = fadd float %140, 0x3EB0C6F7A0000000, !dbg !44 + %142 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #6, !dbg !45 + %143 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #6, !dbg !45 + %144 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #6, !dbg !45 + %145 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #6, !dbg !45 + %.not.i10 = icmp eq i32 %145, 0, !dbg !45 + br i1 %.not.i10, label %149, label %147, !dbg !45 + +146: ; preds = %8 + tail call void @__assertfail(ptr nonnull @assertMessage_0, ptr nonnull @assertFile_0, i32 41, ptr nonnull @assertFunc_0, i64 1), !dbg !21 + unreachable, !dbg !21 + +147: ; preds = %.split.preheader + %148 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %141), !dbg !45 + br label %__nv_rsqrtf.exit12, !dbg !45 + +149: ; preds = %.split.preheader + %150 = tail call float @llvm.nvvm.rsqrt.approx.f(float %141), !dbg !45 + br label %__nv_rsqrtf.exit12, !dbg !45 + +__nv_rsqrtf.exit12: ; preds = %147, %149 + %.0.i11 = phi float [ %148, %147 ], [ %150, %149 ], !dbg !45 + %151 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %51, i1 %10) #6, !dbg !46 + %152 = extractvalue { i32, i32 } %151, 0, !dbg !46 + %153 = bitcast i32 %152 to <2 x bfloat>, !dbg !46 + %154 = extractvalue { i32, i32 } %151, 1, !dbg !46 + %155 = bitcast i32 %154 to <2 x bfloat>, !dbg !46 + %156 = getelementptr bfloat, ptr addrspace(1) %2, i64 %34, !dbg !47 + %157 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_last.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %156, i1 true) #6, !dbg !48 + %158 = extractvalue { i32, i32 } %157, 0, !dbg !48 + %159 = bitcast i32 %158 to <2 x bfloat>, !dbg !48 + %160 = extractvalue { i32, i32 } %157, 1, !dbg !48 + %161 = bitcast i32 %160 to <2 x bfloat>, !dbg !48 + %162 = getelementptr bfloat, ptr addrspace(1) %4, i64 %50, !dbg !49 + %163 = fpext <2 x bfloat> %153 to <2 x float>, !dbg !50 + %164 = fpext <2 x bfloat> %159 to <2 x float>, !dbg !51 + %165 = insertelement <2 x float> poison, float %.0.i11, i64 0, !dbg !52 + %166 = shufflevector <2 x float> %165, <2 x float> poison, <2 x i32> zeroinitializer, !dbg !52 + %167 = fmul <2 x float> %166, %163, !dbg !52 + %168 = fmul <2 x float> %167, %164, !dbg !53 + %169 = fptrunc <2 x float> %168 to <2 x bfloat>, !dbg !54 + %170 = fpext <2 x bfloat> %155 to <2 x float>, !dbg !50 + %171 = fpext <2 x bfloat> %161 to <2 x float>, !dbg !51 + %172 = fmul <2 x float> %166, %170, !dbg !52 + %173 = fmul <2 x float> %172, %171, !dbg !53 + %174 = fptrunc <2 x float> %173 to <2 x bfloat>, !dbg !54 + %175 = bitcast <2 x bfloat> %169 to i32, !dbg !54 + %176 = bitcast <2 x bfloat> %174 to i32, !dbg !54 + tail call void asm sideeffect "@$3 st.global.v2.b32 [ $2 + 0 ], { $0, $1 };", "r,r,l,b"(i32 %175, i32 %176, ptr addrspace(1) %162, i1 %10) #6, !dbg !54 + %177 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %85, i1 %55) #6, !dbg !46 + %178 = extractvalue { i32, i32 } %177, 0, !dbg !46 + %179 = bitcast i32 %178 to <2 x bfloat>, !dbg !46 + %180 = extractvalue { i32, i32 } %177, 1, !dbg !46 + %181 = bitcast i32 %180 to <2 x bfloat>, !dbg !46 + %182 = getelementptr bfloat, ptr addrspace(1) %2, i64 %52, !dbg !47 + %183 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_last.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %182, i1 %53) #6, !dbg !48 + %184 = extractvalue { i32, i32 } %183, 0, !dbg !48 + %185 = bitcast i32 %184 to <2 x bfloat>, !dbg !48 + %186 = extractvalue { i32, i32 } %183, 1, !dbg !48 + %187 = bitcast i32 %186 to <2 x bfloat>, !dbg !48 + %188 = getelementptr bfloat, ptr addrspace(1) %4, i64 %84, !dbg !49 + %189 = fpext <2 x bfloat> %179 to <2 x float>, !dbg !50 + %190 = fpext <2 x bfloat> %185 to <2 x float>, !dbg !51 + %191 = fmul <2 x float> %166, %189, !dbg !52 + %192 = fmul <2 x float> %191, %190, !dbg !53 + %193 = fptrunc <2 x float> %192 to <2 x bfloat>, !dbg !54 + %194 = fpext <2 x bfloat> %181 to <2 x float>, !dbg !50 + %195 = fpext <2 x bfloat> %187 to <2 x float>, !dbg !51 + %196 = fmul <2 x float> %166, %194, !dbg !52 + %197 = fmul <2 x float> %196, %195, !dbg !53 + %198 = fptrunc <2 x float> %197 to <2 x bfloat>, !dbg !54 + %199 = bitcast <2 x bfloat> %193 to i32, !dbg !54 + %200 = bitcast <2 x bfloat> %198 to i32, !dbg !54 + tail call void asm sideeffect "@$3 st.global.v2.b32 [ $2 + 0 ], { $0, $1 };", "r,r,l,b"(i32 %199, i32 %200, ptr addrspace(1) %188, i1 %55) #6, !dbg !54 + ret void, !dbg !55 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #1 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #2 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #3 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.div.full(float, float) #4 + +declare i32 @__nvvm_reflect(ptr) local_unnamed_addr #5 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.ftz.f(float) #4 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.f(float) #4 + +attributes #0 = { noreturn } +attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #2 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #3 = { convergent nocallback nounwind } +attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) } +attributes #5 = { "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #6 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py", directory: "/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo") +!4 = !{ptr @triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0, !"reqntidx", i32 512} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = !DISubprogram(name: "__assertfail", linkageName: "__assertfail", scope: !7, file: !7, type: !8, spFlags: DISPFlagOptimized) +!7 = !DIFile(filename: "", directory: "") +!8 = !DISubroutineType(cc: DW_CC_normal, types: !9) +!9 = !{} +!10 = distinct !DISubprogram(name: "triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0", linkageName: "triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0", scope: !3, file: !3, line: 18, type: !8, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!11 = !DILocation(line: 22, column: 28, scope: !10) +!12 = !DILocation(line: 24, column: 21, scope: !10) +!13 = !DILocation(line: 28, column: 30, scope: !10) +!14 = !DILocation(line: 28, column: 35, scope: !10) +!15 = !DILocation(line: 36, column: 23, scope: !10) +!16 = !DILocation(line: 38, column: 22, scope: !10) +!17 = !DILocation(line: 39, column: 22, scope: !10) +!18 = !DILocation(line: 40, column: 36, scope: !10) +!19 = !DILocation(line: 41, column: 41, scope: !10) +!20 = !DILocation(line: 42, column: 46, scope: !10) +!21 = !DILocation(line: 41, column: 69, scope: !10) +!22 = !DILocation(line: 48, column: 41, scope: !10) +!23 = !DILocation(line: 25, column: 37, scope: !10) +!24 = !DILocation(line: 30, column: 40, scope: !10) +!25 = !DILocation(line: 42, column: 34, scope: !10) +!26 = !DILocation(line: 42, column: 53, scope: !10) +!27 = !DILocation(line: 42, column: 115, scope: !10) +!28 = !DILocation(line: 44, column: 22, scope: !10) +!29 = !DILocation(line: 47, column: 50, scope: !10) +!30 = !DILocation(line: 48, column: 36, scope: !10) +!31 = !DILocation(line: 48, column: 29, scope: !10) +!32 = !DILocation(line: 48, column: 52, scope: !10) +!33 = !DILocation(line: 31, column: 31, scope: !10) +!34 = !DILocation(line: 32, column: 29, scope: !10) +!35 = !DILocation(line: 42, column: 61, scope: !10) +!36 = !DILocation(line: 46, column: 25, scope: !10) +!37 = !DILocation(line: 256, column: 15, scope: !38, inlinedAt: !41) +!38 = distinct !DILexicalBlockFile(scope: !40, file: !39, discriminator: 0) +!39 = !DIFile(filename: "standard.py", directory: "/home/x/.local/lib/python3.12/site-packages/triton/language") +!40 = distinct !DILexicalBlockFile(scope: !10, file: !39, discriminator: 0) +!41 = !DILocation(line: 49, column: 27, scope: !10) +!42 = !DILocation(line: 286, column: 36, scope: !40, inlinedAt: !41) +!43 = !DILocation(line: 60, column: 25, scope: !10) +!44 = !DILocation(line: 62, column: 24, scope: !10) +!45 = !DILocation(line: 63, column: 32, scope: !10) +!46 = !DILocation(line: 56, column: 53, scope: !10) +!47 = !DILocation(line: 57, column: 35, scope: !10) +!48 = !DILocation(line: 57, column: 42, scope: !10) +!49 = !DILocation(line: 67, column: 29, scope: !10) +!50 = !DILocation(line: 56, column: 115, scope: !10) +!51 = !DILocation(line: 57, column: 95, scope: !10) +!52 = !DILocation(line: 64, column: 24, scope: !10) +!53 = !DILocation(line: 66, column: 24, scope: !10) +!54 = !DILocation(line: 67, column: 53, scope: !10) +!55 = !DILocation(line: 50, column: 4, scope: !10) diff --git a/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/NZ4RRAGQZEUI36VICEM2HXVDV76GVUUMDMXZI67YY57ZOH6LFYLQ/triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.ttir b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/NZ4RRAGQZEUI36VICEM2HXVDV76GVUUMDMXZI67YY57ZOH6LFYLQ/triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.ttir new file mode 100644 index 0000000000000000000000000000000000000000..b4677b1ed293ab2fae888c73caf908f6463c8309 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/triton_cache/NZ4RRAGQZEUI36VICEM2HXVDV76GVUUMDMXZI67YY57ZOH6LFYLQ/triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0.ttir @@ -0,0 +1,164 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0) +#loc1 = loc(unknown) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":49:27) +#loc62 = loc(callsite(#loc1 at #loc36)) +module { + tt.func public @triton_red_fused__to_copy_add_embedding_mean_mul_pow_rsqrt_0(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0), %arg4: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0), %arg5: i32 loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0), %arg6: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<3584> : tensor<1x1xi64> loc(#loc1) + %true = arith.constant true loc(#loc1) + %cst_0 = arith.constant dense<152064> : tensor<1x1xi64> loc(#loc1) + %cst_1 = arith.constant dense<0.000000e+00> : tensor<1x2048xbf16> loc(#loc1) + %cst_2 = arith.constant dense<0> : tensor<1x1xi64> loc(#loc1) + %c2048_i32 = arith.constant 2048 : i32 loc(#loc1) + %c3584_i32 = arith.constant 3584 : i32 loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %cst_3 = arith.constant dense<9.99999997E-7> : tensor<1x1xf32> loc(#loc1) + %cst_4 = arith.constant dense<3.584000e+03> : tensor<1x1xf32> loc(#loc1) + %cst_5 = arith.constant dense<3584> : tensor<1x2048xi32> loc(#loc1) + %cst_6 = arith.constant dense<0.000000e+00> : tensor<1x2048xf32> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.cmpi slt, %0, %arg5 : i32 loc(#loc3) + %2 = tt.splat %1 : i1 -> tensor<1x1xi1> loc(#loc3) + %3 = tt.make_range {end = 2048 : i32, start = 0 : i32} : tensor<2048xi32> loc(#loc4) + %4 = tt.expand_dims %3 {axis = 0 : i32} : tensor<2048xi32> -> tensor<1x2048xi32> loc(#loc5) + %5 = tt.addptr %arg0, %0 : !tt.ptr, i32 loc(#loc6) + %6 = tt.splat %5 : !tt.ptr -> tensor<1x1x!tt.ptr> loc(#loc6) + %7 = tt.load %6, %2 evictionPolicy = evict_last : tensor<1x1x!tt.ptr> loc(#loc7) + %8 = scf.for %arg7 = %c0_i32 to %c3584_i32 step %c2048_i32 iter_args(%arg8 = %cst_6) -> (tensor<1x2048xf32>) : i32 { + %11 = tt.splat %arg7 : i32 -> tensor<1x2048xi32> loc(#loc9) + %12 = arith.addi %11, %4 : tensor<1x2048xi32> loc(#loc9) + %13 = arith.cmpi slt, %12, %cst_5 : tensor<1x2048xi32> loc(#loc10) + %14 = arith.extsi %7 : tensor<1x1xi32> to tensor<1x1xi64> loc(#loc11) + %15 = arith.addi %14, %cst_0 : tensor<1x1xi64> loc(#loc12) + %16 = arith.cmpi slt, %14, %cst_2 : tensor<1x1xi64> loc(#loc13) + %17 = arith.select %16, %15, %14 : tensor<1x1xi1>, tensor<1x1xi64> loc(#loc14) + %18 = arith.cmpi sge, %17, %cst_2 : tensor<1x1xi64> loc(#loc15) + %19 = arith.cmpi slt, %17, %cst_0 : tensor<1x1xi64> loc(#loc16) + %20 = arith.andi %18, %19 : tensor<1x1xi1> loc(#loc17) + %21 = arith.xori %1, %true : i1 loc(#loc18) + %22 = tt.splat %21 : i1 -> tensor<1x1xi1> loc(#loc18) + %23 = arith.ori %20, %22 : tensor<1x1xi1> loc(#loc19) + %24 = tt.broadcast %23 : tensor<1x1xi1> -> tensor<1x2048xi1> loc(#loc19) + tt.assert %24, "index out of bounds: 0 <= tmp5 < 152064" : tensor<1x2048xi1> loc(#loc20) + %25 = arith.muli %17, %cst : tensor<1x1xi64> loc(#loc21) + %26 = tt.broadcast %25 : tensor<1x1xi64> -> tensor<1x2048xi64> loc(#loc21) + %27 = arith.extsi %12 : tensor<1x2048xi32> to tensor<1x2048xi64> loc(#loc22) + %28 = arith.addi %27, %26 : tensor<1x2048xi64> loc(#loc22) + %29 = tt.splat %arg1 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc23) + %30 = tt.addptr %29, %28 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi64> loc(#loc23) + %31 = tt.splat %1 : i1 -> tensor<1x2048xi1> loc(#loc59) + %32 = arith.andi %31, %13 : tensor<1x2048xi1> loc(#loc24) + %33 = tt.load %30, %32, %cst_1 evictionPolicy = evict_first : tensor<1x2048x!tt.ptr> loc(#loc25) + %34 = arith.extf %33 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc26) + %35 = arith.mulf %34, %34 : tensor<1x2048xf32> loc(#loc27) + %36 = arith.addf %arg8, %35 : tensor<1x2048xf32> loc(#loc28) + %37 = arith.select %32, %36, %arg8 : tensor<1x2048xi1>, tensor<1x2048xf32> loc(#loc29) + %38 = arith.muli %0, %c3584_i32 : i32 loc(#loc30) + %39 = tt.splat %38 : i32 -> tensor<1x2048xi32> loc(#loc60) + %40 = arith.addi %12, %39 : tensor<1x2048xi32> loc(#loc31) + %41 = tt.splat %arg3 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc32) + %42 = tt.addptr %41, %40 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc32) + %43 = arith.truncf %34 : tensor<1x2048xf32> to tensor<1x2048xbf16> loc(#loc33) + tt.store %42, %43, %32 : tensor<1x2048x!tt.ptr> loc(#loc33) + scf.yield %37 : tensor<1x2048xf32> loc(#loc34) + } loc(#loc8) + %9 = "tt.reduce"(%8) <{axis = 1 : i32}> ({ + ^bb0(%arg7: f32 loc(callsite(#loc1 at #loc36)), %arg8: f32 loc(callsite(#loc1 at #loc36))): + %11 = arith.addf %arg7, %arg8 : f32 loc(#loc66) + tt.reduce.return %11 : f32 loc(#loc61) + }) : (tensor<1x2048xf32>) -> tensor<1xf32> loc(#loc61) + %10 = tt.expand_dims %9 {axis = 1 : i32} : tensor<1xf32> -> tensor<1x1xf32> loc(#loc38) + scf.for %arg7 = %c0_i32 to %c3584_i32 step %c2048_i32 : i32 { + %11 = tt.splat %arg7 : i32 -> tensor<1x2048xi32> loc(#loc40) + %12 = arith.addi %11, %4 : tensor<1x2048xi32> loc(#loc40) + %13 = arith.cmpi slt, %12, %cst_5 : tensor<1x2048xi32> loc(#loc41) + %14 = arith.muli %0, %c3584_i32 : i32 loc(#loc42) + %15 = tt.splat %14 : i32 -> tensor<1x2048xi32> loc(#loc64) + %16 = arith.addi %12, %15 : tensor<1x2048xi32> loc(#loc43) + %17 = tt.splat %arg3 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc44) + %18 = tt.addptr %17, %16 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc44) + %19 = tt.splat %1 : i1 -> tensor<1x2048xi1> loc(#loc65) + %20 = arith.andi %13, %19 : tensor<1x2048xi1> loc(#loc45) + %21 = tt.load %18, %20, %cst_1 evictionPolicy = evict_first : tensor<1x2048x!tt.ptr> loc(#loc46) + %22 = arith.extf %21 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc47) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc48) + %24 = tt.addptr %23, %12 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc48) + %25 = tt.load %24, %13, %cst_1 evictionPolicy = evict_last : tensor<1x2048x!tt.ptr> loc(#loc49) + %26 = arith.extf %25 : tensor<1x2048xbf16> to tensor<1x2048xf32> loc(#loc50) + %27 = arith.divf %10, %cst_4 : tensor<1x1xf32> loc(#loc51) + %28 = arith.addf %27, %cst_3 : tensor<1x1xf32> loc(#loc52) + %29 = tt.extern_elementwise %28 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1x1xf32>) -> tensor<1x1xf32> loc(#loc53) + %30 = tt.broadcast %29 : tensor<1x1xf32> -> tensor<1x2048xf32> loc(#loc54) + %31 = arith.mulf %22, %30 : tensor<1x2048xf32> loc(#loc54) + %32 = arith.mulf %31, %26 : tensor<1x2048xf32> loc(#loc55) + %33 = tt.splat %arg4 : !tt.ptr -> tensor<1x2048x!tt.ptr> loc(#loc56) + %34 = tt.addptr %33, %16 : tensor<1x2048x!tt.ptr>, tensor<1x2048xi32> loc(#loc56) + %35 = arith.truncf %32 : tensor<1x2048xf32> to tensor<1x2048xbf16> loc(#loc57) + tt.store %34, %35, %20 : tensor<1x2048x!tt.ptr> loc(#loc57) + } loc(#loc39) + tt.return loc(#loc58) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":24:21) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":25:27) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":25:37) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":28:30) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":28:35) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":30:40) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":31:31) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":32:29) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":36:23) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":38:22) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":39:22) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":40:36) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":41:32) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":41:48) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":41:41) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":41:61) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":41:59) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":41:69) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":42:46) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":42:41) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":42:34) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":42:61) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":42:53) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":42:115) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":44:22) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":46:25) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":47:50) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":48:41) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":48:36) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":48:29) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":48:52) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":48:8) +#loc35 = loc("/home/x/.local/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc37 = loc("/home/x/.local/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":49:30) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":50:40) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":51:31) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":52:29) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":56:48) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":56:43) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":56:36) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":56:63) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":56:53) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":56:115) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":57:35) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":57:42) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":57:95) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":60:25) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":62:24) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":63:32) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":64:24) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":66:24) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":67:29) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":67:53) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/069ce3ea2b/rank_0_0/inductor_cache/lo/clovpxsk3xeovrpue7dyfqa3cpqyo2mprscekt4hx7gmplpafuyn.py":50:4) +#loc59 = loc(fused[#loc24, #loc3]) +#loc60 = loc(fused[#loc31, #loc30]) +#loc61 = loc(callsite(#loc35 at #loc36)) +#loc63 = loc(callsite(#loc37 at #loc35)) +#loc64 = loc(fused[#loc43, #loc42]) +#loc65 = loc(fused[#loc45, #loc3]) +#loc66 = loc(callsite(#loc63 at #loc36)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.cubin new file mode 100644 index 0000000000000000000000000000000000000000..96cfe49ccab89845e29220fa1825624042e76cd3 Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.json new file mode 100644 index 0000000000000000000000000000000000000000..648e8420a03b405aa5159ad4ec27f8d84a6f6e4e --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.json @@ -0,0 +1 @@ +{"hash": "d1a202221fbd5c63e70a94a929e3a50f6039cc4793666ff77a4b938047bf3e4c", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 8, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 32, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_red_fused__to_copy_mean_pow_3"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.ttir new file mode 100644 index 0000000000000000000000000000000000000000..0e9684194b6cb72803e85b98778bd2d4be8907ab --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/2GRAEIQ7XVOGHZYKSSUSTY5FB5QDTTCHSNTG7532JOJYAR57HZGA/triton_red_fused__to_copy_mean_pow_3.ttir @@ -0,0 +1,86 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0) +#loc1 = loc(unknown) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":43:25) +#loc32 = loc(callsite(#loc1 at #loc25)) +module { + tt.func public @triton_red_fused__to_copy_mean_pow_3(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<8x128xbf16> loc(#loc1) + %cst_0 = arith.constant dense<7168> : tensor<8x1xi32> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<8x1xi32> loc(#loc1) + %cst_2 = arith.constant dense<128> : tensor<1x128xi32> loc(#loc1) + %cst_3 = arith.constant dense<0.000000e+00> : tensor<8x128xf32> loc(#loc1) + %cst_4 = arith.constant dense<40> : tensor<8x1xi32> loc(#loc1) + %c8_i32 = arith.constant 8 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c8_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 8 : i32, start = 0 : i32} : tensor<8xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 1 : i32} : tensor<8xi32> -> tensor<8x1xi32> loc(#loc5) + %4 = tt.splat %1 : i32 -> tensor<8x1xi32> loc(#loc6) + %5 = arith.addi %4, %3 : tensor<8x1xi32> loc(#loc6) + %6 = tt.splat %arg2 : i32 -> tensor<8x1xi32> loc(#loc7) + %7 = arith.cmpi slt, %5, %6 : tensor<8x1xi32> loc(#loc7) + %8 = tt.make_range {end = 128 : i32, start = 0 : i32} : tensor<128xi32> loc(#loc8) + %9 = tt.expand_dims %8 {axis = 0 : i32} : tensor<128xi32> -> tensor<1x128xi32> loc(#loc9) + %10 = arith.remsi %5, %cst_4 : tensor<8x1xi32> loc(#loc10) + %11 = arith.divsi %5, %cst_4 : tensor<8x1xi32> loc(#loc11) + %12 = arith.cmpi slt, %9, %cst_2 : tensor<1x128xi32> loc(#loc12) + %13 = arith.muli %10, %cst_1 : tensor<8x1xi32> loc(#loc13) + %14 = tt.broadcast %9 : tensor<1x128xi32> -> tensor<8x128xi32> loc(#loc14) + %15 = tt.broadcast %13 : tensor<8x1xi32> -> tensor<8x128xi32> loc(#loc14) + %16 = arith.addi %14, %15 : tensor<8x128xi32> loc(#loc14) + %17 = arith.muli %11, %cst_0 : tensor<8x1xi32> loc(#loc15) + %18 = tt.broadcast %17 : tensor<8x1xi32> -> tensor<8x128xi32> loc(#loc16) + %19 = arith.addi %16, %18 : tensor<8x128xi32> loc(#loc16) + %20 = tt.splat %arg0 : !tt.ptr -> tensor<8x128x!tt.ptr> loc(#loc17) + %21 = tt.addptr %20, %19 : tensor<8x128x!tt.ptr>, tensor<8x128xi32> loc(#loc17) + %22 = tt.broadcast %7 : tensor<8x1xi1> -> tensor<8x128xi1> loc(#loc18) + %23 = tt.broadcast %12 : tensor<1x128xi1> -> tensor<8x128xi1> loc(#loc18) + %24 = arith.andi %22, %23 : tensor<8x128xi1> loc(#loc18) + %25 = tt.load %21, %24, %cst evictionPolicy = evict_first : tensor<8x128x!tt.ptr> loc(#loc19) + %26 = arith.extf %25 : tensor<8x128xbf16> to tensor<8x128xf32> loc(#loc20) + %27 = arith.mulf %26, %26 : tensor<8x128xf32> loc(#loc21) + %28 = arith.addf %27, %cst_3 : tensor<8x128xf32> loc(#loc22) + %29 = arith.select %24, %28, %cst_3 : tensor<8x128xi1>, tensor<8x128xf32> loc(#loc23) + %30 = "tt.reduce"(%29) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc25)), %arg5: f32 loc(callsite(#loc1 at #loc25))): + %34 = arith.addf %arg4, %arg5 : f32 loc(#loc34) + tt.reduce.return %34 : f32 loc(#loc31) + }) : (tensor<8x128xf32>) -> tensor<8xf32> loc(#loc31) + %31 = tt.expand_dims %30 {axis = 1 : i32} : tensor<8xf32> -> tensor<8x1xf32> loc(#loc27) + %32 = tt.splat %arg1 : !tt.ptr -> tensor<8x1x!tt.ptr> loc(#loc28) + %33 = tt.addptr %32, %5 : tensor<8x1x!tt.ptr>, tensor<8x1xi32> loc(#loc28) + tt.store %33, %31, %7 : tensor<8x1x!tt.ptr> loc(#loc29) + tt.return loc(#loc30) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":23:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":23:44) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":23:23) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":24:21) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":25:27) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":25:37) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":27:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":28:19) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":33:29) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:45) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:41) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:55) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:50) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:34) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:68) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:60) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:122) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":39:22) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":41:23) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":42:48) +#loc24 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc26 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":43:28) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:25) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:36) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:4) +#loc31 = loc(callsite(#loc24 at #loc25)) +#loc33 = loc(callsite(#loc26 at #loc24)) +#loc34 = loc(callsite(#loc33 at #loc25)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.cubin new file mode 100644 index 0000000000000000000000000000000000000000..795e8847f1c95013438b0d2c9f2c0643608b1e60 Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.json new file mode 100644 index 0000000000000000000000000000000000000000..2ec4d579985c20a058695fad0fb1ee408156ec2f --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.json @@ -0,0 +1 @@ +{"hash": "e7563a2f3ce69bd49688ae1b46806e6d5a8b007b6cd15e2008fdc165ffbb506b", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 8, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 0, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_poi_fused_add_mul_sub_5"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.llir new file mode 100644 index 0000000000000000000000000000000000000000..a9f8062e1ab13b2ac8cb36dba797a802c06a1ddc --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.llir @@ -0,0 +1,297 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@assertFunc_0 = internal constant [8 x i8] c"unknown\00" +@assertFile_0 = internal constant [134 x i8] c"/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py\00" +@assertMessage_0 = internal constant [41 x i8] c"index out of bounds: 0 <= tmp16 < 131072\00" +@.str = private unnamed_addr constant [11 x i8] c"__CUDA_FTZ\00", align 1 + +; Function Attrs: noreturn +declare !dbg !6 void @__assertfail(ptr, ptr, i32, ptr, i64) local_unnamed_addr #0 + +define ptx_kernel void @triton_poi_fused_add_mul_sub_5(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(1) %2, ptr addrspace(1) %3, ptr addrspace(1) %4, ptr addrspace(1) %5, ptr addrspace(1) %6, i32 %7, ptr addrspace(1) readnone captures(none) %8) local_unnamed_addr !dbg !10 { + %10 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !11 + %11 = shl i32 %10, 9, !dbg !12 + %12 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !13 + %13 = shl i32 %12, 1, !dbg !13 + %14 = and i32 %13, 510, !dbg !13 + %15 = or disjoint i32 %14, %11, !dbg !14 + %16 = or disjoint i32 %15, 1, !dbg !14 + %17 = icmp slt i32 %15, %7, !dbg !15 + %18 = sdiv i32 %15, 64, !dbg !16 + %19 = mul i32 %18, 64, !dbg !17 + %.decomposed = sub i32 %15, %19, !dbg !17 + %20 = srem i32 %16, 64, !dbg !17 + %21 = srem i32 %18, 40, !dbg !18 + %22 = sdiv i32 %15, 2560, !dbg !19 + %23 = shl nsw i32 %21, 7, !dbg !20 + %24 = mul i32 %22, 7168, !dbg !21 + %25 = add i32 %23, %24, !dbg !22 + %26 = add i32 %25, %.decomposed, !dbg !23 + %27 = sext i32 %26 to i64, !dbg !24 + %28 = getelementptr bfloat, ptr addrspace(1) %0, i64 %27, !dbg !24 + %29 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %28, i1 %17) #5, !dbg !25 + %30 = sext i32 %18 to i64, !dbg !26 + %31 = getelementptr float, ptr addrspace(1) %1, i64 %30, !dbg !26 + %32 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %31, i1 %17) #5, !dbg !27 + %33 = bitcast i32 %32 to float, !dbg !27 + %34 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %31, i1 %17) #5, !dbg !27 + %35 = bitcast i32 %34 to float, !dbg !27 + %36 = sext i32 %.decomposed to i64, !dbg !28 + %37 = getelementptr bfloat, ptr addrspace(1) %2, i64 %36, !dbg !28 + %38 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %37, i1 %17) #5, !dbg !29 + %39 = sext i32 %22 to i64, !dbg !30 + %40 = getelementptr i64, ptr addrspace(1) %3, i64 %39, !dbg !30 + %41 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %40, i1 %17) #5, !dbg !31 + %42 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %40, i1 %17) #5, !dbg !31 + %43 = add nsw i32 %.decomposed, 64, !dbg !32 + %44 = add i32 %25, %43, !dbg !33 + %45 = or disjoint i32 %25, 64, !dbg !34 + %46 = add nsw i32 %45, %20, !dbg !33 + %47 = sext i32 %44 to i64, !dbg !35 + %48 = getelementptr bfloat, ptr addrspace(1) %0, i64 %47, !dbg !35 + %49 = sext i32 %46 to i64, !dbg !35 + %50 = getelementptr bfloat, ptr addrspace(1) %0, i64 %49, !dbg !35 + %51 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %48, i1 %17) #5, !dbg !36 + %52 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %50, i1 %17) #5, !dbg !36 + %53 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %31, i1 %17) #5, !dbg !37 + %54 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %31, i1 %17) #5, !dbg !37 + %55 = zext nneg i32 %43 to i64, !dbg !38 + %56 = getelementptr bfloat, ptr addrspace(1) %2, i64 %55, !dbg !38 + %57 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %56, i1 %17) #5, !dbg !39 + %58 = tail call float @llvm.nvvm.div.full(float %33, float 1.280000e+02), !dbg !40 + %59 = tail call float @llvm.nvvm.div.full(float %35, float 1.280000e+02), !dbg !40 + %60 = fadd float %58, 0x3EB0C6F7A0000000, !dbg !41 + %61 = fadd float %59, 0x3EB0C6F7A0000000, !dbg !41 + %62 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i = icmp eq i32 %62, 0, !dbg !42 + br i1 %.not.i, label %65, label %63, !dbg !42 + +63: ; preds = %9 + %64 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %60), !dbg !42 + br label %__nv_rsqrtf.exit, !dbg !42 + +65: ; preds = %9 + %66 = tail call float @llvm.nvvm.rsqrt.approx.f(float %60), !dbg !42 + br label %__nv_rsqrtf.exit, !dbg !42 + +__nv_rsqrtf.exit: ; preds = %63, %65 + %.0.i = phi float [ %64, %63 ], [ %66, %65 ], !dbg !42 + %67 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i2 = icmp eq i32 %67, 0, !dbg !42 + br i1 %.not.i2, label %70, label %68, !dbg !42 + +68: ; preds = %__nv_rsqrtf.exit + %69 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %61), !dbg !42 + br label %__nv_rsqrtf.exit4, !dbg !42 + +70: ; preds = %__nv_rsqrtf.exit + %71 = tail call float @llvm.nvvm.rsqrt.approx.f(float %61), !dbg !42 + br label %__nv_rsqrtf.exit4, !dbg !42 + +__nv_rsqrtf.exit4: ; preds = %68, %70 + %.0.i3 = phi float [ %69, %68 ], [ %71, %70 ], !dbg !42 + %72 = lshr i64 %41, 46, !dbg !43 + %73 = and i64 %72, 131072, !dbg !43 + %74 = add i64 %73, %41, !dbg !43 + %75 = icmp ugt i64 %74, 131071, !dbg !44 + %.not1 = and i1 %17, %75, !dbg !45 + br i1 %.not1, label %76, label %77, !dbg !45 + +76: ; preds = %__nv_rsqrtf.exit4 + tail call void @__assertfail(ptr nonnull @assertMessage_0, ptr nonnull @assertFile_0, i32 46, ptr nonnull @assertFunc_0, i64 1), !dbg !45 + unreachable, !dbg !45 + +77: ; preds = %__nv_rsqrtf.exit4 + %78 = bitcast i32 %54 to float, !dbg !37 + %79 = bitcast i32 %53 to float, !dbg !37 + tail call void @llvm.nvvm.barrier0(), !dbg !45 + %.idx = shl i64 %74, 8, !dbg !46 + %80 = getelementptr i8, ptr addrspace(1) %4, i64 %.idx, !dbg !46 + %81 = getelementptr bfloat, ptr addrspace(1) %80, i64 %36, !dbg !46 + %82 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %81, i1 %17) #5, !dbg !47 + %83 = tail call float @llvm.nvvm.div.full(float %79, float 1.280000e+02), !dbg !48 + %84 = tail call float @llvm.nvvm.div.full(float %78, float 1.280000e+02), !dbg !48 + %85 = fadd float %83, 0x3EB0C6F7A0000000, !dbg !49 + %86 = fadd float %84, 0x3EB0C6F7A0000000, !dbg !49 + %87 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i5 = icmp eq i32 %87, 0, !dbg !50 + br i1 %.not.i5, label %90, label %88, !dbg !50 + +88: ; preds = %77 + %89 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %85), !dbg !50 + br label %__nv_rsqrtf.exit7, !dbg !50 + +90: ; preds = %77 + %91 = tail call float @llvm.nvvm.rsqrt.approx.f(float %85), !dbg !50 + br label %__nv_rsqrtf.exit7, !dbg !50 + +__nv_rsqrtf.exit7: ; preds = %88, %90 + %.0.i6 = phi float [ %89, %88 ], [ %91, %90 ], !dbg !50 + %92 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i8 = icmp eq i32 %92, 0, !dbg !50 + br i1 %.not.i8, label %95, label %93, !dbg !50 + +93: ; preds = %__nv_rsqrtf.exit7 + %94 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %86), !dbg !50 + br label %__nv_rsqrtf.exit10, !dbg !50 + +95: ; preds = %__nv_rsqrtf.exit7 + %96 = tail call float @llvm.nvvm.rsqrt.approx.f(float %86), !dbg !50 + br label %__nv_rsqrtf.exit10, !dbg !50 + +__nv_rsqrtf.exit10: ; preds = %93, %95 + %.0.i9 = phi float [ %94, %93 ], [ %96, %95 ], !dbg !50 + %97 = bitcast i32 %29 to <2 x bfloat>, !dbg !25 + %98 = bitcast i32 %38 to <2 x bfloat>, !dbg !29 + %99 = bitcast i32 %82 to <2 x bfloat>, !dbg !47 + %100 = insertelement <2 x i16> poison, i16 %51, i64 0, !dbg !36 + %101 = insertelement <2 x i16> %100, i16 %52, i64 1, !dbg !36 + %102 = bitcast <2 x i16> %101 to <2 x bfloat>, !dbg !36 + %103 = bitcast i32 %57 to <2 x bfloat>, !dbg !39 + %104 = getelementptr bfloat, ptr addrspace(1) %80, i64 %55, !dbg !51 + %105 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %104, i1 %17) #5, !dbg !52 + %106 = bitcast i32 %105 to <2 x bfloat>, !dbg !52 + %107 = shl i32 %18, 7, !dbg !53 + %108 = add i32 %107, %.decomposed, !dbg !54 + %109 = sext i32 %108 to i64, !dbg !55 + %110 = getelementptr bfloat, ptr addrspace(1) %5, i64 %109, !dbg !55 + %111 = fpext <2 x bfloat> %97 to <2 x float>, !dbg !56 + %112 = insertelement <2 x float> poison, float %.0.i, i64 0, !dbg !57 + %113 = insertelement <2 x float> %112, float %.0.i3, i64 1, !dbg !57 + %114 = fmul <2 x float> %113, %111, !dbg !57 + %115 = fpext <2 x bfloat> %98 to <2 x float>, !dbg !58 + %116 = fmul <2 x float> %114, %115, !dbg !59 + %117 = fpext <2 x bfloat> %99 to <2 x float>, !dbg !60 + %118 = fmul <2 x float> %116, %117, !dbg !61 + %119 = fpext <2 x bfloat> %102 to <2 x float>, !dbg !62 + %120 = fpext <2 x bfloat> %103 to <2 x float>, !dbg !63 + %121 = insertelement <2 x float> poison, float %.0.i6, i64 0, !dbg !64 + %122 = insertelement <2 x float> %121, float %.0.i9, i64 1, !dbg !64 + %123 = fmul <2 x float> %122, %119, !dbg !64 + %124 = fmul <2 x float> %123, %120, !dbg !65 + %125 = fpext <2 x bfloat> %106 to <2 x float>, !dbg !66 + %126 = fmul <2 x float> %124, %125, !dbg !67 + %127 = fsub <2 x float> %118, %126, !dbg !68 + %128 = fptrunc <2 x float> %127 to <2 x bfloat>, !dbg !69 + %129 = bitcast <2 x bfloat> %128 to i32, !dbg !69 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %129, ptr addrspace(1) %110, i1 %17) #5, !dbg !69 + %130 = getelementptr bfloat, ptr addrspace(1) %6, i64 %109, !dbg !70 + %131 = fmul <2 x float> %124, %117, !dbg !71 + %132 = fmul <2 x float> %116, %125, !dbg !72 + %133 = fadd <2 x float> %131, %132, !dbg !73 + %134 = fptrunc <2 x float> %133 to <2 x bfloat>, !dbg !74 + %135 = bitcast <2 x bfloat> %134 to i32, !dbg !74 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %135, ptr addrspace(1) %130, i1 %17) #5, !dbg !74 + ret void, !dbg !75 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.div.full(float, float) #2 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #3 + +declare i32 @__nvvm_reflect(ptr) local_unnamed_addr #4 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.ftz.f(float) #2 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.f(float) #2 + +attributes #0 = { noreturn } +attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) } +attributes #3 = { convergent nocallback nounwind } +attributes #4 = { "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #5 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa") +!4 = !{ptr @triton_poi_fused_add_mul_sub_5, !"reqntidx", i32 256} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = !DISubprogram(name: "__assertfail", linkageName: "__assertfail", scope: !7, file: !7, type: !8, spFlags: DISPFlagOptimized) +!7 = !DIFile(filename: "", directory: "") +!8 = !DISubroutineType(cc: DW_CC_normal, types: !9) +!9 = !{} +!10 = distinct !DISubprogram(name: "triton_poi_fused_add_mul_sub_5", linkageName: "triton_poi_fused_add_mul_sub_5", scope: !3, file: !3, line: 18, type: !8, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!11 = !DILocation(line: 19, column: 28, scope: !10) +!12 = !DILocation(line: 19, column: 33, scope: !10) +!13 = !DILocation(line: 20, column: 36, scope: !10) +!14 = !DILocation(line: 20, column: 23, scope: !10) +!15 = !DILocation(line: 21, column: 21, scope: !10) +!16 = !DILocation(line: 23, column: 21, scope: !10) +!17 = !DILocation(line: 22, column: 19, scope: !10) +!18 = !DILocation(line: 23, column: 27, scope: !10) +!19 = !DILocation(line: 24, column: 19, scope: !10) +!20 = !DILocation(line: 26, column: 39, scope: !10) +!21 = !DILocation(line: 26, column: 49, scope: !10) +!22 = !DILocation(line: 26, column: 35, scope: !10) +!23 = !DILocation(line: 26, column: 44, scope: !10) +!24 = !DILocation(line: 26, column: 30, scope: !10) +!25 = !DILocation(line: 26, column: 54, scope: !10) +!26 = !DILocation(line: 27, column: 30, scope: !10) +!27 = !DILocation(line: 27, column: 35, scope: !10) +!28 = !DILocation(line: 28, column: 31, scope: !10) +!29 = !DILocation(line: 28, column: 36, scope: !10) +!30 = !DILocation(line: 29, column: 31, scope: !10) +!31 = !DILocation(line: 29, column: 36, scope: !10) +!32 = !DILocation(line: 30, column: 36, scope: !10) +!33 = !DILocation(line: 30, column: 75, scope: !10) +!34 = !DILocation(line: 30, column: 41, scope: !10) +!35 = !DILocation(line: 30, column: 31, scope: !10) +!36 = !DILocation(line: 30, column: 85, scope: !10) +!37 = !DILocation(line: 31, column: 57, scope: !10) +!38 = !DILocation(line: 32, column: 31, scope: !10) +!39 = !DILocation(line: 32, column: 41, scope: !10) +!40 = !DILocation(line: 35, column: 19, scope: !10) +!41 = !DILocation(line: 37, column: 18, scope: !10) +!42 = !DILocation(line: 38, column: 27, scope: !10) +!43 = !DILocation(line: 45, column: 35, scope: !10) +!44 = !DILocation(line: 46, column: 38, scope: !10) +!45 = !DILocation(line: 46, column: 67, scope: !10) +!46 = !DILocation(line: 47, column: 31, scope: !10) +!47 = !DILocation(line: 47, column: 48, scope: !10) +!48 = !DILocation(line: 50, column: 21, scope: !10) +!49 = !DILocation(line: 51, column: 20, scope: !10) +!50 = !DILocation(line: 52, column: 28, scope: !10) +!51 = !DILocation(line: 56, column: 31, scope: !10) +!52 = !DILocation(line: 56, column: 53, scope: !10) +!53 = !DILocation(line: 62, column: 34, scope: !10) +!54 = !DILocation(line: 62, column: 30, scope: !10) +!55 = !DILocation(line: 62, column: 25, scope: !10) +!56 = !DILocation(line: 26, column: 64, scope: !10) +!57 = !DILocation(line: 39, column: 18, scope: !10) +!58 = !DILocation(line: 28, column: 76, scope: !10) +!59 = !DILocation(line: 41, column: 19, scope: !10) +!60 = !DILocation(line: 47, column: 58, scope: !10) +!61 = !DILocation(line: 48, column: 20, scope: !10) +!62 = !DILocation(line: 30, column: 95, scope: !10) +!63 = !DILocation(line: 32, column: 81, scope: !10) +!64 = !DILocation(line: 53, column: 20, scope: !10) +!65 = !DILocation(line: 55, column: 20, scope: !10) +!66 = !DILocation(line: 56, column: 63, scope: !10) +!67 = !DILocation(line: 57, column: 20, scope: !10) +!68 = !DILocation(line: 58, column: 20, scope: !10) +!69 = !DILocation(line: 62, column: 46, scope: !10) +!70 = !DILocation(line: 63, column: 25, scope: !10) +!71 = !DILocation(line: 59, column: 20, scope: !10) +!72 = !DILocation(line: 60, column: 20, scope: !10) +!73 = !DILocation(line: 61, column: 20, scope: !10) +!74 = !DILocation(line: 63, column: 46, scope: !10) +!75 = !DILocation(line: 63, column: 4, scope: !10) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..1d70f6adaf1563b7cc88f0079d0d8f3e58217d4e --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.ttgir @@ -0,0 +1,190 @@ +#blocked = #ttg.blocked<{sizePerThread = [2], threadsPerWarp = [32], warpsPerCTA = [8], order = [0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 8 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_poi_fused_add_mul_sub_5(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg4: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg5: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg6: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg7: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<1.280000e+02> : tensor<512xf32, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<9.99999997E-7> : tensor<512xf32, #blocked> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<512xi64, #blocked> loc(#loc1) + %cst_2 = arith.constant dense<131072> : tensor<512xi64, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<0> : tensor<512xi64, #blocked> loc(#loc1) + %c512_i32 = arith.constant 512 : i32 loc(#loc1) + %cst_4 = arith.constant dense<64> : tensor<512xi32, #blocked> loc(#loc1) + %cst_5 = arith.constant dense<40> : tensor<512xi32, #blocked> loc(#loc1) + %cst_6 = arith.constant dense<2560> : tensor<512xi32, #blocked> loc(#loc1) + %cst_7 = arith.constant dense<128> : tensor<512xi32, #blocked> loc(#loc1) + %cst_8 = arith.constant dense<7168> : tensor<512xi32, #blocked> loc(#loc1) + %cst_9 = arith.constant dense : tensor<512xi1, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c512_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 512 : i32, start = 0 : i32} : tensor<512xi32, #blocked> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<512xi32, #blocked> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<512xi32, #blocked> loc(#loc5) + %5 = tt.splat %arg7 : i32 -> tensor<512xi32, #blocked> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<512xi32, #blocked> loc(#loc6) + %7 = arith.remsi %4, %cst_4 : tensor<512xi32, #blocked> loc(#loc7) + %8 = arith.divsi %4, %cst_4 : tensor<512xi32, #blocked> loc(#loc8) + %9 = arith.remsi %8, %cst_5 : tensor<512xi32, #blocked> loc(#loc9) + %10 = arith.divsi %4, %cst_6 : tensor<512xi32, #blocked> loc(#loc10) + %11 = arith.muli %9, %cst_7 : tensor<512xi32, #blocked> loc(#loc11) + %12 = arith.addi %7, %11 : tensor<512xi32, #blocked> loc(#loc12) + %13 = arith.muli %10, %cst_8 : tensor<512xi32, #blocked> loc(#loc13) + %14 = arith.addi %12, %13 : tensor<512xi32, #blocked> loc(#loc14) + %15 = tt.splat %arg0 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc15) + %16 = tt.addptr %15, %14 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc15) + %17 = tt.load %16, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc16) + %18 = arith.extf %17 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc17) + %19 = tt.splat %arg1 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc18) + %20 = tt.addptr %19, %8 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc18) + %21 = tt.load %20, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc19) + %22 = tt.splat %arg2 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc20) + %23 = tt.addptr %22, %7 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc20) + %24 = tt.load %23, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc21) + %25 = arith.extf %24 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc22) + %26 = tt.splat %arg3 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc23) + %27 = tt.addptr %26, %10 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc23) + %28 = tt.load %27, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc24) + %29 = arith.addi %7, %cst_4 : tensor<512xi32, #blocked> loc(#loc25) + %30 = arith.addi %29, %11 : tensor<512xi32, #blocked> loc(#loc26) + %31 = arith.divsi %29, %cst_7 : tensor<512xi32, #blocked> loc(#loc27) + %32 = arith.muli %31, %cst_7 : tensor<512xi32, #blocked> loc(#loc28) + %33 = arith.addi %30, %32 : tensor<512xi32, #blocked> loc(#loc29) + %34 = arith.addi %33, %13 : tensor<512xi32, #blocked> loc(#loc30) + %35 = tt.addptr %15, %34 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc31) + %36 = tt.load %35, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc32) + %37 = arith.extf %36 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc33) + %38 = arith.addi %8, %31 : tensor<512xi32, #blocked> loc(#loc34) + %39 = tt.addptr %19, %38 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc35) + %40 = tt.load %39, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc36) + %41 = tt.addptr %22, %29 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc37) + %42 = tt.load %41, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc38) + %43 = arith.extf %42 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc39) + %44 = arith.divf %21, %cst : tensor<512xf32, #blocked> loc(#loc40) + %45 = arith.addf %44, %cst_0 : tensor<512xf32, #blocked> loc(#loc41) + %46 = tt.extern_elementwise %45 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<512xf32, #blocked>) -> tensor<512xf32, #blocked> loc(#loc42) + %47 = arith.mulf %18, %46 : tensor<512xf32, #blocked> loc(#loc43) + %48 = arith.mulf %47, %25 : tensor<512xf32, #blocked> loc(#loc44) + %49 = arith.addi %28, %cst_2 : tensor<512xi64, #blocked> loc(#loc45) + %50 = arith.cmpi slt, %28, %cst_3 : tensor<512xi64, #blocked> loc(#loc46) + %51 = arith.select %50, %49, %28 : tensor<512xi1, #blocked>, tensor<512xi64, #blocked> loc(#loc47) + %52 = arith.cmpi sge, %51, %cst_3 : tensor<512xi64, #blocked> loc(#loc48) + %53 = arith.cmpi slt, %51, %cst_2 : tensor<512xi64, #blocked> loc(#loc49) + %54 = arith.andi %52, %53 : tensor<512xi1, #blocked> loc(#loc50) + %55 = arith.xori %6, %cst_9 : tensor<512xi1, #blocked> loc(#loc51) + %56 = arith.ori %54, %55 : tensor<512xi1, #blocked> loc(#loc52) + tt.assert %56, "index out of bounds: 0 <= tmp16 < 131072" : tensor<512xi1, #blocked> loc(#loc53) + %57 = arith.muli %51, %cst_1 : tensor<512xi64, #blocked> loc(#loc54) + %58 = arith.extsi %7 : tensor<512xi32, #blocked> to tensor<512xi64, #blocked> loc(#loc55) + %59 = arith.addi %58, %57 : tensor<512xi64, #blocked> loc(#loc55) + %60 = tt.splat %arg4 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc56) + %61 = tt.addptr %60, %59 : tensor<512x!tt.ptr, #blocked>, tensor<512xi64, #blocked> loc(#loc56) + %62 = tt.load %61, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc57) + %63 = arith.extf %62 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc58) + %64 = arith.mulf %48, %63 : tensor<512xf32, #blocked> loc(#loc59) + %65 = arith.divf %40, %cst : tensor<512xf32, #blocked> loc(#loc60) + %66 = arith.addf %65, %cst_0 : tensor<512xf32, #blocked> loc(#loc61) + %67 = tt.extern_elementwise %66 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<512xf32, #blocked>) -> tensor<512xf32, #blocked> loc(#loc62) + %68 = arith.mulf %37, %67 : tensor<512xf32, #blocked> loc(#loc63) + %69 = arith.mulf %68, %43 : tensor<512xf32, #blocked> loc(#loc64) + %70 = arith.extsi %29 : tensor<512xi32, #blocked> to tensor<512xi64, #blocked> loc(#loc65) + %71 = arith.addi %70, %57 : tensor<512xi64, #blocked> loc(#loc65) + %72 = tt.addptr %60, %71 : tensor<512x!tt.ptr, #blocked>, tensor<512xi64, #blocked> loc(#loc66) + %73 = tt.load %72, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc67) + %74 = arith.extf %73 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc68) + %75 = arith.mulf %69, %74 : tensor<512xf32, #blocked> loc(#loc69) + %76 = arith.subf %64, %75 : tensor<512xf32, #blocked> loc(#loc70) + %77 = arith.mulf %69, %63 : tensor<512xf32, #blocked> loc(#loc71) + %78 = arith.mulf %48, %74 : tensor<512xf32, #blocked> loc(#loc72) + %79 = arith.addf %77, %78 : tensor<512xf32, #blocked> loc(#loc73) + %80 = arith.muli %8, %cst_7 : tensor<512xi32, #blocked> loc(#loc74) + %81 = arith.addi %7, %80 : tensor<512xi32, #blocked> loc(#loc75) + %82 = tt.splat %arg5 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc76) + %83 = tt.addptr %82, %81 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc76) + %84 = arith.truncf %76 : tensor<512xf32, #blocked> to tensor<512xbf16, #blocked> loc(#loc77) + tt.store %83, %84, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc77) + %85 = tt.splat %arg6 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc78) + %86 = tt.addptr %85, %81 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc78) + %87 = arith.truncf %79 : tensor<512xf32, #blocked> to tensor<512xbf16, #blocked> loc(#loc79) + tt.store %86, %87, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc79) + tt.return loc(#loc80) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":23:27) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:39) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:35) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:49) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:44) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:30) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:54) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:64) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":27:30) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":27:35) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":28:31) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":28:36) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":28:76) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":29:31) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":29:36) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:36) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:41) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:68) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:55) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:50) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:75) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:31) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:85) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:95) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":31:37) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":31:31) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":31:57) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":32:31) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":32:41) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":32:81) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":35:19) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":37:18) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":38:27) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":39:18) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":41:19) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":43:20) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":44:20) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":45:35) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:28) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:46) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:38) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:59) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:57) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:67) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:40) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:36) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:31) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:48) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:58) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":48:20) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":50:21) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":51:20) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":52:28) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":53:20) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":55:20) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:41) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:31) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:53) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:63) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":57:20) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":58:20) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":59:20) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":60:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":61:20) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:34) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:30) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:25) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:46) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":63:25) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":63:46) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":63:4) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.ttir new file mode 100644 index 0000000000000000000000000000000000000000..a089cf384b087e95c71eadd25da3daa4f6130cf3 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/45LDULZ442N5JFUIVYNUNADONVNIWAD3NTIV4IAI7XAWL753KBVQ/triton_poi_fused_add_mul_sub_5.ttir @@ -0,0 +1,189 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0) +module { + tt.func public @triton_poi_fused_add_mul_sub_5(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg4: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg5: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg6: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0), %arg7: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0> : tensor<512xi64> loc(#loc1) + %cst_0 = arith.constant dense<131072> : tensor<512xi64> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<512xi64> loc(#loc1) + %cst_2 = arith.constant dense : tensor<512xi1> loc(#loc1) + %cst_3 = arith.constant dense<9.99999997E-7> : tensor<512xf32> loc(#loc1) + %cst_4 = arith.constant dense<1.280000e+02> : tensor<512xf32> loc(#loc1) + %cst_5 = arith.constant dense<7168> : tensor<512xi32> loc(#loc1) + %cst_6 = arith.constant dense<128> : tensor<512xi32> loc(#loc1) + %cst_7 = arith.constant dense<2560> : tensor<512xi32> loc(#loc1) + %cst_8 = arith.constant dense<40> : tensor<512xi32> loc(#loc1) + %cst_9 = arith.constant dense<64> : tensor<512xi32> loc(#loc1) + %c512_i32 = arith.constant 512 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c512_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 512 : i32, start = 0 : i32} : tensor<512xi32> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<512xi32> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<512xi32> loc(#loc5) + %5 = tt.splat %arg7 : i32 -> tensor<512xi32> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<512xi32> loc(#loc6) + %7 = arith.remsi %4, %cst_9 : tensor<512xi32> loc(#loc7) + %8 = arith.divsi %4, %cst_9 : tensor<512xi32> loc(#loc8) + %9 = arith.remsi %8, %cst_8 : tensor<512xi32> loc(#loc9) + %10 = arith.divsi %4, %cst_7 : tensor<512xi32> loc(#loc10) + %11 = arith.muli %9, %cst_6 : tensor<512xi32> loc(#loc11) + %12 = arith.addi %7, %11 : tensor<512xi32> loc(#loc12) + %13 = arith.muli %10, %cst_5 : tensor<512xi32> loc(#loc13) + %14 = arith.addi %12, %13 : tensor<512xi32> loc(#loc14) + %15 = tt.splat %arg0 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc15) + %16 = tt.addptr %15, %14 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc15) + %17 = tt.load %16, %6 : tensor<512x!tt.ptr> loc(#loc16) + %18 = arith.extf %17 : tensor<512xbf16> to tensor<512xf32> loc(#loc17) + %19 = tt.splat %arg1 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc18) + %20 = tt.addptr %19, %8 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc18) + %21 = tt.load %20, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc19) + %22 = tt.splat %arg2 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc20) + %23 = tt.addptr %22, %7 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc20) + %24 = tt.load %23, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc21) + %25 = arith.extf %24 : tensor<512xbf16> to tensor<512xf32> loc(#loc22) + %26 = tt.splat %arg3 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc23) + %27 = tt.addptr %26, %10 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc23) + %28 = tt.load %27, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc24) + %29 = arith.addi %7, %cst_9 : tensor<512xi32> loc(#loc25) + %30 = arith.addi %29, %11 : tensor<512xi32> loc(#loc26) + %31 = arith.divsi %29, %cst_6 : tensor<512xi32> loc(#loc27) + %32 = arith.muli %31, %cst_6 : tensor<512xi32> loc(#loc28) + %33 = arith.addi %30, %32 : tensor<512xi32> loc(#loc29) + %34 = arith.addi %33, %13 : tensor<512xi32> loc(#loc30) + %35 = tt.addptr %15, %34 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc31) + %36 = tt.load %35, %6 : tensor<512x!tt.ptr> loc(#loc32) + %37 = arith.extf %36 : tensor<512xbf16> to tensor<512xf32> loc(#loc33) + %38 = arith.addi %8, %31 : tensor<512xi32> loc(#loc34) + %39 = tt.addptr %19, %38 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc35) + %40 = tt.load %39, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc36) + %41 = tt.addptr %22, %29 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc37) + %42 = tt.load %41, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr> loc(#loc38) + %43 = arith.extf %42 : tensor<512xbf16> to tensor<512xf32> loc(#loc39) + %44 = arith.divf %21, %cst_4 : tensor<512xf32> loc(#loc40) + %45 = arith.addf %44, %cst_3 : tensor<512xf32> loc(#loc41) + %46 = tt.extern_elementwise %45 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<512xf32>) -> tensor<512xf32> loc(#loc42) + %47 = arith.mulf %18, %46 : tensor<512xf32> loc(#loc43) + %48 = arith.mulf %47, %25 : tensor<512xf32> loc(#loc44) + %49 = arith.addi %28, %cst_0 : tensor<512xi64> loc(#loc45) + %50 = arith.cmpi slt, %28, %cst : tensor<512xi64> loc(#loc46) + %51 = arith.select %50, %49, %28 : tensor<512xi1>, tensor<512xi64> loc(#loc47) + %52 = arith.cmpi sge, %51, %cst : tensor<512xi64> loc(#loc48) + %53 = arith.cmpi slt, %51, %cst_0 : tensor<512xi64> loc(#loc49) + %54 = arith.andi %52, %53 : tensor<512xi1> loc(#loc50) + %55 = arith.xori %6, %cst_2 : tensor<512xi1> loc(#loc51) + %56 = arith.ori %54, %55 : tensor<512xi1> loc(#loc52) + tt.assert %56, "index out of bounds: 0 <= tmp16 < 131072" : tensor<512xi1> loc(#loc53) + %57 = arith.muli %51, %cst_1 : tensor<512xi64> loc(#loc54) + %58 = arith.extsi %7 : tensor<512xi32> to tensor<512xi64> loc(#loc55) + %59 = arith.addi %58, %57 : tensor<512xi64> loc(#loc55) + %60 = tt.splat %arg4 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc56) + %61 = tt.addptr %60, %59 : tensor<512x!tt.ptr>, tensor<512xi64> loc(#loc56) + %62 = tt.load %61, %6 : tensor<512x!tt.ptr> loc(#loc57) + %63 = arith.extf %62 : tensor<512xbf16> to tensor<512xf32> loc(#loc58) + %64 = arith.mulf %48, %63 : tensor<512xf32> loc(#loc59) + %65 = arith.divf %40, %cst_4 : tensor<512xf32> loc(#loc60) + %66 = arith.addf %65, %cst_3 : tensor<512xf32> loc(#loc61) + %67 = tt.extern_elementwise %66 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<512xf32>) -> tensor<512xf32> loc(#loc62) + %68 = arith.mulf %37, %67 : tensor<512xf32> loc(#loc63) + %69 = arith.mulf %68, %43 : tensor<512xf32> loc(#loc64) + %70 = arith.extsi %29 : tensor<512xi32> to tensor<512xi64> loc(#loc65) + %71 = arith.addi %70, %57 : tensor<512xi64> loc(#loc65) + %72 = tt.addptr %60, %71 : tensor<512x!tt.ptr>, tensor<512xi64> loc(#loc66) + %73 = tt.load %72, %6 : tensor<512x!tt.ptr> loc(#loc67) + %74 = arith.extf %73 : tensor<512xbf16> to tensor<512xf32> loc(#loc68) + %75 = arith.mulf %69, %74 : tensor<512xf32> loc(#loc69) + %76 = arith.subf %64, %75 : tensor<512xf32> loc(#loc70) + %77 = arith.mulf %69, %63 : tensor<512xf32> loc(#loc71) + %78 = arith.mulf %48, %74 : tensor<512xf32> loc(#loc72) + %79 = arith.addf %77, %78 : tensor<512xf32> loc(#loc73) + %80 = arith.muli %8, %cst_6 : tensor<512xi32> loc(#loc74) + %81 = arith.addi %7, %80 : tensor<512xi32> loc(#loc75) + %82 = tt.splat %arg5 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc76) + %83 = tt.addptr %82, %81 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc76) + %84 = arith.truncf %76 : tensor<512xf32> to tensor<512xbf16> loc(#loc77) + tt.store %83, %84, %6 : tensor<512x!tt.ptr> loc(#loc77) + %85 = tt.splat %arg6 : !tt.ptr -> tensor<512x!tt.ptr> loc(#loc78) + %86 = tt.addptr %85, %81 : tensor<512x!tt.ptr>, tensor<512xi32> loc(#loc78) + %87 = arith.truncf %79 : tensor<512xf32> to tensor<512xbf16> loc(#loc79) + tt.store %86, %87, %6 : tensor<512x!tt.ptr> loc(#loc79) + tt.return loc(#loc80) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":23:27) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:39) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:35) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:49) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:44) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:30) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:54) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":26:64) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":27:30) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":27:35) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":28:31) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":28:36) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":28:76) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":29:31) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":29:36) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:36) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:41) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:68) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:55) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:50) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:75) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:31) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:85) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":30:95) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":31:37) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":31:31) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":31:57) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":32:31) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":32:41) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":32:81) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":35:19) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":37:18) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":38:27) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":39:18) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":41:19) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":43:20) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":44:20) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":45:35) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:28) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:46) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:38) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:59) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:57) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":46:67) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:40) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:36) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:31) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:48) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":47:58) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":48:20) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":50:21) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":51:20) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":52:28) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":53:20) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":55:20) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:41) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:31) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:53) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":56:63) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":57:20) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":58:20) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":59:20) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":60:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":61:20) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:34) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:30) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:25) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":62:46) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":63:25) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":63:46) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py":63:4) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/__grp__triton_poi_fused_add_mul_sub_5.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/__grp__triton_poi_fused_add_mul_sub_5.json new file mode 100644 index 0000000000000000000000000000000000000000..31c68beb90867aa86bf6181db22d4fbaa772f701 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/__grp__triton_poi_fused_add_mul_sub_5.json @@ -0,0 +1 @@ +{"child_paths": {"triton_poi_fused_add_mul_sub_5.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.ttir", "triton_poi_fused_add_mul_sub_5.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.ttgir", "triton_poi_fused_add_mul_sub_5.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.llir", "triton_poi_fused_add_mul_sub_5.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.ptx", "triton_poi_fused_add_mul_sub_5.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.cubin", "triton_poi_fused_add_mul_sub_5.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.llir new file mode 100644 index 0000000000000000000000000000000000000000..ff0b898b04aab397e25d00407817f4f9eca83514 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.llir @@ -0,0 +1,671 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@assertFunc_0 = internal constant [8 x i8] c"unknown\00" +@assertFile_0 = internal constant [134 x i8] c"/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py\00" +@assertMessage_0 = internal constant [41 x i8] c"index out of bounds: 0 <= tmp16 < 131072\00" +@.str = private unnamed_addr constant [11 x i8] c"__CUDA_FTZ\00", align 1 + +; Function Attrs: noreturn +declare !dbg !6 void @__assertfail(ptr, ptr, i32, ptr, i64) local_unnamed_addr #0 + +define ptx_kernel void @triton_poi_fused_add_mul_sub_5(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(1) %2, ptr addrspace(1) %3, ptr addrspace(1) %4, ptr addrspace(1) %5, ptr addrspace(1) %6, i32 %7, ptr addrspace(1) readnone captures(none) %8) local_unnamed_addr !dbg !10 { + %10 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !11 + %11 = shl i32 %10, 10, !dbg !12 + %12 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !13 + %13 = shl i32 %12, 3, !dbg !13 + %14 = and i32 %13, 1016, !dbg !13 + %15 = or disjoint i32 %14, %11, !dbg !14 + %16 = or disjoint i32 %15, 1, !dbg !14 + %17 = or disjoint i32 %15, 2, !dbg !14 + %18 = or disjoint i32 %15, 3, !dbg !14 + %19 = or disjoint i32 %15, 4, !dbg !14 + %20 = or disjoint i32 %15, 5, !dbg !14 + %21 = or disjoint i32 %15, 6, !dbg !14 + %22 = or disjoint i32 %15, 7, !dbg !14 + %23 = icmp slt i32 %15, %7, !dbg !15 + %24 = sdiv i32 %15, 64, !dbg !16 + %25 = mul i32 %24, 64, !dbg !17 + %.decomposed = sub i32 %15, %25, !dbg !17 + %26 = srem i32 %16, 64, !dbg !17 + %27 = srem i32 %17, 64, !dbg !17 + %28 = srem i32 %18, 64, !dbg !17 + %29 = srem i32 %19, 64, !dbg !17 + %30 = srem i32 %20, 64, !dbg !17 + %31 = srem i32 %21, 64, !dbg !17 + %32 = srem i32 %22, 64, !dbg !17 + %33 = srem i32 %24, 40, !dbg !18 + %34 = sdiv i32 %15, 2560, !dbg !19 + %35 = shl nsw i32 %33, 7, !dbg !20 + %36 = mul i32 %34, 7168, !dbg !21 + %37 = add i32 %35, %36, !dbg !22 + %38 = add i32 %37, %.decomposed, !dbg !23 + %39 = sext i32 %38 to i64, !dbg !24 + %40 = getelementptr bfloat, ptr addrspace(1) %0, i64 %39, !dbg !24 + %41 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %40, i1 %23) #5, !dbg !25 + %42 = sext i32 %24 to i64, !dbg !26 + %43 = getelementptr float, ptr addrspace(1) %1, i64 %42, !dbg !26 + %44 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %45 = bitcast i32 %44 to float, !dbg !27 + %46 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %47 = bitcast i32 %46 to float, !dbg !27 + %48 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %49 = bitcast i32 %48 to float, !dbg !27 + %50 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %51 = bitcast i32 %50 to float, !dbg !27 + %52 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %53 = bitcast i32 %52 to float, !dbg !27 + %54 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %55 = bitcast i32 %54 to float, !dbg !27 + %56 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %57 = bitcast i32 %56 to float, !dbg !27 + %58 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !27 + %59 = bitcast i32 %58 to float, !dbg !27 + %60 = sext i32 %.decomposed to i64, !dbg !28 + %61 = getelementptr bfloat, ptr addrspace(1) %2, i64 %60, !dbg !28 + %62 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %61, i1 %23) #5, !dbg !29 + %63 = sext i32 %34 to i64, !dbg !30 + %64 = getelementptr i64, ptr addrspace(1) %3, i64 %63, !dbg !30 + %65 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %66 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %67 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %68 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %69 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %70 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %71 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %72 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %64, i1 %23) #5, !dbg !31 + %73 = add nsw i32 %.decomposed, 64, !dbg !32 + %74 = add i32 %37, %73, !dbg !33 + %75 = or disjoint i32 %37, 64, !dbg !34 + %76 = add nsw i32 %75, %26, !dbg !33 + %77 = add nsw i32 %75, %27, !dbg !33 + %78 = add nsw i32 %75, %28, !dbg !33 + %79 = add nsw i32 %75, %29, !dbg !33 + %80 = add nsw i32 %75, %30, !dbg !33 + %81 = add nsw i32 %75, %31, !dbg !33 + %82 = add nsw i32 %75, %32, !dbg !33 + %83 = sext i32 %74 to i64, !dbg !35 + %84 = getelementptr bfloat, ptr addrspace(1) %0, i64 %83, !dbg !35 + %85 = sext i32 %76 to i64, !dbg !35 + %86 = getelementptr bfloat, ptr addrspace(1) %0, i64 %85, !dbg !35 + %87 = sext i32 %77 to i64, !dbg !35 + %88 = getelementptr bfloat, ptr addrspace(1) %0, i64 %87, !dbg !35 + %89 = sext i32 %78 to i64, !dbg !35 + %90 = getelementptr bfloat, ptr addrspace(1) %0, i64 %89, !dbg !35 + %91 = sext i32 %79 to i64, !dbg !35 + %92 = getelementptr bfloat, ptr addrspace(1) %0, i64 %91, !dbg !35 + %93 = sext i32 %80 to i64, !dbg !35 + %94 = getelementptr bfloat, ptr addrspace(1) %0, i64 %93, !dbg !35 + %95 = sext i32 %81 to i64, !dbg !35 + %96 = getelementptr bfloat, ptr addrspace(1) %0, i64 %95, !dbg !35 + %97 = sext i32 %82 to i64, !dbg !35 + %98 = getelementptr bfloat, ptr addrspace(1) %0, i64 %97, !dbg !35 + %99 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %84, i1 %23) #5, !dbg !36 + %100 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %86, i1 %23) #5, !dbg !36 + %101 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %88, i1 %23) #5, !dbg !36 + %102 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %90, i1 %23) #5, !dbg !36 + %103 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %92, i1 %23) #5, !dbg !36 + %104 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %94, i1 %23) #5, !dbg !36 + %105 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %96, i1 %23) #5, !dbg !36 + %106 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %98, i1 %23) #5, !dbg !36 + %107 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %108 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %109 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %110 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %111 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %112 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %113 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %114 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %43, i1 %23) #5, !dbg !37 + %115 = zext nneg i32 %73 to i64, !dbg !38 + %116 = getelementptr bfloat, ptr addrspace(1) %2, i64 %115, !dbg !38 + %117 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %116, i1 %23) #5, !dbg !39 + %118 = tail call float @llvm.nvvm.div.full(float %45, float 1.280000e+02), !dbg !40 + %119 = tail call float @llvm.nvvm.div.full(float %47, float 1.280000e+02), !dbg !40 + %120 = tail call float @llvm.nvvm.div.full(float %49, float 1.280000e+02), !dbg !40 + %121 = tail call float @llvm.nvvm.div.full(float %51, float 1.280000e+02), !dbg !40 + %122 = tail call float @llvm.nvvm.div.full(float %53, float 1.280000e+02), !dbg !40 + %123 = tail call float @llvm.nvvm.div.full(float %55, float 1.280000e+02), !dbg !40 + %124 = tail call float @llvm.nvvm.div.full(float %57, float 1.280000e+02), !dbg !40 + %125 = tail call float @llvm.nvvm.div.full(float %59, float 1.280000e+02), !dbg !40 + %126 = fadd float %118, 0x3EB0C6F7A0000000, !dbg !41 + %127 = fadd float %119, 0x3EB0C6F7A0000000, !dbg !41 + %128 = fadd float %120, 0x3EB0C6F7A0000000, !dbg !41 + %129 = fadd float %121, 0x3EB0C6F7A0000000, !dbg !41 + %130 = fadd float %122, 0x3EB0C6F7A0000000, !dbg !41 + %131 = fadd float %123, 0x3EB0C6F7A0000000, !dbg !41 + %132 = fadd float %124, 0x3EB0C6F7A0000000, !dbg !41 + %133 = fadd float %125, 0x3EB0C6F7A0000000, !dbg !41 + %134 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i = icmp eq i32 %134, 0, !dbg !42 + br i1 %.not.i, label %137, label %135, !dbg !42 + +135: ; preds = %9 + %136 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %126), !dbg !42 + br label %__nv_rsqrtf.exit, !dbg !42 + +137: ; preds = %9 + %138 = tail call float @llvm.nvvm.rsqrt.approx.f(float %126), !dbg !42 + br label %__nv_rsqrtf.exit, !dbg !42 + +__nv_rsqrtf.exit: ; preds = %135, %137 + %.0.i = phi float [ %136, %135 ], [ %138, %137 ], !dbg !42 + %139 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i2 = icmp eq i32 %139, 0, !dbg !42 + br i1 %.not.i2, label %142, label %140, !dbg !42 + +140: ; preds = %__nv_rsqrtf.exit + %141 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %127), !dbg !42 + br label %__nv_rsqrtf.exit4, !dbg !42 + +142: ; preds = %__nv_rsqrtf.exit + %143 = tail call float @llvm.nvvm.rsqrt.approx.f(float %127), !dbg !42 + br label %__nv_rsqrtf.exit4, !dbg !42 + +__nv_rsqrtf.exit4: ; preds = %140, %142 + %.0.i3 = phi float [ %141, %140 ], [ %143, %142 ], !dbg !42 + %144 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i5 = icmp eq i32 %144, 0, !dbg !42 + br i1 %.not.i5, label %147, label %145, !dbg !42 + +145: ; preds = %__nv_rsqrtf.exit4 + %146 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %128), !dbg !42 + br label %__nv_rsqrtf.exit7, !dbg !42 + +147: ; preds = %__nv_rsqrtf.exit4 + %148 = tail call float @llvm.nvvm.rsqrt.approx.f(float %128), !dbg !42 + br label %__nv_rsqrtf.exit7, !dbg !42 + +__nv_rsqrtf.exit7: ; preds = %145, %147 + %.0.i6 = phi float [ %146, %145 ], [ %148, %147 ], !dbg !42 + %149 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i8 = icmp eq i32 %149, 0, !dbg !42 + br i1 %.not.i8, label %152, label %150, !dbg !42 + +150: ; preds = %__nv_rsqrtf.exit7 + %151 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %129), !dbg !42 + br label %__nv_rsqrtf.exit10, !dbg !42 + +152: ; preds = %__nv_rsqrtf.exit7 + %153 = tail call float @llvm.nvvm.rsqrt.approx.f(float %129), !dbg !42 + br label %__nv_rsqrtf.exit10, !dbg !42 + +__nv_rsqrtf.exit10: ; preds = %150, %152 + %.0.i9 = phi float [ %151, %150 ], [ %153, %152 ], !dbg !42 + %154 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i11 = icmp eq i32 %154, 0, !dbg !42 + br i1 %.not.i11, label %157, label %155, !dbg !42 + +155: ; preds = %__nv_rsqrtf.exit10 + %156 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %130), !dbg !42 + br label %__nv_rsqrtf.exit13, !dbg !42 + +157: ; preds = %__nv_rsqrtf.exit10 + %158 = tail call float @llvm.nvvm.rsqrt.approx.f(float %130), !dbg !42 + br label %__nv_rsqrtf.exit13, !dbg !42 + +__nv_rsqrtf.exit13: ; preds = %155, %157 + %.0.i12 = phi float [ %156, %155 ], [ %158, %157 ], !dbg !42 + %159 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i14 = icmp eq i32 %159, 0, !dbg !42 + br i1 %.not.i14, label %162, label %160, !dbg !42 + +160: ; preds = %__nv_rsqrtf.exit13 + %161 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %131), !dbg !42 + br label %__nv_rsqrtf.exit16, !dbg !42 + +162: ; preds = %__nv_rsqrtf.exit13 + %163 = tail call float @llvm.nvvm.rsqrt.approx.f(float %131), !dbg !42 + br label %__nv_rsqrtf.exit16, !dbg !42 + +__nv_rsqrtf.exit16: ; preds = %160, %162 + %.0.i15 = phi float [ %161, %160 ], [ %163, %162 ], !dbg !42 + %164 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i17 = icmp eq i32 %164, 0, !dbg !42 + br i1 %.not.i17, label %167, label %165, !dbg !42 + +165: ; preds = %__nv_rsqrtf.exit16 + %166 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %132), !dbg !42 + br label %__nv_rsqrtf.exit19, !dbg !42 + +167: ; preds = %__nv_rsqrtf.exit16 + %168 = tail call float @llvm.nvvm.rsqrt.approx.f(float %132), !dbg !42 + br label %__nv_rsqrtf.exit19, !dbg !42 + +__nv_rsqrtf.exit19: ; preds = %165, %167 + %.0.i18 = phi float [ %166, %165 ], [ %168, %167 ], !dbg !42 + %169 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !42 + %.not.i20 = icmp eq i32 %169, 0, !dbg !42 + br i1 %.not.i20, label %172, label %170, !dbg !42 + +170: ; preds = %__nv_rsqrtf.exit19 + %171 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %133), !dbg !42 + br label %__nv_rsqrtf.exit22, !dbg !42 + +172: ; preds = %__nv_rsqrtf.exit19 + %173 = tail call float @llvm.nvvm.rsqrt.approx.f(float %133), !dbg !42 + br label %__nv_rsqrtf.exit22, !dbg !42 + +__nv_rsqrtf.exit22: ; preds = %170, %172 + %.0.i21 = phi float [ %171, %170 ], [ %173, %172 ], !dbg !42 + %174 = lshr i64 %65, 46, !dbg !43 + %175 = and i64 %174, 131072, !dbg !43 + %176 = add i64 %175, %65, !dbg !43 + %177 = icmp ugt i64 %176, 131071, !dbg !44 + %.not1 = and i1 %23, %177, !dbg !45 + br i1 %.not1, label %178, label %179, !dbg !45 + +178: ; preds = %__nv_rsqrtf.exit22 + tail call void @__assertfail(ptr nonnull @assertMessage_0, ptr nonnull @assertFile_0, i32 46, ptr nonnull @assertFunc_0, i64 1), !dbg !45 + unreachable, !dbg !45 + +179: ; preds = %__nv_rsqrtf.exit22 + %180 = bitcast i32 %114 to float, !dbg !37 + %181 = bitcast i32 %113 to float, !dbg !37 + %182 = bitcast i32 %112 to float, !dbg !37 + %183 = bitcast i32 %111 to float, !dbg !37 + %184 = bitcast i32 %110 to float, !dbg !37 + %185 = bitcast i32 %109 to float, !dbg !37 + %186 = bitcast i32 %108 to float, !dbg !37 + %187 = bitcast i32 %107 to float, !dbg !37 + tail call void @llvm.nvvm.barrier0(), !dbg !45 + %.idx = shl i64 %176, 8, !dbg !46 + %188 = getelementptr i8, ptr addrspace(1) %4, i64 %.idx, !dbg !46 + %189 = getelementptr bfloat, ptr addrspace(1) %188, i64 %60, !dbg !46 + %190 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %189, i1 %23) #5, !dbg !47 + %191 = tail call float @llvm.nvvm.div.full(float %187, float 1.280000e+02), !dbg !48 + %192 = tail call float @llvm.nvvm.div.full(float %186, float 1.280000e+02), !dbg !48 + %193 = tail call float @llvm.nvvm.div.full(float %185, float 1.280000e+02), !dbg !48 + %194 = tail call float @llvm.nvvm.div.full(float %184, float 1.280000e+02), !dbg !48 + %195 = tail call float @llvm.nvvm.div.full(float %183, float 1.280000e+02), !dbg !48 + %196 = tail call float @llvm.nvvm.div.full(float %182, float 1.280000e+02), !dbg !48 + %197 = tail call float @llvm.nvvm.div.full(float %181, float 1.280000e+02), !dbg !48 + %198 = tail call float @llvm.nvvm.div.full(float %180, float 1.280000e+02), !dbg !48 + %199 = fadd float %191, 0x3EB0C6F7A0000000, !dbg !49 + %200 = fadd float %192, 0x3EB0C6F7A0000000, !dbg !49 + %201 = fadd float %193, 0x3EB0C6F7A0000000, !dbg !49 + %202 = fadd float %194, 0x3EB0C6F7A0000000, !dbg !49 + %203 = fadd float %195, 0x3EB0C6F7A0000000, !dbg !49 + %204 = fadd float %196, 0x3EB0C6F7A0000000, !dbg !49 + %205 = fadd float %197, 0x3EB0C6F7A0000000, !dbg !49 + %206 = fadd float %198, 0x3EB0C6F7A0000000, !dbg !49 + %207 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i23 = icmp eq i32 %207, 0, !dbg !50 + br i1 %.not.i23, label %210, label %208, !dbg !50 + +208: ; preds = %179 + %209 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %199), !dbg !50 + br label %__nv_rsqrtf.exit25, !dbg !50 + +210: ; preds = %179 + %211 = tail call float @llvm.nvvm.rsqrt.approx.f(float %199), !dbg !50 + br label %__nv_rsqrtf.exit25, !dbg !50 + +__nv_rsqrtf.exit25: ; preds = %208, %210 + %.0.i24 = phi float [ %209, %208 ], [ %211, %210 ], !dbg !50 + %212 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i26 = icmp eq i32 %212, 0, !dbg !50 + br i1 %.not.i26, label %215, label %213, !dbg !50 + +213: ; preds = %__nv_rsqrtf.exit25 + %214 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %200), !dbg !50 + br label %__nv_rsqrtf.exit28, !dbg !50 + +215: ; preds = %__nv_rsqrtf.exit25 + %216 = tail call float @llvm.nvvm.rsqrt.approx.f(float %200), !dbg !50 + br label %__nv_rsqrtf.exit28, !dbg !50 + +__nv_rsqrtf.exit28: ; preds = %213, %215 + %.0.i27 = phi float [ %214, %213 ], [ %216, %215 ], !dbg !50 + %217 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i29 = icmp eq i32 %217, 0, !dbg !50 + br i1 %.not.i29, label %220, label %218, !dbg !50 + +218: ; preds = %__nv_rsqrtf.exit28 + %219 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %201), !dbg !50 + br label %__nv_rsqrtf.exit31, !dbg !50 + +220: ; preds = %__nv_rsqrtf.exit28 + %221 = tail call float @llvm.nvvm.rsqrt.approx.f(float %201), !dbg !50 + br label %__nv_rsqrtf.exit31, !dbg !50 + +__nv_rsqrtf.exit31: ; preds = %218, %220 + %.0.i30 = phi float [ %219, %218 ], [ %221, %220 ], !dbg !50 + %222 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i32 = icmp eq i32 %222, 0, !dbg !50 + br i1 %.not.i32, label %225, label %223, !dbg !50 + +223: ; preds = %__nv_rsqrtf.exit31 + %224 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %202), !dbg !50 + br label %__nv_rsqrtf.exit34, !dbg !50 + +225: ; preds = %__nv_rsqrtf.exit31 + %226 = tail call float @llvm.nvvm.rsqrt.approx.f(float %202), !dbg !50 + br label %__nv_rsqrtf.exit34, !dbg !50 + +__nv_rsqrtf.exit34: ; preds = %223, %225 + %.0.i33 = phi float [ %224, %223 ], [ %226, %225 ], !dbg !50 + %227 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i35 = icmp eq i32 %227, 0, !dbg !50 + br i1 %.not.i35, label %230, label %228, !dbg !50 + +228: ; preds = %__nv_rsqrtf.exit34 + %229 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %203), !dbg !50 + br label %__nv_rsqrtf.exit37, !dbg !50 + +230: ; preds = %__nv_rsqrtf.exit34 + %231 = tail call float @llvm.nvvm.rsqrt.approx.f(float %203), !dbg !50 + br label %__nv_rsqrtf.exit37, !dbg !50 + +__nv_rsqrtf.exit37: ; preds = %228, %230 + %.0.i36 = phi float [ %229, %228 ], [ %231, %230 ], !dbg !50 + %232 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i38 = icmp eq i32 %232, 0, !dbg !50 + br i1 %.not.i38, label %235, label %233, !dbg !50 + +233: ; preds = %__nv_rsqrtf.exit37 + %234 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %204), !dbg !50 + br label %__nv_rsqrtf.exit40, !dbg !50 + +235: ; preds = %__nv_rsqrtf.exit37 + %236 = tail call float @llvm.nvvm.rsqrt.approx.f(float %204), !dbg !50 + br label %__nv_rsqrtf.exit40, !dbg !50 + +__nv_rsqrtf.exit40: ; preds = %233, %235 + %.0.i39 = phi float [ %234, %233 ], [ %236, %235 ], !dbg !50 + %237 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i41 = icmp eq i32 %237, 0, !dbg !50 + br i1 %.not.i41, label %240, label %238, !dbg !50 + +238: ; preds = %__nv_rsqrtf.exit40 + %239 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %205), !dbg !50 + br label %__nv_rsqrtf.exit43, !dbg !50 + +240: ; preds = %__nv_rsqrtf.exit40 + %241 = tail call float @llvm.nvvm.rsqrt.approx.f(float %205), !dbg !50 + br label %__nv_rsqrtf.exit43, !dbg !50 + +__nv_rsqrtf.exit43: ; preds = %238, %240 + %.0.i42 = phi float [ %239, %238 ], [ %241, %240 ], !dbg !50 + %242 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !50 + %.not.i44 = icmp eq i32 %242, 0, !dbg !50 + br i1 %.not.i44, label %245, label %243, !dbg !50 + +243: ; preds = %__nv_rsqrtf.exit43 + %244 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %206), !dbg !50 + br label %__nv_rsqrtf.exit46, !dbg !50 + +245: ; preds = %__nv_rsqrtf.exit43 + %246 = tail call float @llvm.nvvm.rsqrt.approx.f(float %206), !dbg !50 + br label %__nv_rsqrtf.exit46, !dbg !50 + +__nv_rsqrtf.exit46: ; preds = %243, %245 + %.0.i45 = phi float [ %244, %243 ], [ %246, %245 ], !dbg !50 + %247 = extractvalue { i32, i32, i32, i32 } %41, 3, !dbg !25 + %248 = bitcast i32 %247 to <2 x bfloat>, !dbg !25 + %249 = extractvalue { i32, i32, i32, i32 } %62, 3, !dbg !29 + %250 = bitcast i32 %249 to <2 x bfloat>, !dbg !29 + %251 = extractvalue { i32, i32, i32, i32 } %190, 3, !dbg !47 + %252 = bitcast i32 %251 to <2 x bfloat>, !dbg !47 + %253 = extractvalue { i32, i32, i32, i32 } %41, 2, !dbg !25 + %254 = bitcast i32 %253 to <2 x bfloat>, !dbg !25 + %255 = extractvalue { i32, i32, i32, i32 } %62, 2, !dbg !29 + %256 = bitcast i32 %255 to <2 x bfloat>, !dbg !29 + %257 = extractvalue { i32, i32, i32, i32 } %190, 2, !dbg !47 + %258 = bitcast i32 %257 to <2 x bfloat>, !dbg !47 + %259 = extractvalue { i32, i32, i32, i32 } %41, 1, !dbg !25 + %260 = bitcast i32 %259 to <2 x bfloat>, !dbg !25 + %261 = extractvalue { i32, i32, i32, i32 } %62, 1, !dbg !29 + %262 = bitcast i32 %261 to <2 x bfloat>, !dbg !29 + %263 = extractvalue { i32, i32, i32, i32 } %190, 1, !dbg !47 + %264 = bitcast i32 %263 to <2 x bfloat>, !dbg !47 + %265 = extractvalue { i32, i32, i32, i32 } %41, 0, !dbg !25 + %266 = bitcast i32 %265 to <2 x bfloat>, !dbg !25 + %267 = extractvalue { i32, i32, i32, i32 } %62, 0, !dbg !29 + %268 = bitcast i32 %267 to <2 x bfloat>, !dbg !29 + %269 = extractvalue { i32, i32, i32, i32 } %190, 0, !dbg !47 + %270 = bitcast i32 %269 to <2 x bfloat>, !dbg !47 + %271 = insertelement <2 x i16> poison, i16 %99, i64 0, !dbg !36 + %272 = insertelement <2 x i16> %271, i16 %100, i64 1, !dbg !36 + %273 = bitcast <2 x i16> %272 to <2 x bfloat>, !dbg !36 + %274 = insertelement <2 x i16> poison, i16 %101, i64 0, !dbg !36 + %275 = insertelement <2 x i16> %274, i16 %102, i64 1, !dbg !36 + %276 = bitcast <2 x i16> %275 to <2 x bfloat>, !dbg !36 + %277 = insertelement <2 x i16> poison, i16 %103, i64 0, !dbg !36 + %278 = insertelement <2 x i16> %277, i16 %104, i64 1, !dbg !36 + %279 = bitcast <2 x i16> %278 to <2 x bfloat>, !dbg !36 + %280 = insertelement <2 x i16> poison, i16 %105, i64 0, !dbg !36 + %281 = insertelement <2 x i16> %280, i16 %106, i64 1, !dbg !36 + %282 = bitcast <2 x i16> %281 to <2 x bfloat>, !dbg !36 + %283 = extractvalue { i32, i32, i32, i32 } %117, 0, !dbg !39 + %284 = bitcast i32 %283 to <2 x bfloat>, !dbg !39 + %285 = extractvalue { i32, i32, i32, i32 } %117, 1, !dbg !39 + %286 = bitcast i32 %285 to <2 x bfloat>, !dbg !39 + %287 = extractvalue { i32, i32, i32, i32 } %117, 2, !dbg !39 + %288 = bitcast i32 %287 to <2 x bfloat>, !dbg !39 + %289 = extractvalue { i32, i32, i32, i32 } %117, 3, !dbg !39 + %290 = bitcast i32 %289 to <2 x bfloat>, !dbg !39 + %291 = getelementptr bfloat, ptr addrspace(1) %188, i64 %115, !dbg !51 + %292 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %291, i1 %23) #5, !dbg !52 + %293 = extractvalue { i32, i32, i32, i32 } %292, 0, !dbg !52 + %294 = bitcast i32 %293 to <2 x bfloat>, !dbg !52 + %295 = extractvalue { i32, i32, i32, i32 } %292, 1, !dbg !52 + %296 = bitcast i32 %295 to <2 x bfloat>, !dbg !52 + %297 = extractvalue { i32, i32, i32, i32 } %292, 2, !dbg !52 + %298 = bitcast i32 %297 to <2 x bfloat>, !dbg !52 + %299 = extractvalue { i32, i32, i32, i32 } %292, 3, !dbg !52 + %300 = bitcast i32 %299 to <2 x bfloat>, !dbg !52 + %301 = shl i32 %24, 7, !dbg !53 + %302 = add i32 %301, %.decomposed, !dbg !54 + %303 = sext i32 %302 to i64, !dbg !55 + %304 = getelementptr bfloat, ptr addrspace(1) %5, i64 %303, !dbg !55 + %305 = fpext <2 x bfloat> %266 to <2 x float>, !dbg !56 + %306 = insertelement <2 x float> poison, float %.0.i, i64 0, !dbg !57 + %307 = insertelement <2 x float> %306, float %.0.i3, i64 1, !dbg !57 + %308 = fmul <2 x float> %307, %305, !dbg !57 + %309 = fpext <2 x bfloat> %268 to <2 x float>, !dbg !58 + %310 = fmul <2 x float> %308, %309, !dbg !59 + %311 = fpext <2 x bfloat> %270 to <2 x float>, !dbg !60 + %312 = fmul <2 x float> %310, %311, !dbg !61 + %313 = fpext <2 x bfloat> %273 to <2 x float>, !dbg !62 + %314 = fpext <2 x bfloat> %284 to <2 x float>, !dbg !63 + %315 = insertelement <2 x float> poison, float %.0.i24, i64 0, !dbg !64 + %316 = insertelement <2 x float> %315, float %.0.i27, i64 1, !dbg !64 + %317 = fmul <2 x float> %316, %313, !dbg !64 + %318 = fmul <2 x float> %317, %314, !dbg !65 + %319 = fpext <2 x bfloat> %294 to <2 x float>, !dbg !66 + %320 = fmul <2 x float> %318, %319, !dbg !67 + %321 = fsub <2 x float> %312, %320, !dbg !68 + %322 = fptrunc <2 x float> %321 to <2 x bfloat>, !dbg !69 + %323 = fpext <2 x bfloat> %260 to <2 x float>, !dbg !56 + %324 = insertelement <2 x float> poison, float %.0.i6, i64 0, !dbg !57 + %325 = insertelement <2 x float> %324, float %.0.i9, i64 1, !dbg !57 + %326 = fmul <2 x float> %325, %323, !dbg !57 + %327 = fpext <2 x bfloat> %262 to <2 x float>, !dbg !58 + %328 = fmul <2 x float> %326, %327, !dbg !59 + %329 = fpext <2 x bfloat> %264 to <2 x float>, !dbg !60 + %330 = fmul <2 x float> %328, %329, !dbg !61 + %331 = fpext <2 x bfloat> %276 to <2 x float>, !dbg !62 + %332 = fpext <2 x bfloat> %286 to <2 x float>, !dbg !63 + %333 = insertelement <2 x float> poison, float %.0.i30, i64 0, !dbg !64 + %334 = insertelement <2 x float> %333, float %.0.i33, i64 1, !dbg !64 + %335 = fmul <2 x float> %334, %331, !dbg !64 + %336 = fmul <2 x float> %335, %332, !dbg !65 + %337 = fpext <2 x bfloat> %296 to <2 x float>, !dbg !66 + %338 = fmul <2 x float> %336, %337, !dbg !67 + %339 = fsub <2 x float> %330, %338, !dbg !68 + %340 = fptrunc <2 x float> %339 to <2 x bfloat>, !dbg !69 + %341 = fpext <2 x bfloat> %254 to <2 x float>, !dbg !56 + %342 = insertelement <2 x float> poison, float %.0.i12, i64 0, !dbg !57 + %343 = insertelement <2 x float> %342, float %.0.i15, i64 1, !dbg !57 + %344 = fmul <2 x float> %343, %341, !dbg !57 + %345 = fpext <2 x bfloat> %256 to <2 x float>, !dbg !58 + %346 = fmul <2 x float> %344, %345, !dbg !59 + %347 = fpext <2 x bfloat> %258 to <2 x float>, !dbg !60 + %348 = fmul <2 x float> %346, %347, !dbg !61 + %349 = fpext <2 x bfloat> %279 to <2 x float>, !dbg !62 + %350 = fpext <2 x bfloat> %288 to <2 x float>, !dbg !63 + %351 = insertelement <2 x float> poison, float %.0.i36, i64 0, !dbg !64 + %352 = insertelement <2 x float> %351, float %.0.i39, i64 1, !dbg !64 + %353 = fmul <2 x float> %352, %349, !dbg !64 + %354 = fmul <2 x float> %353, %350, !dbg !65 + %355 = fpext <2 x bfloat> %298 to <2 x float>, !dbg !66 + %356 = fmul <2 x float> %354, %355, !dbg !67 + %357 = fsub <2 x float> %348, %356, !dbg !68 + %358 = fptrunc <2 x float> %357 to <2 x bfloat>, !dbg !69 + %359 = fpext <2 x bfloat> %248 to <2 x float>, !dbg !56 + %360 = insertelement <2 x float> poison, float %.0.i18, i64 0, !dbg !57 + %361 = insertelement <2 x float> %360, float %.0.i21, i64 1, !dbg !57 + %362 = fmul <2 x float> %361, %359, !dbg !57 + %363 = fpext <2 x bfloat> %250 to <2 x float>, !dbg !58 + %364 = fmul <2 x float> %362, %363, !dbg !59 + %365 = fpext <2 x bfloat> %252 to <2 x float>, !dbg !60 + %366 = fmul <2 x float> %364, %365, !dbg !61 + %367 = fpext <2 x bfloat> %282 to <2 x float>, !dbg !62 + %368 = fpext <2 x bfloat> %290 to <2 x float>, !dbg !63 + %369 = insertelement <2 x float> poison, float %.0.i42, i64 0, !dbg !64 + %370 = insertelement <2 x float> %369, float %.0.i45, i64 1, !dbg !64 + %371 = fmul <2 x float> %370, %367, !dbg !64 + %372 = fmul <2 x float> %371, %368, !dbg !65 + %373 = fpext <2 x bfloat> %300 to <2 x float>, !dbg !66 + %374 = fmul <2 x float> %372, %373, !dbg !67 + %375 = fsub <2 x float> %366, %374, !dbg !68 + %376 = fptrunc <2 x float> %375 to <2 x bfloat>, !dbg !69 + %377 = bitcast <2 x bfloat> %322 to i32, !dbg !69 + %378 = bitcast <2 x bfloat> %340 to i32, !dbg !69 + %379 = bitcast <2 x bfloat> %358 to i32, !dbg !69 + %380 = bitcast <2 x bfloat> %376 to i32, !dbg !69 + tail call void asm sideeffect "@$5 st.global.v4.b32 [ $4 + 0 ], { $0, $1, $2, $3 };", "r,r,r,r,l,b"(i32 %377, i32 %378, i32 %379, i32 %380, ptr addrspace(1) %304, i1 %23) #5, !dbg !69 + %381 = getelementptr bfloat, ptr addrspace(1) %6, i64 %303, !dbg !70 + %382 = fmul <2 x float> %318, %311, !dbg !71 + %383 = fmul <2 x float> %310, %319, !dbg !72 + %384 = fadd <2 x float> %382, %383, !dbg !73 + %385 = fptrunc <2 x float> %384 to <2 x bfloat>, !dbg !74 + %386 = fmul <2 x float> %336, %329, !dbg !71 + %387 = fmul <2 x float> %328, %337, !dbg !72 + %388 = fadd <2 x float> %386, %387, !dbg !73 + %389 = fptrunc <2 x float> %388 to <2 x bfloat>, !dbg !74 + %390 = fmul <2 x float> %354, %347, !dbg !71 + %391 = fmul <2 x float> %346, %355, !dbg !72 + %392 = fadd <2 x float> %390, %391, !dbg !73 + %393 = fptrunc <2 x float> %392 to <2 x bfloat>, !dbg !74 + %394 = fmul <2 x float> %372, %365, !dbg !71 + %395 = fmul <2 x float> %364, %373, !dbg !72 + %396 = fadd <2 x float> %394, %395, !dbg !73 + %397 = fptrunc <2 x float> %396 to <2 x bfloat>, !dbg !74 + %398 = bitcast <2 x bfloat> %385 to i32, !dbg !74 + %399 = bitcast <2 x bfloat> %389 to i32, !dbg !74 + %400 = bitcast <2 x bfloat> %393 to i32, !dbg !74 + %401 = bitcast <2 x bfloat> %397 to i32, !dbg !74 + tail call void asm sideeffect "@$5 st.global.v4.b32 [ $4 + 0 ], { $0, $1, $2, $3 };", "r,r,r,r,l,b"(i32 %398, i32 %399, i32 %400, i32 %401, ptr addrspace(1) %381, i1 %23) #5, !dbg !74 + ret void, !dbg !75 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.div.full(float, float) #2 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #3 + +declare i32 @__nvvm_reflect(ptr) local_unnamed_addr #4 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.ftz.f(float) #2 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.f(float) #2 + +attributes #0 = { noreturn } +attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) } +attributes #3 = { convergent nocallback nounwind } +attributes #4 = { "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #5 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa") +!4 = !{ptr @triton_poi_fused_add_mul_sub_5, !"reqntidx", i32 128} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = !DISubprogram(name: "__assertfail", linkageName: "__assertfail", scope: !7, file: !7, type: !8, spFlags: DISPFlagOptimized) +!7 = !DIFile(filename: "", directory: "") +!8 = !DISubroutineType(cc: DW_CC_normal, types: !9) +!9 = !{} +!10 = distinct !DISubprogram(name: "triton_poi_fused_add_mul_sub_5", linkageName: "triton_poi_fused_add_mul_sub_5", scope: !3, file: !3, line: 18, type: !8, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!11 = !DILocation(line: 19, column: 28, scope: !10) +!12 = !DILocation(line: 19, column: 33, scope: !10) +!13 = !DILocation(line: 20, column: 36, scope: !10) +!14 = !DILocation(line: 20, column: 23, scope: !10) +!15 = !DILocation(line: 21, column: 21, scope: !10) +!16 = !DILocation(line: 23, column: 21, scope: !10) +!17 = !DILocation(line: 22, column: 19, scope: !10) +!18 = !DILocation(line: 23, column: 27, scope: !10) +!19 = !DILocation(line: 24, column: 19, scope: !10) +!20 = !DILocation(line: 26, column: 39, scope: !10) +!21 = !DILocation(line: 26, column: 49, scope: !10) +!22 = !DILocation(line: 26, column: 35, scope: !10) +!23 = !DILocation(line: 26, column: 44, scope: !10) +!24 = !DILocation(line: 26, column: 30, scope: !10) +!25 = !DILocation(line: 26, column: 54, scope: !10) +!26 = !DILocation(line: 27, column: 30, scope: !10) +!27 = !DILocation(line: 27, column: 35, scope: !10) +!28 = !DILocation(line: 28, column: 31, scope: !10) +!29 = !DILocation(line: 28, column: 36, scope: !10) +!30 = !DILocation(line: 29, column: 31, scope: !10) +!31 = !DILocation(line: 29, column: 36, scope: !10) +!32 = !DILocation(line: 30, column: 36, scope: !10) +!33 = !DILocation(line: 30, column: 75, scope: !10) +!34 = !DILocation(line: 30, column: 41, scope: !10) +!35 = !DILocation(line: 30, column: 31, scope: !10) +!36 = !DILocation(line: 30, column: 85, scope: !10) +!37 = !DILocation(line: 31, column: 57, scope: !10) +!38 = !DILocation(line: 32, column: 31, scope: !10) +!39 = !DILocation(line: 32, column: 41, scope: !10) +!40 = !DILocation(line: 35, column: 19, scope: !10) +!41 = !DILocation(line: 37, column: 18, scope: !10) +!42 = !DILocation(line: 38, column: 27, scope: !10) +!43 = !DILocation(line: 45, column: 35, scope: !10) +!44 = !DILocation(line: 46, column: 38, scope: !10) +!45 = !DILocation(line: 46, column: 67, scope: !10) +!46 = !DILocation(line: 47, column: 31, scope: !10) +!47 = !DILocation(line: 47, column: 48, scope: !10) +!48 = !DILocation(line: 50, column: 21, scope: !10) +!49 = !DILocation(line: 51, column: 20, scope: !10) +!50 = !DILocation(line: 52, column: 28, scope: !10) +!51 = !DILocation(line: 56, column: 31, scope: !10) +!52 = !DILocation(line: 56, column: 53, scope: !10) +!53 = !DILocation(line: 62, column: 34, scope: !10) +!54 = !DILocation(line: 62, column: 30, scope: !10) +!55 = !DILocation(line: 62, column: 25, scope: !10) +!56 = !DILocation(line: 26, column: 64, scope: !10) +!57 = !DILocation(line: 39, column: 18, scope: !10) +!58 = !DILocation(line: 28, column: 76, scope: !10) +!59 = !DILocation(line: 41, column: 19, scope: !10) +!60 = !DILocation(line: 47, column: 58, scope: !10) +!61 = !DILocation(line: 48, column: 20, scope: !10) +!62 = !DILocation(line: 30, column: 95, scope: !10) +!63 = !DILocation(line: 32, column: 81, scope: !10) +!64 = !DILocation(line: 53, column: 20, scope: !10) +!65 = !DILocation(line: 55, column: 20, scope: !10) +!66 = !DILocation(line: 56, column: 63, scope: !10) +!67 = !DILocation(line: 57, column: 20, scope: !10) +!68 = !DILocation(line: 58, column: 20, scope: !10) +!69 = !DILocation(line: 62, column: 46, scope: !10) +!70 = !DILocation(line: 63, column: 25, scope: !10) +!71 = !DILocation(line: 59, column: 20, scope: !10) +!72 = !DILocation(line: 60, column: 20, scope: !10) +!73 = !DILocation(line: 61, column: 20, scope: !10) +!74 = !DILocation(line: 63, column: 46, scope: !10) +!75 = !DILocation(line: 63, column: 4, scope: !10) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.ptx new file mode 100644 index 0000000000000000000000000000000000000000..6732e067c06306f8fbb27498150fa35cb9c5741c --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/4VKD4PBE7ZFPVR2HT6BRTSPMGIUGA2E7B3L3R5SB4CN4JM7KMHOQ/triton_poi_fused_add_mul_sub_5.ptx @@ -0,0 +1,894 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_poi_fused_add_mul_sub_5 // -- Begin function triton_poi_fused_add_mul_sub_5 +.extern .func __assertfail +( + .param .b64 __assertfail_param_0, + .param .b64 __assertfail_param_1, + .param .b32 __assertfail_param_2, + .param .b64 __assertfail_param_3, + .param .b64 __assertfail_param_4 +) +.noreturn; +.global .align 1 .b8 assertFunc_0[8] = {117, 110, 107, 110, 111, 119, 110}; +.global .align 1 .b8 assertFile_0[134] = {47, 104, 111, 109, 101, 47, 120, 47, 46, 99, 97, 99, 104, 101, 47, 118, 108, 108, 109, 47, 116, 111, 114, 99, 104, 95, 99, 111, 109, 112, 105, 108, 101, 95, 99, 97, 99, 104, 101, 47, 99, 50, 50, 48, 50, 51, 56, 102, 97, 49, 47, 114, 97, 110, 107, 95, 48, 95, 48, 47, 105, 110, 100, 117, 99, 116, 111, 114, 95, 99, 97, 99, 104, 101, 47, 113, 97, 47, 99, 113, 97, 99, 102, 50, 55, 103, 110, 98, 52, 99, 113, 52, 109, 120, 114, 120, 110, 115, 111, 53, 98, 101, 102, 99, 97, 54, 101, 109, 55, 120, 53, 53, 113, 107, 108, 110, 100, 102, 105, 104, 51, 55, 111, 50, 106, 122, 105, 115, 120, 110, 46, 112, 121}; +.global .align 1 .b8 assertMessage_0[41] = {105, 110, 100, 101, 120, 32, 111, 117, 116, 32, 111, 102, 32, 98, 111, 117, 110, 100, 115, 58, 32, 48, 32, 60, 61, 32, 116, 109, 112, 49, 54, 32, 60, 32, 49, 51, 49, 48, 55, 50}; +.global .align 1 .b8 _$_str[11] = {95, 95, 67, 85, 68, 65, 95, 70, 84, 90}; + // @triton_poi_fused_add_mul_sub_5 +.visible .entry triton_poi_fused_add_mul_sub_5( + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_0, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_1, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_2, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_3, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_4, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_5, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_6, + .param .u32 triton_poi_fused_add_mul_sub_5_param_7, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_5_param_8 +) +.reqntid 128, 1, 1 +{ + .reg .pred %p<43>; + .reg .b16 %rs<65>; + .reg .b32 %r<128>; + .reg .f32 %f<187>; + .reg .b64 %rd<106>; + .loc 1 18 0 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:18:0 + +// %bb.0: // %__nv_rsqrtf.exit + ld.param.u32 %r23, [triton_poi_fused_add_mul_sub_5_param_7]; + ld.param.u64 %rd50, [triton_poi_fused_add_mul_sub_5_param_0]; + ld.param.u64 %rd51, [triton_poi_fused_add_mul_sub_5_param_1]; +$L__tmp0: + .loc 1 19 28 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:19:28 + mov.u32 %r52, %ctaid.x; + .loc 1 19 33 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:19:33 + shl.b32 %r53, %r52, 10; + ld.param.u64 %rd52, [triton_poi_fused_add_mul_sub_5_param_2]; + ld.param.u64 %rd53, [triton_poi_fused_add_mul_sub_5_param_3]; + .loc 1 20 36 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:20:36 + mov.u32 %r54, %tid.x; + shl.b32 %r55, %r54, 3; + and.b32 %r56, %r55, 1016; + .loc 1 20 23 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:20:23 + or.b32 %r1, %r56, %r53; + or.b32 %r57, %r1, 1; + or.b32 %r58, %r1, 2; + or.b32 %r59, %r1, 3; + or.b32 %r60, %r1, 4; + or.b32 %r61, %r1, 5; + or.b32 %r62, %r1, 6; + or.b32 %r63, %r1, 7; + .loc 1 21 21 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:21:21 + setp.ge.s32 %p36, %r1, %r23; + setp.lt.s32 %p35, %r1, %r23; + .loc 1 23 21 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:23:21 + bfe.s32 %r64, %r52, 21, 1; + .loc 1 22 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:22:19 + shr.u32 %r65, %r64, 26; + .loc 1 23 21 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:23:21 + add.s32 %r66, %r1, %r65; + shr.s32 %r2, %r66, 6; + .loc 1 22 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:22:19 + and.b32 %r67, %r66, -64; + sub.s32 %r68, %r1, %r67; + add.s32 %r69, %r57, %r65; + and.b32 %r70, %r69, -64; + sub.s32 %r71, %r57, %r70; + add.s32 %r72, %r58, %r65; + and.b32 %r73, %r72, -64; + sub.s32 %r74, %r58, %r73; + add.s32 %r75, %r59, %r65; + and.b32 %r76, %r75, -64; + sub.s32 %r77, %r59, %r76; + add.s32 %r78, %r60, %r65; + and.b32 %r79, %r78, -64; + sub.s32 %r80, %r60, %r79; + add.s32 %r81, %r61, %r65; + and.b32 %r82, %r81, -64; + sub.s32 %r83, %r61, %r82; + add.s32 %r84, %r62, %r65; + and.b32 %r85, %r84, -64; + sub.s32 %r86, %r62, %r85; + add.s32 %r87, %r63, %r65; + and.b32 %r88, %r87, -64; + sub.s32 %r89, %r63, %r88; + .loc 1 23 27 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:23:27 + mul.hi.s32 %r90, %r2, 1717986919; + shr.u32 %r91, %r90, 31; + shr.u32 %r92, %r90, 4; + add.s32 %r93, %r92, %r91; + mul.lo.s32 %r94, %r93, 40; + sub.s32 %r95, %r2, %r94; + .loc 1 24 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:24:19 + mul.hi.s32 %r96, %r1, 1717986919; + shr.u32 %r97, %r96, 31; + shr.s32 %r98, %r96, 10; + add.s32 %r99, %r98, %r97; + .loc 1 26 39 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:39 + shl.b32 %r100, %r95, 7; + .loc 1 26 35 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:35 + mad.lo.s32 %r101, %r99, 7168, %r100; + .loc 1 26 44 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:44 + add.s32 %r102, %r101, %r68; + .loc 1 26 30 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:30 + mul.wide.s32 %rd54, %r102, 2; + add.s64 %rd7, %rd50, %rd54; + .loc 1 26 54 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:54 + // begin inline asm + mov.u32 %r24, 0x0; + mov.u32 %r25, 0x0; + mov.u32 %r26, 0x0; + mov.u32 %r27, 0x0; + @%p35 ld.global.v4.b32 { %r24, %r25, %r26, %r27 }, [ %rd7 + 0 ]; + // end inline asm + .loc 1 27 30 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:27:30 + mul.wide.s32 %rd55, %r2, 4; + add.s64 %rd8, %rd51, %rd55; + .loc 1 27 35 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:27:35 + // begin inline asm + mov.u32 %r28, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r28 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r29, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r29 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r30, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r30 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r31, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r31 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r32, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r32 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r33, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r33 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r34, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r34 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r35, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r35 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 28 31 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:28:31 + mul.wide.s32 %rd56, %r68, 2; + add.s64 %rd16, %rd52, %rd56; + .loc 1 28 36 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:28:36 + // begin inline asm + mov.u32 %r36, 0x0; + mov.u32 %r37, 0x0; + mov.u32 %r38, 0x0; + mov.u32 %r39, 0x0; + @%p35 ld.global.L1::evict_last.v4.b32 { %r36, %r37, %r38, %r39 }, [ %rd16 + 0 ]; + // end inline asm + .loc 1 29 31 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:29:31 + mul.wide.s32 %rd57, %r99, 8; + add.s64 %rd18, %rd53, %rd57; + .loc 1 29 36 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:29:36 + // begin inline asm + mov.u64 %rd17, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd17 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd19, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd19 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd21, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd21 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd23, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd23 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd25, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd25 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd27, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd27 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd29, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd29 }, [ %rd18 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd31, 0x0; + @%p35 ld.global.L1::evict_last.b64 { %rd31 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 30 36 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:36 + add.s32 %r103, %r68, 64; + .loc 1 30 75 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:75 + add.s32 %r104, %r101, %r103; + .loc 1 30 31 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:31 + mul.wide.s32 %rd58, %r104, 2; + add.s64 %rd33, %rd50, %rd58; + cvt.s64.s32 %rd59, %r71; + cvt.s64.s32 %rd60, %r101; + add.s64 %rd61, %rd60, %rd59; + shl.b64 %rd62, %rd61, 1; + add.s64 %rd63, %rd50, %rd62; + add.s64 %rd34, %rd63, 128; + cvt.s64.s32 %rd64, %r74; + add.s64 %rd65, %rd60, %rd64; + shl.b64 %rd66, %rd65, 1; + add.s64 %rd67, %rd50, %rd66; + add.s64 %rd35, %rd67, 128; + cvt.s64.s32 %rd68, %r77; + add.s64 %rd69, %rd60, %rd68; + shl.b64 %rd70, %rd69, 1; + add.s64 %rd71, %rd50, %rd70; + add.s64 %rd36, %rd71, 128; + cvt.s64.s32 %rd72, %r80; + add.s64 %rd73, %rd60, %rd72; + shl.b64 %rd74, %rd73, 1; + add.s64 %rd75, %rd50, %rd74; + add.s64 %rd37, %rd75, 128; + cvt.s64.s32 %rd76, %r83; + add.s64 %rd77, %rd60, %rd76; + shl.b64 %rd78, %rd77, 1; + add.s64 %rd79, %rd50, %rd78; + add.s64 %rd38, %rd79, 128; + cvt.s64.s32 %rd80, %r86; + add.s64 %rd81, %rd60, %rd80; + shl.b64 %rd82, %rd81, 1; + add.s64 %rd83, %rd50, %rd82; + add.s64 %rd39, %rd83, 128; + cvt.s64.s32 %rd84, %r89; + add.s64 %rd85, %rd60, %rd84; + shl.b64 %rd86, %rd85, 1; + add.s64 %rd87, %rd50, %rd86; + add.s64 %rd40, %rd87, 128; + .loc 1 30 85 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:85 + // begin inline asm + mov.u16 %rs9, 0x0; + @%p35 ld.global.b16 { %rs9 }, [ %rd33 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs10, 0x0; + @%p35 ld.global.b16 { %rs10 }, [ %rd34 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs11, 0x0; + @%p35 ld.global.b16 { %rs11 }, [ %rd35 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs12, 0x0; + @%p35 ld.global.b16 { %rs12 }, [ %rd36 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs13, 0x0; + @%p35 ld.global.b16 { %rs13 }, [ %rd37 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs14, 0x0; + @%p35 ld.global.b16 { %rs14 }, [ %rd38 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs15, 0x0; + @%p35 ld.global.b16 { %rs15 }, [ %rd39 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs16, 0x0; + @%p35 ld.global.b16 { %rs16 }, [ %rd40 + 0 ]; + // end inline asm + .loc 1 31 57 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:31:57 + // begin inline asm + mov.u32 %r40, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r40 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r41, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r41 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r42, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r42 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r43, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r43 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r44, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r44 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r45, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r45 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r46, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r46 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r47, 0x0; + @%p35 ld.global.L1::evict_last.b32 { %r47 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 32 31 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:32:31 + mul.wide.u32 %rd88, %r103, 2; + add.s64 %rd49, %rd52, %rd88; + .loc 1 32 41 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:32:41 + // begin inline asm + mov.u32 %r48, 0x0; + mov.u32 %r49, 0x0; + mov.u32 %r50, 0x0; + mov.u32 %r51, 0x0; + @%p35 ld.global.L1::evict_last.v4.b32 { %r48, %r49, %r50, %r51 }, [ %rd49 + 0 ]; + // end inline asm + .loc 1 45 35 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:45:35 + shr.u64 %rd89, %rd17, 46; + and.b64 %rd90, %rd89, 131072; + add.s64 %rd3, %rd90, %rd17; + .loc 1 46 38 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:46:38 + setp.lt.u64 %p37, %rd3, 131072; + .loc 1 46 67 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:46:67 + or.pred %p38, %p36, %p37; + @%p38 bra $L__BB0_2; + bra.uni $L__BB0_1; +$L__BB0_2: // %__nv_rsqrtf.exit25 + .loc 1 0 67 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:0:67 + ld.param.u64 %rd6, [triton_poi_fused_add_mul_sub_5_param_6]; + ld.param.u64 %rd5, [triton_poi_fused_add_mul_sub_5_param_5]; + ld.param.u64 %rd4, [triton_poi_fused_add_mul_sub_5_param_4]; + mov.b32 %f9, %r28; + mov.b32 %f10, %r29; + mov.b32 %f11, %r30; + mov.b32 %f12, %r31; + mov.b32 %f13, %r32; + mov.b32 %f14, %r33; + mov.b32 %f15, %r34; + mov.b32 %f16, %r35; + cvt.s64.s32 %rd1, %r68; + cvt.u64.u32 %rd2, %r103; + mov.f32 %f17, 0f43000000; + div.full.f32 %f18, %f9, %f17; + div.full.f32 %f19, %f10, %f17; + div.full.f32 %f20, %f11, %f17; + div.full.f32 %f21, %f12, %f17; + div.full.f32 %f22, %f13, %f17; + div.full.f32 %f23, %f14, %f17; + div.full.f32 %f24, %f15, %f17; + div.full.f32 %f25, %f16, %f17; + add.f32 %f26, %f18, 0f358637BD; + add.f32 %f27, %f19, 0f358637BD; + add.f32 %f28, %f20, 0f358637BD; + add.f32 %f29, %f21, 0f358637BD; + add.f32 %f30, %f22, 0f358637BD; + add.f32 %f31, %f23, 0f358637BD; + add.f32 %f32, %f24, 0f358637BD; + add.f32 %f33, %f25, 0f358637BD; + rsqrt.approx.ftz.f32 %f1, %f26; + rsqrt.approx.ftz.f32 %f2, %f27; + rsqrt.approx.ftz.f32 %f3, %f28; + rsqrt.approx.ftz.f32 %f4, %f29; + rsqrt.approx.ftz.f32 %f5, %f30; + rsqrt.approx.ftz.f32 %f6, %f31; + rsqrt.approx.ftz.f32 %f7, %f32; + rsqrt.approx.ftz.f32 %f8, %f33; + cvt.u32.u64 %r121, %rd1; + .loc 1 31 57 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:31:57 + mov.b32 %f34, %r47; + mov.b32 %f35, %r46; + mov.b32 %f36, %r45; + mov.b32 %f37, %r44; + mov.b32 %f38, %r43; + mov.b32 %f39, %r42; + mov.b32 %f40, %r41; + mov.b32 %f41, %r40; + .loc 1 46 67 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:46:67 + bar.sync 0; + .loc 1 47 31 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:47:31 + shl.b64 %rd95, %rd3, 8; + add.s64 %rd96, %rd4, %rd95; + shl.b64 %rd97, %rd1, 1; + add.s64 %rd91, %rd96, %rd97; + .loc 1 47 48 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:47:48 + // begin inline asm + mov.u32 %r105, 0x0; + mov.u32 %r106, 0x0; + mov.u32 %r107, 0x0; + mov.u32 %r108, 0x0; + @%p35 ld.global.v4.b32 { %r105, %r106, %r107, %r108 }, [ %rd91 + 0 ]; + // end inline asm + .loc 1 50 21 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:50:21 + div.full.f32 %f43, %f41, %f17; + div.full.f32 %f44, %f40, %f17; + div.full.f32 %f45, %f39, %f17; + div.full.f32 %f46, %f38, %f17; + div.full.f32 %f47, %f37, %f17; + div.full.f32 %f48, %f36, %f17; + div.full.f32 %f49, %f35, %f17; + div.full.f32 %f50, %f34, %f17; + .loc 1 51 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:51:20 + add.f32 %f51, %f43, 0f358637BD; + add.f32 %f52, %f44, 0f358637BD; + add.f32 %f53, %f45, 0f358637BD; + add.f32 %f54, %f46, 0f358637BD; + add.f32 %f55, %f47, 0f358637BD; + add.f32 %f56, %f48, 0f358637BD; + add.f32 %f57, %f49, 0f358637BD; + add.f32 %f58, %f50, 0f358637BD; + .loc 1 52 28 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:52:28 + rsqrt.approx.ftz.f32 %f59, %f51; + rsqrt.approx.ftz.f32 %f60, %f52; + rsqrt.approx.ftz.f32 %f61, %f53; + rsqrt.approx.ftz.f32 %f62, %f54; + rsqrt.approx.ftz.f32 %f63, %f55; + rsqrt.approx.ftz.f32 %f64, %f56; + rsqrt.approx.ftz.f32 %f65, %f57; + rsqrt.approx.ftz.f32 %f66, %f58; + .loc 1 30 85 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:85 + mov.b32 %r122, {%rs9, %rs10}; + mov.b32 %r123, {%rs11, %rs12}; + mov.b32 %r124, {%rs13, %rs14}; + mov.b32 %r125, {%rs15, %rs16}; + .loc 1 56 31 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:56:31 + shl.b64 %rd98, %rd2, 1; + add.s64 %rd92, %rd96, %rd98; + .loc 1 56 53 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:56:53 + // begin inline asm + mov.u32 %r109, 0x0; + mov.u32 %r110, 0x0; + mov.u32 %r111, 0x0; + mov.u32 %r112, 0x0; + @%p35 ld.global.v4.b32 { %r109, %r110, %r111, %r112 }, [ %rd92 + 0 ]; + // end inline asm + .loc 1 62 34 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:34 + shl.b32 %r126, %r2, 7; + .loc 1 62 30 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:30 + add.s32 %r127, %r126, %r121; + .loc 1 62 25 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:25 + mul.wide.s32 %rd99, %r127, 2; + add.s64 %rd93, %rd5, %rd99; + .loc 1 26 64 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:64 + mov.b32 {%rs17, %rs18}, %r24; + cvt.f32.bf16 %f67, %rs18; + cvt.f32.bf16 %f68, %rs17; + .loc 1 39 18 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:39:18 + mul.f32 %f69, %f1, %f68; + mul.f32 %f70, %f2, %f67; + .loc 1 28 76 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:28:76 + mov.b32 {%rs19, %rs20}, %r36; + cvt.f32.bf16 %f71, %rs19; + cvt.f32.bf16 %f72, %rs20; + .loc 1 41 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:41:19 + mul.f32 %f73, %f70, %f72; + mul.f32 %f74, %f69, %f71; + .loc 1 47 58 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:47:58 + mov.b32 {%rs21, %rs22}, %r105; + cvt.f32.bf16 %f75, %rs22; + cvt.f32.bf16 %f76, %rs21; + .loc 1 30 95 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:95 + mov.b32 {%rs23, %rs24}, %r122; + cvt.f32.bf16 %f77, %rs23; + cvt.f32.bf16 %f78, %rs24; + .loc 1 32 81 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:32:81 + mov.b32 {%rs25, %rs26}, %r48; + cvt.f32.bf16 %f79, %rs26; + cvt.f32.bf16 %f80, %rs25; + .loc 1 53 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:53:20 + mul.f32 %f81, %f60, %f78; + mul.f32 %f82, %f59, %f77; + .loc 1 55 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:55:20 + mul.f32 %f83, %f82, %f80; + mul.f32 %f84, %f81, %f79; + .loc 1 56 63 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:56:63 + mov.b32 {%rs27, %rs28}, %r109; + cvt.f32.bf16 %f85, %rs27; + cvt.f32.bf16 %f86, %rs28; + .loc 1 57 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:57:20 + mul.f32 %f87, %f84, %f86; + mul.f32 %f88, %f83, %f85; + .loc 1 58 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:58:20 + neg.f32 %f89, %f88; + fma.rn.f32 %f90, %f74, %f76, %f89; + neg.f32 %f91, %f87; + fma.rn.f32 %f92, %f73, %f75, %f91; + .loc 1 62 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:46 + cvt.rn.bf16x2.f32 %r113, %f92, %f90; + .loc 1 26 64 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:64 + mov.b32 {%rs29, %rs30}, %r25; + cvt.f32.bf16 %f93, %rs30; + cvt.f32.bf16 %f94, %rs29; + .loc 1 39 18 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:39:18 + mul.f32 %f95, %f3, %f94; + mul.f32 %f96, %f4, %f93; + .loc 1 28 76 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:28:76 + mov.b32 {%rs31, %rs32}, %r37; + cvt.f32.bf16 %f97, %rs31; + cvt.f32.bf16 %f98, %rs32; + .loc 1 41 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:41:19 + mul.f32 %f99, %f96, %f98; + mul.f32 %f100, %f95, %f97; + .loc 1 47 58 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:47:58 + mov.b32 {%rs33, %rs34}, %r106; + cvt.f32.bf16 %f101, %rs34; + cvt.f32.bf16 %f102, %rs33; + .loc 1 30 95 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:95 + mov.b32 {%rs35, %rs36}, %r123; + cvt.f32.bf16 %f103, %rs35; + cvt.f32.bf16 %f104, %rs36; + .loc 1 32 81 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:32:81 + mov.b32 {%rs37, %rs38}, %r49; + cvt.f32.bf16 %f105, %rs38; + cvt.f32.bf16 %f106, %rs37; + .loc 1 53 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:53:20 + mul.f32 %f107, %f62, %f104; + mul.f32 %f108, %f61, %f103; + .loc 1 55 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:55:20 + mul.f32 %f109, %f108, %f106; + mul.f32 %f110, %f107, %f105; + .loc 1 56 63 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:56:63 + mov.b32 {%rs39, %rs40}, %r110; + cvt.f32.bf16 %f111, %rs39; + cvt.f32.bf16 %f112, %rs40; + .loc 1 57 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:57:20 + mul.f32 %f113, %f110, %f112; + mul.f32 %f114, %f109, %f111; + .loc 1 58 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:58:20 + neg.f32 %f115, %f114; + fma.rn.f32 %f116, %f100, %f102, %f115; + neg.f32 %f117, %f113; + fma.rn.f32 %f118, %f99, %f101, %f117; + .loc 1 62 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:46 + cvt.rn.bf16x2.f32 %r114, %f118, %f116; + .loc 1 26 64 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:64 + mov.b32 {%rs41, %rs42}, %r26; + cvt.f32.bf16 %f119, %rs42; + cvt.f32.bf16 %f120, %rs41; + .loc 1 39 18 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:39:18 + mul.f32 %f121, %f5, %f120; + mul.f32 %f122, %f6, %f119; + .loc 1 28 76 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:28:76 + mov.b32 {%rs43, %rs44}, %r38; + cvt.f32.bf16 %f123, %rs43; + cvt.f32.bf16 %f124, %rs44; + .loc 1 41 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:41:19 + mul.f32 %f125, %f122, %f124; + mul.f32 %f126, %f121, %f123; + .loc 1 47 58 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:47:58 + mov.b32 {%rs45, %rs46}, %r107; + cvt.f32.bf16 %f127, %rs46; + cvt.f32.bf16 %f128, %rs45; + .loc 1 30 95 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:95 + mov.b32 {%rs47, %rs48}, %r124; + cvt.f32.bf16 %f129, %rs47; + cvt.f32.bf16 %f130, %rs48; + .loc 1 32 81 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:32:81 + mov.b32 {%rs49, %rs50}, %r50; + cvt.f32.bf16 %f131, %rs50; + cvt.f32.bf16 %f132, %rs49; + .loc 1 53 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:53:20 + mul.f32 %f133, %f64, %f130; + mul.f32 %f134, %f63, %f129; + .loc 1 55 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:55:20 + mul.f32 %f135, %f134, %f132; + mul.f32 %f136, %f133, %f131; + .loc 1 56 63 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:56:63 + mov.b32 {%rs51, %rs52}, %r111; + cvt.f32.bf16 %f137, %rs51; + cvt.f32.bf16 %f138, %rs52; + .loc 1 57 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:57:20 + mul.f32 %f139, %f136, %f138; + mul.f32 %f140, %f135, %f137; + .loc 1 58 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:58:20 + neg.f32 %f141, %f140; + fma.rn.f32 %f142, %f126, %f128, %f141; + neg.f32 %f143, %f139; + fma.rn.f32 %f144, %f125, %f127, %f143; + .loc 1 62 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:46 + cvt.rn.bf16x2.f32 %r115, %f144, %f142; + .loc 1 26 64 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:26:64 + mov.b32 {%rs53, %rs54}, %r27; + cvt.f32.bf16 %f145, %rs54; + cvt.f32.bf16 %f146, %rs53; + .loc 1 39 18 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:39:18 + mul.f32 %f147, %f7, %f146; + mul.f32 %f148, %f8, %f145; + .loc 1 28 76 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:28:76 + mov.b32 {%rs55, %rs56}, %r39; + cvt.f32.bf16 %f149, %rs55; + cvt.f32.bf16 %f150, %rs56; + .loc 1 41 19 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:41:19 + mul.f32 %f151, %f148, %f150; + mul.f32 %f152, %f147, %f149; + .loc 1 47 58 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:47:58 + mov.b32 {%rs57, %rs58}, %r108; + cvt.f32.bf16 %f153, %rs58; + cvt.f32.bf16 %f154, %rs57; + .loc 1 30 95 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:30:95 + mov.b32 {%rs59, %rs60}, %r125; + cvt.f32.bf16 %f155, %rs59; + cvt.f32.bf16 %f156, %rs60; + .loc 1 32 81 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:32:81 + mov.b32 {%rs61, %rs62}, %r51; + cvt.f32.bf16 %f157, %rs62; + cvt.f32.bf16 %f158, %rs61; + .loc 1 53 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:53:20 + mul.f32 %f159, %f66, %f156; + mul.f32 %f160, %f65, %f155; + .loc 1 55 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:55:20 + mul.f32 %f161, %f160, %f158; + mul.f32 %f162, %f159, %f157; + .loc 1 56 63 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:56:63 + mov.b32 {%rs63, %rs64}, %r112; + cvt.f32.bf16 %f163, %rs63; + cvt.f32.bf16 %f164, %rs64; + .loc 1 57 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:57:20 + mul.f32 %f165, %f162, %f164; + mul.f32 %f166, %f161, %f163; + .loc 1 58 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:58:20 + neg.f32 %f167, %f166; + fma.rn.f32 %f168, %f152, %f154, %f167; + neg.f32 %f169, %f165; + fma.rn.f32 %f170, %f151, %f153, %f169; + .loc 1 62 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:62:46 + cvt.rn.bf16x2.f32 %r116, %f170, %f168; + // begin inline asm + @%p35 st.global.v4.b32 [ %rd93 + 0 ], { %r113, %r114, %r115, %r116 }; + // end inline asm + .loc 1 63 25 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:63:25 + add.s64 %rd94, %rd6, %rd99; + .loc 1 60 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:60:20 + mul.f32 %f171, %f73, %f86; + mul.f32 %f172, %f74, %f85; + .loc 1 61 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:61:20 + fma.rn.f32 %f173, %f83, %f76, %f172; + fma.rn.f32 %f174, %f84, %f75, %f171; + .loc 1 63 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:63:46 + cvt.rn.bf16x2.f32 %r117, %f174, %f173; + .loc 1 60 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:60:20 + mul.f32 %f175, %f99, %f112; + mul.f32 %f176, %f100, %f111; + .loc 1 61 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:61:20 + fma.rn.f32 %f177, %f109, %f102, %f176; + fma.rn.f32 %f178, %f110, %f101, %f175; + .loc 1 63 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:63:46 + cvt.rn.bf16x2.f32 %r118, %f178, %f177; + .loc 1 60 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:60:20 + mul.f32 %f179, %f125, %f138; + mul.f32 %f180, %f126, %f137; + .loc 1 61 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:61:20 + fma.rn.f32 %f181, %f135, %f128, %f180; + fma.rn.f32 %f182, %f136, %f127, %f179; + .loc 1 63 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:63:46 + cvt.rn.bf16x2.f32 %r119, %f182, %f181; + .loc 1 60 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:60:20 + mul.f32 %f183, %f151, %f164; + mul.f32 %f184, %f152, %f163; + .loc 1 61 20 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:61:20 + fma.rn.f32 %f185, %f161, %f154, %f184; + fma.rn.f32 %f186, %f162, %f153, %f183; + .loc 1 63 46 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:63:46 + cvt.rn.bf16x2.f32 %r120, %f186, %f185; + // begin inline asm + @%p35 st.global.v4.b32 [ %rd94 + 0 ], { %r117, %r118, %r119, %r120 }; + // end inline asm + .loc 1 63 4 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:63:4 + ret; +$L__BB0_1: + .loc 1 46 67 // cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py:46:67 + mov.u64 %rd100, assertMessage_0; + cvta.global.u64 %rd101, %rd100; + mov.u64 %rd102, assertFile_0; + cvta.global.u64 %rd103, %rd102; + mov.u64 %rd104, assertFunc_0; + cvta.global.u64 %rd105, %rd104; + { // callseq 5, 0 + .param .b64 param0; + st.param.b64 [param0], %rd101; + .param .b64 param1; + st.param.b64 [param1], %rd103; + .param .b32 param2; + st.param.b32 [param2], 46; + .param .b64 param3; + st.param.b64 [param3], %rd105; + .param .b64 param4; + st.param.b64 [param4], 1; + call.uni + __assertfail, + ( + param0, + param1, + param2, + param3, + param4 + ); + } // callseq 5 + trap; +$L__tmp1: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qa/cqacf27gnb4cq4mxrxnso5befca6em7x55qklndfih37o2jzisxn.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 0 // DW_CHILDREN_no +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 155 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0x94 DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 113 +.b8 97 +.b8 99 +.b8 102 +.b8 50 +.b8 55 +.b8 103 +.b8 110 +.b8 98 +.b8 52 +.b8 99 +.b8 113 +.b8 52 +.b8 109 +.b8 120 +.b8 114 +.b8 120 +.b8 110 +.b8 115 +.b8 111 +.b8 53 +.b8 98 +.b8 101 +.b8 102 +.b8 99 +.b8 97 +.b8 54 +.b8 101 +.b8 109 +.b8 55 +.b8 120 +.b8 53 +.b8 53 +.b8 113 +.b8 107 +.b8 108 +.b8 110 +.b8 100 +.b8 102 +.b8 105 +.b8 104 +.b8 51 +.b8 55 +.b8 111 +.b8 50 +.b8 106 +.b8 122 +.b8 105 +.b8 115 +.b8 120 +.b8 110 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 113 +.b8 97 +.b8 0 + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/5QNFXQK6JWP7PWHCIPTXVA6ULATWO2SJ2G2H5LOACBZ3J7ASQHDA/triton_red_fused__to_copy_mean_pow_4.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/5QNFXQK6JWP7PWHCIPTXVA6ULATWO2SJ2G2H5LOACBZ3J7ASQHDA/triton_red_fused__to_copy_mean_pow_4.cubin new file mode 100644 index 0000000000000000000000000000000000000000..dde151b23be99f9108642c0f24f2fd805fa93b25 Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/5QNFXQK6JWP7PWHCIPTXVA6ULATWO2SJ2G2H5LOACBZ3J7ASQHDA/triton_red_fused__to_copy_mean_pow_4.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/5QNFXQK6JWP7PWHCIPTXVA6ULATWO2SJ2G2H5LOACBZ3J7ASQHDA/triton_red_fused__to_copy_mean_pow_4.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/5QNFXQK6JWP7PWHCIPTXVA6ULATWO2SJ2G2H5LOACBZ3J7ASQHDA/triton_red_fused__to_copy_mean_pow_4.llir new file mode 100644 index 0000000000000000000000000000000000000000..f0ccf7604d27164eecede4b458326d6c4e424d69 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/5QNFXQK6JWP7PWHCIPTXVA6ULATWO2SJ2G2H5LOACBZ3J7ASQHDA/triton_red_fused__to_copy_mean_pow_4.llir @@ -0,0 +1,143 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 + +define ptx_kernel void @triton_red_fused__to_copy_mean_pow_4(ptr addrspace(1) %0, ptr addrspace(1) %1, i32 %2, i32 %3, ptr addrspace(1) readnone captures(none) %4) local_unnamed_addr !dbg !6 { + %6 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %7 = shl i32 %6, 3, !dbg !10 + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %9 = lshr i32 %8, 5, !dbg !11 + %10 = and i32 %9, 7, !dbg !11 + %11 = and i32 %8, 7, !dbg !11 + %12 = or disjoint i32 %10, %7, !dbg !12 + %13 = or disjoint i32 %7, %11, !dbg !12 + %14 = icmp slt i32 %12, %2, !dbg !13 + %15 = icmp slt i32 %13, %2, !dbg !13 + %16 = shl i32 %8, 2, !dbg !14 + %17 = and i32 %16, 124, !dbg !14 + %18 = sdiv i32 %12, 8, !dbg !15 + %19 = mul i32 %18, 8, !dbg !16 + %.decomposed = sub i32 %12, %19, !dbg !16 + %20 = or disjoint i32 %17, 5120, !dbg !17 + %21 = shl nsw i32 %.decomposed, 7, !dbg !18 + %22 = add nsw i32 %20, %21, !dbg !19 + %23 = mul i32 %18, 7168, !dbg !20 + %24 = add i32 %22, %23, !dbg !21 + %25 = sext i32 %24 to i64, !dbg !22 + %26 = getelementptr bfloat, ptr addrspace(1) %0, i64 %25, !dbg !22 + %27 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %26, i1 %14) #3, !dbg !23 + %28 = extractvalue { i32, i32 } %27, 0, !dbg !23 + %29 = bitcast i32 %28 to <2 x bfloat>, !dbg !23 + %30 = extractvalue { i32, i32 } %27, 1, !dbg !23 + %31 = bitcast i32 %30 to <2 x bfloat>, !dbg !23 + %32 = extractelement <2 x bfloat> %29, i64 0, !dbg !23 + %33 = extractelement <2 x bfloat> %29, i64 1, !dbg !23 + %34 = extractelement <2 x bfloat> %31, i64 0, !dbg !23 + %35 = extractelement <2 x bfloat> %31, i64 1, !dbg !23 + %36 = fpext bfloat %32 to float, !dbg !24 + %37 = fpext bfloat %33 to float, !dbg !24 + %38 = fpext bfloat %34 to float, !dbg !24 + %39 = fpext bfloat %35 to float, !dbg !24 + %40 = fmul float %36, %36, !dbg !25 + %41 = fmul float %37, %37, !dbg !25 + %42 = fmul float %38, %38, !dbg !25 + %43 = fmul float %39, %39, !dbg !25 + %44 = fadd float %40, %41, !dbg !26 + %45 = fadd float %42, %44, !dbg !26 + %46 = fadd float %43, %45, !dbg !26 + %47 = select i1 %14, float %46, float 0.000000e+00, !dbg !26 + %48 = bitcast float %47 to i32, !dbg !31 + %49 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %48, i32 16, i32 31), !dbg !31 + %50 = bitcast i32 %49 to float, !dbg !31 + %51 = fadd float %47, %50, !dbg !26 + %52 = bitcast float %51 to i32, !dbg !31 + %53 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %52, i32 8, i32 31), !dbg !31 + %54 = bitcast i32 %53 to float, !dbg !31 + %55 = fadd float %51, %54, !dbg !26 + %56 = bitcast float %55 to i32, !dbg !31 + %57 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %56, i32 4, i32 31), !dbg !31 + %58 = bitcast i32 %57 to float, !dbg !31 + %59 = fadd float %55, %58, !dbg !26 + %60 = bitcast float %59 to i32, !dbg !31 + %61 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %60, i32 2, i32 31), !dbg !31 + %62 = bitcast i32 %61 to float, !dbg !31 + %63 = fadd float %59, %62, !dbg !26 + %64 = bitcast float %63 to i32, !dbg !31 + %65 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %64, i32 1, i32 31), !dbg !31 + %66 = bitcast i32 %65 to float, !dbg !31 + %67 = fadd float %63, %66, !dbg !26 + %68 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %10, !dbg !32 + %69 = bitcast float %67 to <1 x i32>, !dbg !32 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %68, <1 x i32> %69, i1 true) #3, !dbg !32 + tail call void @llvm.nvvm.barrier0(), !dbg !32 + %70 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %11, !dbg !32 + %71 = load i32, ptr addrspace(3) %70, align 4, !dbg !32 + %72 = sext i32 %13 to i64, !dbg !33 + %73 = getelementptr float, ptr addrspace(1) %1, i64 %72, !dbg !33 + %74 = and i32 %8, 248, !dbg !34 + %75 = icmp eq i32 %74, 0, !dbg !34 + %76 = and i1 %75, %15, !dbg !34 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %71, ptr addrspace(1) %73, i1 %76) #3, !dbg !34 + ret void, !dbg !35 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv") +!4 = !{ptr @triton_red_fused__to_copy_mean_pow_4, !"reqntidx", i32 256} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_mean_pow_4", linkageName: "triton_red_fused__to_copy_mean_pow_4", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 22, column: 33, scope: !6) +!11 = !DILocation(line: 23, column: 44, scope: !6) +!12 = !DILocation(line: 23, column: 23, scope: !6) +!13 = !DILocation(line: 24, column: 21, scope: !6) +!14 = !DILocation(line: 25, column: 37, scope: !6) +!15 = !DILocation(line: 28, column: 19, scope: !6) +!16 = !DILocation(line: 27, column: 19, scope: !6) +!17 = !DILocation(line: 37, column: 41, scope: !6) +!18 = !DILocation(line: 37, column: 52, scope: !6) +!19 = !DILocation(line: 37, column: 48, scope: !6) +!20 = !DILocation(line: 37, column: 62, scope: !6) +!21 = !DILocation(line: 37, column: 57, scope: !6) +!22 = !DILocation(line: 37, column: 34, scope: !6) +!23 = !DILocation(line: 37, column: 67, scope: !6) +!24 = !DILocation(line: 37, column: 129, scope: !6) +!25 = !DILocation(line: 39, column: 22, scope: !6) +!26 = !DILocation(line: 256, column: 15, scope: !27, inlinedAt: !30) +!27 = distinct !DILexicalBlockFile(scope: !29, file: !28, discriminator: 0) +!28 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!29 = distinct !DILexicalBlockFile(scope: !6, file: !28, discriminator: 0) +!30 = !DILocation(line: 43, column: 25, scope: !6) +!31 = !DILocation(line: 286, column: 36, scope: !29, inlinedAt: !30) +!32 = !DILocation(line: 43, column: 28, scope: !6) +!33 = !DILocation(line: 44, column: 25, scope: !6) +!34 = !DILocation(line: 44, column: 36, scope: !6) +!35 = !DILocation(line: 44, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/__grp__triton_red_fused__to_copy_mean_pow_4.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/__grp__triton_red_fused__to_copy_mean_pow_4.json new file mode 100644 index 0000000000000000000000000000000000000000..3ad874a97ac73ef25fd4b719b582ad3b3bd36700 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/__grp__triton_red_fused__to_copy_mean_pow_4.json @@ -0,0 +1 @@ +{"child_paths": {"triton_red_fused__to_copy_mean_pow_4.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.ttir", "triton_red_fused__to_copy_mean_pow_4.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.ttgir", "triton_red_fused__to_copy_mean_pow_4.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.llir", "triton_red_fused__to_copy_mean_pow_4.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.ptx", "triton_red_fused__to_copy_mean_pow_4.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.cubin", "triton_red_fused__to_copy_mean_pow_4.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.cubin new file mode 100644 index 0000000000000000000000000000000000000000..8de82c49b5c2f15b14b7e9d5d9dd6712a4845184 Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.ptx new file mode 100644 index 0000000000000000000000000000000000000000..73c459d832bfc641ef7cf5cbd797818b4c0c8134 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/6YBPZASPL7DBRURP7Z652K7LIYFEK5ZSHXU4QZLBY5E3KMX3NZ4A/triton_red_fused__to_copy_mean_pow_4.ptx @@ -0,0 +1,421 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_red_fused__to_copy_mean_pow_4 // -- Begin function triton_red_fused__to_copy_mean_pow_4 +.extern .shared .align 16 .b8 global_smem[]; + // @triton_red_fused__to_copy_mean_pow_4 +.visible .entry triton_red_fused__to_copy_mean_pow_4( + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_0, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_1, + .param .u32 triton_red_fused__to_copy_mean_pow_4_param_2, + .param .u32 triton_red_fused__to_copy_mean_pow_4_param_3, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_4 +) +.reqntid 64, 1, 1 +{ + .reg .pred %p<9>; + .reg .b16 %rs<3>; + .reg .b32 %r<43>; + .reg .f32 %f<19>; + .reg .b64 %rd<7>; + .loc 1 18 0 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:18:0 + +// %bb.0: + ld.param.u64 %rd3, [triton_red_fused__to_copy_mean_pow_4_param_0]; + ld.param.u64 %rd4, [triton_red_fused__to_copy_mean_pow_4_param_1]; +$L__tmp0: + .loc 1 22 28 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:22:28 + mov.u32 %r10, %ctaid.x; + ld.param.u32 %r11, [triton_red_fused__to_copy_mean_pow_4_param_2]; + .loc 1 24 21 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:24:21 + setp.lt.s32 %p1, %r10, %r11; + .loc 1 25 37 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:25:37 + mov.u32 %r12, %tid.x; + and.b32 %r13, %r12, 31; + shl.b32 %r14, %r12, 1; + and.b32 %r15, %r14, 126; + .loc 1 28 19 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:28:19 + shr.s32 %r16, %r10, 31; + shr.u32 %r17, %r16, 29; + add.s32 %r18, %r10, %r17; + shr.u32 %r19, %r18, 3; + .loc 1 27 19 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:27:19 + and.b32 %r20, %r18, 33554424; + sub.s32 %r21, %r10, %r20; + .loc 1 37 52 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:52 + shl.b32 %r22, %r21, 7; + .loc 1 37 48 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:48 + or.b32 %r23, %r22, %r15; + mad.lo.s32 %r24, %r19, 7168, %r23; + .loc 1 37 57 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:57 + add.s32 %r25, %r24, 5120; + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + mul.wide.s32 %rd5, %r25, 2; + add.s64 %rd1, %rd3, %rd5; + mov.b32 %r2, 0; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r1, %r2; + @%p1 ld.global.L1::evict_first.b32 { %r1 }, [ %rd1 + 0 ]; + // end inline asm + mov.b32 {%rs1, %rs2}, %r1; + .loc 1 37 129 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:129 + cvt.f32.bf16 %f1, %rs1; + cvt.f32.bf16 %f2, %rs2; + .loc 1 39 22 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:39:22 + mul.f32 %f3, %f2, %f2; +$L__tmp1: + .loc 2 256 15 // standard.py:256:15 + fma.rn.f32 %f4, %f1, %f1, %f3; + selp.f32 %f5, %f4, 0f00000000, %p1; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r26, %f5; + shfl.sync.bfly.b32 %r27, %r26, 16, 31, -1; + mov.b32 %f6, %r27; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f7, %f5, %f6; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r28, %f7; + shfl.sync.bfly.b32 %r29, %r28, 8, 31, -1; + mov.b32 %f8, %r29; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f9, %f7, %f8; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r30, %f9; + shfl.sync.bfly.b32 %r31, %r30, 4, 31, -1; + mov.b32 %f10, %r31; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f11, %f9, %f10; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r32, %f11; + shfl.sync.bfly.b32 %r33, %r32, 2, 31, -1; + mov.b32 %f12, %r33; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f13, %f11, %f12; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r34, %f13; + shfl.sync.bfly.b32 %r35, %r34, 1, 31, -1; + mov.b32 %f14, %r35; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f15, %f13, %f14; + .loc 2 286 36 // standard.py:286:36 + setp.eq.s32 %p2, %r13, 0; + shr.u32 %r36, %r12, 3; + and.b32 %r37, %r36, 4; + mov.u32 %r38, global_smem; + add.s32 %r3, %r38, %r37; + mov.b32 %r4, %f15; + // begin inline asm + @%p2 st.shared.b32 [ %r3 + 0 ], %r4; + // end inline asm + bar.sync 0; + setp.lt.s32 %p3, %r12, 2; + shl.b32 %r39, %r12, 2; + add.s32 %r6, %r38, %r39; + // begin inline asm + @%p3 ld.shared.b32 %r5, [ %r6 + 0 ]; + // end inline asm + mov.b32 %f16, %r5; + shfl.sync.bfly.b32 %r40, %r5, 1, 31, -1; + mov.b32 %f17, %r40; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f18, %f16, %f17; + .loc 2 286 36 // standard.py:286:36 + and.b32 %r41, %r12, 1; + setp.eq.b32 %p6, %r41, 1; + not.pred %p7, %p6; + and.pred %p4, %p3, %p7; + mov.b32 %r8, %f18; + // begin inline asm + @%p4 st.shared.b32 [ %r6 + 0 ], %r8; + // end inline asm + bar.sync 0; + ld.shared.u32 %r9, [global_smem]; +$L__tmp2: + .loc 1 44 25 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:25 + mul.wide.s32 %rd6, %r10, 4; + add.s64 %rd2, %rd4, %rd6; + .loc 1 44 36 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:36 + and.b32 %r42, %r12, 63; + setp.eq.s32 %p8, %r42, 0; + and.pred %p5, %p8, %p1; + // begin inline asm + @%p5 st.global.b32 [ %rd2 + 0 ], { %r9 }; + // end inline asm + .loc 1 44 4 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:4 + ret; +$L__tmp3: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py" + .file 2 "/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 1 // DW_CHILDREN_yes +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 2 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 0 // DW_CHILDREN_no +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 32 // DW_AT_inline +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 3 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 1 // DW_CHILDREN_yes +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 4 // Abbreviation Code +.b8 29 // DW_TAG_inlined_subroutine +.b8 0 // DW_CHILDREN_no +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 88 // DW_AT_call_file +.b8 11 // DW_FORM_data1 +.b8 89 // DW_AT_call_line +.b8 11 // DW_FORM_data1 +.b8 87 // DW_AT_call_column +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 241 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0xea DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 113 +.b8 118 +.b8 99 +.b8 106 +.b8 106 +.b8 121 +.b8 118 +.b8 107 +.b8 107 +.b8 108 +.b8 97 +.b8 122 +.b8 97 +.b8 103 +.b8 113 +.b8 103 +.b8 108 +.b8 98 +.b8 100 +.b8 107 +.b8 109 +.b8 120 +.b8 121 +.b8 121 +.b8 107 +.b8 119 +.b8 121 +.b8 114 +.b8 118 +.b8 120 +.b8 55 +.b8 107 +.b8 103 +.b8 107 +.b8 118 +.b8 97 +.b8 102 +.b8 109 +.b8 103 +.b8 55 +.b8 51 +.b8 113 +.b8 112 +.b8 110 +.b8 113 +.b8 98 +.b8 115 +.b8 118 +.b8 106 +.b8 98 +.b8 97 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 113 +.b8 118 +.b8 0 +.b8 2 // Abbrev [2] 0x9f:0x27 DW_TAG_subprogram +.b8 116 // DW_AT_name +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 95 +.b8 114 +.b8 101 +.b8 100 +.b8 95 +.b8 102 +.b8 117 +.b8 115 +.b8 101 +.b8 100 +.b8 95 +.b8 95 +.b8 116 +.b8 111 +.b8 95 +.b8 99 +.b8 111 +.b8 112 +.b8 121 +.b8 95 +.b8 109 +.b8 101 +.b8 97 +.b8 110 +.b8 95 +.b8 112 +.b8 111 +.b8 119 +.b8 95 +.b8 52 +.b8 0 +.b8 1 // DW_AT_inline +.b8 3 // Abbrev [3] 0xc6:0x2e DW_TAG_subprogram +.b64 $L__func_begin0 // DW_AT_low_pc +.b64 $L__func_end0 // DW_AT_high_pc +.b32 159 // DW_AT_abstract_origin +.b8 4 // Abbrev [4] 0xdb:0x18 DW_TAG_inlined_subroutine +.b32 159 // DW_AT_abstract_origin +.b64 $L__tmp1 // DW_AT_low_pc +.b64 $L__tmp2 // DW_AT_high_pc +.b8 1 // DW_AT_call_file +.b8 43 // DW_AT_call_line +.b8 25 // DW_AT_call_column +.b8 0 // End Of Children Mark +.b8 0 // End Of Children Mark + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/__grp__triton_red_fused__to_copy_mean_pow_3.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/__grp__triton_red_fused__to_copy_mean_pow_3.json new file mode 100644 index 0000000000000000000000000000000000000000..691901882777f47ef1ea753eaf70fdaecc888a3b --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/__grp__triton_red_fused__to_copy_mean_pow_3.json @@ -0,0 +1 @@ +{"child_paths": {"triton_red_fused__to_copy_mean_pow_3.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.ttir", "triton_red_fused__to_copy_mean_pow_3.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.ttgir", "triton_red_fused__to_copy_mean_pow_3.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.llir", "triton_red_fused__to_copy_mean_pow_3.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.ptx", "triton_red_fused__to_copy_mean_pow_3.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.cubin", "triton_red_fused__to_copy_mean_pow_3.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.cubin new file mode 100644 index 0000000000000000000000000000000000000000..f3eed43d272a896fc6c3794d72038c279c10fe3c Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/7HT2CE63ZPWWLF6VHGICDOM4HYEUTA7M6AOLPDEXBH7GNCOWXFEA/triton_red_fused__to_copy_mean_pow_3.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/DKJC6KBZEIH6ZOGVIFAIW7VXA3LXVK3VLGBW2L7TDJMATPYGEZTQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/DKJC6KBZEIH6ZOGVIFAIW7VXA3LXVK3VLGBW2L7TDJMATPYGEZTQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin new file mode 100644 index 0000000000000000000000000000000000000000..32d84a6cd341d9ee4be44bbea069a5ef5935f73d Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/DKJC6KBZEIH6ZOGVIFAIW7VXA3LXVK3VLGBW2L7TDJMATPYGEZTQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/DKJC6KBZEIH6ZOGVIFAIW7VXA3LXVK3VLGBW2L7TDJMATPYGEZTQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/DKJC6KBZEIH6ZOGVIFAIW7VXA3LXVK3VLGBW2L7TDJMATPYGEZTQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json new file mode 100644 index 0000000000000000000000000000000000000000..18af49e6d94eee7eb3f7a50f39edacbbccbfbd8c --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/DKJC6KBZEIH6ZOGVIFAIW7VXA3LXVK3VLGBW2L7TDJMATPYGEZTQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json @@ -0,0 +1 @@ +{"hash": "1a922f2839220fecb8d541408b7eb706d77aab7559836d2ff31a5809bf062667", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 16, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 64, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/EGYPFKOE54X556JS3SOC5OEVFCJ6L734JZZKIZBMHRGAAAIJL2LQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/EGYPFKOE54X556JS3SOC5OEVFCJ6L734JZZKIZBMHRGAAAIJL2LQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json new file mode 100644 index 0000000000000000000000000000000000000000..2111621141912f01f3653214ba6202708367d071 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/EGYPFKOE54X556JS3SOC5OEVFCJ6L734JZZKIZBMHRGAAAIJL2LQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json @@ -0,0 +1 @@ +{"hash": "21b0f2a9c4ef2fdef932dc9c2eb8952893e5ff7c4e72a4642c3c4c0001095e97", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 16, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 64, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/EGYPFKOE54X556JS3SOC5OEVFCJ6L734JZZKIZBMHRGAAAIJL2LQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/EGYPFKOE54X556JS3SOC5OEVFCJ6L734JZZKIZBMHRGAAAIJL2LQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx new file mode 100644 index 0000000000000000000000000000000000000000..961c4e402a6ecbfaf65cc1463f230f8874068f05 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/EGYPFKOE54X556JS3SOC5OEVFCJ6L734JZZKIZBMHRGAAAIJL2LQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx @@ -0,0 +1,1152 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2 // -- Begin function triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2 +.extern .shared .align 16 .b8 global_smem[]; +.global .align 1 .b8 _$_str[11] = {95, 95, 67, 85, 68, 65, 95, 70, 84, 90}; + // @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2 +.visible .entry triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2( + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_0, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_1, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_2, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_3, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_4, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_5, + .param .u32 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_6, + .param .u32 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_7, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_8 +) +.reqntid 512, 1, 1 +{ + .reg .pred %p<66>; + .reg .b16 %rs<71>; + .reg .b32 %r<164>; + .reg .f32 %f<169>; + .reg .b64 %rd<87>; + .loc 1 18 0 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:18:0 +$L__func_begin0: + .loc 1 18 0 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:18:0 + +// %bb.0: + ld.param.u64 %rd8, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_5]; + ld.param.u64 %rd7, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_4]; + ld.param.u64 %rd6, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_3]; + ld.param.u64 %rd5, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_2]; + ld.param.u64 %rd4, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_1]; + ld.param.u64 %rd3, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_0]; +$L__tmp0: + .loc 1 22 28 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:22:28 + mov.u32 %r1, %ctaid.x; + ld.param.u32 %r8, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_6]; + .loc 1 24 21 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:24:21 + setp.lt.s32 %p35, %r1, %r8; + .loc 1 25 37 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:25:37 + mov.u32 %r3, %tid.x; + and.b32 %r4, %r3, 31; + shr.u32 %r5, %r3, 5; + shl.b32 %r9, %r3, 1; + and.b32 %r6, %r9, 1022; + .loc 1 35 46 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:46 + mul.lo.s32 %r7, %r1, 5120; + or.b32 %r10, %r6, %r7; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + cvt.s64.s32 %rd1, %r10; + mul.wide.s32 %rd9, %r10, 2; + add.s64 %rd50, %rd3, %rd9; + shl.b64 %rd86, %rd1, 1; + @%p35 bra $L__BB0_2; + bra.uni $L__BB0_1; +$L__BB0_2: // %.split.us.preheader + .loc 1 0 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:0:34 + cvt.u32.u64 %r76, %rd1; + mov.b32 %r47, 0; + mov.pred %p17, -1; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r46, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r46 }, [ %rd50 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd31, %rd4, %rd86; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r48, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r48 }, [ %rd31 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd32, %rd5, %rd86; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r50, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r50 }, [ %rd32 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r77, %r76, 1024; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd46, %r77, 2; + add.s64 %rd33, %rd3, %rd46; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r52, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r52 }, [ %rd33 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd34, %rd4, %rd46; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r54, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r54 }, [ %rd34 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd35, %rd5, %rd46; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r56, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r56 }, [ %rd35 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r78, %r76, 2048; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd47, %r78, 2; + add.s64 %rd36, %rd3, %rd47; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r58, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r58 }, [ %rd36 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd37, %rd4, %rd47; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r60, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r60 }, [ %rd37 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd38, %rd5, %rd47; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r62, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r62 }, [ %rd38 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r79, %r76, 3072; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd48, %r79, 2; + add.s64 %rd39, %rd3, %rd48; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r64, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r64 }, [ %rd39 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd40, %rd4, %rd48; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r66, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r66 }, [ %rd40 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd41, %rd5, %rd48; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r68, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r68 }, [ %rd41 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r80, %r76, 4096; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd49, %r80, 2; + add.s64 %rd42, %rd3, %rd49; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r70, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r70 }, [ %rd42 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd43, %rd4, %rd49; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r72, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r72 }, [ %rd43 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd44, %rd5, %rd49; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r74, %r47; + @%p17 ld.global.L1::evict_last.b32 { %r74 }, [ %rd44 + 0 ]; + // end inline asm + .loc 1 35 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:112 + mov.b32 {%rs1, %rs2}, %r46; + cvt.f32.bf16 %f4, %rs1; + cvt.f32.bf16 %f5, %rs2; + .loc 1 36 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:112 + mov.b32 {%rs3, %rs4}, %r48; + cvt.f32.bf16 %f6, %rs4; + cvt.f32.bf16 %f7, %rs3; + .loc 1 37 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:112 + mov.b32 {%rs5, %rs6}, %r50; + cvt.f32.bf16 %f8, %rs6; + cvt.f32.bf16 %f9, %rs5; + .loc 1 41 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:41:22 + add.f32 %f10, %f7, %f9; + add.f32 %f11, %f6, %f8; + .loc 1 42 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:42:22 + add.f32 %f12, %f11, %f5; + add.f32 %f13, %f10, %f4; + .loc 1 35 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:112 + mov.b32 {%rs7, %rs8}, %r52; + cvt.f32.bf16 %f14, %rs8; + cvt.f32.bf16 %f15, %rs7; + .loc 1 36 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:112 + mov.b32 {%rs9, %rs10}, %r54; + cvt.f32.bf16 %f16, %rs9; + cvt.f32.bf16 %f17, %rs10; + .loc 1 37 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:112 + mov.b32 {%rs11, %rs12}, %r56; + cvt.f32.bf16 %f18, %rs11; + cvt.f32.bf16 %f19, %rs12; + .loc 1 41 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:41:22 + add.f32 %f20, %f17, %f19; + add.f32 %f21, %f16, %f18; + .loc 1 42 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:42:22 + add.f32 %f22, %f21, %f15; + add.f32 %f23, %f20, %f14; + .loc 1 43 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:43:22 + mul.f32 %f24, %f23, %f23; + mul.f32 %f25, %f22, %f22; + .loc 1 45 25 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:45:25 + fma.rn.f32 %f26, %f13, %f13, %f25; + fma.rn.f32 %f27, %f12, %f12, %f24; + .loc 1 35 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:112 + mov.b32 {%rs13, %rs14}, %r58; + cvt.f32.bf16 %f28, %rs14; + cvt.f32.bf16 %f29, %rs13; + .loc 1 36 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:112 + mov.b32 {%rs15, %rs16}, %r60; + cvt.f32.bf16 %f30, %rs15; + cvt.f32.bf16 %f31, %rs16; + .loc 1 37 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:112 + mov.b32 {%rs17, %rs18}, %r62; + cvt.f32.bf16 %f32, %rs17; + cvt.f32.bf16 %f33, %rs18; + .loc 1 41 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:41:22 + add.f32 %f34, %f31, %f33; + add.f32 %f35, %f30, %f32; + .loc 1 42 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:42:22 + add.f32 %f36, %f35, %f29; + add.f32 %f37, %f34, %f28; + .loc 1 45 25 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:45:25 + fma.rn.f32 %f38, %f37, %f37, %f27; + fma.rn.f32 %f39, %f36, %f36, %f26; + .loc 1 35 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:112 + mov.b32 {%rs19, %rs20}, %r64; + cvt.f32.bf16 %f40, %rs19; + cvt.f32.bf16 %f41, %rs20; + .loc 1 36 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:112 + mov.b32 {%rs21, %rs22}, %r66; + cvt.f32.bf16 %f42, %rs22; + cvt.f32.bf16 %f43, %rs21; + .loc 1 37 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:112 + mov.b32 {%rs23, %rs24}, %r68; + cvt.f32.bf16 %f44, %rs24; + cvt.f32.bf16 %f45, %rs23; + .loc 1 41 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:41:22 + add.f32 %f46, %f43, %f45; + add.f32 %f47, %f42, %f44; + .loc 1 42 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:42:22 + add.f32 %f48, %f47, %f41; + add.f32 %f49, %f46, %f40; + .loc 1 45 25 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:45:25 + fma.rn.f32 %f50, %f49, %f49, %f39; + fma.rn.f32 %f51, %f48, %f48, %f38; + .loc 1 35 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:112 + mov.b32 {%rs25, %rs26}, %r70; + cvt.f32.bf16 %f52, %rs26; + cvt.f32.bf16 %f53, %rs25; + .loc 1 36 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:112 + mov.b32 {%rs27, %rs28}, %r72; + cvt.f32.bf16 %f54, %rs27; + cvt.f32.bf16 %f55, %rs28; + .loc 1 37 112 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:112 + mov.b32 {%rs29, %rs30}, %r74; + cvt.f32.bf16 %f56, %rs29; + cvt.f32.bf16 %f57, %rs30; + .loc 1 41 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:41:22 + add.f32 %f58, %f55, %f57; + add.f32 %f59, %f54, %f56; + .loc 1 42 22 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:42:22 + add.f32 %f60, %f59, %f53; + add.f32 %f61, %f58, %f52; + .loc 1 45 25 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:45:25 + fma.rn.f32 %f62, %f61, %f61, %f51; + fma.rn.f32 %f63, %f60, %f60, %f50; +$L__tmp1: + .loc 2 286 36 // standard.py:286:36 + add.f32 %f168, %f63, %f62; + bra.uni $L__BB0_3; +$L__tmp2: +$L__BB0_1: // %.split.preheader + .loc 2 0 36 // standard.py:0:36 + cvt.u32.u64 %r41, %rd1; + mov.b32 %r12, 0; + mov.pred %p2, 0; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r11, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r11 }, [ %rd50 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd11, %rd4, %rd86; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r13, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r13 }, [ %rd11 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd12, %rd5, %rd86; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r15, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r15 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r42, %r41, 1024; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd26, %r42, 2; + add.s64 %rd13, %rd3, %rd26; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r17, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r17 }, [ %rd13 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd14, %rd4, %rd26; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r19, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r19 }, [ %rd14 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd15, %rd5, %rd26; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r21, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r21 }, [ %rd15 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r43, %r41, 2048; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd27, %r43, 2; + add.s64 %rd16, %rd3, %rd27; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r23, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r23 }, [ %rd16 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd17, %rd4, %rd27; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r25, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r25 }, [ %rd17 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd18, %rd5, %rd27; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r27, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r27 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r44, %r41, 3072; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd28, %r44, 2; + add.s64 %rd19, %rd3, %rd28; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r29, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r29 }, [ %rd19 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd20, %rd4, %rd28; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r31, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r31 }, [ %rd20 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd21, %rd5, %rd28; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r33, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r33 }, [ %rd21 + 0 ]; + // end inline asm + .loc 1 35 41 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:41 + add.s32 %r45, %r41, 4096; + .loc 1 35 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:34 + mul.wide.s32 %rd29, %r45, 2; + add.s64 %rd22, %rd3, %rd29; + .loc 1 35 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:35:51 + // begin inline asm + mov.u32 %r35, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r35 }, [ %rd22 + 0 ]; + // end inline asm + .loc 1 36 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:34 + add.s64 %rd23, %rd4, %rd29; + .loc 1 36 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:36:51 + // begin inline asm + mov.u32 %r37, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r37 }, [ %rd23 + 0 ]; + // end inline asm + .loc 1 37 34 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:34 + add.s64 %rd24, %rd5, %rd29; + .loc 1 37 51 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:37:51 + // begin inline asm + mov.u32 %r39, %r12; + @%p2 ld.global.L1::evict_last.b32 { %r39 }, [ %rd24 + 0 ]; + // end inline asm + mov.f32 %f168, 0f00000000; +$L__BB0_3: // %__nv_rsqrtf.exit +$L__tmp3: + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r137, %f168; + shfl.sync.bfly.b32 %r138, %r137, 16, 31, -1; + mov.b32 %f64, %r138; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f65, %f168, %f64; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r139, %f65; + shfl.sync.bfly.b32 %r140, %r139, 8, 31, -1; + mov.b32 %f66, %r140; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f67, %f65, %f66; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r141, %f67; + shfl.sync.bfly.b32 %r142, %r141, 4, 31, -1; + mov.b32 %f68, %r142; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f69, %f67, %f68; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r143, %f69; + shfl.sync.bfly.b32 %r144, %r143, 2, 31, -1; + mov.b32 %f70, %r144; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f71, %f69, %f70; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r145, %f71; + shfl.sync.bfly.b32 %r146, %r145, 1, 31, -1; + mov.b32 %f72, %r146; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f73, %f71, %f72; + .loc 2 286 36 // standard.py:286:36 + and.b32 %r147, %r5, 15; + setp.eq.s32 %p32, %r4, 0; + shl.b32 %r148, %r147, 2; + mov.u32 %r149, global_smem; + add.s32 %r81, %r149, %r148; + mov.b32 %r82, %f73; + // begin inline asm + @%p32 st.shared.b32 [ %r81 + 0 ], %r82; + // end inline asm + bar.sync 0; + setp.lt.s32 %p33, %r3, 16; + shl.b32 %r150, %r3, 2; + add.s32 %r84, %r149, %r150; + // begin inline asm + @%p33 ld.shared.b32 %r83, [ %r84 + 0 ]; + // end inline asm + mov.b32 %f74, %r83; + shfl.sync.bfly.b32 %r151, %r83, 8, 31, -1; + mov.b32 %f75, %r151; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f76, %f74, %f75; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r152, %f76; + shfl.sync.bfly.b32 %r153, %r152, 4, 31, -1; + mov.b32 %f77, %r153; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f78, %f76, %f77; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r154, %f78; + shfl.sync.bfly.b32 %r155, %r154, 2, 31, -1; + mov.b32 %f79, %r155; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f80, %f78, %f79; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r156, %f80; + shfl.sync.bfly.b32 %r157, %r156, 1, 31, -1; + mov.b32 %f81, %r157; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f82, %f80, %f81; + .loc 2 286 36 // standard.py:286:36 + and.b32 %r158, %r3, 15; + setp.eq.s32 %p65, %r158, 0; + and.pred %p34, %p33, %p65; + mov.b32 %r86, %f82; + // begin inline asm + @%p34 st.shared.b32 [ %r84 + 0 ], %r86; + // end inline asm + bar.sync 0; + ld.shared.f32 %f83, [global_smem]; + mov.f32 %f84, 0f45A00000; +$L__tmp4: + .loc 1 64 25 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:64:25 + div.full.f32 %f85, %f83, %f84; + .loc 1 66 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:66:24 + add.f32 %f86, %f85, 0f358637BD; + .loc 1 67 32 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:67:32 + rsqrt.approx.ftz.f32 %f87, %f86; + mov.b32 %r88, 0; + .loc 1 54 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:52 + // begin inline asm + mov.u32 %r87, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r87 }, [ %rd50 + 0 ]; + // end inline asm + .loc 1 55 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:35 + add.s64 %rd51, %rd4, %rd86; + .loc 1 55 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:52 + // begin inline asm + mov.u32 %r89, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r89 }, [ %rd51 + 0 ]; + // end inline asm + .loc 1 56 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:35 + add.s64 %rd52, %rd5, %rd86; + .loc 1 56 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:52 + // begin inline asm + mov.u32 %r91, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r91 }, [ %rd52 + 0 ]; + // end inline asm + .loc 1 57 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:35 + mul.wide.u32 %rd81, %r6, 2; + add.s64 %rd53, %rd6, %rd81; + mov.pred %p38, -1; + .loc 1 57 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:42 + // begin inline asm + mov.u32 %r93, %r88; + @%p38 ld.global.L1::evict_last.b32 { %r93 }, [ %rd53 + 0 ]; + // end inline asm + .loc 1 72 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:29 + add.s64 %rd54, %rd7, %rd86; + .loc 1 54 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:114 + mov.b32 {%rs31, %rs32}, %r87; + cvt.f32.bf16 %f88, %rs32; + cvt.f32.bf16 %f89, %rs31; + .loc 1 55 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:114 + mov.b32 {%rs33, %rs34}, %r89; + cvt.f32.bf16 %f90, %rs33; + cvt.f32.bf16 %f91, %rs34; + .loc 1 56 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:114 + mov.b32 {%rs35, %rs36}, %r91; + cvt.f32.bf16 %f92, %rs35; + cvt.f32.bf16 %f93, %rs36; + .loc 1 57 95 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:95 + mov.b32 {%rs37, %rs38}, %r93; + cvt.f32.bf16 %f94, %rs38; + cvt.f32.bf16 %f95, %rs37; + .loc 1 61 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:61:24 + add.f32 %f96, %f91, %f93; + add.f32 %f97, %f90, %f92; + .loc 1 62 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:62:24 + add.f32 %f98, %f97, %f89; + add.f32 %f99, %f96, %f88; + .loc 1 68 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:68:24 + mul.f32 %f100, %f87, %f99; + mul.f32 %f101, %f87, %f98; + .loc 1 70 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:70:24 + mul.f32 %f102, %f101, %f95; + mul.f32 %f103, %f100, %f94; + .loc 1 72 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:53 + cvt.rn.bf16x2.f32 %r95, %f103, %f102; + // begin inline asm + @%p35 st.global.b32 [ %rd54 + 0 ], { %r95 }; + // end inline asm + .loc 1 73 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:29 + add.s64 %rd55, %rd8, %rd86; + .loc 1 73 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:53 + cvt.rn.bf16x2.f32 %r96, %f99, %f98; + // begin inline asm + @%p35 st.global.b32 [ %rd55 + 0 ], { %r96 }; + // end inline asm + .loc 1 54 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:42 + add.s32 %r159, %r7, %r6; + add.s32 %r160, %r159, 1024; + .loc 1 54 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:35 + mul.wide.s32 %rd82, %r160, 2; + add.s64 %rd56, %rd3, %rd82; + .loc 1 54 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:52 + // begin inline asm + mov.u32 %r97, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r97 }, [ %rd56 + 0 ]; + // end inline asm + .loc 1 55 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:35 + add.s64 %rd57, %rd4, %rd82; + .loc 1 55 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:52 + // begin inline asm + mov.u32 %r99, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r99 }, [ %rd57 + 0 ]; + // end inline asm + .loc 1 56 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:35 + add.s64 %rd58, %rd5, %rd82; + .loc 1 56 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:52 + // begin inline asm + mov.u32 %r101, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r101 }, [ %rd58 + 0 ]; + // end inline asm + .loc 1 57 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:35 + add.s64 %rd59, %rd53, 2048; + .loc 1 57 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:42 + // begin inline asm + mov.u32 %r103, %r88; + @%p38 ld.global.L1::evict_last.b32 { %r103 }, [ %rd59 + 0 ]; + // end inline asm + .loc 1 72 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:29 + add.s64 %rd60, %rd7, %rd82; + .loc 1 54 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:114 + mov.b32 {%rs39, %rs40}, %r97; + cvt.f32.bf16 %f104, %rs40; + cvt.f32.bf16 %f105, %rs39; + .loc 1 55 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:114 + mov.b32 {%rs41, %rs42}, %r99; + cvt.f32.bf16 %f106, %rs41; + cvt.f32.bf16 %f107, %rs42; + .loc 1 56 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:114 + mov.b32 {%rs43, %rs44}, %r101; + cvt.f32.bf16 %f108, %rs43; + cvt.f32.bf16 %f109, %rs44; + .loc 1 57 95 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:95 + mov.b32 {%rs45, %rs46}, %r103; + cvt.f32.bf16 %f110, %rs46; + cvt.f32.bf16 %f111, %rs45; + .loc 1 61 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:61:24 + add.f32 %f112, %f107, %f109; + add.f32 %f113, %f106, %f108; + .loc 1 62 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:62:24 + add.f32 %f114, %f113, %f105; + add.f32 %f115, %f112, %f104; + .loc 1 68 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:68:24 + mul.f32 %f116, %f87, %f115; + mul.f32 %f117, %f87, %f114; + .loc 1 70 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:70:24 + mul.f32 %f118, %f117, %f111; + mul.f32 %f119, %f116, %f110; + .loc 1 72 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:53 + cvt.rn.bf16x2.f32 %r105, %f119, %f118; + // begin inline asm + @%p35 st.global.b32 [ %rd60 + 0 ], { %r105 }; + // end inline asm + .loc 1 73 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:29 + add.s64 %rd61, %rd8, %rd82; + .loc 1 73 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:53 + cvt.rn.bf16x2.f32 %r106, %f115, %f114; + // begin inline asm + @%p35 st.global.b32 [ %rd61 + 0 ], { %r106 }; + // end inline asm + .loc 1 54 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:42 + add.s32 %r161, %r159, 2048; + .loc 1 54 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:35 + mul.wide.s32 %rd83, %r161, 2; + add.s64 %rd62, %rd3, %rd83; + .loc 1 54 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:52 + // begin inline asm + mov.u32 %r107, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r107 }, [ %rd62 + 0 ]; + // end inline asm + .loc 1 55 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:35 + add.s64 %rd63, %rd4, %rd83; + .loc 1 55 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:52 + // begin inline asm + mov.u32 %r109, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r109 }, [ %rd63 + 0 ]; + // end inline asm + .loc 1 56 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:35 + add.s64 %rd64, %rd5, %rd83; + .loc 1 56 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:52 + // begin inline asm + mov.u32 %r111, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r111 }, [ %rd64 + 0 ]; + // end inline asm + .loc 1 57 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:35 + add.s64 %rd65, %rd53, 4096; + .loc 1 57 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:42 + // begin inline asm + mov.u32 %r113, %r88; + @%p38 ld.global.L1::evict_last.b32 { %r113 }, [ %rd65 + 0 ]; + // end inline asm + .loc 1 72 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:29 + add.s64 %rd66, %rd7, %rd83; + .loc 1 54 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:114 + mov.b32 {%rs47, %rs48}, %r107; + cvt.f32.bf16 %f120, %rs48; + cvt.f32.bf16 %f121, %rs47; + .loc 1 55 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:114 + mov.b32 {%rs49, %rs50}, %r109; + cvt.f32.bf16 %f122, %rs49; + cvt.f32.bf16 %f123, %rs50; + .loc 1 56 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:114 + mov.b32 {%rs51, %rs52}, %r111; + cvt.f32.bf16 %f124, %rs51; + cvt.f32.bf16 %f125, %rs52; + .loc 1 57 95 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:95 + mov.b32 {%rs53, %rs54}, %r113; + cvt.f32.bf16 %f126, %rs54; + cvt.f32.bf16 %f127, %rs53; + .loc 1 61 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:61:24 + add.f32 %f128, %f123, %f125; + add.f32 %f129, %f122, %f124; + .loc 1 62 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:62:24 + add.f32 %f130, %f129, %f121; + add.f32 %f131, %f128, %f120; + .loc 1 68 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:68:24 + mul.f32 %f132, %f87, %f131; + mul.f32 %f133, %f87, %f130; + .loc 1 70 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:70:24 + mul.f32 %f134, %f133, %f127; + mul.f32 %f135, %f132, %f126; + .loc 1 72 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:53 + cvt.rn.bf16x2.f32 %r115, %f135, %f134; + // begin inline asm + @%p35 st.global.b32 [ %rd66 + 0 ], { %r115 }; + // end inline asm + .loc 1 73 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:29 + add.s64 %rd67, %rd8, %rd83; + .loc 1 73 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:53 + cvt.rn.bf16x2.f32 %r116, %f131, %f130; + // begin inline asm + @%p35 st.global.b32 [ %rd67 + 0 ], { %r116 }; + // end inline asm + .loc 1 54 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:42 + add.s32 %r162, %r159, 3072; + .loc 1 54 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:35 + mul.wide.s32 %rd84, %r162, 2; + add.s64 %rd68, %rd3, %rd84; + .loc 1 54 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:52 + // begin inline asm + mov.u32 %r117, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r117 }, [ %rd68 + 0 ]; + // end inline asm + .loc 1 55 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:35 + add.s64 %rd69, %rd4, %rd84; + .loc 1 55 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:52 + // begin inline asm + mov.u32 %r119, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r119 }, [ %rd69 + 0 ]; + // end inline asm + .loc 1 56 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:35 + add.s64 %rd70, %rd5, %rd84; + .loc 1 56 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:52 + // begin inline asm + mov.u32 %r121, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r121 }, [ %rd70 + 0 ]; + // end inline asm + .loc 1 57 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:35 + add.s64 %rd71, %rd53, 6144; + .loc 1 57 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:42 + // begin inline asm + mov.u32 %r123, %r88; + @%p38 ld.global.L1::evict_last.b32 { %r123 }, [ %rd71 + 0 ]; + // end inline asm + .loc 1 72 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:29 + add.s64 %rd72, %rd7, %rd84; + .loc 1 54 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:114 + mov.b32 {%rs55, %rs56}, %r117; + cvt.f32.bf16 %f136, %rs56; + cvt.f32.bf16 %f137, %rs55; + .loc 1 55 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:114 + mov.b32 {%rs57, %rs58}, %r119; + cvt.f32.bf16 %f138, %rs57; + cvt.f32.bf16 %f139, %rs58; + .loc 1 56 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:114 + mov.b32 {%rs59, %rs60}, %r121; + cvt.f32.bf16 %f140, %rs59; + cvt.f32.bf16 %f141, %rs60; + .loc 1 57 95 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:95 + mov.b32 {%rs61, %rs62}, %r123; + cvt.f32.bf16 %f142, %rs62; + cvt.f32.bf16 %f143, %rs61; + .loc 1 61 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:61:24 + add.f32 %f144, %f139, %f141; + add.f32 %f145, %f138, %f140; + .loc 1 62 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:62:24 + add.f32 %f146, %f145, %f137; + add.f32 %f147, %f144, %f136; + .loc 1 68 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:68:24 + mul.f32 %f148, %f87, %f147; + mul.f32 %f149, %f87, %f146; + .loc 1 70 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:70:24 + mul.f32 %f150, %f149, %f143; + mul.f32 %f151, %f148, %f142; + .loc 1 72 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:53 + cvt.rn.bf16x2.f32 %r125, %f151, %f150; + // begin inline asm + @%p35 st.global.b32 [ %rd72 + 0 ], { %r125 }; + // end inline asm + .loc 1 73 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:29 + add.s64 %rd73, %rd8, %rd84; + .loc 1 73 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:53 + cvt.rn.bf16x2.f32 %r126, %f147, %f146; + // begin inline asm + @%p35 st.global.b32 [ %rd73 + 0 ], { %r126 }; + // end inline asm + .loc 1 54 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:42 + add.s32 %r163, %r159, 4096; + .loc 1 54 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:35 + mul.wide.s32 %rd85, %r163, 2; + add.s64 %rd74, %rd3, %rd85; + .loc 1 54 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:52 + // begin inline asm + mov.u32 %r127, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r127 }, [ %rd74 + 0 ]; + // end inline asm + .loc 1 55 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:35 + add.s64 %rd75, %rd4, %rd85; + .loc 1 55 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:52 + // begin inline asm + mov.u32 %r129, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r129 }, [ %rd75 + 0 ]; + // end inline asm + .loc 1 56 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:35 + add.s64 %rd76, %rd5, %rd85; + .loc 1 56 52 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:52 + // begin inline asm + mov.u32 %r131, %r88; + @%p35 ld.global.L1::evict_first.b32 { %r131 }, [ %rd76 + 0 ]; + // end inline asm + .loc 1 57 35 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:35 + add.s64 %rd77, %rd53, 8192; + .loc 1 57 42 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:42 + // begin inline asm + mov.u32 %r133, %r88; + @%p38 ld.global.L1::evict_last.b32 { %r133 }, [ %rd77 + 0 ]; + // end inline asm + .loc 1 72 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:29 + add.s64 %rd78, %rd7, %rd85; + .loc 1 54 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:54:114 + mov.b32 {%rs63, %rs64}, %r127; + cvt.f32.bf16 %f152, %rs64; + cvt.f32.bf16 %f153, %rs63; + .loc 1 55 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:55:114 + mov.b32 {%rs65, %rs66}, %r129; + cvt.f32.bf16 %f154, %rs65; + cvt.f32.bf16 %f155, %rs66; + .loc 1 56 114 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:56:114 + mov.b32 {%rs67, %rs68}, %r131; + cvt.f32.bf16 %f156, %rs67; + cvt.f32.bf16 %f157, %rs68; + .loc 1 57 95 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:57:95 + mov.b32 {%rs69, %rs70}, %r133; + cvt.f32.bf16 %f158, %rs70; + cvt.f32.bf16 %f159, %rs69; + .loc 1 61 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:61:24 + add.f32 %f160, %f155, %f157; + add.f32 %f161, %f154, %f156; + .loc 1 62 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:62:24 + add.f32 %f162, %f161, %f153; + add.f32 %f163, %f160, %f152; + .loc 1 68 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:68:24 + mul.f32 %f164, %f87, %f163; + mul.f32 %f165, %f87, %f162; + .loc 1 70 24 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:70:24 + mul.f32 %f166, %f165, %f159; + mul.f32 %f167, %f164, %f158; + .loc 1 72 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:72:53 + cvt.rn.bf16x2.f32 %r135, %f167, %f166; + // begin inline asm + @%p35 st.global.b32 [ %rd78 + 0 ], { %r135 }; + // end inline asm + .loc 1 73 29 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:29 + add.s64 %rd79, %rd8, %rd85; + .loc 1 73 53 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:73:53 + cvt.rn.bf16x2.f32 %r136, %f163, %f162; + // begin inline asm + @%p35 st.global.b32 [ %rd79 + 0 ], { %r136 }; + // end inline asm + .loc 1 48 4 // c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py:48:4 + ret; +$L__tmp5: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/62/c62ht5sat4th6qg7lspfb4fa3jtzrr63akwvgp2t6k6gbvb4oigf.py" + .file 2 "/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 1 // DW_CHILDREN_yes +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 2 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 0 // DW_CHILDREN_no +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 32 // DW_AT_inline +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 3 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 1 // DW_CHILDREN_yes +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 4 // Abbreviation Code +.b8 29 // DW_TAG_inlined_subroutine +.b8 0 // DW_CHILDREN_no +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 88 // DW_AT_call_file +.b8 11 // DW_FORM_data1 +.b8 89 // DW_AT_call_line +.b8 11 // DW_FORM_data1 +.b8 87 // DW_AT_call_column +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 255 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0xf8 DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 54 +.b8 50 +.b8 104 +.b8 116 +.b8 53 +.b8 115 +.b8 97 +.b8 116 +.b8 52 +.b8 116 +.b8 104 +.b8 54 +.b8 113 +.b8 103 +.b8 55 +.b8 108 +.b8 115 +.b8 112 +.b8 102 +.b8 98 +.b8 52 +.b8 102 +.b8 97 +.b8 51 +.b8 106 +.b8 116 +.b8 122 +.b8 114 +.b8 114 +.b8 54 +.b8 51 +.b8 97 +.b8 107 +.b8 119 +.b8 118 +.b8 103 +.b8 112 +.b8 50 +.b8 116 +.b8 54 +.b8 107 +.b8 54 +.b8 103 +.b8 98 +.b8 118 +.b8 98 +.b8 52 +.b8 111 +.b8 105 +.b8 103 +.b8 102 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 54 +.b8 50 +.b8 0 +.b8 2 // Abbrev [2] 0x9f:0x35 DW_TAG_subprogram +.b8 116 // DW_AT_name +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 95 +.b8 114 +.b8 101 +.b8 100 +.b8 95 +.b8 102 +.b8 117 +.b8 115 +.b8 101 +.b8 100 +.b8 95 +.b8 95 +.b8 116 +.b8 111 +.b8 95 +.b8 99 +.b8 111 +.b8 112 +.b8 121 +.b8 95 +.b8 97 +.b8 100 +.b8 100 +.b8 95 +.b8 109 +.b8 101 +.b8 97 +.b8 110 +.b8 95 +.b8 109 +.b8 117 +.b8 108 +.b8 95 +.b8 112 +.b8 111 +.b8 119 +.b8 95 +.b8 114 +.b8 115 +.b8 113 +.b8 114 +.b8 116 +.b8 95 +.b8 50 +.b8 0 +.b8 1 // DW_AT_inline +.b8 3 // Abbrev [3] 0xd4:0x2e DW_TAG_subprogram +.b64 $L__func_begin0 // DW_AT_low_pc +.b64 $L__func_end0 // DW_AT_high_pc +.b32 159 // DW_AT_abstract_origin +.b8 4 // Abbrev [4] 0xe9:0x18 DW_TAG_inlined_subroutine +.b32 159 // DW_AT_abstract_origin +.b64 $L__tmp1 // DW_AT_low_pc +.b64 $L__tmp4 // DW_AT_high_pc +.b8 1 // DW_AT_call_file +.b8 47 // DW_AT_call_line +.b8 27 // DW_AT_call_column +.b8 0 // End Of Children Mark +.b8 0 // End Of Children Mark + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/FZW6GSWPAIDMJY6TOPXLGHZLL2NXNGCVFQCYEVWRU4CZSDZSDOBQ/triton_poi_fused_add_mul_sub_4.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/FZW6GSWPAIDMJY6TOPXLGHZLL2NXNGCVFQCYEVWRU4CZSDZSDOBQ/triton_poi_fused_add_mul_sub_4.cubin new file mode 100644 index 0000000000000000000000000000000000000000..e5252c6394b3eb5e4ad61e0e614bc55e3abe8d00 Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/FZW6GSWPAIDMJY6TOPXLGHZLL2NXNGCVFQCYEVWRU4CZSDZSDOBQ/triton_poi_fused_add_mul_sub_4.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/__grp__triton_poi_fused_add_mul_sub_6.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/__grp__triton_poi_fused_add_mul_sub_6.json new file mode 100644 index 0000000000000000000000000000000000000000..64910eb41ab03600b3b75d16a55704d141f6f1e5 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/__grp__triton_poi_fused_add_mul_sub_6.json @@ -0,0 +1 @@ +{"child_paths": {"triton_poi_fused_add_mul_sub_6.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttir", "triton_poi_fused_add_mul_sub_6.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttgir", "triton_poi_fused_add_mul_sub_6.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.llir", "triton_poi_fused_add_mul_sub_6.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ptx", "triton_poi_fused_add_mul_sub_6.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.cubin", "triton_poi_fused_add_mul_sub_6.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.json new file mode 100644 index 0000000000000000000000000000000000000000..1287572a0c68db2b735ceb736a44d002f9d938e0 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.json @@ -0,0 +1 @@ +{"hash": "362a39aa159baa19fc870b6d42e7128856ee21943f77f9c4adbf861da224a434", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 4, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 0, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_poi_fused_add_mul_sub_6"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.llir new file mode 100644 index 0000000000000000000000000000000000000000..a9ab76472fe6a2e9668b36c91fa6aeeffacd78e0 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.llir @@ -0,0 +1,673 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@assertFunc_0 = internal constant [8 x i8] c"unknown\00" +@assertFile_0 = internal constant [134 x i8] c"/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py\00" +@assertMessage_0 = internal constant [41 x i8] c"index out of bounds: 0 <= tmp16 < 131072\00" +@.str = private unnamed_addr constant [11 x i8] c"__CUDA_FTZ\00", align 1 + +; Function Attrs: noreturn +declare !dbg !6 void @__assertfail(ptr, ptr, i32, ptr, i64) local_unnamed_addr #0 + +define ptx_kernel void @triton_poi_fused_add_mul_sub_6(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(1) %2, ptr addrspace(1) %3, ptr addrspace(1) %4, ptr addrspace(1) %5, ptr addrspace(1) %6, i32 %7, ptr addrspace(1) readnone captures(none) %8) local_unnamed_addr !dbg !10 { + %10 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !11 + %11 = shl i32 %10, 10, !dbg !12 + %12 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !13 + %13 = shl i32 %12, 3, !dbg !13 + %14 = and i32 %13, 1016, !dbg !13 + %15 = or disjoint i32 %14, %11, !dbg !14 + %16 = or disjoint i32 %15, 1, !dbg !14 + %17 = or disjoint i32 %15, 2, !dbg !14 + %18 = or disjoint i32 %15, 3, !dbg !14 + %19 = or disjoint i32 %15, 4, !dbg !14 + %20 = or disjoint i32 %15, 5, !dbg !14 + %21 = or disjoint i32 %15, 6, !dbg !14 + %22 = or disjoint i32 %15, 7, !dbg !14 + %23 = icmp slt i32 %15, %7, !dbg !15 + %24 = sdiv i32 %15, 64, !dbg !16 + %25 = mul i32 %24, 64, !dbg !17 + %.decomposed = sub i32 %15, %25, !dbg !17 + %26 = srem i32 %16, 64, !dbg !17 + %27 = srem i32 %17, 64, !dbg !17 + %28 = srem i32 %18, 64, !dbg !17 + %29 = srem i32 %19, 64, !dbg !17 + %30 = srem i32 %20, 64, !dbg !17 + %31 = srem i32 %21, 64, !dbg !17 + %32 = srem i32 %22, 64, !dbg !17 + %33 = srem i32 %24, 8, !dbg !18 + %34 = sdiv i32 %15, 512, !dbg !19 + %35 = shl nsw i32 %33, 7, !dbg !20 + %36 = mul i32 %34, 7168, !dbg !21 + %37 = add i32 %35, %36, !dbg !22 + %38 = add i32 %37, 5120, !dbg !23 + %39 = add i32 %38, %.decomposed, !dbg !24 + %40 = sext i32 %39 to i64, !dbg !25 + %41 = getelementptr bfloat, ptr addrspace(1) %0, i64 %40, !dbg !25 + %42 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %41, i1 %23) #5, !dbg !26 + %43 = sext i32 %24 to i64, !dbg !27 + %44 = getelementptr float, ptr addrspace(1) %1, i64 %43, !dbg !27 + %45 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %46 = bitcast i32 %45 to float, !dbg !28 + %47 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %48 = bitcast i32 %47 to float, !dbg !28 + %49 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %50 = bitcast i32 %49 to float, !dbg !28 + %51 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %52 = bitcast i32 %51 to float, !dbg !28 + %53 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %54 = bitcast i32 %53 to float, !dbg !28 + %55 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %56 = bitcast i32 %55 to float, !dbg !28 + %57 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %58 = bitcast i32 %57 to float, !dbg !28 + %59 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !28 + %60 = bitcast i32 %59 to float, !dbg !28 + %61 = sext i32 %.decomposed to i64, !dbg !29 + %62 = getelementptr bfloat, ptr addrspace(1) %2, i64 %61, !dbg !29 + %63 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %62, i1 %23) #5, !dbg !30 + %64 = sext i32 %34 to i64, !dbg !31 + %65 = getelementptr i64, ptr addrspace(1) %3, i64 %64, !dbg !31 + %66 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %67 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %68 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %69 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %70 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %71 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %72 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %73 = tail call i64 asm sideeffect "mov.u64 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b64 { $0 }, [ $1 + 0 ];", "=l,l,b"(ptr addrspace(1) %65, i1 %23) #5, !dbg !32 + %74 = add nsw i32 %.decomposed, 64, !dbg !33 + %75 = add i32 %37, 5184, !dbg !34 + %76 = add nsw i32 %75, %.decomposed, !dbg !35 + %77 = add nsw i32 %75, %26, !dbg !35 + %78 = add nsw i32 %75, %27, !dbg !35 + %79 = add nsw i32 %75, %28, !dbg !35 + %80 = add nsw i32 %75, %29, !dbg !35 + %81 = add nsw i32 %75, %30, !dbg !35 + %82 = add nsw i32 %75, %31, !dbg !35 + %83 = add nsw i32 %75, %32, !dbg !35 + %84 = sext i32 %76 to i64, !dbg !36 + %85 = getelementptr bfloat, ptr addrspace(1) %0, i64 %84, !dbg !36 + %86 = sext i32 %77 to i64, !dbg !36 + %87 = getelementptr bfloat, ptr addrspace(1) %0, i64 %86, !dbg !36 + %88 = sext i32 %78 to i64, !dbg !36 + %89 = getelementptr bfloat, ptr addrspace(1) %0, i64 %88, !dbg !36 + %90 = sext i32 %79 to i64, !dbg !36 + %91 = getelementptr bfloat, ptr addrspace(1) %0, i64 %90, !dbg !36 + %92 = sext i32 %80 to i64, !dbg !36 + %93 = getelementptr bfloat, ptr addrspace(1) %0, i64 %92, !dbg !36 + %94 = sext i32 %81 to i64, !dbg !36 + %95 = getelementptr bfloat, ptr addrspace(1) %0, i64 %94, !dbg !36 + %96 = sext i32 %82 to i64, !dbg !36 + %97 = getelementptr bfloat, ptr addrspace(1) %0, i64 %96, !dbg !36 + %98 = sext i32 %83 to i64, !dbg !36 + %99 = getelementptr bfloat, ptr addrspace(1) %0, i64 %98, !dbg !36 + %100 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %85, i1 %23) #5, !dbg !37 + %101 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %87, i1 %23) #5, !dbg !37 + %102 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %89, i1 %23) #5, !dbg !37 + %103 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %91, i1 %23) #5, !dbg !37 + %104 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %93, i1 %23) #5, !dbg !37 + %105 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %95, i1 %23) #5, !dbg !37 + %106 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %97, i1 %23) #5, !dbg !37 + %107 = tail call i16 asm sideeffect "mov.u16 $0, 0x0;\0A\09@$2 ld.global.b16 { $0 }, [ $1 + 0 ];", "=c,l,b"(ptr addrspace(1) %99, i1 %23) #5, !dbg !37 + %108 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %109 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %110 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %111 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %112 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %113 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %114 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %115 = tail call i32 asm sideeffect "mov.u32 $0, 0x0;\0A\09@$2 ld.global.L1::evict_last.b32 { $0 }, [ $1 + 0 ];", "=r,l,b"(ptr addrspace(1) %44, i1 %23) #5, !dbg !38 + %116 = zext nneg i32 %74 to i64, !dbg !39 + %117 = getelementptr bfloat, ptr addrspace(1) %2, i64 %116, !dbg !39 + %118 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.L1::evict_last.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %117, i1 %23) #5, !dbg !40 + %119 = tail call float @llvm.nvvm.div.full(float %46, float 1.280000e+02), !dbg !41 + %120 = tail call float @llvm.nvvm.div.full(float %48, float 1.280000e+02), !dbg !41 + %121 = tail call float @llvm.nvvm.div.full(float %50, float 1.280000e+02), !dbg !41 + %122 = tail call float @llvm.nvvm.div.full(float %52, float 1.280000e+02), !dbg !41 + %123 = tail call float @llvm.nvvm.div.full(float %54, float 1.280000e+02), !dbg !41 + %124 = tail call float @llvm.nvvm.div.full(float %56, float 1.280000e+02), !dbg !41 + %125 = tail call float @llvm.nvvm.div.full(float %58, float 1.280000e+02), !dbg !41 + %126 = tail call float @llvm.nvvm.div.full(float %60, float 1.280000e+02), !dbg !41 + %127 = fadd float %119, 0x3EB0C6F7A0000000, !dbg !42 + %128 = fadd float %120, 0x3EB0C6F7A0000000, !dbg !42 + %129 = fadd float %121, 0x3EB0C6F7A0000000, !dbg !42 + %130 = fadd float %122, 0x3EB0C6F7A0000000, !dbg !42 + %131 = fadd float %123, 0x3EB0C6F7A0000000, !dbg !42 + %132 = fadd float %124, 0x3EB0C6F7A0000000, !dbg !42 + %133 = fadd float %125, 0x3EB0C6F7A0000000, !dbg !42 + %134 = fadd float %126, 0x3EB0C6F7A0000000, !dbg !42 + %135 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i = icmp eq i32 %135, 0, !dbg !43 + br i1 %.not.i, label %138, label %136, !dbg !43 + +136: ; preds = %9 + %137 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %127), !dbg !43 + br label %__nv_rsqrtf.exit, !dbg !43 + +138: ; preds = %9 + %139 = tail call float @llvm.nvvm.rsqrt.approx.f(float %127), !dbg !43 + br label %__nv_rsqrtf.exit, !dbg !43 + +__nv_rsqrtf.exit: ; preds = %136, %138 + %.0.i = phi float [ %137, %136 ], [ %139, %138 ], !dbg !43 + %140 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i2 = icmp eq i32 %140, 0, !dbg !43 + br i1 %.not.i2, label %143, label %141, !dbg !43 + +141: ; preds = %__nv_rsqrtf.exit + %142 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %128), !dbg !43 + br label %__nv_rsqrtf.exit4, !dbg !43 + +143: ; preds = %__nv_rsqrtf.exit + %144 = tail call float @llvm.nvvm.rsqrt.approx.f(float %128), !dbg !43 + br label %__nv_rsqrtf.exit4, !dbg !43 + +__nv_rsqrtf.exit4: ; preds = %141, %143 + %.0.i3 = phi float [ %142, %141 ], [ %144, %143 ], !dbg !43 + %145 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i5 = icmp eq i32 %145, 0, !dbg !43 + br i1 %.not.i5, label %148, label %146, !dbg !43 + +146: ; preds = %__nv_rsqrtf.exit4 + %147 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %129), !dbg !43 + br label %__nv_rsqrtf.exit7, !dbg !43 + +148: ; preds = %__nv_rsqrtf.exit4 + %149 = tail call float @llvm.nvvm.rsqrt.approx.f(float %129), !dbg !43 + br label %__nv_rsqrtf.exit7, !dbg !43 + +__nv_rsqrtf.exit7: ; preds = %146, %148 + %.0.i6 = phi float [ %147, %146 ], [ %149, %148 ], !dbg !43 + %150 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i8 = icmp eq i32 %150, 0, !dbg !43 + br i1 %.not.i8, label %153, label %151, !dbg !43 + +151: ; preds = %__nv_rsqrtf.exit7 + %152 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %130), !dbg !43 + br label %__nv_rsqrtf.exit10, !dbg !43 + +153: ; preds = %__nv_rsqrtf.exit7 + %154 = tail call float @llvm.nvvm.rsqrt.approx.f(float %130), !dbg !43 + br label %__nv_rsqrtf.exit10, !dbg !43 + +__nv_rsqrtf.exit10: ; preds = %151, %153 + %.0.i9 = phi float [ %152, %151 ], [ %154, %153 ], !dbg !43 + %155 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i11 = icmp eq i32 %155, 0, !dbg !43 + br i1 %.not.i11, label %158, label %156, !dbg !43 + +156: ; preds = %__nv_rsqrtf.exit10 + %157 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %131), !dbg !43 + br label %__nv_rsqrtf.exit13, !dbg !43 + +158: ; preds = %__nv_rsqrtf.exit10 + %159 = tail call float @llvm.nvvm.rsqrt.approx.f(float %131), !dbg !43 + br label %__nv_rsqrtf.exit13, !dbg !43 + +__nv_rsqrtf.exit13: ; preds = %156, %158 + %.0.i12 = phi float [ %157, %156 ], [ %159, %158 ], !dbg !43 + %160 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i14 = icmp eq i32 %160, 0, !dbg !43 + br i1 %.not.i14, label %163, label %161, !dbg !43 + +161: ; preds = %__nv_rsqrtf.exit13 + %162 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %132), !dbg !43 + br label %__nv_rsqrtf.exit16, !dbg !43 + +163: ; preds = %__nv_rsqrtf.exit13 + %164 = tail call float @llvm.nvvm.rsqrt.approx.f(float %132), !dbg !43 + br label %__nv_rsqrtf.exit16, !dbg !43 + +__nv_rsqrtf.exit16: ; preds = %161, %163 + %.0.i15 = phi float [ %162, %161 ], [ %164, %163 ], !dbg !43 + %165 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i17 = icmp eq i32 %165, 0, !dbg !43 + br i1 %.not.i17, label %168, label %166, !dbg !43 + +166: ; preds = %__nv_rsqrtf.exit16 + %167 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %133), !dbg !43 + br label %__nv_rsqrtf.exit19, !dbg !43 + +168: ; preds = %__nv_rsqrtf.exit16 + %169 = tail call float @llvm.nvvm.rsqrt.approx.f(float %133), !dbg !43 + br label %__nv_rsqrtf.exit19, !dbg !43 + +__nv_rsqrtf.exit19: ; preds = %166, %168 + %.0.i18 = phi float [ %167, %166 ], [ %169, %168 ], !dbg !43 + %170 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !43 + %.not.i20 = icmp eq i32 %170, 0, !dbg !43 + br i1 %.not.i20, label %173, label %171, !dbg !43 + +171: ; preds = %__nv_rsqrtf.exit19 + %172 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %134), !dbg !43 + br label %__nv_rsqrtf.exit22, !dbg !43 + +173: ; preds = %__nv_rsqrtf.exit19 + %174 = tail call float @llvm.nvvm.rsqrt.approx.f(float %134), !dbg !43 + br label %__nv_rsqrtf.exit22, !dbg !43 + +__nv_rsqrtf.exit22: ; preds = %171, %173 + %.0.i21 = phi float [ %172, %171 ], [ %174, %173 ], !dbg !43 + %175 = lshr i64 %66, 46, !dbg !44 + %176 = and i64 %175, 131072, !dbg !44 + %177 = add i64 %176, %66, !dbg !44 + %178 = icmp ugt i64 %177, 131071, !dbg !45 + %.not1 = and i1 %23, %178, !dbg !46 + br i1 %.not1, label %179, label %180, !dbg !46 + +179: ; preds = %__nv_rsqrtf.exit22 + tail call void @__assertfail(ptr nonnull @assertMessage_0, ptr nonnull @assertFile_0, i32 46, ptr nonnull @assertFunc_0, i64 1), !dbg !46 + unreachable, !dbg !46 + +180: ; preds = %__nv_rsqrtf.exit22 + %181 = bitcast i32 %115 to float, !dbg !38 + %182 = bitcast i32 %114 to float, !dbg !38 + %183 = bitcast i32 %113 to float, !dbg !38 + %184 = bitcast i32 %112 to float, !dbg !38 + %185 = bitcast i32 %111 to float, !dbg !38 + %186 = bitcast i32 %110 to float, !dbg !38 + %187 = bitcast i32 %109 to float, !dbg !38 + %188 = bitcast i32 %108 to float, !dbg !38 + tail call void @llvm.nvvm.barrier0(), !dbg !46 + %.idx = shl i64 %177, 8, !dbg !47 + %189 = getelementptr i8, ptr addrspace(1) %4, i64 %.idx, !dbg !47 + %190 = getelementptr bfloat, ptr addrspace(1) %189, i64 %61, !dbg !47 + %191 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %190, i1 %23) #5, !dbg !48 + %192 = tail call float @llvm.nvvm.div.full(float %188, float 1.280000e+02), !dbg !49 + %193 = tail call float @llvm.nvvm.div.full(float %187, float 1.280000e+02), !dbg !49 + %194 = tail call float @llvm.nvvm.div.full(float %186, float 1.280000e+02), !dbg !49 + %195 = tail call float @llvm.nvvm.div.full(float %185, float 1.280000e+02), !dbg !49 + %196 = tail call float @llvm.nvvm.div.full(float %184, float 1.280000e+02), !dbg !49 + %197 = tail call float @llvm.nvvm.div.full(float %183, float 1.280000e+02), !dbg !49 + %198 = tail call float @llvm.nvvm.div.full(float %182, float 1.280000e+02), !dbg !49 + %199 = tail call float @llvm.nvvm.div.full(float %181, float 1.280000e+02), !dbg !49 + %200 = fadd float %192, 0x3EB0C6F7A0000000, !dbg !50 + %201 = fadd float %193, 0x3EB0C6F7A0000000, !dbg !50 + %202 = fadd float %194, 0x3EB0C6F7A0000000, !dbg !50 + %203 = fadd float %195, 0x3EB0C6F7A0000000, !dbg !50 + %204 = fadd float %196, 0x3EB0C6F7A0000000, !dbg !50 + %205 = fadd float %197, 0x3EB0C6F7A0000000, !dbg !50 + %206 = fadd float %198, 0x3EB0C6F7A0000000, !dbg !50 + %207 = fadd float %199, 0x3EB0C6F7A0000000, !dbg !50 + %208 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i23 = icmp eq i32 %208, 0, !dbg !51 + br i1 %.not.i23, label %211, label %209, !dbg !51 + +209: ; preds = %180 + %210 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %200), !dbg !51 + br label %__nv_rsqrtf.exit25, !dbg !51 + +211: ; preds = %180 + %212 = tail call float @llvm.nvvm.rsqrt.approx.f(float %200), !dbg !51 + br label %__nv_rsqrtf.exit25, !dbg !51 + +__nv_rsqrtf.exit25: ; preds = %209, %211 + %.0.i24 = phi float [ %210, %209 ], [ %212, %211 ], !dbg !51 + %213 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i26 = icmp eq i32 %213, 0, !dbg !51 + br i1 %.not.i26, label %216, label %214, !dbg !51 + +214: ; preds = %__nv_rsqrtf.exit25 + %215 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %201), !dbg !51 + br label %__nv_rsqrtf.exit28, !dbg !51 + +216: ; preds = %__nv_rsqrtf.exit25 + %217 = tail call float @llvm.nvvm.rsqrt.approx.f(float %201), !dbg !51 + br label %__nv_rsqrtf.exit28, !dbg !51 + +__nv_rsqrtf.exit28: ; preds = %214, %216 + %.0.i27 = phi float [ %215, %214 ], [ %217, %216 ], !dbg !51 + %218 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i29 = icmp eq i32 %218, 0, !dbg !51 + br i1 %.not.i29, label %221, label %219, !dbg !51 + +219: ; preds = %__nv_rsqrtf.exit28 + %220 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %202), !dbg !51 + br label %__nv_rsqrtf.exit31, !dbg !51 + +221: ; preds = %__nv_rsqrtf.exit28 + %222 = tail call float @llvm.nvvm.rsqrt.approx.f(float %202), !dbg !51 + br label %__nv_rsqrtf.exit31, !dbg !51 + +__nv_rsqrtf.exit31: ; preds = %219, %221 + %.0.i30 = phi float [ %220, %219 ], [ %222, %221 ], !dbg !51 + %223 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i32 = icmp eq i32 %223, 0, !dbg !51 + br i1 %.not.i32, label %226, label %224, !dbg !51 + +224: ; preds = %__nv_rsqrtf.exit31 + %225 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %203), !dbg !51 + br label %__nv_rsqrtf.exit34, !dbg !51 + +226: ; preds = %__nv_rsqrtf.exit31 + %227 = tail call float @llvm.nvvm.rsqrt.approx.f(float %203), !dbg !51 + br label %__nv_rsqrtf.exit34, !dbg !51 + +__nv_rsqrtf.exit34: ; preds = %224, %226 + %.0.i33 = phi float [ %225, %224 ], [ %227, %226 ], !dbg !51 + %228 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i35 = icmp eq i32 %228, 0, !dbg !51 + br i1 %.not.i35, label %231, label %229, !dbg !51 + +229: ; preds = %__nv_rsqrtf.exit34 + %230 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %204), !dbg !51 + br label %__nv_rsqrtf.exit37, !dbg !51 + +231: ; preds = %__nv_rsqrtf.exit34 + %232 = tail call float @llvm.nvvm.rsqrt.approx.f(float %204), !dbg !51 + br label %__nv_rsqrtf.exit37, !dbg !51 + +__nv_rsqrtf.exit37: ; preds = %229, %231 + %.0.i36 = phi float [ %230, %229 ], [ %232, %231 ], !dbg !51 + %233 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i38 = icmp eq i32 %233, 0, !dbg !51 + br i1 %.not.i38, label %236, label %234, !dbg !51 + +234: ; preds = %__nv_rsqrtf.exit37 + %235 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %205), !dbg !51 + br label %__nv_rsqrtf.exit40, !dbg !51 + +236: ; preds = %__nv_rsqrtf.exit37 + %237 = tail call float @llvm.nvvm.rsqrt.approx.f(float %205), !dbg !51 + br label %__nv_rsqrtf.exit40, !dbg !51 + +__nv_rsqrtf.exit40: ; preds = %234, %236 + %.0.i39 = phi float [ %235, %234 ], [ %237, %236 ], !dbg !51 + %238 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i41 = icmp eq i32 %238, 0, !dbg !51 + br i1 %.not.i41, label %241, label %239, !dbg !51 + +239: ; preds = %__nv_rsqrtf.exit40 + %240 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %206), !dbg !51 + br label %__nv_rsqrtf.exit43, !dbg !51 + +241: ; preds = %__nv_rsqrtf.exit40 + %242 = tail call float @llvm.nvvm.rsqrt.approx.f(float %206), !dbg !51 + br label %__nv_rsqrtf.exit43, !dbg !51 + +__nv_rsqrtf.exit43: ; preds = %239, %241 + %.0.i42 = phi float [ %240, %239 ], [ %242, %241 ], !dbg !51 + %243 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !51 + %.not.i44 = icmp eq i32 %243, 0, !dbg !51 + br i1 %.not.i44, label %246, label %244, !dbg !51 + +244: ; preds = %__nv_rsqrtf.exit43 + %245 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %207), !dbg !51 + br label %__nv_rsqrtf.exit46, !dbg !51 + +246: ; preds = %__nv_rsqrtf.exit43 + %247 = tail call float @llvm.nvvm.rsqrt.approx.f(float %207), !dbg !51 + br label %__nv_rsqrtf.exit46, !dbg !51 + +__nv_rsqrtf.exit46: ; preds = %244, %246 + %.0.i45 = phi float [ %245, %244 ], [ %247, %246 ], !dbg !51 + %248 = extractvalue { i32, i32, i32, i32 } %42, 3, !dbg !26 + %249 = bitcast i32 %248 to <2 x bfloat>, !dbg !26 + %250 = extractvalue { i32, i32, i32, i32 } %63, 3, !dbg !30 + %251 = bitcast i32 %250 to <2 x bfloat>, !dbg !30 + %252 = extractvalue { i32, i32, i32, i32 } %191, 3, !dbg !48 + %253 = bitcast i32 %252 to <2 x bfloat>, !dbg !48 + %254 = extractvalue { i32, i32, i32, i32 } %42, 2, !dbg !26 + %255 = bitcast i32 %254 to <2 x bfloat>, !dbg !26 + %256 = extractvalue { i32, i32, i32, i32 } %63, 2, !dbg !30 + %257 = bitcast i32 %256 to <2 x bfloat>, !dbg !30 + %258 = extractvalue { i32, i32, i32, i32 } %191, 2, !dbg !48 + %259 = bitcast i32 %258 to <2 x bfloat>, !dbg !48 + %260 = extractvalue { i32, i32, i32, i32 } %42, 1, !dbg !26 + %261 = bitcast i32 %260 to <2 x bfloat>, !dbg !26 + %262 = extractvalue { i32, i32, i32, i32 } %63, 1, !dbg !30 + %263 = bitcast i32 %262 to <2 x bfloat>, !dbg !30 + %264 = extractvalue { i32, i32, i32, i32 } %191, 1, !dbg !48 + %265 = bitcast i32 %264 to <2 x bfloat>, !dbg !48 + %266 = extractvalue { i32, i32, i32, i32 } %42, 0, !dbg !26 + %267 = bitcast i32 %266 to <2 x bfloat>, !dbg !26 + %268 = extractvalue { i32, i32, i32, i32 } %63, 0, !dbg !30 + %269 = bitcast i32 %268 to <2 x bfloat>, !dbg !30 + %270 = extractvalue { i32, i32, i32, i32 } %191, 0, !dbg !48 + %271 = bitcast i32 %270 to <2 x bfloat>, !dbg !48 + %272 = insertelement <2 x i16> poison, i16 %100, i64 0, !dbg !37 + %273 = insertelement <2 x i16> %272, i16 %101, i64 1, !dbg !37 + %274 = bitcast <2 x i16> %273 to <2 x bfloat>, !dbg !37 + %275 = insertelement <2 x i16> poison, i16 %102, i64 0, !dbg !37 + %276 = insertelement <2 x i16> %275, i16 %103, i64 1, !dbg !37 + %277 = bitcast <2 x i16> %276 to <2 x bfloat>, !dbg !37 + %278 = insertelement <2 x i16> poison, i16 %104, i64 0, !dbg !37 + %279 = insertelement <2 x i16> %278, i16 %105, i64 1, !dbg !37 + %280 = bitcast <2 x i16> %279 to <2 x bfloat>, !dbg !37 + %281 = insertelement <2 x i16> poison, i16 %106, i64 0, !dbg !37 + %282 = insertelement <2 x i16> %281, i16 %107, i64 1, !dbg !37 + %283 = bitcast <2 x i16> %282 to <2 x bfloat>, !dbg !37 + %284 = extractvalue { i32, i32, i32, i32 } %118, 0, !dbg !40 + %285 = bitcast i32 %284 to <2 x bfloat>, !dbg !40 + %286 = extractvalue { i32, i32, i32, i32 } %118, 1, !dbg !40 + %287 = bitcast i32 %286 to <2 x bfloat>, !dbg !40 + %288 = extractvalue { i32, i32, i32, i32 } %118, 2, !dbg !40 + %289 = bitcast i32 %288 to <2 x bfloat>, !dbg !40 + %290 = extractvalue { i32, i32, i32, i32 } %118, 3, !dbg !40 + %291 = bitcast i32 %290 to <2 x bfloat>, !dbg !40 + %292 = getelementptr bfloat, ptr addrspace(1) %189, i64 %116, !dbg !52 + %293 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, 0x0;\0A\09mov.u32 $1, 0x0;\0A\09mov.u32 $2, 0x0;\0A\09mov.u32 $3, 0x0;\0A\09@$5 ld.global.v4.b32 { $0, $1, $2, $3 }, [ $4 + 0 ];", "=r,=r,=r,=r,l,b"(ptr addrspace(1) %292, i1 %23) #5, !dbg !53 + %294 = extractvalue { i32, i32, i32, i32 } %293, 0, !dbg !53 + %295 = bitcast i32 %294 to <2 x bfloat>, !dbg !53 + %296 = extractvalue { i32, i32, i32, i32 } %293, 1, !dbg !53 + %297 = bitcast i32 %296 to <2 x bfloat>, !dbg !53 + %298 = extractvalue { i32, i32, i32, i32 } %293, 2, !dbg !53 + %299 = bitcast i32 %298 to <2 x bfloat>, !dbg !53 + %300 = extractvalue { i32, i32, i32, i32 } %293, 3, !dbg !53 + %301 = bitcast i32 %300 to <2 x bfloat>, !dbg !53 + %302 = shl i32 %24, 7, !dbg !54 + %303 = add i32 %302, %.decomposed, !dbg !55 + %304 = sext i32 %303 to i64, !dbg !56 + %305 = getelementptr bfloat, ptr addrspace(1) %5, i64 %304, !dbg !56 + %306 = fpext <2 x bfloat> %267 to <2 x float>, !dbg !57 + %307 = insertelement <2 x float> poison, float %.0.i, i64 0, !dbg !58 + %308 = insertelement <2 x float> %307, float %.0.i3, i64 1, !dbg !58 + %309 = fmul <2 x float> %308, %306, !dbg !58 + %310 = fpext <2 x bfloat> %269 to <2 x float>, !dbg !59 + %311 = fmul <2 x float> %309, %310, !dbg !60 + %312 = fpext <2 x bfloat> %271 to <2 x float>, !dbg !61 + %313 = fmul <2 x float> %311, %312, !dbg !62 + %314 = fpext <2 x bfloat> %274 to <2 x float>, !dbg !63 + %315 = fpext <2 x bfloat> %285 to <2 x float>, !dbg !64 + %316 = insertelement <2 x float> poison, float %.0.i24, i64 0, !dbg !65 + %317 = insertelement <2 x float> %316, float %.0.i27, i64 1, !dbg !65 + %318 = fmul <2 x float> %317, %314, !dbg !65 + %319 = fmul <2 x float> %318, %315, !dbg !66 + %320 = fpext <2 x bfloat> %295 to <2 x float>, !dbg !67 + %321 = fmul <2 x float> %319, %320, !dbg !68 + %322 = fsub <2 x float> %313, %321, !dbg !69 + %323 = fptrunc <2 x float> %322 to <2 x bfloat>, !dbg !70 + %324 = fpext <2 x bfloat> %261 to <2 x float>, !dbg !57 + %325 = insertelement <2 x float> poison, float %.0.i6, i64 0, !dbg !58 + %326 = insertelement <2 x float> %325, float %.0.i9, i64 1, !dbg !58 + %327 = fmul <2 x float> %326, %324, !dbg !58 + %328 = fpext <2 x bfloat> %263 to <2 x float>, !dbg !59 + %329 = fmul <2 x float> %327, %328, !dbg !60 + %330 = fpext <2 x bfloat> %265 to <2 x float>, !dbg !61 + %331 = fmul <2 x float> %329, %330, !dbg !62 + %332 = fpext <2 x bfloat> %277 to <2 x float>, !dbg !63 + %333 = fpext <2 x bfloat> %287 to <2 x float>, !dbg !64 + %334 = insertelement <2 x float> poison, float %.0.i30, i64 0, !dbg !65 + %335 = insertelement <2 x float> %334, float %.0.i33, i64 1, !dbg !65 + %336 = fmul <2 x float> %335, %332, !dbg !65 + %337 = fmul <2 x float> %336, %333, !dbg !66 + %338 = fpext <2 x bfloat> %297 to <2 x float>, !dbg !67 + %339 = fmul <2 x float> %337, %338, !dbg !68 + %340 = fsub <2 x float> %331, %339, !dbg !69 + %341 = fptrunc <2 x float> %340 to <2 x bfloat>, !dbg !70 + %342 = fpext <2 x bfloat> %255 to <2 x float>, !dbg !57 + %343 = insertelement <2 x float> poison, float %.0.i12, i64 0, !dbg !58 + %344 = insertelement <2 x float> %343, float %.0.i15, i64 1, !dbg !58 + %345 = fmul <2 x float> %344, %342, !dbg !58 + %346 = fpext <2 x bfloat> %257 to <2 x float>, !dbg !59 + %347 = fmul <2 x float> %345, %346, !dbg !60 + %348 = fpext <2 x bfloat> %259 to <2 x float>, !dbg !61 + %349 = fmul <2 x float> %347, %348, !dbg !62 + %350 = fpext <2 x bfloat> %280 to <2 x float>, !dbg !63 + %351 = fpext <2 x bfloat> %289 to <2 x float>, !dbg !64 + %352 = insertelement <2 x float> poison, float %.0.i36, i64 0, !dbg !65 + %353 = insertelement <2 x float> %352, float %.0.i39, i64 1, !dbg !65 + %354 = fmul <2 x float> %353, %350, !dbg !65 + %355 = fmul <2 x float> %354, %351, !dbg !66 + %356 = fpext <2 x bfloat> %299 to <2 x float>, !dbg !67 + %357 = fmul <2 x float> %355, %356, !dbg !68 + %358 = fsub <2 x float> %349, %357, !dbg !69 + %359 = fptrunc <2 x float> %358 to <2 x bfloat>, !dbg !70 + %360 = fpext <2 x bfloat> %249 to <2 x float>, !dbg !57 + %361 = insertelement <2 x float> poison, float %.0.i18, i64 0, !dbg !58 + %362 = insertelement <2 x float> %361, float %.0.i21, i64 1, !dbg !58 + %363 = fmul <2 x float> %362, %360, !dbg !58 + %364 = fpext <2 x bfloat> %251 to <2 x float>, !dbg !59 + %365 = fmul <2 x float> %363, %364, !dbg !60 + %366 = fpext <2 x bfloat> %253 to <2 x float>, !dbg !61 + %367 = fmul <2 x float> %365, %366, !dbg !62 + %368 = fpext <2 x bfloat> %283 to <2 x float>, !dbg !63 + %369 = fpext <2 x bfloat> %291 to <2 x float>, !dbg !64 + %370 = insertelement <2 x float> poison, float %.0.i42, i64 0, !dbg !65 + %371 = insertelement <2 x float> %370, float %.0.i45, i64 1, !dbg !65 + %372 = fmul <2 x float> %371, %368, !dbg !65 + %373 = fmul <2 x float> %372, %369, !dbg !66 + %374 = fpext <2 x bfloat> %301 to <2 x float>, !dbg !67 + %375 = fmul <2 x float> %373, %374, !dbg !68 + %376 = fsub <2 x float> %367, %375, !dbg !69 + %377 = fptrunc <2 x float> %376 to <2 x bfloat>, !dbg !70 + %378 = bitcast <2 x bfloat> %323 to i32, !dbg !70 + %379 = bitcast <2 x bfloat> %341 to i32, !dbg !70 + %380 = bitcast <2 x bfloat> %359 to i32, !dbg !70 + %381 = bitcast <2 x bfloat> %377 to i32, !dbg !70 + tail call void asm sideeffect "@$5 st.global.v4.b32 [ $4 + 0 ], { $0, $1, $2, $3 };", "r,r,r,r,l,b"(i32 %378, i32 %379, i32 %380, i32 %381, ptr addrspace(1) %305, i1 %23) #5, !dbg !70 + %382 = getelementptr bfloat, ptr addrspace(1) %6, i64 %304, !dbg !71 + %383 = fmul <2 x float> %319, %312, !dbg !72 + %384 = fmul <2 x float> %311, %320, !dbg !73 + %385 = fadd <2 x float> %383, %384, !dbg !74 + %386 = fptrunc <2 x float> %385 to <2 x bfloat>, !dbg !75 + %387 = fmul <2 x float> %337, %330, !dbg !72 + %388 = fmul <2 x float> %329, %338, !dbg !73 + %389 = fadd <2 x float> %387, %388, !dbg !74 + %390 = fptrunc <2 x float> %389 to <2 x bfloat>, !dbg !75 + %391 = fmul <2 x float> %355, %348, !dbg !72 + %392 = fmul <2 x float> %347, %356, !dbg !73 + %393 = fadd <2 x float> %391, %392, !dbg !74 + %394 = fptrunc <2 x float> %393 to <2 x bfloat>, !dbg !75 + %395 = fmul <2 x float> %373, %366, !dbg !72 + %396 = fmul <2 x float> %365, %374, !dbg !73 + %397 = fadd <2 x float> %395, %396, !dbg !74 + %398 = fptrunc <2 x float> %397 to <2 x bfloat>, !dbg !75 + %399 = bitcast <2 x bfloat> %386 to i32, !dbg !75 + %400 = bitcast <2 x bfloat> %390 to i32, !dbg !75 + %401 = bitcast <2 x bfloat> %394 to i32, !dbg !75 + %402 = bitcast <2 x bfloat> %398 to i32, !dbg !75 + tail call void asm sideeffect "@$5 st.global.v4.b32 [ $4 + 0 ], { $0, $1, $2, $3 };", "r,r,r,r,l,b"(i32 %399, i32 %400, i32 %401, i32 %402, ptr addrspace(1) %382, i1 %23) #5, !dbg !75 + ret void, !dbg !76 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #1 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.div.full(float, float) #2 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #3 + +declare i32 @__nvvm_reflect(ptr) local_unnamed_addr #4 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.ftz.f(float) #2 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.f(float) #2 + +attributes #0 = { noreturn } +attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) } +attributes #3 = { convergent nocallback nounwind } +attributes #4 = { "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #5 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng") +!4 = !{ptr @triton_poi_fused_add_mul_sub_6, !"reqntidx", i32 128} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = !DISubprogram(name: "__assertfail", linkageName: "__assertfail", scope: !7, file: !7, type: !8, spFlags: DISPFlagOptimized) +!7 = !DIFile(filename: "", directory: "") +!8 = !DISubroutineType(cc: DW_CC_normal, types: !9) +!9 = !{} +!10 = distinct !DISubprogram(name: "triton_poi_fused_add_mul_sub_6", linkageName: "triton_poi_fused_add_mul_sub_6", scope: !3, file: !3, line: 18, type: !8, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!11 = !DILocation(line: 19, column: 28, scope: !10) +!12 = !DILocation(line: 19, column: 33, scope: !10) +!13 = !DILocation(line: 20, column: 36, scope: !10) +!14 = !DILocation(line: 20, column: 23, scope: !10) +!15 = !DILocation(line: 21, column: 21, scope: !10) +!16 = !DILocation(line: 23, column: 21, scope: !10) +!17 = !DILocation(line: 22, column: 19, scope: !10) +!18 = !DILocation(line: 23, column: 27, scope: !10) +!19 = !DILocation(line: 24, column: 19, scope: !10) +!20 = !DILocation(line: 26, column: 46, scope: !10) +!21 = !DILocation(line: 26, column: 56, scope: !10) +!22 = !DILocation(line: 26, column: 37, scope: !10) +!23 = !DILocation(line: 26, column: 42, scope: !10) +!24 = !DILocation(line: 26, column: 51, scope: !10) +!25 = !DILocation(line: 26, column: 30, scope: !10) +!26 = !DILocation(line: 26, column: 61, scope: !10) +!27 = !DILocation(line: 27, column: 30, scope: !10) +!28 = !DILocation(line: 27, column: 35, scope: !10) +!29 = !DILocation(line: 28, column: 31, scope: !10) +!30 = !DILocation(line: 28, column: 36, scope: !10) +!31 = !DILocation(line: 29, column: 31, scope: !10) +!32 = !DILocation(line: 29, column: 36, scope: !10) +!33 = !DILocation(line: 30, column: 63, scope: !10) +!34 = !DILocation(line: 30, column: 43, scope: !10) +!35 = !DILocation(line: 30, column: 77, scope: !10) +!36 = !DILocation(line: 30, column: 31, scope: !10) +!37 = !DILocation(line: 30, column: 87, scope: !10) +!38 = !DILocation(line: 31, column: 57, scope: !10) +!39 = !DILocation(line: 32, column: 31, scope: !10) +!40 = !DILocation(line: 32, column: 41, scope: !10) +!41 = !DILocation(line: 35, column: 19, scope: !10) +!42 = !DILocation(line: 37, column: 18, scope: !10) +!43 = !DILocation(line: 38, column: 27, scope: !10) +!44 = !DILocation(line: 45, column: 35, scope: !10) +!45 = !DILocation(line: 46, column: 38, scope: !10) +!46 = !DILocation(line: 46, column: 67, scope: !10) +!47 = !DILocation(line: 47, column: 31, scope: !10) +!48 = !DILocation(line: 47, column: 48, scope: !10) +!49 = !DILocation(line: 50, column: 21, scope: !10) +!50 = !DILocation(line: 51, column: 20, scope: !10) +!51 = !DILocation(line: 52, column: 28, scope: !10) +!52 = !DILocation(line: 56, column: 31, scope: !10) +!53 = !DILocation(line: 56, column: 53, scope: !10) +!54 = !DILocation(line: 62, column: 34, scope: !10) +!55 = !DILocation(line: 62, column: 30, scope: !10) +!56 = !DILocation(line: 62, column: 25, scope: !10) +!57 = !DILocation(line: 26, column: 71, scope: !10) +!58 = !DILocation(line: 39, column: 18, scope: !10) +!59 = !DILocation(line: 28, column: 76, scope: !10) +!60 = !DILocation(line: 41, column: 19, scope: !10) +!61 = !DILocation(line: 47, column: 58, scope: !10) +!62 = !DILocation(line: 48, column: 20, scope: !10) +!63 = !DILocation(line: 30, column: 97, scope: !10) +!64 = !DILocation(line: 32, column: 81, scope: !10) +!65 = !DILocation(line: 53, column: 20, scope: !10) +!66 = !DILocation(line: 55, column: 20, scope: !10) +!67 = !DILocation(line: 56, column: 63, scope: !10) +!68 = !DILocation(line: 57, column: 20, scope: !10) +!69 = !DILocation(line: 58, column: 20, scope: !10) +!70 = !DILocation(line: 62, column: 46, scope: !10) +!71 = !DILocation(line: 63, column: 25, scope: !10) +!72 = !DILocation(line: 59, column: 20, scope: !10) +!73 = !DILocation(line: 60, column: 20, scope: !10) +!74 = !DILocation(line: 61, column: 20, scope: !10) +!75 = !DILocation(line: 63, column: 46, scope: !10) +!76 = !DILocation(line: 63, column: 4, scope: !10) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..bd33cceba83330d190f8e06d5b1268483b827711 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttgir @@ -0,0 +1,196 @@ +#blocked = #ttg.blocked<{sizePerThread = [8], threadsPerWarp = [32], warpsPerCTA = [4], order = [0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 4 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_poi_fused_add_mul_sub_6(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg4: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg5: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg6: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg7: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<1.280000e+02> : tensor<1024xf32, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<9.99999997E-7> : tensor<1024xf32, #blocked> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<1024xi64, #blocked> loc(#loc1) + %cst_2 = arith.constant dense<131072> : tensor<1024xi64, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<0> : tensor<1024xi64, #blocked> loc(#loc1) + %c1024_i32 = arith.constant 1024 : i32 loc(#loc1) + %cst_4 = arith.constant dense<64> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_5 = arith.constant dense<8> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_6 = arith.constant dense<512> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_7 = arith.constant dense<5120> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_8 = arith.constant dense<128> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_9 = arith.constant dense<7168> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_10 = arith.constant dense<5184> : tensor<1024xi32, #blocked> loc(#loc1) + %cst_11 = arith.constant dense : tensor<1024xi1, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c1024_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 1024 : i32, start = 0 : i32} : tensor<1024xi32, #blocked> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<1024xi32, #blocked> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<1024xi32, #blocked> loc(#loc5) + %5 = tt.splat %arg7 : i32 -> tensor<1024xi32, #blocked> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<1024xi32, #blocked> loc(#loc6) + %7 = arith.remsi %4, %cst_4 : tensor<1024xi32, #blocked> loc(#loc7) + %8 = arith.divsi %4, %cst_4 : tensor<1024xi32, #blocked> loc(#loc8) + %9 = arith.remsi %8, %cst_5 : tensor<1024xi32, #blocked> loc(#loc9) + %10 = arith.divsi %4, %cst_6 : tensor<1024xi32, #blocked> loc(#loc10) + %11 = arith.addi %7, %cst_7 : tensor<1024xi32, #blocked> loc(#loc11) + %12 = arith.muli %9, %cst_8 : tensor<1024xi32, #blocked> loc(#loc12) + %13 = arith.addi %11, %12 : tensor<1024xi32, #blocked> loc(#loc13) + %14 = arith.muli %10, %cst_9 : tensor<1024xi32, #blocked> loc(#loc14) + %15 = arith.addi %13, %14 : tensor<1024xi32, #blocked> loc(#loc15) + %16 = tt.splat %arg0 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc16) + %17 = tt.addptr %16, %15 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc16) + %18 = tt.load %17, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc17) + %19 = arith.extf %18 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc18) + %20 = tt.splat %arg1 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc19) + %21 = tt.addptr %20, %8 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc19) + %22 = tt.load %21, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc20) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc21) + %24 = tt.addptr %23, %7 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc21) + %25 = tt.load %24, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc22) + %26 = arith.extf %25 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc23) + %27 = tt.splat %arg3 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc24) + %28 = tt.addptr %27, %10 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc24) + %29 = tt.load %28, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc25) + %30 = arith.addi %7, %cst_10 : tensor<1024xi32, #blocked> loc(#loc26) + %31 = arith.addi %30, %12 : tensor<1024xi32, #blocked> loc(#loc27) + %32 = arith.addi %7, %cst_4 : tensor<1024xi32, #blocked> loc(#loc28) + %33 = arith.divsi %32, %cst_8 : tensor<1024xi32, #blocked> loc(#loc29) + %34 = arith.muli %33, %cst_8 : tensor<1024xi32, #blocked> loc(#loc30) + %35 = arith.addi %31, %34 : tensor<1024xi32, #blocked> loc(#loc31) + %36 = arith.addi %35, %14 : tensor<1024xi32, #blocked> loc(#loc32) + %37 = tt.addptr %16, %36 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc33) + %38 = tt.load %37, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc34) + %39 = arith.extf %38 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc35) + %40 = arith.addi %8, %33 : tensor<1024xi32, #blocked> loc(#loc36) + %41 = tt.addptr %20, %40 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc37) + %42 = tt.load %41, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc38) + %43 = tt.addptr %23, %32 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc39) + %44 = tt.load %43, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr, #blocked> loc(#loc40) + %45 = arith.extf %44 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc41) + %46 = arith.divf %22, %cst : tensor<1024xf32, #blocked> loc(#loc42) + %47 = arith.addf %46, %cst_0 : tensor<1024xf32, #blocked> loc(#loc43) + %48 = tt.extern_elementwise %47 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1024xf32, #blocked>) -> tensor<1024xf32, #blocked> loc(#loc44) + %49 = arith.mulf %19, %48 : tensor<1024xf32, #blocked> loc(#loc45) + %50 = arith.mulf %49, %26 : tensor<1024xf32, #blocked> loc(#loc46) + %51 = arith.addi %29, %cst_2 : tensor<1024xi64, #blocked> loc(#loc47) + %52 = arith.cmpi slt, %29, %cst_3 : tensor<1024xi64, #blocked> loc(#loc48) + %53 = arith.select %52, %51, %29 : tensor<1024xi1, #blocked>, tensor<1024xi64, #blocked> loc(#loc49) + %54 = arith.cmpi sge, %53, %cst_3 : tensor<1024xi64, #blocked> loc(#loc50) + %55 = arith.cmpi slt, %53, %cst_2 : tensor<1024xi64, #blocked> loc(#loc51) + %56 = arith.andi %54, %55 : tensor<1024xi1, #blocked> loc(#loc52) + %57 = arith.xori %6, %cst_11 : tensor<1024xi1, #blocked> loc(#loc53) + %58 = arith.ori %56, %57 : tensor<1024xi1, #blocked> loc(#loc54) + tt.assert %58, "index out of bounds: 0 <= tmp16 < 131072" : tensor<1024xi1, #blocked> loc(#loc55) + %59 = arith.muli %53, %cst_1 : tensor<1024xi64, #blocked> loc(#loc56) + %60 = arith.extsi %7 : tensor<1024xi32, #blocked> to tensor<1024xi64, #blocked> loc(#loc57) + %61 = arith.addi %60, %59 : tensor<1024xi64, #blocked> loc(#loc57) + %62 = tt.splat %arg4 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc58) + %63 = tt.addptr %62, %61 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi64, #blocked> loc(#loc58) + %64 = tt.load %63, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc59) + %65 = arith.extf %64 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc60) + %66 = arith.mulf %50, %65 : tensor<1024xf32, #blocked> loc(#loc61) + %67 = arith.divf %42, %cst : tensor<1024xf32, #blocked> loc(#loc62) + %68 = arith.addf %67, %cst_0 : tensor<1024xf32, #blocked> loc(#loc63) + %69 = tt.extern_elementwise %68 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1024xf32, #blocked>) -> tensor<1024xf32, #blocked> loc(#loc64) + %70 = arith.mulf %39, %69 : tensor<1024xf32, #blocked> loc(#loc65) + %71 = arith.mulf %70, %45 : tensor<1024xf32, #blocked> loc(#loc66) + %72 = arith.extsi %32 : tensor<1024xi32, #blocked> to tensor<1024xi64, #blocked> loc(#loc67) + %73 = arith.addi %72, %59 : tensor<1024xi64, #blocked> loc(#loc67) + %74 = tt.addptr %62, %73 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi64, #blocked> loc(#loc68) + %75 = tt.load %74, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc69) + %76 = arith.extf %75 : tensor<1024xbf16, #blocked> to tensor<1024xf32, #blocked> loc(#loc70) + %77 = arith.mulf %71, %76 : tensor<1024xf32, #blocked> loc(#loc71) + %78 = arith.subf %66, %77 : tensor<1024xf32, #blocked> loc(#loc72) + %79 = arith.mulf %71, %65 : tensor<1024xf32, #blocked> loc(#loc73) + %80 = arith.mulf %50, %76 : tensor<1024xf32, #blocked> loc(#loc74) + %81 = arith.addf %79, %80 : tensor<1024xf32, #blocked> loc(#loc75) + %82 = arith.muli %8, %cst_8 : tensor<1024xi32, #blocked> loc(#loc76) + %83 = arith.addi %7, %82 : tensor<1024xi32, #blocked> loc(#loc77) + %84 = tt.splat %arg5 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc78) + %85 = tt.addptr %84, %83 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc78) + %86 = arith.truncf %78 : tensor<1024xf32, #blocked> to tensor<1024xbf16, #blocked> loc(#loc79) + tt.store %85, %86, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc79) + %87 = tt.splat %arg6 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc80) + %88 = tt.addptr %87, %83 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc80) + %89 = arith.truncf %81 : tensor<1024xf32, #blocked> to tensor<1024xbf16, #blocked> loc(#loc81) + tt.store %88, %89, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc81) + tt.return loc(#loc82) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":23:27) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:37) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:46) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:42) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:56) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:51) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:30) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:61) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:71) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":27:30) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":27:35) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:31) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:36) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:76) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":29:31) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":29:36) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:38) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:43) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:63) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:70) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:57) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:52) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:77) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:31) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:87) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:97) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:37) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:31) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:57) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:31) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:41) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:81) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":35:19) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":37:18) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":38:27) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":39:18) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":41:19) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":43:20) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":44:20) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":45:35) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:28) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:46) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:38) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:59) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:57) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:67) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:40) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:36) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:31) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:48) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:58) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":48:20) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":50:21) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":51:20) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":52:28) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":53:20) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":55:20) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:41) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:31) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:53) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:63) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":57:20) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":58:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":59:20) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":60:20) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":61:20) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:34) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:30) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:25) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:46) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:25) +#loc81 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:46) +#loc82 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:4) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttir new file mode 100644 index 0000000000000000000000000000000000000000..ef40ae86159ca42cc3ad44e363ac3bc68d20db00 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/GYVDTKQVTOVBT7EHBNWUFZYSRBLO4IMUH537TRFNX6DB3IREUQ2A/triton_poi_fused_add_mul_sub_6.ttir @@ -0,0 +1,195 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0) +module { + tt.func public @triton_poi_fused_add_mul_sub_6(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg4: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg5: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg6: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg7: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0> : tensor<1024xi64> loc(#loc1) + %cst_0 = arith.constant dense<131072> : tensor<1024xi64> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<1024xi64> loc(#loc1) + %cst_2 = arith.constant dense : tensor<1024xi1> loc(#loc1) + %cst_3 = arith.constant dense<9.99999997E-7> : tensor<1024xf32> loc(#loc1) + %cst_4 = arith.constant dense<1.280000e+02> : tensor<1024xf32> loc(#loc1) + %cst_5 = arith.constant dense<5184> : tensor<1024xi32> loc(#loc1) + %cst_6 = arith.constant dense<7168> : tensor<1024xi32> loc(#loc1) + %cst_7 = arith.constant dense<128> : tensor<1024xi32> loc(#loc1) + %cst_8 = arith.constant dense<5120> : tensor<1024xi32> loc(#loc1) + %cst_9 = arith.constant dense<512> : tensor<1024xi32> loc(#loc1) + %cst_10 = arith.constant dense<8> : tensor<1024xi32> loc(#loc1) + %cst_11 = arith.constant dense<64> : tensor<1024xi32> loc(#loc1) + %c1024_i32 = arith.constant 1024 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c1024_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 1024 : i32, start = 0 : i32} : tensor<1024xi32> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<1024xi32> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<1024xi32> loc(#loc5) + %5 = tt.splat %arg7 : i32 -> tensor<1024xi32> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<1024xi32> loc(#loc6) + %7 = arith.remsi %4, %cst_11 : tensor<1024xi32> loc(#loc7) + %8 = arith.divsi %4, %cst_11 : tensor<1024xi32> loc(#loc8) + %9 = arith.remsi %8, %cst_10 : tensor<1024xi32> loc(#loc9) + %10 = arith.divsi %4, %cst_9 : tensor<1024xi32> loc(#loc10) + %11 = arith.addi %7, %cst_8 : tensor<1024xi32> loc(#loc11) + %12 = arith.muli %9, %cst_7 : tensor<1024xi32> loc(#loc12) + %13 = arith.addi %11, %12 : tensor<1024xi32> loc(#loc13) + %14 = arith.muli %10, %cst_6 : tensor<1024xi32> loc(#loc14) + %15 = arith.addi %13, %14 : tensor<1024xi32> loc(#loc15) + %16 = tt.splat %arg0 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc16) + %17 = tt.addptr %16, %15 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc16) + %18 = tt.load %17, %6 : tensor<1024x!tt.ptr> loc(#loc17) + %19 = arith.extf %18 : tensor<1024xbf16> to tensor<1024xf32> loc(#loc18) + %20 = tt.splat %arg1 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc19) + %21 = tt.addptr %20, %8 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc19) + %22 = tt.load %21, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr> loc(#loc20) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc21) + %24 = tt.addptr %23, %7 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc21) + %25 = tt.load %24, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr> loc(#loc22) + %26 = arith.extf %25 : tensor<1024xbf16> to tensor<1024xf32> loc(#loc23) + %27 = tt.splat %arg3 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc24) + %28 = tt.addptr %27, %10 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc24) + %29 = tt.load %28, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr> loc(#loc25) + %30 = arith.addi %7, %cst_5 : tensor<1024xi32> loc(#loc26) + %31 = arith.addi %30, %12 : tensor<1024xi32> loc(#loc27) + %32 = arith.addi %7, %cst_11 : tensor<1024xi32> loc(#loc28) + %33 = arith.divsi %32, %cst_7 : tensor<1024xi32> loc(#loc29) + %34 = arith.muli %33, %cst_7 : tensor<1024xi32> loc(#loc30) + %35 = arith.addi %31, %34 : tensor<1024xi32> loc(#loc31) + %36 = arith.addi %35, %14 : tensor<1024xi32> loc(#loc32) + %37 = tt.addptr %16, %36 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc33) + %38 = tt.load %37, %6 : tensor<1024x!tt.ptr> loc(#loc34) + %39 = arith.extf %38 : tensor<1024xbf16> to tensor<1024xf32> loc(#loc35) + %40 = arith.addi %8, %33 : tensor<1024xi32> loc(#loc36) + %41 = tt.addptr %20, %40 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc37) + %42 = tt.load %41, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr> loc(#loc38) + %43 = tt.addptr %23, %32 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc39) + %44 = tt.load %43, %6 evictionPolicy = evict_last : tensor<1024x!tt.ptr> loc(#loc40) + %45 = arith.extf %44 : tensor<1024xbf16> to tensor<1024xf32> loc(#loc41) + %46 = arith.divf %22, %cst_4 : tensor<1024xf32> loc(#loc42) + %47 = arith.addf %46, %cst_3 : tensor<1024xf32> loc(#loc43) + %48 = tt.extern_elementwise %47 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1024xf32>) -> tensor<1024xf32> loc(#loc44) + %49 = arith.mulf %19, %48 : tensor<1024xf32> loc(#loc45) + %50 = arith.mulf %49, %26 : tensor<1024xf32> loc(#loc46) + %51 = arith.addi %29, %cst_0 : tensor<1024xi64> loc(#loc47) + %52 = arith.cmpi slt, %29, %cst : tensor<1024xi64> loc(#loc48) + %53 = arith.select %52, %51, %29 : tensor<1024xi1>, tensor<1024xi64> loc(#loc49) + %54 = arith.cmpi sge, %53, %cst : tensor<1024xi64> loc(#loc50) + %55 = arith.cmpi slt, %53, %cst_0 : tensor<1024xi64> loc(#loc51) + %56 = arith.andi %54, %55 : tensor<1024xi1> loc(#loc52) + %57 = arith.xori %6, %cst_2 : tensor<1024xi1> loc(#loc53) + %58 = arith.ori %56, %57 : tensor<1024xi1> loc(#loc54) + tt.assert %58, "index out of bounds: 0 <= tmp16 < 131072" : tensor<1024xi1> loc(#loc55) + %59 = arith.muli %53, %cst_1 : tensor<1024xi64> loc(#loc56) + %60 = arith.extsi %7 : tensor<1024xi32> to tensor<1024xi64> loc(#loc57) + %61 = arith.addi %60, %59 : tensor<1024xi64> loc(#loc57) + %62 = tt.splat %arg4 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc58) + %63 = tt.addptr %62, %61 : tensor<1024x!tt.ptr>, tensor<1024xi64> loc(#loc58) + %64 = tt.load %63, %6 : tensor<1024x!tt.ptr> loc(#loc59) + %65 = arith.extf %64 : tensor<1024xbf16> to tensor<1024xf32> loc(#loc60) + %66 = arith.mulf %50, %65 : tensor<1024xf32> loc(#loc61) + %67 = arith.divf %42, %cst_4 : tensor<1024xf32> loc(#loc62) + %68 = arith.addf %67, %cst_3 : tensor<1024xf32> loc(#loc63) + %69 = tt.extern_elementwise %68 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1024xf32>) -> tensor<1024xf32> loc(#loc64) + %70 = arith.mulf %39, %69 : tensor<1024xf32> loc(#loc65) + %71 = arith.mulf %70, %45 : tensor<1024xf32> loc(#loc66) + %72 = arith.extsi %32 : tensor<1024xi32> to tensor<1024xi64> loc(#loc67) + %73 = arith.addi %72, %59 : tensor<1024xi64> loc(#loc67) + %74 = tt.addptr %62, %73 : tensor<1024x!tt.ptr>, tensor<1024xi64> loc(#loc68) + %75 = tt.load %74, %6 : tensor<1024x!tt.ptr> loc(#loc69) + %76 = arith.extf %75 : tensor<1024xbf16> to tensor<1024xf32> loc(#loc70) + %77 = arith.mulf %71, %76 : tensor<1024xf32> loc(#loc71) + %78 = arith.subf %66, %77 : tensor<1024xf32> loc(#loc72) + %79 = arith.mulf %71, %65 : tensor<1024xf32> loc(#loc73) + %80 = arith.mulf %50, %76 : tensor<1024xf32> loc(#loc74) + %81 = arith.addf %79, %80 : tensor<1024xf32> loc(#loc75) + %82 = arith.muli %8, %cst_7 : tensor<1024xi32> loc(#loc76) + %83 = arith.addi %7, %82 : tensor<1024xi32> loc(#loc77) + %84 = tt.splat %arg5 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc78) + %85 = tt.addptr %84, %83 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc78) + %86 = arith.truncf %78 : tensor<1024xf32> to tensor<1024xbf16> loc(#loc79) + tt.store %85, %86, %6 : tensor<1024x!tt.ptr> loc(#loc79) + %87 = tt.splat %arg6 : !tt.ptr -> tensor<1024x!tt.ptr> loc(#loc80) + %88 = tt.addptr %87, %83 : tensor<1024x!tt.ptr>, tensor<1024xi32> loc(#loc80) + %89 = arith.truncf %81 : tensor<1024xf32> to tensor<1024xbf16> loc(#loc81) + tt.store %88, %89, %6 : tensor<1024x!tt.ptr> loc(#loc81) + tt.return loc(#loc82) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":23:27) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:37) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:46) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:42) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:56) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:51) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:30) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:61) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:71) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":27:30) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":27:35) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:31) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:36) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:76) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":29:31) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":29:36) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:38) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:43) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:63) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:70) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:57) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:52) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:77) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:31) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:87) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:97) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:37) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:31) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:57) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:31) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:41) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:81) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":35:19) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":37:18) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":38:27) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":39:18) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":41:19) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":43:20) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":44:20) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":45:35) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:28) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:46) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:38) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:59) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:57) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:67) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:40) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:36) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:31) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:48) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:58) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":48:20) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":50:21) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":51:20) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":52:28) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":53:20) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":55:20) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:41) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:31) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:53) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:63) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":57:20) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":58:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":59:20) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":60:20) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":61:20) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:34) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:30) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:25) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:46) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:25) +#loc81 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:46) +#loc82 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:4) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/__grp__triton_red_fused__to_copy_mean_pow_4.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/__grp__triton_red_fused__to_copy_mean_pow_4.json new file mode 100644 index 0000000000000000000000000000000000000000..e5c4aa088b0ad00b966b5bd128896055c153e5a3 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/__grp__triton_red_fused__to_copy_mean_pow_4.json @@ -0,0 +1 @@ +{"child_paths": {"triton_red_fused__to_copy_mean_pow_4.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.ttir", "triton_red_fused__to_copy_mean_pow_4.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.ttgir", "triton_red_fused__to_copy_mean_pow_4.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.llir", "triton_red_fused__to_copy_mean_pow_4.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.ptx", "triton_red_fused__to_copy_mean_pow_4.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.cubin", "triton_red_fused__to_copy_mean_pow_4.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.llir new file mode 100644 index 0000000000000000000000000000000000000000..d8840ee3157906fdcae9be65c62dadb87c87291a --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.llir @@ -0,0 +1,169 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 + +define ptx_kernel void @triton_red_fused__to_copy_mean_pow_4(ptr addrspace(1) %0, ptr addrspace(1) %1, i32 %2, i32 %3, ptr addrspace(1) readnone captures(none) %4) local_unnamed_addr !dbg !6 { + %6 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %7 = shl i32 %6, 6, !dbg !10 + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %9 = lshr i32 %8, 3, !dbg !11 + %10 = and i32 %9, 63, !dbg !11 + %11 = or disjoint i32 %10, %7, !dbg !12 + %12 = icmp slt i32 %11, %2, !dbg !13 + %13 = shl i32 %8, 3, !dbg !14 + %14 = and i32 %13, 56, !dbg !14 + %15 = sdiv i32 %11, 8, !dbg !15 + %16 = mul i32 %15, 8, !dbg !16 + %.decomposed = sub i32 %11, %16, !dbg !16 + %17 = shl nsw i32 %.decomposed, 7, !dbg !17 + %18 = mul i32 %15, 7168, !dbg !18 + %19 = add nsw i32 %17, 5120 + %20 = add i32 %19, %18 + %21 = or disjoint i32 %20, %14, !dbg !19 + %22 = sext i32 %21 to i64, !dbg !20 + %23 = getelementptr bfloat, ptr addrspace(1) %0, i64 %22, !dbg !20 + %24 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_first.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %23, i1 %12) #3, !dbg !21 + %25 = extractvalue { i32, i32, i32, i32 } %24, 0, !dbg !21 + %26 = bitcast i32 %25 to <2 x bfloat>, !dbg !21 + %27 = extractvalue { i32, i32, i32, i32 } %24, 1, !dbg !21 + %28 = bitcast i32 %27 to <2 x bfloat>, !dbg !21 + %29 = extractvalue { i32, i32, i32, i32 } %24, 2, !dbg !21 + %30 = bitcast i32 %29 to <2 x bfloat>, !dbg !21 + %31 = extractvalue { i32, i32, i32, i32 } %24, 3, !dbg !21 + %32 = bitcast i32 %31 to <2 x bfloat>, !dbg !21 + %33 = or disjoint i32 %14, 64, !dbg !22 + %34 = or disjoint i32 %20, %33, !dbg !19 + %35 = sext i32 %34 to i64, !dbg !20 + %36 = getelementptr bfloat, ptr addrspace(1) %0, i64 %35, !dbg !20 + %37 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_first.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %36, i1 %12) #3, !dbg !21 + %38 = extractvalue { i32, i32, i32, i32 } %37, 0, !dbg !21 + %39 = bitcast i32 %38 to <2 x bfloat>, !dbg !21 + %40 = extractvalue { i32, i32, i32, i32 } %37, 1, !dbg !21 + %41 = bitcast i32 %40 to <2 x bfloat>, !dbg !21 + %42 = extractvalue { i32, i32, i32, i32 } %37, 2, !dbg !21 + %43 = bitcast i32 %42 to <2 x bfloat>, !dbg !21 + %44 = extractvalue { i32, i32, i32, i32 } %37, 3, !dbg !21 + %45 = bitcast i32 %44 to <2 x bfloat>, !dbg !21 + %46 = fpext <2 x bfloat> %26 to <2 x float>, !dbg !23 + %47 = fmul <2 x float> %46, %46, !dbg !24 + %48 = fpext <2 x bfloat> %39 to <2 x float>, !dbg !23 + %49 = fmul <2 x float> %48, %48, !dbg !24 + %50 = fadd <2 x float> %47, %49, !dbg !25 + %51 = fpext <2 x bfloat> %28 to <2 x float>, !dbg !23 + %52 = fmul <2 x float> %51, %51, !dbg !24 + %53 = fpext <2 x bfloat> %41 to <2 x float>, !dbg !23 + %54 = fmul <2 x float> %53, %53, !dbg !24 + %55 = fadd <2 x float> %52, %54, !dbg !25 + %56 = fpext <2 x bfloat> %30 to <2 x float>, !dbg !23 + %57 = fmul <2 x float> %56, %56, !dbg !24 + %58 = fpext <2 x bfloat> %43 to <2 x float>, !dbg !23 + %59 = fmul <2 x float> %58, %58, !dbg !24 + %60 = fadd <2 x float> %57, %59, !dbg !25 + %61 = fpext <2 x bfloat> %32 to <2 x float>, !dbg !23 + %62 = fmul <2 x float> %61, %61, !dbg !24 + %63 = fpext <2 x bfloat> %45 to <2 x float>, !dbg !23 + %64 = fmul <2 x float> %63, %63, !dbg !24 + %65 = fadd <2 x float> %62, %64, !dbg !25 + %66 = and i32 %8, 63, !dbg !11 + %67 = or disjoint i32 %7, %66, !dbg !12 + %68 = icmp slt i32 %67, %2, !dbg !13 + %shift = shufflevector <2 x float> %50, <2 x float> poison, <2 x i32> , !dbg !26 + %69 = fadd <2 x float> %50, %shift, !dbg !26 + %70 = fadd <2 x float> %55, %69, !dbg !26 + %shift10 = shufflevector <2 x float> %55, <2 x float> poison, <2 x i32> , !dbg !26 + %71 = fadd <2 x float> %shift10, %70, !dbg !26 + %72 = fadd <2 x float> %60, %71, !dbg !26 + %shift11 = shufflevector <2 x float> %60, <2 x float> poison, <2 x i32> , !dbg !26 + %73 = fadd <2 x float> %shift11, %72, !dbg !26 + %74 = fadd <2 x float> %65, %73, !dbg !26 + %shift12 = shufflevector <2 x float> %65, <2 x float> poison, <2 x i32> , !dbg !26 + %75 = fadd <2 x float> %shift12, %74, !dbg !26 + %76 = extractelement <2 x float> %75, i64 0, !dbg !26 + %77 = select i1 %12, float %76, float 0.000000e+00, !dbg !26 + %78 = bitcast float %77 to i32, !dbg !31 + %79 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %78, i32 4, i32 31), !dbg !31 + %80 = bitcast i32 %79 to float, !dbg !31 + %81 = fadd float %77, %80, !dbg !26 + %82 = bitcast float %81 to i32, !dbg !31 + %83 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %82, i32 2, i32 31), !dbg !31 + %84 = bitcast i32 %83 to float, !dbg !31 + %85 = fadd float %81, %84, !dbg !26 + %86 = bitcast float %85 to i32, !dbg !31 + %87 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %86, i32 1, i32 31), !dbg !31 + %88 = bitcast i32 %87 to float, !dbg !31 + %89 = fadd float %85, %88, !dbg !26 + %90 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %10, !dbg !32 + %91 = bitcast float %89 to <1 x i32>, !dbg !32 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %90, <1 x i32> %91, i1 true) #3, !dbg !32 + tail call void @llvm.nvvm.barrier0(), !dbg !32 + %92 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %66, !dbg !32 + %93 = load i32, ptr addrspace(3) %92, align 4, !dbg !32 + %94 = sext i32 %67 to i64, !dbg !33 + %95 = getelementptr float, ptr addrspace(1) %1, i64 %94, !dbg !33 + %96 = and i32 %8, 448, !dbg !34 + %97 = icmp eq i32 %96, 0, !dbg !34 + %98 = and i1 %97, %68, !dbg !34 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %93, ptr addrspace(1) %95, i1 %98) #3, !dbg !34 + ret void, !dbg !35 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv") +!4 = !{ptr @triton_red_fused__to_copy_mean_pow_4, !"reqntidx", i32 512} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_mean_pow_4", linkageName: "triton_red_fused__to_copy_mean_pow_4", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 22, column: 33, scope: !6) +!11 = !DILocation(line: 23, column: 44, scope: !6) +!12 = !DILocation(line: 23, column: 23, scope: !6) +!13 = !DILocation(line: 24, column: 21, scope: !6) +!14 = !DILocation(line: 25, column: 37, scope: !6) +!15 = !DILocation(line: 28, column: 19, scope: !6) +!16 = !DILocation(line: 27, column: 19, scope: !6) +!17 = !DILocation(line: 37, column: 52, scope: !6) +!18 = !DILocation(line: 37, column: 62, scope: !6) +!19 = !DILocation(line: 37, column: 57, scope: !6) +!20 = !DILocation(line: 37, column: 34, scope: !6) +!21 = !DILocation(line: 37, column: 67, scope: !6) +!22 = !DILocation(line: 32, column: 31, scope: !6) +!23 = !DILocation(line: 37, column: 129, scope: !6) +!24 = !DILocation(line: 39, column: 22, scope: !6) +!25 = !DILocation(line: 41, column: 23, scope: !6) +!26 = !DILocation(line: 256, column: 15, scope: !27, inlinedAt: !30) +!27 = distinct !DILexicalBlockFile(scope: !29, file: !28, discriminator: 0) +!28 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!29 = distinct !DILexicalBlockFile(scope: !6, file: !28, discriminator: 0) +!30 = !DILocation(line: 43, column: 25, scope: !6) +!31 = !DILocation(line: 286, column: 36, scope: !29, inlinedAt: !30) +!32 = !DILocation(line: 43, column: 28, scope: !6) +!33 = !DILocation(line: 44, column: 25, scope: !6) +!34 = !DILocation(line: 44, column: 36, scope: !6) +!35 = !DILocation(line: 44, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..08ea9852f036f9bf95cfac8d4edff0ef747c4d64 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/HTZTZWO7H4AVOC4TG2OKIFKB7NJF2F6PKS2P6NWRYNKSL5NSCINQ/triton_red_fused__to_copy_mean_pow_4.ttgir @@ -0,0 +1,106 @@ +#blocked = #ttg.blocked<{sizePerThread = [1, 8], threadsPerWarp = [4, 8], warpsPerCTA = [16, 1], order = [1, 0]}> +#blocked1 = #ttg.blocked<{sizePerThread = [1, 1], threadsPerWarp = [32, 1], warpsPerCTA = [2, 8], order = [0, 1]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0) +#loc1 = loc(unknown) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:25) +#loc34 = loc(callsite(#loc1 at #loc27)) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 16 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_red_fused__to_copy_mean_pow_4(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<64x64xf32, #blocked> loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %c128_i32 = arith.constant 128 : i32 loc(#loc1) + %cst_0 = arith.constant dense<0.000000e+00> : tensor<64x64xbf16, #blocked> loc(#loc1) + %c64_i32 = arith.constant 64 : i32 loc(#loc1) + %cst_1 = arith.constant dense<8> : tensor<64x1xi32, #blocked> loc(#loc1) + %cst_2 = arith.constant dense<7168> : tensor<64x1xi32, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<128> : tensor<64x1xi32, #blocked> loc(#loc1) + %cst_4 = arith.constant dense<5120> : tensor<1x64xi32, #blocked> loc(#loc1) + %cst_5 = arith.constant dense<128> : tensor<1x64xi32, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c64_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc4) + %3 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked1}>> loc(#loc4) + %4 = tt.expand_dims %2 {axis = 1 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<64x1xi32, #blocked> loc(#loc4) + %5 = tt.expand_dims %3 {axis = 1 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked1}>> -> tensor<64x1xi32, #blocked1> loc(#loc4) + %6 = tt.splat %1 : i32 -> tensor<64x1xi32, #blocked> loc(#loc5) + %7 = tt.splat %1 : i32 -> tensor<64x1xi32, #blocked1> loc(#loc5) + %8 = arith.addi %6, %4 : tensor<64x1xi32, #blocked> loc(#loc5) + %9 = arith.addi %7, %5 : tensor<64x1xi32, #blocked1> loc(#loc5) + %10 = tt.splat %arg2 : i32 -> tensor<64x1xi32, #blocked> loc(#loc6) + %11 = tt.splat %arg2 : i32 -> tensor<64x1xi32, #blocked1> loc(#loc6) + %12 = arith.cmpi slt, %8, %10 : tensor<64x1xi32, #blocked> loc(#loc6) + %13 = arith.cmpi slt, %9, %11 : tensor<64x1xi32, #blocked1> loc(#loc6) + %14 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32, #ttg.slice<{dim = 0, parent = #blocked}>> loc(#loc7) + %15 = tt.expand_dims %14 {axis = 0 : i32} : tensor<64xi32, #ttg.slice<{dim = 0, parent = #blocked}>> -> tensor<1x64xi32, #blocked> loc(#loc7) + %16 = arith.remsi %8, %cst_1 : tensor<64x1xi32, #blocked> loc(#loc8) + %17 = arith.divsi %8, %cst_1 : tensor<64x1xi32, #blocked> loc(#loc9) + %18 = arith.muli %16, %cst_3 : tensor<64x1xi32, #blocked> loc(#loc10) + %19 = tt.broadcast %18 : tensor<64x1xi32, #blocked> -> tensor<64x64xi32, #blocked> loc(#loc11) + %20 = arith.muli %17, %cst_2 : tensor<64x1xi32, #blocked> loc(#loc12) + %21 = tt.broadcast %20 : tensor<64x1xi32, #blocked> -> tensor<64x64xi32, #blocked> loc(#loc13) + %22 = tt.splat %arg0 : !tt.ptr -> tensor<64x64x!tt.ptr, #blocked> loc(#loc14) + %23 = tt.broadcast %12 : tensor<64x1xi1, #blocked> -> tensor<64x64xi1, #blocked> loc(#loc15) + %24 = scf.for %arg4 = %c0_i32 to %c128_i32 step %c64_i32 iter_args(%arg5 = %cst) -> (tensor<64x64xf32, #blocked>) : i32 { + %30 = tt.splat %arg4 : i32 -> tensor<1x64xi32, #blocked> loc(#loc17) + %31 = arith.addi %30, %15 : tensor<1x64xi32, #blocked> loc(#loc17) + %32 = arith.cmpi slt, %31, %cst_5 : tensor<1x64xi32, #blocked> loc(#loc18) + %33 = arith.addi %31, %cst_4 : tensor<1x64xi32, #blocked> loc(#loc19) + %34 = tt.broadcast %33 : tensor<1x64xi32, #blocked> -> tensor<64x64xi32, #blocked> loc(#loc11) + %35 = arith.addi %34, %19 : tensor<64x64xi32, #blocked> loc(#loc11) + %36 = arith.addi %35, %21 : tensor<64x64xi32, #blocked> loc(#loc13) + %37 = tt.addptr %22, %36 : tensor<64x64x!tt.ptr, #blocked>, tensor<64x64xi32, #blocked> loc(#loc14) + %38 = tt.broadcast %32 : tensor<1x64xi1, #blocked> -> tensor<64x64xi1, #blocked> loc(#loc15) + %39 = arith.andi %23, %38 : tensor<64x64xi1, #blocked> loc(#loc15) + %40 = tt.load %37, %39, %cst_0 evictionPolicy = evict_first : tensor<64x64x!tt.ptr, #blocked> loc(#loc20) + %41 = arith.extf %40 : tensor<64x64xbf16, #blocked> to tensor<64x64xf32, #blocked> loc(#loc21) + %42 = arith.mulf %41, %41 : tensor<64x64xf32, #blocked> loc(#loc22) + %43 = arith.addf %arg5, %42 : tensor<64x64xf32, #blocked> loc(#loc23) + %44 = arith.select %39, %43, %arg5 : tensor<64x64xi1, #blocked>, tensor<64x64xf32, #blocked> loc(#loc24) + scf.yield %44 : tensor<64x64xf32, #blocked> loc(#loc25) + } loc(#loc16) + %25 = "tt.reduce"(%24) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc27)), %arg5: f32 loc(callsite(#loc1 at #loc27))): + %30 = arith.addf %arg4, %arg5 : f32 loc(#loc36) + tt.reduce.return %30 : f32 loc(#loc33) + }) : (tensor<64x64xf32, #blocked>) -> tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc33) + %26 = ttg.convert_layout %25 : tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked1}>> loc(#loc29) + %27 = tt.expand_dims %26 {axis = 1 : i32} : tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked1}>> -> tensor<64x1xf32, #blocked1> loc(#loc29) + %28 = tt.splat %arg1 : !tt.ptr -> tensor<64x1x!tt.ptr, #blocked1> loc(#loc30) + %29 = tt.addptr %28, %9 : tensor<64x1x!tt.ptr, #blocked1>, tensor<64x1xi32, #blocked1> loc(#loc30) + tt.store %29, %27, %13 : tensor<64x1x!tt.ptr, #blocked1> loc(#loc31) + tt.return loc(#loc32) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:44) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":24:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":25:37) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":27:19) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":28:19) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:52) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:48) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:62) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:57) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:34) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:75) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":31:40) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":32:31) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":33:29) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:41) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:67) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:129) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":39:22) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":41:23) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:48) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:8) +#loc26 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc28 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:28) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:25) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:36) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:4) +#loc33 = loc(callsite(#loc26 at #loc27)) +#loc35 = loc(callsite(#loc28 at #loc26)) +#loc36 = loc(callsite(#loc35 at #loc27)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KDOBAX2VQKBWDZWBYGTVPVFPVPDMVJR77GO463F57U2EDEXXPF5Q/triton_poi_fused_mul_silu_1.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KDOBAX2VQKBWDZWBYGTVPVFPVPDMVJR77GO463F57U2EDEXXPF5Q/triton_poi_fused_mul_silu_1.cubin new file mode 100644 index 0000000000000000000000000000000000000000..0db4f527c95b2e019d40d8eec23d84f99ce75969 Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KDOBAX2VQKBWDZWBYGTVPVFPVPDMVJR77GO463F57U2EDEXXPF5Q/triton_poi_fused_mul_silu_1.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KGXXEVGSNFP5Y73EKGDAJXQZGMKY2JJSV3QL4PCICSZZUFGQD4IQ/triton_red_fused__to_copy_mean_pow_3.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KGXXEVGSNFP5Y73EKGDAJXQZGMKY2JJSV3QL4PCICSZZUFGQD4IQ/triton_red_fused__to_copy_mean_pow_3.llir new file mode 100644 index 0000000000000000000000000000000000000000..3ee55f8099e4959923fb75f0c4f19a647a5fff2f --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KGXXEVGSNFP5Y73EKGDAJXQZGMKY2JJSV3QL4PCICSZZUFGQD4IQ/triton_red_fused__to_copy_mean_pow_3.llir @@ -0,0 +1,135 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 + +define ptx_kernel void @triton_red_fused__to_copy_mean_pow_3(ptr addrspace(1) %0, ptr addrspace(1) %1, i32 %2, i32 %3, ptr addrspace(1) readnone captures(none) %4) local_unnamed_addr !dbg !6 { + %6 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %7 = icmp slt i32 %6, %2, !dbg !10 + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %9 = and i32 %8, 31, !dbg !11 + %10 = lshr i32 %8, 5, !dbg !11 + %11 = shl i32 %8, 1, !dbg !11 + %12 = and i32 %11, 126, !dbg !11 + %13 = sdiv i32 %6, 40, !dbg !12 + %14 = mul i32 %13, 40, !dbg !13 + %.decomposed = sub i32 %6, %14, !dbg !13 + %15 = shl nsw i32 %.decomposed, 7, !dbg !14 + %16 = or disjoint i32 %12, %15, !dbg !15 + %17 = mul i32 %13, 7168, !dbg !16 + %18 = add i32 %16, %17, !dbg !17 + %19 = sext i32 %18 to i64, !dbg !18 + %20 = getelementptr bfloat, ptr addrspace(1) %0, i64 %19, !dbg !18 + %21 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %20, i1 %7) #3, !dbg !19 + %22 = bitcast i32 %21 to <2 x bfloat>, !dbg !19 + %23 = extractelement <2 x bfloat> %22, i64 0, !dbg !19 + %24 = extractelement <2 x bfloat> %22, i64 1, !dbg !19 + %25 = fpext bfloat %23 to float, !dbg !20 + %26 = fpext bfloat %24 to float, !dbg !20 + %27 = fmul float %25, %25, !dbg !21 + %28 = fmul float %26, %26, !dbg !21 + %29 = fadd float %27, %28, !dbg !22 + %30 = select i1 %7, float %29, float 0.000000e+00, !dbg !22 + %31 = bitcast float %30 to i32, !dbg !27 + %32 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %31, i32 16, i32 31), !dbg !27 + %33 = bitcast i32 %32 to float, !dbg !27 + %34 = fadd float %30, %33, !dbg !22 + %35 = bitcast float %34 to i32, !dbg !27 + %36 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %35, i32 8, i32 31), !dbg !27 + %37 = bitcast i32 %36 to float, !dbg !27 + %38 = fadd float %34, %37, !dbg !22 + %39 = bitcast float %38 to i32, !dbg !27 + %40 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %39, i32 4, i32 31), !dbg !27 + %41 = bitcast i32 %40 to float, !dbg !27 + %42 = fadd float %38, %41, !dbg !22 + %43 = bitcast float %42 to i32, !dbg !27 + %44 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %43, i32 2, i32 31), !dbg !27 + %45 = bitcast i32 %44 to float, !dbg !27 + %46 = fadd float %42, %45, !dbg !22 + %47 = bitcast float %46 to i32, !dbg !27 + %48 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %47, i32 1, i32 31), !dbg !27 + %49 = bitcast i32 %48 to float, !dbg !27 + %50 = fadd float %46, %49, !dbg !22 + %51 = and i32 %10, 1, !dbg !27 + %52 = icmp eq i32 %9, 0, !dbg !27 + %53 = getelementptr float, ptr addrspace(3) @global_smem, i32 %51, !dbg !27 + %54 = bitcast float %50 to <1 x i32>, !dbg !27 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %53, <1 x i32> %54, i1 %52) #3, !dbg !27 + tail call void @llvm.nvvm.barrier0(), !dbg !27 + %55 = icmp slt i32 %8, 2, !dbg !27 + %56 = getelementptr float, ptr addrspace(3) @global_smem, i32 %8, !dbg !27 + %57 = tail call i32 asm sideeffect "@$2 ld.shared.b32 $0, [ $1 + 0 ];", "=r,r,b"(ptr addrspace(3) %56, i1 %55) #3, !dbg !27 + %58 = bitcast i32 %57 to float, !dbg !27 + %59 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %57, i32 1, i32 31), !dbg !27 + %60 = bitcast i32 %59 to float, !dbg !27 + %61 = fadd float %58, %60, !dbg !22 + %62 = and i32 %8, 1, !dbg !27 + %63 = icmp eq i32 %62, 0, !dbg !27 + %64 = and i1 %55, %63, !dbg !27 + %65 = bitcast float %61 to <1 x i32>, !dbg !27 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %56, <1 x i32> %65, i1 %64) #3, !dbg !27 + tail call void @llvm.nvvm.barrier0(), !dbg !27 + %66 = load i32, ptr addrspace(3) @global_smem, align 16, !dbg !27 + %67 = sext i32 %6 to i64, !dbg !28 + %68 = getelementptr float, ptr addrspace(1) %1, i64 %67, !dbg !28 + %69 = and i32 %8, 63, !dbg !29 + %70 = icmp eq i32 %69, 0, !dbg !29 + %71 = and i1 %70, %7, !dbg !29 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %66, ptr addrspace(1) %68, i1 %71) #3, !dbg !29 + ret void, !dbg !30 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6") +!4 = !{ptr @triton_red_fused__to_copy_mean_pow_3, !"reqntidx", i32 64} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_mean_pow_3", linkageName: "triton_red_fused__to_copy_mean_pow_3", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 24, column: 21, scope: !6) +!11 = !DILocation(line: 25, column: 37, scope: !6) +!12 = !DILocation(line: 28, column: 19, scope: !6) +!13 = !DILocation(line: 27, column: 19, scope: !6) +!14 = !DILocation(line: 37, column: 45, scope: !6) +!15 = !DILocation(line: 37, column: 41, scope: !6) +!16 = !DILocation(line: 37, column: 55, scope: !6) +!17 = !DILocation(line: 37, column: 50, scope: !6) +!18 = !DILocation(line: 37, column: 34, scope: !6) +!19 = !DILocation(line: 37, column: 60, scope: !6) +!20 = !DILocation(line: 37, column: 122, scope: !6) +!21 = !DILocation(line: 39, column: 22, scope: !6) +!22 = !DILocation(line: 256, column: 15, scope: !23, inlinedAt: !26) +!23 = distinct !DILexicalBlockFile(scope: !25, file: !24, discriminator: 0) +!24 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!25 = distinct !DILexicalBlockFile(scope: !6, file: !24, discriminator: 0) +!26 = !DILocation(line: 43, column: 25, scope: !6) +!27 = !DILocation(line: 286, column: 36, scope: !25, inlinedAt: !26) +!28 = !DILocation(line: 44, column: 25, scope: !6) +!29 = !DILocation(line: 44, column: 36, scope: !6) +!30 = !DILocation(line: 44, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KGXXEVGSNFP5Y73EKGDAJXQZGMKY2JJSV3QL4PCICSZZUFGQD4IQ/triton_red_fused__to_copy_mean_pow_3.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KGXXEVGSNFP5Y73EKGDAJXQZGMKY2JJSV3QL4PCICSZZUFGQD4IQ/triton_red_fused__to_copy_mean_pow_3.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..9cb4dc6403c01b83f7adf97a6896a8592be0e39e --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/KGXXEVGSNFP5Y73EKGDAJXQZGMKY2JJSV3QL4PCICSZZUFGQD4IQ/triton_red_fused__to_copy_mean_pow_3.ttgir @@ -0,0 +1,79 @@ +#blocked = #ttg.blocked<{sizePerThread = [1, 2], threadsPerWarp = [1, 32], warpsPerCTA = [1, 2], order = [1, 0]}> +#blocked1 = #ttg.blocked<{sizePerThread = [1, 1], threadsPerWarp = [1, 32], warpsPerCTA = [1, 2], order = [0, 1]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0) +#loc1 = loc(unknown) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":43:25) +#loc30 = loc(callsite(#loc1 at #loc20)) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 2 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_red_fused__to_copy_mean_pow_3(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<1x128xf32, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<0.000000e+00> : tensor<1x128xbf16, #blocked> loc(#loc1) + %c7168_i32 = arith.constant 7168 : i32 loc(#loc1) + %c128_i32 = arith.constant 128 : i32 loc(#loc1) + %c40_i32 = arith.constant 40 : i32 loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<1x128xi32, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.cmpi slt, %0, %arg2 : i32 loc(#loc3) + %2 = tt.make_range {end = 128 : i32, start = 0 : i32} : tensor<128xi32, #ttg.slice<{dim = 0, parent = #blocked}>> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 0 : i32} : tensor<128xi32, #ttg.slice<{dim = 0, parent = #blocked}>> -> tensor<1x128xi32, #blocked> loc(#loc4) + %4 = arith.remsi %0, %c40_i32 : i32 loc(#loc5) + %5 = arith.divsi %0, %c40_i32 : i32 loc(#loc6) + %6 = arith.cmpi slt, %3, %cst_1 : tensor<1x128xi32, #blocked> loc(#loc7) + %7 = arith.muli %4, %c128_i32 : i32 loc(#loc8) + %8 = tt.splat %7 : i32 -> tensor<1x128xi32, #blocked> loc(#loc26) + %9 = arith.addi %3, %8 : tensor<1x128xi32, #blocked> loc(#loc9) + %10 = arith.muli %5, %c7168_i32 : i32 loc(#loc10) + %11 = tt.splat %10 : i32 -> tensor<1x128xi32, #blocked> loc(#loc27) + %12 = arith.addi %9, %11 : tensor<1x128xi32, #blocked> loc(#loc11) + %13 = tt.splat %arg0 : !tt.ptr -> tensor<1x128x!tt.ptr, #blocked> loc(#loc12) + %14 = tt.addptr %13, %12 : tensor<1x128x!tt.ptr, #blocked>, tensor<1x128xi32, #blocked> loc(#loc12) + %15 = tt.splat %1 : i1 -> tensor<1x128xi1, #blocked> loc(#loc28) + %16 = arith.andi %15, %6 : tensor<1x128xi1, #blocked> loc(#loc13) + %17 = tt.load %14, %16, %cst_0 evictionPolicy = evict_first : tensor<1x128x!tt.ptr, #blocked> loc(#loc14) + %18 = arith.extf %17 : tensor<1x128xbf16, #blocked> to tensor<1x128xf32, #blocked> loc(#loc15) + %19 = arith.mulf %18, %18 : tensor<1x128xf32, #blocked> loc(#loc16) + %20 = arith.addf %19, %cst : tensor<1x128xf32, #blocked> loc(#loc17) + %21 = arith.select %16, %20, %cst : tensor<1x128xi1, #blocked>, tensor<1x128xf32, #blocked> loc(#loc18) + %22 = "tt.reduce"(%21) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc20)), %arg5: f32 loc(callsite(#loc1 at #loc20))): + %28 = arith.addf %arg4, %arg5 : f32 loc(#loc32) + tt.reduce.return %28 : f32 loc(#loc29) + }) : (tensor<1x128xf32, #blocked>) -> tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc29) + %23 = ttg.convert_layout %22 : tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked1}>> loc(#loc22) + %24 = tt.expand_dims %23 {axis = 1 : i32} : tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked1}>> -> tensor<1x1xf32, #blocked1> loc(#loc22) + %25 = tt.addptr %arg1, %0 : !tt.ptr, i32 loc(#loc23) + %26 = tt.splat %25 : !tt.ptr -> tensor<1x1x!tt.ptr, #blocked1> loc(#loc24) + %27 = tt.splat %1 : i1 -> tensor<1x1xi1, #blocked1> loc(#loc24) + tt.store %26, %24, %27 : tensor<1x1x!tt.ptr, #blocked1> loc(#loc24) + tt.return loc(#loc25) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":24:21) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":25:37) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":27:19) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":28:19) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":33:29) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:45) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:41) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:55) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:50) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:34) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:68) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:60) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:122) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":39:22) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":41:23) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":42:48) +#loc19 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc21 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":43:28) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:25) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:36) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:4) +#loc26 = loc(fused[#loc9, #loc8]) +#loc27 = loc(fused[#loc11, #loc10]) +#loc28 = loc(fused[#loc13, #loc3]) +#loc29 = loc(callsite(#loc19 at #loc20)) +#loc31 = loc(callsite(#loc21 at #loc19)) +#loc32 = loc(callsite(#loc31 at #loc20)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L2EQ6SIK6RBOB4VN47SPKBG7N3OLQL5ZSPTXWJ36A3FRESXENUMA/triton_red_fused__to_copy_mean_pow_4.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L2EQ6SIK6RBOB4VN47SPKBG7N3OLQL5ZSPTXWJ36A3FRESXENUMA/triton_red_fused__to_copy_mean_pow_4.ptx new file mode 100644 index 0000000000000000000000000000000000000000..d0a50d1754990162d09d80a099360a1503936ff9 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L2EQ6SIK6RBOB4VN47SPKBG7N3OLQL5ZSPTXWJ36A3FRESXENUMA/triton_red_fused__to_copy_mean_pow_4.ptx @@ -0,0 +1,641 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_red_fused__to_copy_mean_pow_4 // -- Begin function triton_red_fused__to_copy_mean_pow_4 +.extern .shared .align 16 .b8 global_smem[]; + // @triton_red_fused__to_copy_mean_pow_4 +.visible .entry triton_red_fused__to_copy_mean_pow_4( + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_0, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_1, + .param .u32 triton_red_fused__to_copy_mean_pow_4_param_2, + .param .u32 triton_red_fused__to_copy_mean_pow_4_param_3, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_4 +) +.reqntid 256, 1, 1 +{ + .reg .pred %p<40>; + .reg .b16 %rs<67>; + .reg .b32 %r<39>; + .reg .f32 %f<13>; + .reg .b64 %rd<51>; + .loc 1 18 0 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:18:0 + +// %bb.0: + ld.param.u32 %r8, [triton_red_fused__to_copy_mean_pow_4_param_2]; + ld.param.u64 %rd5, [triton_red_fused__to_copy_mean_pow_4_param_1]; + ld.param.u64 %rd4, [triton_red_fused__to_copy_mean_pow_4_param_0]; +$L__tmp0: + .loc 1 22 28 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:22:28 + mov.u32 %r1, %ctaid.x; + .loc 1 22 33 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:22:33 + shl.b32 %r2, %r1, 6; + .loc 1 23 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:44 + mov.u32 %r3, %tid.x; + bfe.u32 %r4, %r3, 2, 6; + and.b32 %r5, %r3, 3; + .loc 1 23 23 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:23 + or.b32 %r9, %r4, %r2; + .loc 1 28 19 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:28:19 + bfe.s32 %r10, %r1, 25, 1; + shr.u32 %r11, %r10, 29; + add.s32 %r12, %r9, %r11; + shr.s32 %r6, %r12, 3; + setp.ge.s32 %p1, %r9, %r8; + @%p1 bra $L__BB0_4; +// %bb.1: // %.split.us.preheader + .loc 1 31 40 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:31:40 + shl.b32 %r18, %r1, 13; + mad.lo.s32 %r19, %r6, 6144, %r18; + shl.b32 %r20, %r4, 7; + add.s32 %r21, %r19, %r20; + or.b32 %r22, %r21, %r5; + cvt.u64.u32 %rd1, %r22; + mov.f32 %f12, 0f00000000; + mov.b64 %rd50, -4; +$L__BB0_2: // %.split.us + // =>This Inner Loop Header: Depth=1 + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd46, %rd1, %rd50; + cvt.u32.u64 %r23, %rd46; + add.s32 %r24, %r23, 5124; + mul.wide.s32 %rd47, %r24, 2; + add.s64 %rd45, %rd4, %rd47; + mov.b16 %rs66, 0; + mov.pred %p34, -1; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs65, %rs66; + @%p34 ld.global.L1::evict_first.b16 { %rs65 }, [ %rd45 + 0 ]; + // end inline asm + .loc 1 37 129 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:129 + cvt.f32.bf16 %f6, %rs65; + .loc 1 41 23 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:41:23 + fma.rn.f32 %f12, %f6, %f6, %f12; + .loc 1 31 40 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:31:40 + add.s64 %rd50, %rd50, 4; + setp.lt.u64 %p35, %rd50, 124; + @%p35 bra $L__BB0_2; + bra.uni $L__BB0_3; +$L__BB0_4: // %.split.preheader + .loc 1 0 40 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:0:40 + and.b32 %r13, %r12, 33554424; + sub.s32 %r14, %r9, %r13; + shl.b32 %r15, %r14, 7; + mad.lo.s32 %r16, %r6, 7168, %r15; + add.s32 %r7, %r16, 5120; + .loc 1 37 57 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:57 + or.b32 %r17, %r7, %r5; + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + mul.wide.s32 %rd38, %r17, 2; + add.s64 %rd6, %rd4, %rd38; + mov.b16 %rs2, 0; + mov.pred %p2, 0; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs1, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs1 }, [ %rd6 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + cvt.s64.s32 %rd39, %r7; + cvt.u64.u32 %rd40, %r5; + add.s64 %rd41, %rd39, %rd40; + shl.b64 %rd42, %rd41, 1; + add.s64 %rd43, %rd4, %rd42; + add.s64 %rd7, %rd43, 8; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs3, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs3 }, [ %rd7 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd8, %rd43, 16; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs5, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs5 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd9, %rd43, 24; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs7, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs7 }, [ %rd9 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd10, %rd43, 32; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs9, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs9 }, [ %rd10 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd11, %rd43, 40; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs11, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs11 }, [ %rd11 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd12, %rd43, 48; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs13, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs13 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd13, %rd43, 56; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs15, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs15 }, [ %rd13 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd14, %rd43, 64; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs17, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs17 }, [ %rd14 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd15, %rd43, 72; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs19, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs19 }, [ %rd15 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd16, %rd43, 80; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs21, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs21 }, [ %rd16 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd17, %rd43, 88; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs23, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs23 }, [ %rd17 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd18, %rd43, 96; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs25, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs25 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd19, %rd43, 104; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs27, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs27 }, [ %rd19 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd20, %rd43, 112; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs29, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs29 }, [ %rd20 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd21, %rd43, 120; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs31, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs31 }, [ %rd21 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd22, %rd43, 128; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs33, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs33 }, [ %rd22 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd23, %rd43, 136; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs35, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs35 }, [ %rd23 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd24, %rd43, 144; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs37, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs37 }, [ %rd24 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd25, %rd43, 152; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs39, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs39 }, [ %rd25 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd26, %rd43, 160; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs41, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs41 }, [ %rd26 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd27, %rd43, 168; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs43, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs43 }, [ %rd27 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd28, %rd43, 176; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs45, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs45 }, [ %rd28 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd29, %rd43, 184; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs47, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs47 }, [ %rd29 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd30, %rd43, 192; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs49, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs49 }, [ %rd30 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd31, %rd43, 200; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs51, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs51 }, [ %rd31 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd32, %rd43, 208; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs53, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs53 }, [ %rd32 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd33, %rd43, 216; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs55, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs55 }, [ %rd33 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd34, %rd43, 224; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs57, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs57 }, [ %rd34 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd35, %rd43, 232; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs59, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs59 }, [ %rd35 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd36, %rd43, 240; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs61, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs61 }, [ %rd36 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd37, %rd43, 248; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u16 %rs63, %rs2; + @%p2 ld.global.L1::evict_first.b16 { %rs63 }, [ %rd37 + 0 ]; + // end inline asm + mov.f32 %f12, 0f00000000; +$L__BB0_3: // %.split3.us + .loc 1 23 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:44 + and.b32 %r28, %r3, 63; + .loc 1 23 23 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:23 + or.b32 %r29, %r2, %r28; + .loc 1 24 21 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:24:21 + setp.lt.s32 %p38, %r29, %r8; +$L__tmp1: + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r30, %f12; + shfl.sync.bfly.b32 %r31, %r30, 2, 31, -1; + mov.b32 %f7, %r31; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f8, %f12, %f7; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r32, %f8; + shfl.sync.bfly.b32 %r33, %r32, 1, 31, -1; + mov.b32 %f9, %r33; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f10, %f8, %f9; +$L__tmp2: + .loc 1 43 28 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:43:28 + shl.b32 %r34, %r4, 2; + mov.u32 %r35, global_smem; + add.s32 %r25, %r35, %r34; + mov.b32 %r26, %f10; + mov.pred %p36, -1; + // begin inline asm + @%p36 st.shared.b32 [ %r25 + 0 ], %r26; + // end inline asm + bar.sync 0; + shl.b32 %r36, %r28, 2; + add.s32 %r37, %r35, %r36; + ld.shared.u32 %r27, [%r37]; + .loc 1 44 25 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:25 + mul.wide.s32 %rd49, %r29, 4; + add.s64 %rd48, %rd5, %rd49; + .loc 1 44 36 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:36 + and.b32 %r38, %r3, 192; + setp.eq.s32 %p39, %r38, 0; + and.pred %p37, %p39, %p38; + // begin inline asm + @%p37 st.global.b32 [ %rd48 + 0 ], { %r27 }; + // end inline asm + .loc 1 44 4 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:4 + ret; +$L__tmp3: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py" + .file 2 "/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 1 // DW_CHILDREN_yes +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 2 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 0 // DW_CHILDREN_no +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 32 // DW_AT_inline +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 3 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 1 // DW_CHILDREN_yes +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 4 // Abbreviation Code +.b8 29 // DW_TAG_inlined_subroutine +.b8 0 // DW_CHILDREN_no +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 88 // DW_AT_call_file +.b8 11 // DW_FORM_data1 +.b8 89 // DW_AT_call_line +.b8 11 // DW_FORM_data1 +.b8 87 // DW_AT_call_column +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 241 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0xea DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 113 +.b8 118 +.b8 99 +.b8 106 +.b8 106 +.b8 121 +.b8 118 +.b8 107 +.b8 107 +.b8 108 +.b8 97 +.b8 122 +.b8 97 +.b8 103 +.b8 113 +.b8 103 +.b8 108 +.b8 98 +.b8 100 +.b8 107 +.b8 109 +.b8 120 +.b8 121 +.b8 121 +.b8 107 +.b8 119 +.b8 121 +.b8 114 +.b8 118 +.b8 120 +.b8 55 +.b8 107 +.b8 103 +.b8 107 +.b8 118 +.b8 97 +.b8 102 +.b8 109 +.b8 103 +.b8 55 +.b8 51 +.b8 113 +.b8 112 +.b8 110 +.b8 113 +.b8 98 +.b8 115 +.b8 118 +.b8 106 +.b8 98 +.b8 97 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 113 +.b8 118 +.b8 0 +.b8 2 // Abbrev [2] 0x9f:0x27 DW_TAG_subprogram +.b8 116 // DW_AT_name +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 95 +.b8 114 +.b8 101 +.b8 100 +.b8 95 +.b8 102 +.b8 117 +.b8 115 +.b8 101 +.b8 100 +.b8 95 +.b8 95 +.b8 116 +.b8 111 +.b8 95 +.b8 99 +.b8 111 +.b8 112 +.b8 121 +.b8 95 +.b8 109 +.b8 101 +.b8 97 +.b8 110 +.b8 95 +.b8 112 +.b8 111 +.b8 119 +.b8 95 +.b8 52 +.b8 0 +.b8 1 // DW_AT_inline +.b8 3 // Abbrev [3] 0xc6:0x2e DW_TAG_subprogram +.b64 $L__func_begin0 // DW_AT_low_pc +.b64 $L__func_end0 // DW_AT_high_pc +.b32 159 // DW_AT_abstract_origin +.b8 4 // Abbrev [4] 0xdb:0x18 DW_TAG_inlined_subroutine +.b32 159 // DW_AT_abstract_origin +.b64 $L__tmp1 // DW_AT_low_pc +.b64 $L__tmp2 // DW_AT_high_pc +.b8 1 // DW_AT_call_file +.b8 43 // DW_AT_call_line +.b8 25 // DW_AT_call_column +.b8 0 // End Of Children Mark +.b8 0 // End Of Children Mark + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L2EQ6SIK6RBOB4VN47SPKBG7N3OLQL5ZSPTXWJ36A3FRESXENUMA/triton_red_fused__to_copy_mean_pow_4.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L2EQ6SIK6RBOB4VN47SPKBG7N3OLQL5ZSPTXWJ36A3FRESXENUMA/triton_red_fused__to_copy_mean_pow_4.ttir new file mode 100644 index 0000000000000000000000000000000000000000..e2bf3d711d986d60c979b8c95cc248412a2ed89f --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L2EQ6SIK6RBOB4VN47SPKBG7N3OLQL5ZSPTXWJ36A3FRESXENUMA/triton_red_fused__to_copy_mean_pow_4.ttir @@ -0,0 +1,100 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0) +#loc1 = loc(unknown) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:25) +#loc36 = loc(callsite(#loc1 at #loc29)) +module { + tt.func public @triton_red_fused__to_copy_mean_pow_4(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<64x4xbf16> loc(#loc1) + %c4_i32 = arith.constant 4 : i32 loc(#loc1) + %c128_i32 = arith.constant 128 : i32 loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %cst_0 = arith.constant dense<7168> : tensor<64x1xi32> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<64x1xi32> loc(#loc1) + %cst_2 = arith.constant dense<5120> : tensor<1x4xi32> loc(#loc1) + %cst_3 = arith.constant dense<128> : tensor<1x4xi32> loc(#loc1) + %cst_4 = arith.constant dense<0.000000e+00> : tensor<64x4xf32> loc(#loc1) + %cst_5 = arith.constant dense<8> : tensor<64x1xi32> loc(#loc1) + %c64_i32 = arith.constant 64 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c64_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 1 : i32} : tensor<64xi32> -> tensor<64x1xi32> loc(#loc5) + %4 = tt.splat %1 : i32 -> tensor<64x1xi32> loc(#loc6) + %5 = arith.addi %4, %3 : tensor<64x1xi32> loc(#loc6) + %6 = tt.splat %arg2 : i32 -> tensor<64x1xi32> loc(#loc7) + %7 = arith.cmpi slt, %5, %6 : tensor<64x1xi32> loc(#loc7) + %8 = tt.make_range {end = 4 : i32, start = 0 : i32} : tensor<4xi32> loc(#loc8) + %9 = tt.expand_dims %8 {axis = 0 : i32} : tensor<4xi32> -> tensor<1x4xi32> loc(#loc9) + %10 = arith.remsi %5, %cst_5 : tensor<64x1xi32> loc(#loc10) + %11 = arith.divsi %5, %cst_5 : tensor<64x1xi32> loc(#loc11) + %12 = scf.for %arg4 = %c0_i32 to %c128_i32 step %c4_i32 iter_args(%arg5 = %cst_4) -> (tensor<64x4xf32>) : i32 { + %17 = tt.splat %arg4 : i32 -> tensor<1x4xi32> loc(#loc13) + %18 = arith.addi %17, %9 : tensor<1x4xi32> loc(#loc13) + %19 = arith.cmpi slt, %18, %cst_3 : tensor<1x4xi32> loc(#loc14) + %20 = arith.addi %18, %cst_2 : tensor<1x4xi32> loc(#loc15) + %21 = arith.muli %10, %cst_1 : tensor<64x1xi32> loc(#loc16) + %22 = tt.broadcast %20 : tensor<1x4xi32> -> tensor<64x4xi32> loc(#loc17) + %23 = tt.broadcast %21 : tensor<64x1xi32> -> tensor<64x4xi32> loc(#loc17) + %24 = arith.addi %22, %23 : tensor<64x4xi32> loc(#loc17) + %25 = arith.muli %11, %cst_0 : tensor<64x1xi32> loc(#loc18) + %26 = tt.broadcast %25 : tensor<64x1xi32> -> tensor<64x4xi32> loc(#loc19) + %27 = arith.addi %24, %26 : tensor<64x4xi32> loc(#loc19) + %28 = tt.splat %arg0 : !tt.ptr -> tensor<64x4x!tt.ptr> loc(#loc20) + %29 = tt.addptr %28, %27 : tensor<64x4x!tt.ptr>, tensor<64x4xi32> loc(#loc20) + %30 = tt.broadcast %7 : tensor<64x1xi1> -> tensor<64x4xi1> loc(#loc21) + %31 = tt.broadcast %19 : tensor<1x4xi1> -> tensor<64x4xi1> loc(#loc21) + %32 = arith.andi %30, %31 : tensor<64x4xi1> loc(#loc21) + %33 = tt.load %29, %32, %cst evictionPolicy = evict_first : tensor<64x4x!tt.ptr> loc(#loc22) + %34 = arith.extf %33 : tensor<64x4xbf16> to tensor<64x4xf32> loc(#loc23) + %35 = arith.mulf %34, %34 : tensor<64x4xf32> loc(#loc24) + %36 = arith.addf %arg5, %35 : tensor<64x4xf32> loc(#loc25) + %37 = arith.select %32, %36, %arg5 : tensor<64x4xi1>, tensor<64x4xf32> loc(#loc26) + scf.yield %37 : tensor<64x4xf32> loc(#loc27) + } loc(#loc12) + %13 = "tt.reduce"(%12) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc29)), %arg5: f32 loc(callsite(#loc1 at #loc29))): + %17 = arith.addf %arg4, %arg5 : f32 loc(#loc38) + tt.reduce.return %17 : f32 loc(#loc35) + }) : (tensor<64x4xf32>) -> tensor<64xf32> loc(#loc35) + %14 = tt.expand_dims %13 {axis = 1 : i32} : tensor<64xf32> -> tensor<64x1xf32> loc(#loc31) + %15 = tt.splat %arg1 : !tt.ptr -> tensor<64x1x!tt.ptr> loc(#loc32) + %16 = tt.addptr %15, %5 : tensor<64x1x!tt.ptr>, tensor<64x1xi32> loc(#loc32) + tt.store %16, %14, %7 : tensor<64x1x!tt.ptr> loc(#loc33) + tt.return loc(#loc34) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:44) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:23) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":24:21) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":25:27) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":25:37) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":27:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":28:19) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":31:40) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":32:31) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":33:29) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:41) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:52) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:48) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:62) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:57) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:34) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:75) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:67) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:129) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":39:22) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":41:23) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:48) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:8) +#loc28 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc30 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:28) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:25) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:36) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:4) +#loc35 = loc(callsite(#loc28 at #loc29)) +#loc37 = loc(callsite(#loc30 at #loc28)) +#loc38 = loc(callsite(#loc37 at #loc29)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin new file mode 100644 index 0000000000000000000000000000000000000000..52b0412560cb6990c4f56ab9d5a73d2dc8c5e7fb Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json new file mode 100644 index 0000000000000000000000000000000000000000..caada54c68e42dfee8a99fcd55f00c1e68f3d760 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json @@ -0,0 +1 @@ +{"hash": "5f59dd3916f64d188d188ca99858265897c36c25f98bbd3f15c6e82d334afd2f", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 16, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 64, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx new file mode 100644 index 0000000000000000000000000000000000000000..0d0fde568d1ab3450ddfa18f3130eaa129df356d --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx @@ -0,0 +1,924 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2 // -- Begin function triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2 +.extern .shared .align 16 .b8 global_smem[]; +.global .align 1 .b8 _$_str[11] = {95, 95, 67, 85, 68, 65, 95, 70, 84, 90}; + // @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2 +.visible .entry triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2( + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_0, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_1, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_2, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_3, + .param .u32 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_4, + .param .u32 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_5, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_6 +) +.reqntid 512, 1, 1 +{ + .reg .pred %p<29>; + .reg .b16 %rs<85>; + .reg .b32 %r<129>; + .reg .f32 %f<204>; + .reg .b64 %rd<35>; + .loc 1 18 0 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:18:0 +$L__func_begin0: + .loc 1 18 0 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:18:0 + +// %bb.0: // %__nv_rsqrtf.exit + ld.param.u64 %rd25, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_0]; + ld.param.u64 %rd26, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_1]; +$L__tmp0: + .loc 1 22 28 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:22:28 + mov.u32 %r97, %ctaid.x; + ld.param.u32 %r98, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_4]; + .loc 1 24 21 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:24:21 + setp.lt.s32 %p1, %r97, %r98; + ld.param.u64 %rd27, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_2]; + ld.param.u64 %rd28, [triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2_param_3]; + .loc 1 25 37 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:25:37 + mov.u32 %r99, %tid.x; + and.b32 %r100, %r99, 31; + shl.b32 %r101, %r99, 2; + and.b32 %r102, %r101, 2044; + .loc 1 35 50 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:50 + mul.lo.s32 %r103, %r97, 5120; + .loc 1 29 40 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:29:40 + cvt.u64.u32 %rd29, %r102; + .loc 1 35 45 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:45 + add.s32 %r104, %r102, %r103; + .loc 1 35 38 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:38 + mul.wide.s32 %rd30, %r104, 2; + add.s64 %rd1, %rd25, %rd30; + mov.b32 %r3, 0; + .loc 1 35 55 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:55 + // begin inline asm + mov.u32 %r1, %r3; + mov.u32 %r2, %r3; + @%p1 ld.global.L1::evict_last.v2.b32 { %r1, %r2 }, [ %rd1 + 0 ]; + // end inline asm + .loc 1 36 34 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:34 + add.s64 %rd2, %rd26, %rd30; + .loc 1 36 51 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:51 + // begin inline asm + mov.u32 %r5, %r3; + mov.u32 %r6, %r3; + @%p1 ld.global.L1::evict_last.v2.b32 { %r5, %r6 }, [ %rd2 + 0 ]; + // end inline asm + .loc 1 37 34 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:34 + add.s64 %rd3, %rd27, %rd30; + .loc 1 37 51 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:51 + // begin inline asm + mov.u32 %r9, %r3; + mov.u32 %r10, %r3; + @%p1 ld.global.L1::evict_last.v2.b32 { %r9, %r10 }, [ %rd3 + 0 ]; + // end inline asm + .loc 1 35 45 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:45 + add.s32 %r105, %r104, 2048; + .loc 1 35 38 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:38 + mul.wide.s32 %rd31, %r105, 2; + add.s64 %rd4, %rd25, %rd31; + .loc 1 35 55 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:55 + // begin inline asm + mov.u32 %r13, %r3; + mov.u32 %r14, %r3; + @%p1 ld.global.L1::evict_last.v2.b32 { %r13, %r14 }, [ %rd4 + 0 ]; + // end inline asm + .loc 1 36 34 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:34 + add.s64 %rd5, %rd26, %rd31; + .loc 1 36 51 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:51 + // begin inline asm + mov.u32 %r17, %r3; + mov.u32 %r18, %r3; + @%p1 ld.global.L1::evict_last.v2.b32 { %r17, %r18 }, [ %rd5 + 0 ]; + // end inline asm + .loc 1 37 34 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:34 + add.s64 %rd6, %rd27, %rd31; + .loc 1 37 51 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:51 + // begin inline asm + mov.u32 %r21, %r3; + mov.u32 %r22, %r3; + @%p1 ld.global.L1::evict_last.v2.b32 { %r21, %r22 }, [ %rd6 + 0 ]; + // end inline asm + .loc 1 35 116 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:116 + mov.b32 {%rs1, %rs2}, %r14; + cvt.f32.bf16 %f1, %rs1; + mov.b32 {%rs3, %rs4}, %r2; + cvt.f32.bf16 %f2, %rs3; + .loc 1 36 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:112 + mov.b32 {%rs5, %rs6}, %r6; + cvt.f32.bf16 %f3, %rs5; + mov.b32 {%rs7, %rs8}, %r18; + cvt.f32.bf16 %f4, %rs7; + .loc 1 37 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:112 + mov.b32 {%rs9, %rs10}, %r10; + cvt.f32.bf16 %f5, %rs9; + mov.b32 {%rs11, %rs12}, %r22; + cvt.f32.bf16 %f6, %rs11; + .loc 1 41 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:41:22 + add.f32 %f7, %f4, %f6; + add.f32 %f8, %f3, %f5; + .loc 1 42 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:42:22 + add.f32 %f9, %f8, %f2; + add.f32 %f10, %f7, %f1; + .loc 1 43 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:43:22 + mul.f32 %f11, %f10, %f10; + .loc 1 35 116 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:116 + cvt.f32.bf16 %f12, %rs2; + cvt.f32.bf16 %f13, %rs4; + .loc 1 36 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:112 + cvt.f32.bf16 %f14, %rs6; + cvt.f32.bf16 %f15, %rs8; + .loc 1 37 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:112 + cvt.f32.bf16 %f16, %rs10; + cvt.f32.bf16 %f17, %rs12; + .loc 1 41 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:41:22 + add.f32 %f18, %f15, %f17; + add.f32 %f19, %f14, %f16; + .loc 1 42 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:42:22 + add.f32 %f20, %f19, %f13; + add.f32 %f21, %f18, %f12; + .loc 1 43 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:43:22 + mul.f32 %f22, %f21, %f21; + .loc 1 45 25 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:45:25 + fma.rn.f32 %f23, %f9, %f9, %f11; + fma.rn.f32 %f24, %f20, %f20, %f22; + .loc 1 46 50 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:46:50 + selp.f32 %f25, %f23, 0f00000000, %p1; + selp.f32 %f26, %f24, 0f00000000, %p1; + .loc 1 30 31 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:30:31 + or.b64 %rd32, %rd29, 4096; + .loc 1 31 29 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:31:29 + setp.lt.u64 %p26, %rd32, 5120; + .loc 1 35 45 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:45 + cvt.u32.u64 %r106, %rd32; + add.s32 %r107, %r103, %r106; + .loc 1 35 38 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:38 + mul.wide.s32 %rd33, %r107, 2; + add.s64 %rd7, %rd25, %rd33; + .loc 1 35 63 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:63 + and.pred %p7, %p1, %p26; + .loc 1 35 55 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:55 + // begin inline asm + mov.u32 %r25, %r3; + mov.u32 %r26, %r3; + @%p7 ld.global.L1::evict_last.v2.b32 { %r25, %r26 }, [ %rd7 + 0 ]; + // end inline asm + mov.b32 {%rs13, %rs14}, %r26; + .loc 1 35 116 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:116 + cvt.f32.bf16 %f27, %rs13; + cvt.f32.bf16 %f28, %rs14; + .loc 1 36 34 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:34 + add.s64 %rd8, %rd26, %rd33; + .loc 1 36 51 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:51 + // begin inline asm + mov.u32 %r29, %r3; + mov.u32 %r30, %r3; + @%p7 ld.global.L1::evict_last.v2.b32 { %r29, %r30 }, [ %rd8 + 0 ]; + // end inline asm + mov.b32 {%rs15, %rs16}, %r30; + .loc 1 36 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:112 + cvt.f32.bf16 %f29, %rs15; + cvt.f32.bf16 %f30, %rs16; + .loc 1 37 34 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:34 + add.s64 %rd9, %rd27, %rd33; + .loc 1 37 51 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:51 + // begin inline asm + mov.u32 %r33, %r3; + mov.u32 %r34, %r3; + @%p7 ld.global.L1::evict_last.v2.b32 { %r33, %r34 }, [ %rd9 + 0 ]; + // end inline asm + mov.b32 {%rs17, %rs18}, %r34; + .loc 1 37 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:112 + cvt.f32.bf16 %f31, %rs17; + cvt.f32.bf16 %f32, %rs18; + .loc 1 41 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:41:22 + add.f32 %f33, %f29, %f31; + add.f32 %f34, %f30, %f32; + .loc 1 42 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:42:22 + add.f32 %f35, %f33, %f27; + add.f32 %f36, %f34, %f28; + .loc 1 45 25 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:45:25 + fma.rn.f32 %f37, %f35, %f35, %f25; + fma.rn.f32 %f38, %f36, %f36, %f26; + .loc 1 35 116 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:116 + mov.b32 {%rs19, %rs20}, %r1; + cvt.f32.bf16 %f39, %rs19; + cvt.f32.bf16 %f40, %rs20; + .loc 1 36 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:112 + mov.b32 {%rs21, %rs22}, %r5; + cvt.f32.bf16 %f41, %rs22; + cvt.f32.bf16 %f42, %rs21; + .loc 1 37 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:112 + mov.b32 {%rs23, %rs24}, %r9; + cvt.f32.bf16 %f43, %rs24; + cvt.f32.bf16 %f44, %rs23; + .loc 1 41 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:41:22 + add.f32 %f45, %f42, %f44; + add.f32 %f46, %f41, %f43; + .loc 1 42 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:42:22 + add.f32 %f47, %f46, %f40; + add.f32 %f48, %f45, %f39; + .loc 1 35 116 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:116 + mov.b32 {%rs25, %rs26}, %r13; + cvt.f32.bf16 %f49, %rs26; + cvt.f32.bf16 %f50, %rs25; + .loc 1 36 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:112 + mov.b32 {%rs27, %rs28}, %r17; + cvt.f32.bf16 %f51, %rs27; + cvt.f32.bf16 %f52, %rs28; + .loc 1 37 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:112 + mov.b32 {%rs29, %rs30}, %r21; + cvt.f32.bf16 %f53, %rs29; + cvt.f32.bf16 %f54, %rs30; + .loc 1 41 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:41:22 + add.f32 %f55, %f52, %f54; + add.f32 %f56, %f51, %f53; + .loc 1 42 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:42:22 + add.f32 %f57, %f56, %f50; + add.f32 %f58, %f55, %f49; + .loc 1 43 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:43:22 + mul.f32 %f59, %f58, %f58; + mul.f32 %f60, %f57, %f57; + .loc 1 45 25 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:45:25 + fma.rn.f32 %f61, %f48, %f48, %f60; + fma.rn.f32 %f62, %f47, %f47, %f59; + .loc 1 46 50 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:46:50 + selp.f32 %f63, %f62, 0f00000000, %p1; + selp.f32 %f64, %f61, 0f00000000, %p1; + .loc 1 35 116 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:35:116 + mov.b32 {%rs31, %rs32}, %r25; + cvt.f32.bf16 %f65, %rs31; + cvt.f32.bf16 %f66, %rs32; + .loc 1 36 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:36:112 + mov.b32 {%rs33, %rs34}, %r29; + cvt.f32.bf16 %f67, %rs34; + cvt.f32.bf16 %f68, %rs33; + .loc 1 37 112 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:37:112 + mov.b32 {%rs35, %rs36}, %r33; + cvt.f32.bf16 %f69, %rs36; + cvt.f32.bf16 %f70, %rs35; + .loc 1 41 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:41:22 + add.f32 %f71, %f68, %f70; + add.f32 %f72, %f67, %f69; + .loc 1 42 22 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:42:22 + add.f32 %f73, %f72, %f66; + add.f32 %f74, %f71, %f65; + .loc 1 45 25 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:45:25 + fma.rn.f32 %f75, %f74, %f74, %f64; + fma.rn.f32 %f76, %f73, %f73, %f63; + .loc 1 46 50 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:46:50 + selp.f32 %f77, %f76, %f63, %p7; + selp.f32 %f78, %f75, %f64, %p7; + selp.f32 %f79, %f37, %f25, %p7; + selp.f32 %f80, %f38, %f26, %p7; +$L__tmp1: + .loc 2 256 15 // standard.py:256:15 + add.f32 %f81, %f78, %f77; + add.f32 %f82, %f79, %f81; + add.f32 %f83, %f80, %f82; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r108, %f83; + shfl.sync.bfly.b32 %r109, %r108, 16, 31, -1; + mov.b32 %f84, %r109; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f85, %f83, %f84; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r110, %f85; + shfl.sync.bfly.b32 %r111, %r110, 8, 31, -1; + mov.b32 %f86, %r111; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f87, %f85, %f86; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r112, %f87; + shfl.sync.bfly.b32 %r113, %r112, 4, 31, -1; + mov.b32 %f88, %r113; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f89, %f87, %f88; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r114, %f89; + shfl.sync.bfly.b32 %r115, %r114, 2, 31, -1; + mov.b32 %f90, %r115; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f91, %f89, %f90; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r116, %f91; + shfl.sync.bfly.b32 %r117, %r116, 1, 31, -1; + mov.b32 %f92, %r117; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f93, %f91, %f92; + .loc 2 286 36 // standard.py:286:36 + setp.eq.s32 %p10, %r100, 0; + shr.u32 %r118, %r99, 3; + and.b32 %r119, %r118, 60; + mov.u32 %r120, global_smem; + add.s32 %r37, %r120, %r119; + mov.b32 %r38, %f93; + // begin inline asm + @%p10 st.shared.b32 [ %r37 + 0 ], %r38; + // end inline asm + bar.sync 0; + setp.lt.s32 %p11, %r99, 16; + add.s32 %r40, %r120, %r101; + // begin inline asm + @%p11 ld.shared.b32 %r39, [ %r40 + 0 ]; + // end inline asm + mov.b32 %f94, %r39; + shfl.sync.bfly.b32 %r121, %r39, 8, 31, -1; + mov.b32 %f95, %r121; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f96, %f94, %f95; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r122, %f96; + shfl.sync.bfly.b32 %r123, %r122, 4, 31, -1; + mov.b32 %f97, %r123; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f98, %f96, %f97; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r124, %f98; + shfl.sync.bfly.b32 %r125, %r124, 2, 31, -1; + mov.b32 %f99, %r125; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f100, %f98, %f99; + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r126, %f100; + shfl.sync.bfly.b32 %r127, %r126, 1, 31, -1; + mov.b32 %f101, %r127; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f102, %f100, %f101; + .loc 2 286 36 // standard.py:286:36 + and.b32 %r128, %r99, 15; + setp.eq.s32 %p28, %r128, 0; + and.pred %p12, %p11, %p28; + mov.b32 %r42, %f102; + // begin inline asm + @%p12 st.shared.b32 [ %r40 + 0 ], %r42; + // end inline asm + bar.sync 0; + ld.shared.f32 %f103, [global_smem]; + mov.f32 %f104, 0f45A00000; +$L__tmp2: + .loc 1 64 25 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:64:25 + div.full.f32 %f105, %f103, %f104; + .loc 1 66 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:66:24 + add.f32 %f106, %f105, 0f358637BD; + .loc 1 67 32 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:67:32 + rsqrt.approx.ftz.f32 %f107, %f106; + .loc 1 54 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:56 + // begin inline asm + mov.u32 %r43, %r3; + mov.u32 %r44, %r3; + @%p1 ld.global.L1::evict_first.v2.b32 { %r43, %r44 }, [ %rd1 + 0 ]; + // end inline asm + .loc 1 55 52 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:52 + // begin inline asm + mov.u32 %r47, %r3; + mov.u32 %r48, %r3; + @%p1 ld.global.L1::evict_first.v2.b32 { %r47, %r48 }, [ %rd2 + 0 ]; + // end inline asm + .loc 1 56 52 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:52 + // begin inline asm + mov.u32 %r51, %r3; + mov.u32 %r52, %r3; + @%p1 ld.global.L1::evict_first.v2.b32 { %r51, %r52 }, [ %rd3 + 0 ]; + // end inline asm + .loc 1 57 35 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:35 + mul.wide.u32 %rd34, %r102, 2; + add.s64 %rd13, %rd28, %rd34; + mov.pred %p16, -1; + .loc 1 57 42 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:42 + // begin inline asm + mov.u32 %r55, %r3; + mov.u32 %r56, %r3; + @%p16 ld.global.L1::evict_last.v2.b32 { %r55, %r56 }, [ %rd13 + 0 ]; + // end inline asm + .loc 1 54 118 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:118 + mov.b32 {%rs37, %rs38}, %r43; + cvt.f32.bf16 %f108, %rs38; + cvt.f32.bf16 %f109, %rs37; + .loc 1 55 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:114 + mov.b32 {%rs39, %rs40}, %r47; + cvt.f32.bf16 %f110, %rs39; + cvt.f32.bf16 %f111, %rs40; + .loc 1 56 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:114 + mov.b32 {%rs41, %rs42}, %r51; + cvt.f32.bf16 %f112, %rs41; + cvt.f32.bf16 %f113, %rs42; + .loc 1 57 95 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:95 + mov.b32 {%rs43, %rs44}, %r55; + cvt.f32.bf16 %f114, %rs44; + cvt.f32.bf16 %f115, %rs43; + .loc 1 61 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:61:24 + add.f32 %f116, %f111, %f113; + add.f32 %f117, %f110, %f112; + .loc 1 62 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:62:24 + add.f32 %f118, %f117, %f109; + add.f32 %f119, %f116, %f108; + .loc 1 68 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:68:24 + mul.f32 %f120, %f107, %f119; + mul.f32 %f121, %f107, %f118; + .loc 1 70 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:70:24 + mul.f32 %f122, %f121, %f115; + mul.f32 %f123, %f120, %f114; + .loc 1 71 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:71:56 + cvt.rn.bf16x2.f32 %r59, %f123, %f122; + .loc 1 54 118 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:118 + mov.b32 {%rs45, %rs46}, %r44; + cvt.f32.bf16 %f124, %rs46; + cvt.f32.bf16 %f125, %rs45; + .loc 1 55 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:114 + mov.b32 {%rs47, %rs48}, %r48; + cvt.f32.bf16 %f126, %rs47; + cvt.f32.bf16 %f127, %rs48; + .loc 1 56 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:114 + mov.b32 {%rs49, %rs50}, %r52; + cvt.f32.bf16 %f128, %rs49; + cvt.f32.bf16 %f129, %rs50; + .loc 1 57 95 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:95 + mov.b32 {%rs51, %rs52}, %r56; + cvt.f32.bf16 %f130, %rs52; + cvt.f32.bf16 %f131, %rs51; + .loc 1 61 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:61:24 + add.f32 %f132, %f127, %f129; + add.f32 %f133, %f126, %f128; + .loc 1 62 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:62:24 + add.f32 %f134, %f133, %f125; + add.f32 %f135, %f132, %f124; + .loc 1 68 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:68:24 + mul.f32 %f136, %f107, %f135; + mul.f32 %f137, %f107, %f134; + .loc 1 70 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:70:24 + mul.f32 %f138, %f137, %f131; + mul.f32 %f139, %f136, %f130; + .loc 1 71 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:71:56 + cvt.rn.bf16x2.f32 %r60, %f139, %f138; + // begin inline asm + @%p1 st.global.v2.b32 [ %rd1 + 0 ], { %r59, %r60 }; + // end inline asm + .loc 1 54 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:56 + // begin inline asm + mov.u32 %r61, %r3; + mov.u32 %r62, %r3; + @%p1 ld.global.L1::evict_first.v2.b32 { %r61, %r62 }, [ %rd4 + 0 ]; + // end inline asm + .loc 1 55 52 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:52 + // begin inline asm + mov.u32 %r65, %r3; + mov.u32 %r66, %r3; + @%p1 ld.global.L1::evict_first.v2.b32 { %r65, %r66 }, [ %rd5 + 0 ]; + // end inline asm + .loc 1 56 52 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:52 + // begin inline asm + mov.u32 %r69, %r3; + mov.u32 %r70, %r3; + @%p1 ld.global.L1::evict_first.v2.b32 { %r69, %r70 }, [ %rd6 + 0 ]; + // end inline asm + .loc 1 57 35 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:35 + add.s64 %rd18, %rd13, 4096; + .loc 1 57 42 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:42 + // begin inline asm + mov.u32 %r73, %r3; + mov.u32 %r74, %r3; + @%p16 ld.global.L1::evict_last.v2.b32 { %r73, %r74 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 54 118 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:118 + mov.b32 {%rs53, %rs54}, %r61; + cvt.f32.bf16 %f140, %rs54; + cvt.f32.bf16 %f141, %rs53; + .loc 1 55 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:114 + mov.b32 {%rs55, %rs56}, %r65; + cvt.f32.bf16 %f142, %rs55; + cvt.f32.bf16 %f143, %rs56; + .loc 1 56 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:114 + mov.b32 {%rs57, %rs58}, %r69; + cvt.f32.bf16 %f144, %rs57; + cvt.f32.bf16 %f145, %rs58; + .loc 1 57 95 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:95 + mov.b32 {%rs59, %rs60}, %r73; + cvt.f32.bf16 %f146, %rs60; + cvt.f32.bf16 %f147, %rs59; + .loc 1 61 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:61:24 + add.f32 %f148, %f143, %f145; + add.f32 %f149, %f142, %f144; + .loc 1 62 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:62:24 + add.f32 %f150, %f149, %f141; + add.f32 %f151, %f148, %f140; + .loc 1 68 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:68:24 + mul.f32 %f152, %f107, %f151; + mul.f32 %f153, %f107, %f150; + .loc 1 70 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:70:24 + mul.f32 %f154, %f153, %f147; + mul.f32 %f155, %f152, %f146; + .loc 1 71 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:71:56 + cvt.rn.bf16x2.f32 %r77, %f155, %f154; + .loc 1 54 118 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:118 + mov.b32 {%rs61, %rs62}, %r62; + cvt.f32.bf16 %f156, %rs62; + cvt.f32.bf16 %f157, %rs61; + .loc 1 55 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:114 + mov.b32 {%rs63, %rs64}, %r66; + cvt.f32.bf16 %f158, %rs63; + cvt.f32.bf16 %f159, %rs64; + .loc 1 56 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:114 + mov.b32 {%rs65, %rs66}, %r70; + cvt.f32.bf16 %f160, %rs65; + cvt.f32.bf16 %f161, %rs66; + .loc 1 57 95 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:95 + mov.b32 {%rs67, %rs68}, %r74; + cvt.f32.bf16 %f162, %rs68; + cvt.f32.bf16 %f163, %rs67; + .loc 1 61 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:61:24 + add.f32 %f164, %f159, %f161; + add.f32 %f165, %f158, %f160; + .loc 1 62 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:62:24 + add.f32 %f166, %f165, %f157; + add.f32 %f167, %f164, %f156; + .loc 1 68 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:68:24 + mul.f32 %f168, %f107, %f167; + mul.f32 %f169, %f107, %f166; + .loc 1 70 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:70:24 + mul.f32 %f170, %f169, %f163; + mul.f32 %f171, %f168, %f162; + .loc 1 71 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:71:56 + cvt.rn.bf16x2.f32 %r78, %f171, %f170; + // begin inline asm + @%p1 st.global.v2.b32 [ %rd4 + 0 ], { %r77, %r78 }; + // end inline asm + .loc 1 54 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:56 + // begin inline asm + mov.u32 %r79, %r3; + mov.u32 %r80, %r3; + @%p7 ld.global.L1::evict_first.v2.b32 { %r79, %r80 }, [ %rd7 + 0 ]; + // end inline asm + .loc 1 55 52 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:52 + // begin inline asm + mov.u32 %r83, %r3; + mov.u32 %r84, %r3; + @%p7 ld.global.L1::evict_first.v2.b32 { %r83, %r84 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 56 52 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:52 + // begin inline asm + mov.u32 %r87, %r3; + mov.u32 %r88, %r3; + @%p7 ld.global.L1::evict_first.v2.b32 { %r87, %r88 }, [ %rd9 + 0 ]; + // end inline asm + .loc 1 57 35 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:35 + add.s64 %rd23, %rd13, 8192; + .loc 1 57 42 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:42 + // begin inline asm + mov.u32 %r91, %r3; + mov.u32 %r92, %r3; + @%p26 ld.global.L1::evict_last.v2.b32 { %r91, %r92 }, [ %rd23 + 0 ]; + // end inline asm + .loc 1 54 118 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:118 + mov.b32 {%rs69, %rs70}, %r79; + cvt.f32.bf16 %f172, %rs70; + cvt.f32.bf16 %f173, %rs69; + .loc 1 55 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:114 + mov.b32 {%rs71, %rs72}, %r83; + cvt.f32.bf16 %f174, %rs71; + cvt.f32.bf16 %f175, %rs72; + .loc 1 56 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:114 + mov.b32 {%rs73, %rs74}, %r87; + cvt.f32.bf16 %f176, %rs73; + cvt.f32.bf16 %f177, %rs74; + .loc 1 57 95 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:95 + mov.b32 {%rs75, %rs76}, %r91; + cvt.f32.bf16 %f178, %rs76; + cvt.f32.bf16 %f179, %rs75; + .loc 1 61 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:61:24 + add.f32 %f180, %f175, %f177; + add.f32 %f181, %f174, %f176; + .loc 1 62 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:62:24 + add.f32 %f182, %f181, %f173; + add.f32 %f183, %f180, %f172; + .loc 1 68 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:68:24 + mul.f32 %f184, %f107, %f183; + mul.f32 %f185, %f107, %f182; + .loc 1 70 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:70:24 + mul.f32 %f186, %f185, %f179; + mul.f32 %f187, %f184, %f178; + .loc 1 71 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:71:56 + cvt.rn.bf16x2.f32 %r95, %f187, %f186; + .loc 1 54 118 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:54:118 + mov.b32 {%rs77, %rs78}, %r80; + cvt.f32.bf16 %f188, %rs78; + cvt.f32.bf16 %f189, %rs77; + .loc 1 55 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:55:114 + mov.b32 {%rs79, %rs80}, %r84; + cvt.f32.bf16 %f190, %rs79; + cvt.f32.bf16 %f191, %rs80; + .loc 1 56 114 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:56:114 + mov.b32 {%rs81, %rs82}, %r88; + cvt.f32.bf16 %f192, %rs81; + cvt.f32.bf16 %f193, %rs82; + .loc 1 57 95 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:57:95 + mov.b32 {%rs83, %rs84}, %r92; + cvt.f32.bf16 %f194, %rs84; + cvt.f32.bf16 %f195, %rs83; + .loc 1 61 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:61:24 + add.f32 %f196, %f191, %f193; + add.f32 %f197, %f190, %f192; + .loc 1 62 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:62:24 + add.f32 %f198, %f197, %f189; + add.f32 %f199, %f196, %f188; + .loc 1 68 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:68:24 + mul.f32 %f200, %f107, %f199; + mul.f32 %f201, %f107, %f198; + .loc 1 70 24 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:70:24 + mul.f32 %f202, %f201, %f195; + mul.f32 %f203, %f200, %f194; + .loc 1 71 56 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:71:56 + cvt.rn.bf16x2.f32 %r96, %f203, %f202; + // begin inline asm + @%p7 st.global.v2.b32 [ %rd7 + 0 ], { %r95, %r96 }; + // end inline asm + .loc 1 48 4 // csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py:48:4 + ret; +$L__tmp3: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py" + .file 2 "/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 1 // DW_CHILDREN_yes +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 2 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 0 // DW_CHILDREN_no +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 32 // DW_AT_inline +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 3 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 1 // DW_CHILDREN_yes +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 4 // Abbreviation Code +.b8 29 // DW_TAG_inlined_subroutine +.b8 0 // DW_CHILDREN_no +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 88 // DW_AT_call_file +.b8 11 // DW_FORM_data1 +.b8 89 // DW_AT_call_line +.b8 11 // DW_FORM_data1 +.b8 87 // DW_AT_call_column +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 255 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0xf8 DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 115 +.b8 118 +.b8 100 +.b8 54 +.b8 114 +.b8 50 +.b8 55 +.b8 102 +.b8 116 +.b8 100 +.b8 104 +.b8 51 +.b8 101 +.b8 119 +.b8 54 +.b8 102 +.b8 110 +.b8 113 +.b8 50 +.b8 116 +.b8 98 +.b8 99 +.b8 114 +.b8 108 +.b8 52 +.b8 109 +.b8 52 +.b8 104 +.b8 113 +.b8 120 +.b8 97 +.b8 105 +.b8 55 +.b8 121 +.b8 104 +.b8 112 +.b8 116 +.b8 115 +.b8 101 +.b8 109 +.b8 107 +.b8 101 +.b8 105 +.b8 108 +.b8 121 +.b8 105 +.b8 99 +.b8 52 +.b8 103 +.b8 122 +.b8 122 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 115 +.b8 118 +.b8 0 +.b8 2 // Abbrev [2] 0x9f:0x35 DW_TAG_subprogram +.b8 116 // DW_AT_name +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 95 +.b8 114 +.b8 101 +.b8 100 +.b8 95 +.b8 102 +.b8 117 +.b8 115 +.b8 101 +.b8 100 +.b8 95 +.b8 95 +.b8 116 +.b8 111 +.b8 95 +.b8 99 +.b8 111 +.b8 112 +.b8 121 +.b8 95 +.b8 97 +.b8 100 +.b8 100 +.b8 95 +.b8 109 +.b8 101 +.b8 97 +.b8 110 +.b8 95 +.b8 109 +.b8 117 +.b8 108 +.b8 95 +.b8 112 +.b8 111 +.b8 119 +.b8 95 +.b8 114 +.b8 115 +.b8 113 +.b8 114 +.b8 116 +.b8 95 +.b8 50 +.b8 0 +.b8 1 // DW_AT_inline +.b8 3 // Abbrev [3] 0xd4:0x2e DW_TAG_subprogram +.b64 $L__func_begin0 // DW_AT_low_pc +.b64 $L__func_end0 // DW_AT_high_pc +.b32 159 // DW_AT_abstract_origin +.b8 4 // Abbrev [4] 0xe9:0x18 DW_TAG_inlined_subroutine +.b32 159 // DW_AT_abstract_origin +.b64 $L__tmp1 // DW_AT_low_pc +.b64 $L__tmp2 // DW_AT_high_pc +.b8 1 // DW_AT_call_file +.b8 47 // DW_AT_call_line +.b8 27 // DW_AT_call_column +.b8 0 // End Of Children Mark +.b8 0 // End Of Children Mark + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..b0fe066948c7ada9cc9a0bc1ddaa907faaf3bfb5 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/L5M52OIW6ZGRRDIYRSUZQWBGLCL4G3BF7GF32PYVY3UC2M2K7UXQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir @@ -0,0 +1,144 @@ +#blocked = #ttg.blocked<{sizePerThread = [1, 4], threadsPerWarp = [1, 32], warpsPerCTA = [1, 16], order = [1, 0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0) +#loc1 = loc(unknown) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":47:27) +#loc59 = loc(callsite(#loc1 at #loc27)) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 16 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg4: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg5: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<1x2048xf32, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<5.120000e+03> : tensor<1x1xf32, #blocked> loc(#loc1) + %cst_1 = arith.constant dense<9.99999997E-7> : tensor<1x1xf32, #blocked> loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %c5120_i32 = arith.constant 5120 : i32 loc(#loc1) + %c2048_i32 = arith.constant 2048 : i32 loc(#loc1) + %cst_2 = arith.constant dense<0.000000e+00> : tensor<1x2048xbf16, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<5120> : tensor<1x2048xi32, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.cmpi slt, %0, %arg4 : i32 loc(#loc3) + %2 = tt.make_range {end = 2048 : i32, start = 0 : i32} : tensor<2048xi32, #ttg.slice<{dim = 0, parent = #blocked}>> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 0 : i32} : tensor<2048xi32, #ttg.slice<{dim = 0, parent = #blocked}>> -> tensor<1x2048xi32, #blocked> loc(#loc4) + %4 = arith.muli %0, %c5120_i32 : i32 loc(#loc5) + %5 = tt.splat %4 : i32 -> tensor<1x2048xi32, #blocked> loc(#loc56) + %6 = tt.splat %arg0 : !tt.ptr -> tensor<1x2048x!tt.ptr, #blocked> loc(#loc7) + %7 = tt.splat %1 : i1 -> tensor<1x2048xi1, #blocked> loc(#loc57) + %8 = tt.splat %arg1 : !tt.ptr -> tensor<1x2048x!tt.ptr, #blocked> loc(#loc9) + %9 = tt.splat %arg2 : !tt.ptr -> tensor<1x2048x!tt.ptr, #blocked> loc(#loc10) + %10 = scf.for %arg6 = %c0_i32 to %c5120_i32 step %c2048_i32 iter_args(%arg7 = %cst) -> (tensor<1x2048xf32, #blocked>) : i32 { + %18 = tt.splat %arg6 : i32 -> tensor<1x2048xi32, #blocked> loc(#loc12) + %19 = arith.addi %18, %3 : tensor<1x2048xi32, #blocked> loc(#loc12) + %20 = arith.cmpi slt, %19, %cst_3 : tensor<1x2048xi32, #blocked> loc(#loc13) + %21 = arith.addi %19, %5 : tensor<1x2048xi32, #blocked> loc(#loc6) + %22 = tt.addptr %6, %21 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc7) + %23 = arith.andi %7, %20 : tensor<1x2048xi1, #blocked> loc(#loc8) + %24 = tt.load %22, %23, %cst_2 evictionPolicy = evict_last : tensor<1x2048x!tt.ptr, #blocked> loc(#loc14) + %25 = arith.extf %24 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc15) + %26 = tt.addptr %8, %21 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc9) + %27 = tt.load %26, %23, %cst_2 evictionPolicy = evict_last : tensor<1x2048x!tt.ptr, #blocked> loc(#loc16) + %28 = arith.extf %27 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc17) + %29 = tt.addptr %9, %21 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc10) + %30 = tt.load %29, %23, %cst_2 evictionPolicy = evict_last : tensor<1x2048x!tt.ptr, #blocked> loc(#loc18) + %31 = arith.extf %30 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc19) + %32 = arith.addf %28, %31 : tensor<1x2048xf32, #blocked> loc(#loc20) + %33 = arith.addf %25, %32 : tensor<1x2048xf32, #blocked> loc(#loc21) + %34 = arith.mulf %33, %33 : tensor<1x2048xf32, #blocked> loc(#loc22) + %35 = arith.addf %arg7, %34 : tensor<1x2048xf32, #blocked> loc(#loc23) + %36 = arith.select %23, %35, %arg7 : tensor<1x2048xi1, #blocked>, tensor<1x2048xf32, #blocked> loc(#loc24) + scf.yield %36 : tensor<1x2048xf32, #blocked> loc(#loc25) + } loc(#loc11) + %11 = "tt.reduce"(%10) <{axis = 1 : i32}> ({ + ^bb0(%arg6: f32 loc(callsite(#loc1 at #loc27)), %arg7: f32 loc(callsite(#loc1 at #loc27))): + %18 = arith.addf %arg6, %arg7 : f32 loc(#loc61) + tt.reduce.return %18 : f32 loc(#loc58) + }) : (tensor<1x2048xf32, #blocked>) -> tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc58) + %12 = tt.expand_dims %11 {axis = 1 : i32} : tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<1x1xf32, #blocked> loc(#loc29) + %13 = tt.splat %arg3 : !tt.ptr -> tensor<1x2048x!tt.ptr, #blocked> loc(#loc30) + %14 = arith.divf %12, %cst_0 : tensor<1x1xf32, #blocked> loc(#loc31) + %15 = arith.addf %14, %cst_1 : tensor<1x1xf32, #blocked> loc(#loc32) + %16 = tt.extern_elementwise %15 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1x1xf32, #blocked>) -> tensor<1x1xf32, #blocked> loc(#loc33) + %17 = tt.broadcast %16 : tensor<1x1xf32, #blocked> -> tensor<1x2048xf32, #blocked> loc(#loc34) + scf.for %arg6 = %c0_i32 to %c5120_i32 step %c2048_i32 : i32 { + %18 = tt.splat %arg6 : i32 -> tensor<1x2048xi32, #blocked> loc(#loc36) + %19 = arith.addi %18, %3 : tensor<1x2048xi32, #blocked> loc(#loc36) + %20 = arith.cmpi slt, %19, %cst_3 : tensor<1x2048xi32, #blocked> loc(#loc37) + %21 = arith.addi %19, %5 : tensor<1x2048xi32, #blocked> loc(#loc38) + %22 = tt.addptr %6, %21 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc39) + %23 = arith.andi %7, %20 : tensor<1x2048xi1, #blocked> loc(#loc40) + %24 = tt.load %22, %23, %cst_2 evictionPolicy = evict_first : tensor<1x2048x!tt.ptr, #blocked> loc(#loc41) + %25 = arith.extf %24 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc42) + %26 = tt.addptr %8, %21 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc43) + %27 = tt.load %26, %23, %cst_2 evictionPolicy = evict_first : tensor<1x2048x!tt.ptr, #blocked> loc(#loc44) + %28 = arith.extf %27 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc45) + %29 = tt.addptr %9, %21 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc46) + %30 = tt.load %29, %23, %cst_2 evictionPolicy = evict_first : tensor<1x2048x!tt.ptr, #blocked> loc(#loc47) + %31 = arith.extf %30 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc48) + %32 = tt.addptr %13, %19 : tensor<1x2048x!tt.ptr, #blocked>, tensor<1x2048xi32, #blocked> loc(#loc30) + %33 = tt.load %32, %20, %cst_2 evictionPolicy = evict_last : tensor<1x2048x!tt.ptr, #blocked> loc(#loc49) + %34 = arith.extf %33 : tensor<1x2048xbf16, #blocked> to tensor<1x2048xf32, #blocked> loc(#loc50) + %35 = arith.addf %28, %31 : tensor<1x2048xf32, #blocked> loc(#loc51) + %36 = arith.addf %25, %35 : tensor<1x2048xf32, #blocked> loc(#loc52) + %37 = arith.mulf %36, %17 : tensor<1x2048xf32, #blocked> loc(#loc34) + %38 = arith.mulf %37, %34 : tensor<1x2048xf32, #blocked> loc(#loc53) + %39 = arith.truncf %38 : tensor<1x2048xf32, #blocked> to tensor<1x2048xbf16, #blocked> loc(#loc54) + tt.store %22, %39, %23 : tensor<1x2048x!tt.ptr, #blocked> loc(#loc54) + } loc(#loc35) + tt.return loc(#loc55) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":24:21) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":25:37) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:50) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:45) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:38) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:63) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:34) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:34) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":29:40) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":30:31) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":31:29) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:55) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:116) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:51) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:112) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:51) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:112) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":41:22) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":42:22) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":43:22) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":45:25) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":46:50) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":46:8) +#loc26 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc28 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":47:30) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:35) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":64:25) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":66:24) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":67:32) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":68:24) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":48:40) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":49:31) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":50:29) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:46) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:39) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:64) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:56) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:118) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:35) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:52) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:114) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:35) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:52) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:114) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:42) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:95) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":61:24) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":62:24) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":70:24) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":71:56) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":48:4) +#loc56 = loc(fused[#loc6, #loc5]) +#loc57 = loc(fused[#loc8, #loc3]) +#loc58 = loc(callsite(#loc26 at #loc27)) +#loc60 = loc(callsite(#loc28 at #loc26)) +#loc61 = loc(callsite(#loc60 at #loc27)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/__grp__triton_red_fused__to_copy_mean_pow_4.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/__grp__triton_red_fused__to_copy_mean_pow_4.json new file mode 100644 index 0000000000000000000000000000000000000000..7e77a8d93053a974defd84da8e06b2bad6746e21 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/__grp__triton_red_fused__to_copy_mean_pow_4.json @@ -0,0 +1 @@ +{"child_paths": {"triton_red_fused__to_copy_mean_pow_4.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.ttir", "triton_red_fused__to_copy_mean_pow_4.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.ttgir", "triton_red_fused__to_copy_mean_pow_4.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.llir", "triton_red_fused__to_copy_mean_pow_4.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.ptx", "triton_red_fused__to_copy_mean_pow_4.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.cubin", "triton_red_fused__to_copy_mean_pow_4.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.llir new file mode 100644 index 0000000000000000000000000000000000000000..e9b8dd5f8a7390f50acfb633d6de0a4061bdfec7 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.llir @@ -0,0 +1,143 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 + +define ptx_kernel void @triton_red_fused__to_copy_mean_pow_4(ptr addrspace(1) %0, ptr addrspace(1) %1, i32 %2, i32 %3, ptr addrspace(1) readnone captures(none) %4) local_unnamed_addr !dbg !6 { + %6 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %7 = shl i32 %6, 2, !dbg !10 + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %9 = lshr i32 %8, 5, !dbg !11 + %10 = and i32 %9, 3, !dbg !11 + %11 = and i32 %8, 3, !dbg !11 + %12 = or disjoint i32 %10, %7, !dbg !12 + %13 = or disjoint i32 %7, %11, !dbg !12 + %14 = icmp slt i32 %12, %2, !dbg !13 + %15 = icmp slt i32 %13, %2, !dbg !13 + %16 = shl i32 %8, 2, !dbg !14 + %17 = and i32 %16, 124, !dbg !14 + %18 = sdiv i32 %12, 8, !dbg !15 + %19 = mul i32 %18, 8, !dbg !16 + %.decomposed = sub i32 %12, %19, !dbg !16 + %20 = or disjoint i32 %17, 5120, !dbg !17 + %21 = shl nsw i32 %.decomposed, 7, !dbg !18 + %22 = add nsw i32 %20, %21, !dbg !19 + %23 = mul i32 %18, 7168, !dbg !20 + %24 = add i32 %22, %23, !dbg !21 + %25 = sext i32 %24 to i64, !dbg !22 + %26 = getelementptr bfloat, ptr addrspace(1) %0, i64 %25, !dbg !22 + %27 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %26, i1 %14) #3, !dbg !23 + %28 = extractvalue { i32, i32 } %27, 0, !dbg !23 + %29 = bitcast i32 %28 to <2 x bfloat>, !dbg !23 + %30 = extractvalue { i32, i32 } %27, 1, !dbg !23 + %31 = bitcast i32 %30 to <2 x bfloat>, !dbg !23 + %32 = extractelement <2 x bfloat> %29, i64 0, !dbg !23 + %33 = extractelement <2 x bfloat> %29, i64 1, !dbg !23 + %34 = extractelement <2 x bfloat> %31, i64 0, !dbg !23 + %35 = extractelement <2 x bfloat> %31, i64 1, !dbg !23 + %36 = fpext bfloat %32 to float, !dbg !24 + %37 = fpext bfloat %33 to float, !dbg !24 + %38 = fpext bfloat %34 to float, !dbg !24 + %39 = fpext bfloat %35 to float, !dbg !24 + %40 = fmul float %36, %36, !dbg !25 + %41 = fmul float %37, %37, !dbg !25 + %42 = fmul float %38, %38, !dbg !25 + %43 = fmul float %39, %39, !dbg !25 + %44 = fadd float %40, %41, !dbg !26 + %45 = fadd float %42, %44, !dbg !26 + %46 = fadd float %43, %45, !dbg !26 + %47 = select i1 %14, float %46, float 0.000000e+00, !dbg !26 + %48 = bitcast float %47 to i32, !dbg !31 + %49 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %48, i32 16, i32 31), !dbg !31 + %50 = bitcast i32 %49 to float, !dbg !31 + %51 = fadd float %47, %50, !dbg !26 + %52 = bitcast float %51 to i32, !dbg !31 + %53 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %52, i32 8, i32 31), !dbg !31 + %54 = bitcast i32 %53 to float, !dbg !31 + %55 = fadd float %51, %54, !dbg !26 + %56 = bitcast float %55 to i32, !dbg !31 + %57 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %56, i32 4, i32 31), !dbg !31 + %58 = bitcast i32 %57 to float, !dbg !31 + %59 = fadd float %55, %58, !dbg !26 + %60 = bitcast float %59 to i32, !dbg !31 + %61 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %60, i32 2, i32 31), !dbg !31 + %62 = bitcast i32 %61 to float, !dbg !31 + %63 = fadd float %59, %62, !dbg !26 + %64 = bitcast float %63 to i32, !dbg !31 + %65 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %64, i32 1, i32 31), !dbg !31 + %66 = bitcast i32 %65 to float, !dbg !31 + %67 = fadd float %63, %66, !dbg !26 + %68 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %10, !dbg !32 + %69 = bitcast float %67 to <1 x i32>, !dbg !32 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %68, <1 x i32> %69, i1 true) #3, !dbg !32 + tail call void @llvm.nvvm.barrier0(), !dbg !32 + %70 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %11, !dbg !32 + %71 = load i32, ptr addrspace(3) %70, align 4, !dbg !32 + %72 = sext i32 %13 to i64, !dbg !33 + %73 = getelementptr float, ptr addrspace(1) %1, i64 %72, !dbg !33 + %74 = and i32 %8, 124, !dbg !34 + %75 = icmp eq i32 %74, 0, !dbg !34 + %76 = and i1 %75, %15, !dbg !34 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %71, ptr addrspace(1) %73, i1 %76) #3, !dbg !34 + ret void, !dbg !35 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv") +!4 = !{ptr @triton_red_fused__to_copy_mean_pow_4, !"reqntidx", i32 128} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_mean_pow_4", linkageName: "triton_red_fused__to_copy_mean_pow_4", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 22, column: 33, scope: !6) +!11 = !DILocation(line: 23, column: 44, scope: !6) +!12 = !DILocation(line: 23, column: 23, scope: !6) +!13 = !DILocation(line: 24, column: 21, scope: !6) +!14 = !DILocation(line: 25, column: 37, scope: !6) +!15 = !DILocation(line: 28, column: 19, scope: !6) +!16 = !DILocation(line: 27, column: 19, scope: !6) +!17 = !DILocation(line: 37, column: 41, scope: !6) +!18 = !DILocation(line: 37, column: 52, scope: !6) +!19 = !DILocation(line: 37, column: 48, scope: !6) +!20 = !DILocation(line: 37, column: 62, scope: !6) +!21 = !DILocation(line: 37, column: 57, scope: !6) +!22 = !DILocation(line: 37, column: 34, scope: !6) +!23 = !DILocation(line: 37, column: 67, scope: !6) +!24 = !DILocation(line: 37, column: 129, scope: !6) +!25 = !DILocation(line: 39, column: 22, scope: !6) +!26 = !DILocation(line: 256, column: 15, scope: !27, inlinedAt: !30) +!27 = distinct !DILexicalBlockFile(scope: !29, file: !28, discriminator: 0) +!28 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!29 = distinct !DILexicalBlockFile(scope: !6, file: !28, discriminator: 0) +!30 = !DILocation(line: 43, column: 25, scope: !6) +!31 = !DILocation(line: 286, column: 36, scope: !29, inlinedAt: !30) +!32 = !DILocation(line: 43, column: 28, scope: !6) +!33 = !DILocation(line: 44, column: 25, scope: !6) +!34 = !DILocation(line: 44, column: 36, scope: !6) +!35 = !DILocation(line: 44, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.ttir new file mode 100644 index 0000000000000000000000000000000000000000..d0561ab7a0b8294ddf31f8d48f4a7fb044b879c9 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/MZX6PQBK44ZIY35FOWZQ4LJ3IXVDGRWRSPZHIALBROVG5BRM5TWQ/triton_red_fused__to_copy_mean_pow_4.ttir @@ -0,0 +1,89 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0) +#loc1 = loc(unknown) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:25) +#loc33 = loc(callsite(#loc1 at #loc26)) +module { + tt.func public @triton_red_fused__to_copy_mean_pow_4(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<4x128xbf16> loc(#loc1) + %cst_0 = arith.constant dense<7168> : tensor<4x1xi32> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<4x1xi32> loc(#loc1) + %cst_2 = arith.constant dense<5120> : tensor<1x128xi32> loc(#loc1) + %cst_3 = arith.constant dense<128> : tensor<1x128xi32> loc(#loc1) + %cst_4 = arith.constant dense<0.000000e+00> : tensor<4x128xf32> loc(#loc1) + %cst_5 = arith.constant dense<8> : tensor<4x1xi32> loc(#loc1) + %c4_i32 = arith.constant 4 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c4_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 4 : i32, start = 0 : i32} : tensor<4xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 1 : i32} : tensor<4xi32> -> tensor<4x1xi32> loc(#loc5) + %4 = tt.splat %1 : i32 -> tensor<4x1xi32> loc(#loc6) + %5 = arith.addi %4, %3 : tensor<4x1xi32> loc(#loc6) + %6 = tt.splat %arg2 : i32 -> tensor<4x1xi32> loc(#loc7) + %7 = arith.cmpi slt, %5, %6 : tensor<4x1xi32> loc(#loc7) + %8 = tt.make_range {end = 128 : i32, start = 0 : i32} : tensor<128xi32> loc(#loc8) + %9 = tt.expand_dims %8 {axis = 0 : i32} : tensor<128xi32> -> tensor<1x128xi32> loc(#loc9) + %10 = arith.remsi %5, %cst_5 : tensor<4x1xi32> loc(#loc10) + %11 = arith.divsi %5, %cst_5 : tensor<4x1xi32> loc(#loc11) + %12 = arith.cmpi slt, %9, %cst_3 : tensor<1x128xi32> loc(#loc12) + %13 = arith.addi %9, %cst_2 : tensor<1x128xi32> loc(#loc13) + %14 = arith.muli %10, %cst_1 : tensor<4x1xi32> loc(#loc14) + %15 = tt.broadcast %13 : tensor<1x128xi32> -> tensor<4x128xi32> loc(#loc15) + %16 = tt.broadcast %14 : tensor<4x1xi32> -> tensor<4x128xi32> loc(#loc15) + %17 = arith.addi %15, %16 : tensor<4x128xi32> loc(#loc15) + %18 = arith.muli %11, %cst_0 : tensor<4x1xi32> loc(#loc16) + %19 = tt.broadcast %18 : tensor<4x1xi32> -> tensor<4x128xi32> loc(#loc17) + %20 = arith.addi %17, %19 : tensor<4x128xi32> loc(#loc17) + %21 = tt.splat %arg0 : !tt.ptr -> tensor<4x128x!tt.ptr> loc(#loc18) + %22 = tt.addptr %21, %20 : tensor<4x128x!tt.ptr>, tensor<4x128xi32> loc(#loc18) + %23 = tt.broadcast %7 : tensor<4x1xi1> -> tensor<4x128xi1> loc(#loc19) + %24 = tt.broadcast %12 : tensor<1x128xi1> -> tensor<4x128xi1> loc(#loc19) + %25 = arith.andi %23, %24 : tensor<4x128xi1> loc(#loc19) + %26 = tt.load %22, %25, %cst evictionPolicy = evict_first : tensor<4x128x!tt.ptr> loc(#loc20) + %27 = arith.extf %26 : tensor<4x128xbf16> to tensor<4x128xf32> loc(#loc21) + %28 = arith.mulf %27, %27 : tensor<4x128xf32> loc(#loc22) + %29 = arith.addf %28, %cst_4 : tensor<4x128xf32> loc(#loc23) + %30 = arith.select %25, %29, %cst_4 : tensor<4x128xi1>, tensor<4x128xf32> loc(#loc24) + %31 = "tt.reduce"(%30) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc26)), %arg5: f32 loc(callsite(#loc1 at #loc26))): + %35 = arith.addf %arg4, %arg5 : f32 loc(#loc35) + tt.reduce.return %35 : f32 loc(#loc32) + }) : (tensor<4x128xf32>) -> tensor<4xf32> loc(#loc32) + %32 = tt.expand_dims %31 {axis = 1 : i32} : tensor<4xf32> -> tensor<4x1xf32> loc(#loc28) + %33 = tt.splat %arg1 : !tt.ptr -> tensor<4x1x!tt.ptr> loc(#loc29) + %34 = tt.addptr %33, %5 : tensor<4x1x!tt.ptr>, tensor<4x1xi32> loc(#loc29) + tt.store %34, %32, %7 : tensor<4x1x!tt.ptr> loc(#loc30) + tt.return loc(#loc31) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:44) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:23) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":24:21) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":25:27) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":25:37) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":27:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":28:19) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":33:29) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:41) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:52) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:48) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:62) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:57) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:34) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:75) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:67) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:129) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":39:22) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":41:23) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:48) +#loc25 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc27 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:28) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:25) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:36) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:4) +#loc32 = loc(callsite(#loc25 at #loc26)) +#loc34 = loc(callsite(#loc27 at #loc25)) +#loc35 = loc(callsite(#loc34 at #loc26)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.json new file mode 100644 index 0000000000000000000000000000000000000000..9a3a1ae1e109d1a2cbfc224263e33d9d037af1ab --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.json @@ -0,0 +1 @@ +{"hash": "6a43444fb0733f7505f9b701bf77a57eff5b762e9c2d22cfb3546781cb91142b", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 8, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 0, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_poi_fused_add_mul_sub_6"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.ptx new file mode 100644 index 0000000000000000000000000000000000000000..79edaea54688b4681907bfd03bc69a93ade43ae6 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.ptx @@ -0,0 +1,514 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_poi_fused_add_mul_sub_6 // -- Begin function triton_poi_fused_add_mul_sub_6 +.extern .func __assertfail +( + .param .b64 __assertfail_param_0, + .param .b64 __assertfail_param_1, + .param .b32 __assertfail_param_2, + .param .b64 __assertfail_param_3, + .param .b64 __assertfail_param_4 +) +.noreturn; +.global .align 1 .b8 assertFunc_0[8] = {117, 110, 107, 110, 111, 119, 110}; +.global .align 1 .b8 assertFile_0[134] = {47, 104, 111, 109, 101, 47, 120, 47, 46, 99, 97, 99, 104, 101, 47, 118, 108, 108, 109, 47, 116, 111, 114, 99, 104, 95, 99, 111, 109, 112, 105, 108, 101, 95, 99, 97, 99, 104, 101, 47, 99, 50, 50, 48, 50, 51, 56, 102, 97, 49, 47, 114, 97, 110, 107, 95, 48, 95, 48, 47, 105, 110, 100, 117, 99, 116, 111, 114, 95, 99, 97, 99, 104, 101, 47, 110, 103, 47, 99, 110, 103, 51, 55, 104, 118, 122, 115, 51, 51, 50, 121, 97, 113, 98, 97, 102, 103, 100, 51, 101, 119, 98, 115, 51, 107, 101, 51, 114, 119, 111, 99, 108, 121, 121, 115, 50, 105, 53, 110, 54, 99, 50, 109, 115, 55, 100, 98, 117, 120, 98, 46, 112, 121}; +.global .align 1 .b8 assertMessage_0[41] = {105, 110, 100, 101, 120, 32, 111, 117, 116, 32, 111, 102, 32, 98, 111, 117, 110, 100, 115, 58, 32, 48, 32, 60, 61, 32, 116, 109, 112, 49, 54, 32, 60, 32, 49, 51, 49, 48, 55, 50}; +.global .align 1 .b8 _$_str[11] = {95, 95, 67, 85, 68, 65, 95, 70, 84, 90}; + // @triton_poi_fused_add_mul_sub_6 +.visible .entry triton_poi_fused_add_mul_sub_6( + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_0, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_1, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_2, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_3, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_4, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_5, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_6, + .param .u32 triton_poi_fused_add_mul_sub_6_param_7, + .param .u64 .ptr .global .align 1 triton_poi_fused_add_mul_sub_6_param_8 +) +.reqntid 256, 1, 1 +{ + .reg .pred %p<19>; + .reg .b16 %rs<17>; + .reg .b32 %r<53>; + .reg .f32 %f<49>; + .reg .b64 %rd<48>; + .loc 1 18 0 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:18:0 + +// %bb.0: // %__nv_rsqrtf.exit + ld.param.u32 %r8, [triton_poi_fused_add_mul_sub_6_param_7]; + ld.param.u64 %rd20, [triton_poi_fused_add_mul_sub_6_param_0]; + ld.param.u64 %rd21, [triton_poi_fused_add_mul_sub_6_param_1]; +$L__tmp0: + .loc 1 19 28 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:19:28 + mov.u32 %r16, %ctaid.x; + .loc 1 19 33 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:19:33 + shl.b32 %r17, %r16, 9; + ld.param.u64 %rd22, [triton_poi_fused_add_mul_sub_6_param_2]; + ld.param.u64 %rd23, [triton_poi_fused_add_mul_sub_6_param_3]; + .loc 1 20 36 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:20:36 + mov.u32 %r18, %tid.x; + shl.b32 %r19, %r18, 1; + and.b32 %r20, %r19, 510; + .loc 1 20 23 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:20:23 + or.b32 %r1, %r20, %r17; + or.b32 %r21, %r1, 1; + .loc 1 21 21 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:21:21 + setp.ge.s32 %p12, %r1, %r8; + setp.lt.s32 %p11, %r1, %r8; + .loc 1 23 21 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:23:21 + bfe.s32 %r22, %r16, 22, 1; + .loc 1 22 19 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:22:19 + shr.u32 %r23, %r22, 26; + .loc 1 23 21 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:23:21 + add.s32 %r24, %r1, %r23; + shr.s32 %r2, %r24, 6; + .loc 1 22 19 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:22:19 + and.b32 %r25, %r24, -64; + sub.s32 %r26, %r1, %r25; + add.s32 %r27, %r21, %r23; + and.b32 %r28, %r27, -64; + sub.s32 %r29, %r21, %r28; + .loc 1 23 27 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:23:27 + shr.u32 %r30, %r2, 29; + add.s32 %r31, %r2, %r30; + and.b32 %r32, %r31, 33554424; + sub.s32 %r33, %r2, %r32; + .loc 1 24 19 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:24:19 + shr.u32 %r34, %r22, 23; + add.s32 %r35, %r1, %r34; + shr.s32 %r36, %r35, 9; + .loc 1 26 46 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:46 + shl.b32 %r37, %r33, 7; + .loc 1 26 37 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:37 + mad.lo.s32 %r38, %r36, 7168, %r37; + .loc 1 26 42 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:42 + add.s32 %r39, %r38, %r26; + .loc 1 26 51 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:51 + add.s32 %r40, %r39, 5120; + .loc 1 26 30 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:30 + mul.wide.s32 %rd24, %r40, 2; + add.s64 %rd7, %rd20, %rd24; + .loc 1 26 61 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:61 + // begin inline asm + mov.u32 %r9, 0x0; + @%p11 ld.global.b32 { %r9 }, [ %rd7 + 0 ]; + // end inline asm + .loc 1 27 30 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:27:30 + mul.wide.s32 %rd25, %r2, 4; + add.s64 %rd8, %rd21, %rd25; + .loc 1 27 35 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:27:35 + // begin inline asm + mov.u32 %r10, 0x0; + @%p11 ld.global.L1::evict_last.b32 { %r10 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r11, 0x0; + @%p11 ld.global.L1::evict_last.b32 { %r11 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 28 31 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:28:31 + mul.wide.s32 %rd26, %r26, 2; + add.s64 %rd10, %rd22, %rd26; + .loc 1 28 36 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:28:36 + // begin inline asm + mov.u32 %r12, 0x0; + @%p11 ld.global.L1::evict_last.b32 { %r12 }, [ %rd10 + 0 ]; + // end inline asm + .loc 1 29 31 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:29:31 + mul.wide.s32 %rd27, %r36, 8; + add.s64 %rd12, %rd23, %rd27; + .loc 1 29 36 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:29:36 + // begin inline asm + mov.u64 %rd11, 0x0; + @%p11 ld.global.L1::evict_last.b64 { %rd11 }, [ %rd12 + 0 ]; + // end inline asm + // begin inline asm + mov.u64 %rd13, 0x0; + @%p11 ld.global.L1::evict_last.b64 { %rd13 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 30 63 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:63 + add.s32 %r41, %r26, 64; + .loc 1 30 43 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:43 + add.s32 %r42, %r38, 5184; + .loc 1 30 77 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:77 + add.s32 %r43, %r42, %r26; + add.s32 %r44, %r42, %r29; + .loc 1 30 31 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:31 + mul.wide.s32 %rd28, %r43, 2; + add.s64 %rd15, %rd20, %rd28; + mul.wide.s32 %rd29, %r44, 2; + add.s64 %rd16, %rd20, %rd29; + .loc 1 30 87 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:87 + // begin inline asm + mov.u16 %rs3, 0x0; + @%p11 ld.global.b16 { %rs3 }, [ %rd15 + 0 ]; + // end inline asm + // begin inline asm + mov.u16 %rs4, 0x0; + @%p11 ld.global.b16 { %rs4 }, [ %rd16 + 0 ]; + // end inline asm + .loc 1 31 57 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:31:57 + // begin inline asm + mov.u32 %r13, 0x0; + @%p11 ld.global.L1::evict_last.b32 { %r13 }, [ %rd8 + 0 ]; + // end inline asm + // begin inline asm + mov.u32 %r14, 0x0; + @%p11 ld.global.L1::evict_last.b32 { %r14 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 32 31 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:32:31 + mul.wide.u32 %rd30, %r41, 2; + add.s64 %rd19, %rd22, %rd30; + .loc 1 32 41 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:32:41 + // begin inline asm + mov.u32 %r15, 0x0; + @%p11 ld.global.L1::evict_last.b32 { %r15 }, [ %rd19 + 0 ]; + // end inline asm + .loc 1 45 35 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:45:35 + shr.u64 %rd31, %rd11, 46; + and.b64 %rd32, %rd31, 131072; + add.s64 %rd3, %rd32, %rd11; + .loc 1 46 38 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:46:38 + setp.lt.u64 %p13, %rd3, 131072; + .loc 1 46 67 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:46:67 + or.pred %p14, %p12, %p13; + @%p14 bra $L__BB0_2; + bra.uni $L__BB0_1; +$L__BB0_2: // %__nv_rsqrtf.exit7 + .loc 1 0 67 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:0:67 + ld.param.u64 %rd6, [triton_poi_fused_add_mul_sub_6_param_6]; + ld.param.u64 %rd5, [triton_poi_fused_add_mul_sub_6_param_5]; + ld.param.u64 %rd4, [triton_poi_fused_add_mul_sub_6_param_4]; + mov.b32 %f3, %r10; + mov.b32 %f4, %r11; + cvt.s64.s32 %rd1, %r26; + cvt.u64.u32 %rd2, %r41; + mov.f32 %f5, 0f43000000; + div.full.f32 %f6, %f3, %f5; + div.full.f32 %f7, %f4, %f5; + add.f32 %f8, %f6, 0f358637BD; + add.f32 %f9, %f7, 0f358637BD; + rsqrt.approx.ftz.f32 %f1, %f8; + rsqrt.approx.ftz.f32 %f2, %f9; + cvt.u32.u64 %r49, %rd1; + .loc 1 31 57 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:31:57 + mov.b32 %f10, %r14; + mov.b32 %f11, %r13; + .loc 1 46 67 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:46:67 + bar.sync 0; + .loc 1 47 31 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:47:31 + shl.b64 %rd37, %rd3, 8; + add.s64 %rd38, %rd4, %rd37; + shl.b64 %rd39, %rd1, 1; + add.s64 %rd33, %rd38, %rd39; + .loc 1 47 48 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:47:48 + // begin inline asm + mov.u32 %r45, 0x0; + @%p11 ld.global.b32 { %r45 }, [ %rd33 + 0 ]; + // end inline asm + .loc 1 50 21 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:50:21 + div.full.f32 %f13, %f11, %f5; + div.full.f32 %f14, %f10, %f5; + .loc 1 51 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:51:20 + add.f32 %f15, %f13, 0f358637BD; + add.f32 %f16, %f14, 0f358637BD; + .loc 1 52 28 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:52:28 + rsqrt.approx.ftz.f32 %f17, %f15; + rsqrt.approx.ftz.f32 %f18, %f16; + .loc 1 30 87 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:87 + mov.b32 %r50, {%rs3, %rs4}; + .loc 1 56 31 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:56:31 + shl.b64 %rd40, %rd2, 1; + add.s64 %rd34, %rd38, %rd40; + .loc 1 56 53 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:56:53 + // begin inline asm + mov.u32 %r46, 0x0; + @%p11 ld.global.b32 { %r46 }, [ %rd34 + 0 ]; + // end inline asm + .loc 1 62 34 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:62:34 + shl.b32 %r51, %r2, 7; + .loc 1 62 30 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:62:30 + add.s32 %r52, %r51, %r49; + .loc 1 62 25 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:62:25 + mul.wide.s32 %rd41, %r52, 2; + add.s64 %rd35, %rd5, %rd41; + .loc 1 26 71 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:26:71 + mov.b32 {%rs5, %rs6}, %r9; + cvt.f32.bf16 %f19, %rs6; + cvt.f32.bf16 %f20, %rs5; + .loc 1 39 18 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:39:18 + mul.f32 %f21, %f1, %f20; + mul.f32 %f22, %f2, %f19; + .loc 1 28 76 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:28:76 + mov.b32 {%rs7, %rs8}, %r12; + cvt.f32.bf16 %f23, %rs7; + cvt.f32.bf16 %f24, %rs8; + .loc 1 41 19 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:41:19 + mul.f32 %f25, %f22, %f24; + mul.f32 %f26, %f21, %f23; + .loc 1 47 58 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:47:58 + mov.b32 {%rs9, %rs10}, %r45; + cvt.f32.bf16 %f27, %rs10; + cvt.f32.bf16 %f28, %rs9; + .loc 1 30 97 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:30:97 + mov.b32 {%rs11, %rs12}, %r50; + cvt.f32.bf16 %f29, %rs11; + cvt.f32.bf16 %f30, %rs12; + .loc 1 32 81 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:32:81 + mov.b32 {%rs13, %rs14}, %r15; + cvt.f32.bf16 %f31, %rs14; + cvt.f32.bf16 %f32, %rs13; + .loc 1 53 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:53:20 + mul.f32 %f33, %f18, %f30; + mul.f32 %f34, %f17, %f29; + .loc 1 55 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:55:20 + mul.f32 %f35, %f34, %f32; + mul.f32 %f36, %f33, %f31; + .loc 1 56 63 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:56:63 + mov.b32 {%rs15, %rs16}, %r46; + cvt.f32.bf16 %f37, %rs15; + cvt.f32.bf16 %f38, %rs16; + .loc 1 57 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:57:20 + mul.f32 %f39, %f36, %f38; + mul.f32 %f40, %f35, %f37; + .loc 1 58 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:58:20 + neg.f32 %f41, %f40; + fma.rn.f32 %f42, %f26, %f28, %f41; + neg.f32 %f43, %f39; + fma.rn.f32 %f44, %f25, %f27, %f43; + .loc 1 62 46 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:62:46 + cvt.rn.bf16x2.f32 %r47, %f44, %f42; + // begin inline asm + @%p11 st.global.b32 [ %rd35 + 0 ], { %r47 }; + // end inline asm + .loc 1 63 25 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:63:25 + add.s64 %rd36, %rd6, %rd41; + .loc 1 60 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:60:20 + mul.f32 %f45, %f25, %f38; + mul.f32 %f46, %f26, %f37; + .loc 1 61 20 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:61:20 + fma.rn.f32 %f47, %f35, %f28, %f46; + fma.rn.f32 %f48, %f36, %f27, %f45; + .loc 1 63 46 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:63:46 + cvt.rn.bf16x2.f32 %r48, %f48, %f47; + // begin inline asm + @%p11 st.global.b32 [ %rd36 + 0 ], { %r48 }; + // end inline asm + .loc 1 63 4 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:63:4 + ret; +$L__BB0_1: + .loc 1 46 67 // cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py:46:67 + mov.u64 %rd42, assertMessage_0; + cvta.global.u64 %rd43, %rd42; + mov.u64 %rd44, assertFile_0; + cvta.global.u64 %rd45, %rd44; + mov.u64 %rd46, assertFunc_0; + cvta.global.u64 %rd47, %rd46; + { // callseq 8, 0 + .param .b64 param0; + st.param.b64 [param0], %rd43; + .param .b64 param1; + st.param.b64 [param1], %rd45; + .param .b32 param2; + st.param.b32 [param2], 46; + .param .b64 param3; + st.param.b64 [param3], %rd47; + .param .b64 param4; + st.param.b64 [param4], 1; + call.uni + __assertfail, + ( + param0, + param1, + param2, + param3, + param4 + ); + } // callseq 8 + trap; +$L__tmp1: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 0 // DW_CHILDREN_no +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 155 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0x94 DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 110 +.b8 103 +.b8 51 +.b8 55 +.b8 104 +.b8 118 +.b8 122 +.b8 115 +.b8 51 +.b8 51 +.b8 50 +.b8 121 +.b8 97 +.b8 113 +.b8 98 +.b8 97 +.b8 102 +.b8 103 +.b8 100 +.b8 51 +.b8 101 +.b8 119 +.b8 98 +.b8 115 +.b8 51 +.b8 107 +.b8 101 +.b8 51 +.b8 114 +.b8 119 +.b8 111 +.b8 99 +.b8 108 +.b8 121 +.b8 121 +.b8 115 +.b8 50 +.b8 105 +.b8 53 +.b8 110 +.b8 54 +.b8 99 +.b8 50 +.b8 109 +.b8 115 +.b8 55 +.b8 100 +.b8 98 +.b8 117 +.b8 120 +.b8 98 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 110 +.b8 103 +.b8 0 + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..c6afd140eb28d38139414b8fed7b4c809a6d777f --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/NJBUIT5QOM7XKBPZW4A3655FP37VW5ROTQWSFT5TKRTYDS4RCQVQ/triton_poi_fused_add_mul_sub_6.ttgir @@ -0,0 +1,196 @@ +#blocked = #ttg.blocked<{sizePerThread = [2], threadsPerWarp = [32], warpsPerCTA = [8], order = [0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 8 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_poi_fused_add_mul_sub_6(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg4: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg5: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg6: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0), %arg7: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<1.280000e+02> : tensor<512xf32, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<9.99999997E-7> : tensor<512xf32, #blocked> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<512xi64, #blocked> loc(#loc1) + %cst_2 = arith.constant dense<131072> : tensor<512xi64, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<0> : tensor<512xi64, #blocked> loc(#loc1) + %c512_i32 = arith.constant 512 : i32 loc(#loc1) + %cst_4 = arith.constant dense<64> : tensor<512xi32, #blocked> loc(#loc1) + %cst_5 = arith.constant dense<8> : tensor<512xi32, #blocked> loc(#loc1) + %cst_6 = arith.constant dense<512> : tensor<512xi32, #blocked> loc(#loc1) + %cst_7 = arith.constant dense<5120> : tensor<512xi32, #blocked> loc(#loc1) + %cst_8 = arith.constant dense<128> : tensor<512xi32, #blocked> loc(#loc1) + %cst_9 = arith.constant dense<7168> : tensor<512xi32, #blocked> loc(#loc1) + %cst_10 = arith.constant dense<5184> : tensor<512xi32, #blocked> loc(#loc1) + %cst_11 = arith.constant dense : tensor<512xi1, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c512_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 512 : i32, start = 0 : i32} : tensor<512xi32, #blocked> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<512xi32, #blocked> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<512xi32, #blocked> loc(#loc5) + %5 = tt.splat %arg7 : i32 -> tensor<512xi32, #blocked> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<512xi32, #blocked> loc(#loc6) + %7 = arith.remsi %4, %cst_4 : tensor<512xi32, #blocked> loc(#loc7) + %8 = arith.divsi %4, %cst_4 : tensor<512xi32, #blocked> loc(#loc8) + %9 = arith.remsi %8, %cst_5 : tensor<512xi32, #blocked> loc(#loc9) + %10 = arith.divsi %4, %cst_6 : tensor<512xi32, #blocked> loc(#loc10) + %11 = arith.addi %7, %cst_7 : tensor<512xi32, #blocked> loc(#loc11) + %12 = arith.muli %9, %cst_8 : tensor<512xi32, #blocked> loc(#loc12) + %13 = arith.addi %11, %12 : tensor<512xi32, #blocked> loc(#loc13) + %14 = arith.muli %10, %cst_9 : tensor<512xi32, #blocked> loc(#loc14) + %15 = arith.addi %13, %14 : tensor<512xi32, #blocked> loc(#loc15) + %16 = tt.splat %arg0 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc16) + %17 = tt.addptr %16, %15 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc16) + %18 = tt.load %17, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc17) + %19 = arith.extf %18 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc18) + %20 = tt.splat %arg1 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc19) + %21 = tt.addptr %20, %8 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc19) + %22 = tt.load %21, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc20) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc21) + %24 = tt.addptr %23, %7 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc21) + %25 = tt.load %24, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc22) + %26 = arith.extf %25 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc23) + %27 = tt.splat %arg3 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc24) + %28 = tt.addptr %27, %10 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc24) + %29 = tt.load %28, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc25) + %30 = arith.addi %7, %cst_10 : tensor<512xi32, #blocked> loc(#loc26) + %31 = arith.addi %30, %12 : tensor<512xi32, #blocked> loc(#loc27) + %32 = arith.addi %7, %cst_4 : tensor<512xi32, #blocked> loc(#loc28) + %33 = arith.divsi %32, %cst_8 : tensor<512xi32, #blocked> loc(#loc29) + %34 = arith.muli %33, %cst_8 : tensor<512xi32, #blocked> loc(#loc30) + %35 = arith.addi %31, %34 : tensor<512xi32, #blocked> loc(#loc31) + %36 = arith.addi %35, %14 : tensor<512xi32, #blocked> loc(#loc32) + %37 = tt.addptr %16, %36 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc33) + %38 = tt.load %37, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc34) + %39 = arith.extf %38 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc35) + %40 = arith.addi %8, %33 : tensor<512xi32, #blocked> loc(#loc36) + %41 = tt.addptr %20, %40 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc37) + %42 = tt.load %41, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc38) + %43 = tt.addptr %23, %32 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc39) + %44 = tt.load %43, %6 evictionPolicy = evict_last : tensor<512x!tt.ptr, #blocked> loc(#loc40) + %45 = arith.extf %44 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc41) + %46 = arith.divf %22, %cst : tensor<512xf32, #blocked> loc(#loc42) + %47 = arith.addf %46, %cst_0 : tensor<512xf32, #blocked> loc(#loc43) + %48 = tt.extern_elementwise %47 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<512xf32, #blocked>) -> tensor<512xf32, #blocked> loc(#loc44) + %49 = arith.mulf %19, %48 : tensor<512xf32, #blocked> loc(#loc45) + %50 = arith.mulf %49, %26 : tensor<512xf32, #blocked> loc(#loc46) + %51 = arith.addi %29, %cst_2 : tensor<512xi64, #blocked> loc(#loc47) + %52 = arith.cmpi slt, %29, %cst_3 : tensor<512xi64, #blocked> loc(#loc48) + %53 = arith.select %52, %51, %29 : tensor<512xi1, #blocked>, tensor<512xi64, #blocked> loc(#loc49) + %54 = arith.cmpi sge, %53, %cst_3 : tensor<512xi64, #blocked> loc(#loc50) + %55 = arith.cmpi slt, %53, %cst_2 : tensor<512xi64, #blocked> loc(#loc51) + %56 = arith.andi %54, %55 : tensor<512xi1, #blocked> loc(#loc52) + %57 = arith.xori %6, %cst_11 : tensor<512xi1, #blocked> loc(#loc53) + %58 = arith.ori %56, %57 : tensor<512xi1, #blocked> loc(#loc54) + tt.assert %58, "index out of bounds: 0 <= tmp16 < 131072" : tensor<512xi1, #blocked> loc(#loc55) + %59 = arith.muli %53, %cst_1 : tensor<512xi64, #blocked> loc(#loc56) + %60 = arith.extsi %7 : tensor<512xi32, #blocked> to tensor<512xi64, #blocked> loc(#loc57) + %61 = arith.addi %60, %59 : tensor<512xi64, #blocked> loc(#loc57) + %62 = tt.splat %arg4 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc58) + %63 = tt.addptr %62, %61 : tensor<512x!tt.ptr, #blocked>, tensor<512xi64, #blocked> loc(#loc58) + %64 = tt.load %63, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc59) + %65 = arith.extf %64 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc60) + %66 = arith.mulf %50, %65 : tensor<512xf32, #blocked> loc(#loc61) + %67 = arith.divf %42, %cst : tensor<512xf32, #blocked> loc(#loc62) + %68 = arith.addf %67, %cst_0 : tensor<512xf32, #blocked> loc(#loc63) + %69 = tt.extern_elementwise %68 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<512xf32, #blocked>) -> tensor<512xf32, #blocked> loc(#loc64) + %70 = arith.mulf %39, %69 : tensor<512xf32, #blocked> loc(#loc65) + %71 = arith.mulf %70, %45 : tensor<512xf32, #blocked> loc(#loc66) + %72 = arith.extsi %32 : tensor<512xi32, #blocked> to tensor<512xi64, #blocked> loc(#loc67) + %73 = arith.addi %72, %59 : tensor<512xi64, #blocked> loc(#loc67) + %74 = tt.addptr %62, %73 : tensor<512x!tt.ptr, #blocked>, tensor<512xi64, #blocked> loc(#loc68) + %75 = tt.load %74, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc69) + %76 = arith.extf %75 : tensor<512xbf16, #blocked> to tensor<512xf32, #blocked> loc(#loc70) + %77 = arith.mulf %71, %76 : tensor<512xf32, #blocked> loc(#loc71) + %78 = arith.subf %66, %77 : tensor<512xf32, #blocked> loc(#loc72) + %79 = arith.mulf %71, %65 : tensor<512xf32, #blocked> loc(#loc73) + %80 = arith.mulf %50, %76 : tensor<512xf32, #blocked> loc(#loc74) + %81 = arith.addf %79, %80 : tensor<512xf32, #blocked> loc(#loc75) + %82 = arith.muli %8, %cst_8 : tensor<512xi32, #blocked> loc(#loc76) + %83 = arith.addi %7, %82 : tensor<512xi32, #blocked> loc(#loc77) + %84 = tt.splat %arg5 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc78) + %85 = tt.addptr %84, %83 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc78) + %86 = arith.truncf %78 : tensor<512xf32, #blocked> to tensor<512xbf16, #blocked> loc(#loc79) + tt.store %85, %86, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc79) + %87 = tt.splat %arg6 : !tt.ptr -> tensor<512x!tt.ptr, #blocked> loc(#loc80) + %88 = tt.addptr %87, %83 : tensor<512x!tt.ptr, #blocked>, tensor<512xi32, #blocked> loc(#loc80) + %89 = arith.truncf %81 : tensor<512xf32, #blocked> to tensor<512xbf16, #blocked> loc(#loc81) + tt.store %88, %89, %6 : tensor<512x!tt.ptr, #blocked> loc(#loc81) + tt.return loc(#loc82) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":22:19) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":23:21) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":23:27) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":24:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:37) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:46) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:42) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:56) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:51) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:30) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:61) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":26:71) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":27:30) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":27:35) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:31) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:36) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":28:76) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":29:31) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":29:36) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:38) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:43) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:63) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:70) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:57) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:52) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:77) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:31) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:87) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":30:97) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:37) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:31) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":31:57) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:31) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:41) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":32:81) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":35:19) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":37:18) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":38:27) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":39:18) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":41:19) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":43:20) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":44:20) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":45:35) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:28) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:46) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:38) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:59) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:57) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":46:67) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:40) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:36) +#loc58 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:31) +#loc59 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:48) +#loc60 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":47:58) +#loc61 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":48:20) +#loc62 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":50:21) +#loc63 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":51:20) +#loc64 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":52:28) +#loc65 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":53:20) +#loc66 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":55:20) +#loc67 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:41) +#loc68 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:31) +#loc69 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:53) +#loc70 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":56:63) +#loc71 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":57:20) +#loc72 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":58:20) +#loc73 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":59:20) +#loc74 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":60:20) +#loc75 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":61:20) +#loc76 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:34) +#loc77 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:30) +#loc78 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:25) +#loc79 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":62:46) +#loc80 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:25) +#loc81 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:46) +#loc82 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/ng/cng37hvzs332yaqbafgd3ewbs3ke3rwoclyys2i5n6c2ms7dbuxb.py":63:4) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.llir new file mode 100644 index 0000000000000000000000000000000000000000..c1b1b3270c43414d9796f6c9d2237bc3d54df8d2 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.llir @@ -0,0 +1,215 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 + +define ptx_kernel void @triton_red_fused__to_copy_mean_pow_3(ptr addrspace(1) %0, ptr addrspace(1) %1, i32 %2, i32 %3, ptr addrspace(1) readnone captures(none) %4) local_unnamed_addr !dbg !6 { + %6 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %7 = shl i32 %6, 6, !dbg !10 + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %9 = lshr i32 %8, 1, !dbg !11 + %10 = and i32 %9, 63, !dbg !11 + %11 = or disjoint i32 %10, %7, !dbg !12 + %12 = icmp slt i32 %11, %2, !dbg !13 + %13 = shl i32 %8, 2, !dbg !14 + %14 = and i32 %13, 4, !dbg !14 + %15 = sdiv i32 %11, 40, !dbg !15 + %16 = mul i32 %15, 40, !dbg !16 + %.decomposed = sub i32 %11, %16, !dbg !16 + %17 = shl nsw i32 %.decomposed, 7, !dbg !17 + %18 = mul i32 %15, 7168, !dbg !18 + %19 = or disjoint i32 %17, %14 + %20 = add i32 %19, %18 + %.fr = freeze i1 %12 + br i1 %.fr, label %.split.us, label %.split.preheader + +.split.preheader: ; preds = %5 + %21 = sext i32 %20 to i64, !dbg !19 + %22 = getelementptr bfloat, ptr addrspace(1) %0, i64 %21, !dbg !19 + %23 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %22, i1 false) #3, !dbg !20 + %24 = or disjoint i32 %20, 8, !dbg !21 + %25 = sext i32 %24 to i64, !dbg !19 + %26 = getelementptr bfloat, ptr addrspace(1) %0, i64 %25, !dbg !19 + %27 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %26, i1 false) #3, !dbg !20 + %28 = or disjoint i32 %20, 16, !dbg !21 + %29 = sext i32 %28 to i64, !dbg !19 + %30 = getelementptr bfloat, ptr addrspace(1) %0, i64 %29, !dbg !19 + %31 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %30, i1 false) #3, !dbg !20 + %32 = or disjoint i32 %20, 24, !dbg !21 + %33 = sext i32 %32 to i64, !dbg !19 + %34 = getelementptr bfloat, ptr addrspace(1) %0, i64 %33, !dbg !19 + %35 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %34, i1 false) #3, !dbg !20 + %36 = or disjoint i32 %20, 32, !dbg !21 + %37 = sext i32 %36 to i64, !dbg !19 + %38 = getelementptr bfloat, ptr addrspace(1) %0, i64 %37, !dbg !19 + %39 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %38, i1 false) #3, !dbg !20 + %40 = or disjoint i32 %20, 40, !dbg !21 + %41 = sext i32 %40 to i64, !dbg !19 + %42 = getelementptr bfloat, ptr addrspace(1) %0, i64 %41, !dbg !19 + %43 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %42, i1 false) #3, !dbg !20 + %44 = or disjoint i32 %20, 48, !dbg !21 + %45 = sext i32 %44 to i64, !dbg !19 + %46 = getelementptr bfloat, ptr addrspace(1) %0, i64 %45, !dbg !19 + %47 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %46, i1 false) #3, !dbg !20 + %48 = or disjoint i32 %20, 56, !dbg !21 + %49 = sext i32 %48 to i64, !dbg !19 + %50 = getelementptr bfloat, ptr addrspace(1) %0, i64 %49, !dbg !19 + %51 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %50, i1 false) #3, !dbg !20 + %52 = or disjoint i32 %20, 64, !dbg !21 + %53 = sext i32 %52 to i64, !dbg !19 + %54 = getelementptr bfloat, ptr addrspace(1) %0, i64 %53, !dbg !19 + %55 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %54, i1 false) #3, !dbg !20 + %56 = or disjoint i32 %20, 72, !dbg !21 + %57 = sext i32 %56 to i64, !dbg !19 + %58 = getelementptr bfloat, ptr addrspace(1) %0, i64 %57, !dbg !19 + %59 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %58, i1 false) #3, !dbg !20 + %60 = or disjoint i32 %20, 80, !dbg !21 + %61 = sext i32 %60 to i64, !dbg !19 + %62 = getelementptr bfloat, ptr addrspace(1) %0, i64 %61, !dbg !19 + %63 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %62, i1 false) #3, !dbg !20 + %64 = or disjoint i32 %20, 88, !dbg !21 + %65 = sext i32 %64 to i64, !dbg !19 + %66 = getelementptr bfloat, ptr addrspace(1) %0, i64 %65, !dbg !19 + %67 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %66, i1 false) #3, !dbg !20 + %68 = or disjoint i32 %20, 96, !dbg !21 + %69 = sext i32 %68 to i64, !dbg !19 + %70 = getelementptr bfloat, ptr addrspace(1) %0, i64 %69, !dbg !19 + %71 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %70, i1 false) #3, !dbg !20 + %72 = or disjoint i32 %20, 104, !dbg !21 + %73 = sext i32 %72 to i64, !dbg !19 + %74 = getelementptr bfloat, ptr addrspace(1) %0, i64 %73, !dbg !19 + %75 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %74, i1 false) #3, !dbg !20 + %76 = or disjoint i32 %20, 112, !dbg !21 + %77 = sext i32 %76 to i64, !dbg !19 + %78 = getelementptr bfloat, ptr addrspace(1) %0, i64 %77, !dbg !19 + %79 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %78, i1 false) #3, !dbg !20 + %80 = or disjoint i32 %20, 120, !dbg !21 + %81 = sext i32 %80 to i64, !dbg !19 + %82 = getelementptr bfloat, ptr addrspace(1) %0, i64 %81, !dbg !19 + %83 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %82, i1 false) #3, !dbg !20 + br label %.split4.us, !dbg !11 + +.split.us: ; preds = %5, %.split.us + %indvars.iv = phi i64 [ %indvars.iv.next, %.split.us ], [ 0, %5 ] + %84 = phi float [ %109, %.split.us ], [ 0.000000e+00, %5 ] + %85 = phi float [ %110, %.split.us ], [ 0.000000e+00, %5 ] + %86 = phi float [ %111, %.split.us ], [ 0.000000e+00, %5 ] + %87 = phi float [ %112, %.split.us ], [ 0.000000e+00, %5 ] + %88 = trunc nuw nsw i64 %indvars.iv to i32, !dbg !21 + %89 = add i32 %20, %88, !dbg !21 + %90 = sext i32 %89 to i64, !dbg !19 + %91 = getelementptr bfloat, ptr addrspace(1) %0, i64 %90, !dbg !19 + %92 = tail call { i32, i32 } asm sideeffect "mov.u32 $0, $2;\0A\09mov.u32 $1, $3;\0A\09@$5 ld.global.L1::evict_first.v2.b32 { $0, $1 }, [ $4 + 0 ];", "=r,=r,r,r,l,b"(i32 0, i32 0, ptr addrspace(1) %91, i1 true) #3, !dbg !20 + %93 = extractvalue { i32, i32 } %92, 0, !dbg !20 + %94 = bitcast i32 %93 to <2 x bfloat>, !dbg !20 + %95 = extractvalue { i32, i32 } %92, 1, !dbg !20 + %96 = bitcast i32 %95 to <2 x bfloat>, !dbg !20 + %97 = extractelement <2 x bfloat> %94, i64 0, !dbg !20 + %98 = extractelement <2 x bfloat> %94, i64 1, !dbg !20 + %99 = extractelement <2 x bfloat> %96, i64 0, !dbg !20 + %100 = extractelement <2 x bfloat> %96, i64 1, !dbg !20 + %101 = fpext bfloat %97 to float, !dbg !22 + %102 = fpext bfloat %98 to float, !dbg !22 + %103 = fpext bfloat %99 to float, !dbg !22 + %104 = fpext bfloat %100 to float, !dbg !22 + %105 = fmul float %101, %101, !dbg !23 + %106 = fmul float %102, %102, !dbg !23 + %107 = fmul float %103, %103, !dbg !23 + %108 = fmul float %104, %104, !dbg !23 + %109 = fadd float %84, %105, !dbg !24 + %110 = fadd float %85, %106, !dbg !24 + %111 = fadd float %86, %107, !dbg !24 + %112 = fadd float %87, %108, !dbg !24 + %indvars.iv.next = add nuw nsw i64 %indvars.iv, 8, !dbg !25 + %113 = icmp samesign ult i64 %indvars.iv, 120, !dbg !25 + br i1 %113, label %.split.us, label %.split4.us.loopexit, !dbg !25 + +.split4.us.loopexit: ; preds = %.split.us + %114 = fadd float %109, %110, !dbg !11 + %115 = fadd float %111, %114, !dbg !11 + %116 = fadd float %112, %115, !dbg !11 + br label %.split4.us, !dbg !11 + +.split4.us: ; preds = %.split4.us.loopexit, %.split.preheader + %117 = phi float [ 0.000000e+00, %.split.preheader ], [ %116, %.split4.us.loopexit ], !dbg !26 + %118 = and i32 %8, 63, !dbg !11 + %119 = or disjoint i32 %7, %118, !dbg !12 + %120 = icmp slt i32 %119, %2, !dbg !13 + %121 = and i32 %8, 64, !dbg !11 + %122 = icmp eq i32 %121, 0, !dbg !11 + %123 = bitcast float %117 to i32, !dbg !31 + %124 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %123, i32 1, i32 31), !dbg !31 + %125 = bitcast i32 %124 to float, !dbg !31 + %126 = fadd float %117, %125, !dbg !26 + %127 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %10, !dbg !32 + %128 = bitcast float %126 to <1 x i32>, !dbg !32 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %127, <1 x i32> %128, i1 true) #3, !dbg !32 + tail call void @llvm.nvvm.barrier0(), !dbg !32 + %129 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %118, !dbg !32 + %130 = load i32, ptr addrspace(3) %129, align 4, !dbg !32 + %131 = sext i32 %119 to i64, !dbg !33 + %132 = getelementptr float, ptr addrspace(1) %1, i64 %131, !dbg !33 + %133 = and i1 %122, %120, !dbg !34 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %130, ptr addrspace(1) %132, i1 %133) #3, !dbg !34 + ret void, !dbg !35 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6") +!4 = !{ptr @triton_red_fused__to_copy_mean_pow_3, !"reqntidx", i32 128} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_mean_pow_3", linkageName: "triton_red_fused__to_copy_mean_pow_3", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 22, column: 33, scope: !6) +!11 = !DILocation(line: 23, column: 44, scope: !6) +!12 = !DILocation(line: 23, column: 23, scope: !6) +!13 = !DILocation(line: 24, column: 21, scope: !6) +!14 = !DILocation(line: 25, column: 37, scope: !6) +!15 = !DILocation(line: 28, column: 19, scope: !6) +!16 = !DILocation(line: 27, column: 19, scope: !6) +!17 = !DILocation(line: 37, column: 45, scope: !6) +!18 = !DILocation(line: 37, column: 55, scope: !6) +!19 = !DILocation(line: 37, column: 34, scope: !6) +!20 = !DILocation(line: 37, column: 60, scope: !6) +!21 = !DILocation(line: 37, column: 50, scope: !6) +!22 = !DILocation(line: 37, column: 122, scope: !6) +!23 = !DILocation(line: 39, column: 22, scope: !6) +!24 = !DILocation(line: 41, column: 23, scope: !6) +!25 = !DILocation(line: 31, column: 40, scope: !6) +!26 = !DILocation(line: 256, column: 15, scope: !27, inlinedAt: !30) +!27 = distinct !DILexicalBlockFile(scope: !29, file: !28, discriminator: 0) +!28 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!29 = distinct !DILexicalBlockFile(scope: !6, file: !28, discriminator: 0) +!30 = !DILocation(line: 43, column: 25, scope: !6) +!31 = !DILocation(line: 286, column: 36, scope: !29, inlinedAt: !30) +!32 = !DILocation(line: 43, column: 28, scope: !6) +!33 = !DILocation(line: 44, column: 25, scope: !6) +!34 = !DILocation(line: 44, column: 36, scope: !6) +!35 = !DILocation(line: 44, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.ptx new file mode 100644 index 0000000000000000000000000000000000000000..d017620d3ecf26abd5419d3ed1d14d43e2a77fc4 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.ptx @@ -0,0 +1,553 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_red_fused__to_copy_mean_pow_3 // -- Begin function triton_red_fused__to_copy_mean_pow_3 +.extern .shared .align 16 .b8 global_smem[]; + // @triton_red_fused__to_copy_mean_pow_3 +.visible .entry triton_red_fused__to_copy_mean_pow_3( + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_3_param_0, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_3_param_1, + .param .u32 triton_red_fused__to_copy_mean_pow_3_param_2, + .param .u32 triton_red_fused__to_copy_mean_pow_3_param_3, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_3_param_4 +) +.reqntid 128, 1, 1 +{ + .reg .pred %p<24>; + .reg .b16 %rs<5>; + .reg .b32 %r<106>; + .reg .f32 %f<26>; + .reg .b64 %rd<30>; + .loc 1 18 0 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:18:0 + +// %bb.0: + ld.param.u32 %r8, [triton_red_fused__to_copy_mean_pow_3_param_2]; + ld.param.u64 %rd5, [triton_red_fused__to_copy_mean_pow_3_param_1]; + ld.param.u64 %rd4, [triton_red_fused__to_copy_mean_pow_3_param_0]; +$L__tmp0: + .loc 1 22 28 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:22:28 + mov.u32 %r1, %ctaid.x; + .loc 1 22 33 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:22:33 + shl.b32 %r2, %r1, 6; + .loc 1 23 44 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:23:44 + mov.u32 %r3, %tid.x; + bfe.u32 %r4, %r3, 1, 6; + .loc 1 23 23 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:23:23 + or.b32 %r9, %r4, %r2; + .loc 1 25 37 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:25:37 + shl.b32 %r10, %r3, 2; + and.b32 %r5, %r10, 4; + .loc 1 28 19 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:28:19 + mul.hi.s32 %r11, %r9, 1717986919; + shr.u32 %r12, %r11, 31; + shr.s32 %r13, %r11, 4; + add.s32 %r6, %r13, %r12; + setp.ge.s32 %p1, %r9, %r8; + @%p1 bra $L__BB0_5; +// %bb.1: // %.split.us.preheader + .loc 1 31 40 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:31:40 + shl.b32 %r82, %r1, 13; + shl.b32 %r83, %r6, 11; + add.s32 %r84, %r82, %r83; + shl.b32 %r85, %r4, 7; + add.s32 %r86, %r84, %r85; + or.b32 %r87, %r86, %r5; + cvt.u64.u32 %rd1, %r87; + mov.f32 %f21, 0f00000000; + mov.b64 %rd29, -8; + mov.f32 %f22, %f21; + mov.f32 %f23, %f21; + mov.f32 %f24, %f21; +$L__BB0_2: // %.split.us + // =>This Inner Loop Header: Depth=1 + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd25, %rd1, %rd29; + cvt.u32.u64 %r92, %rd25; + add.s32 %r93, %r92, 8; + mul.wide.s32 %rd26, %r93, 2; + add.s64 %rd24, %rd4, %rd26; + mov.b32 %r90, 0; + mov.pred %p18, -1; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r88, %r90; + mov.u32 %r89, %r90; + @%p18 ld.global.L1::evict_first.v2.b32 { %r88, %r89 }, [ %rd24 + 0 ]; + // end inline asm + mov.b32 {%rs1, %rs2}, %r88; + mov.b32 {%rs3, %rs4}, %r89; + .loc 1 37 122 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:122 + cvt.f32.bf16 %f13, %rs1; + cvt.f32.bf16 %f14, %rs2; + cvt.f32.bf16 %f15, %rs3; + cvt.f32.bf16 %f16, %rs4; + .loc 1 41 23 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:41:23 + fma.rn.f32 %f21, %f13, %f13, %f21; + fma.rn.f32 %f22, %f14, %f14, %f22; + fma.rn.f32 %f23, %f15, %f15, %f23; + fma.rn.f32 %f24, %f16, %f16, %f24; + .loc 1 31 40 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:31:40 + add.s64 %rd29, %rd29, 8; + setp.lt.u64 %p19, %rd29, 120; + @%p19 bra $L__BB0_2; +// %bb.3: // %.split4.us.loopexit + .loc 1 23 44 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:23:44 + add.f32 %f17, %f21, %f22; + add.f32 %f18, %f23, %f17; + add.f32 %f25, %f24, %f18; + bra.uni $L__BB0_4; +$L__BB0_5: // %.split.preheader + .loc 1 0 44 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:0:44 + mul.lo.s32 %r14, %r6, 40; + sub.s32 %r15, %r9, %r14; + shl.b32 %r16, %r15, 7; + or.b32 %r17, %r16, %r5; + mad.lo.s32 %r7, %r6, 7168, %r17; + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + mul.wide.s32 %rd22, %r7, 2; + add.s64 %rd6, %rd4, %rd22; + mov.b32 %r20, 0; + mov.pred %p2, 0; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r18, %r20; + mov.u32 %r19, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r18, %r19 }, [ %rd6 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd7, %rd6, 16; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r22, %r20; + mov.u32 %r23, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r22, %r23 }, [ %rd7 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd8, %rd6, 32; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r26, %r20; + mov.u32 %r27, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r26, %r27 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd9, %rd6, 48; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r30, %r20; + mov.u32 %r31, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r30, %r31 }, [ %rd9 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd10, %rd6, 64; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r34, %r20; + mov.u32 %r35, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r34, %r35 }, [ %rd10 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd11, %rd6, 80; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r38, %r20; + mov.u32 %r39, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r38, %r39 }, [ %rd11 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd12, %rd6, 96; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r42, %r20; + mov.u32 %r43, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r42, %r43 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd13, %rd6, 112; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r46, %r20; + mov.u32 %r47, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r46, %r47 }, [ %rd13 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd14, %rd6, 128; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r50, %r20; + mov.u32 %r51, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r50, %r51 }, [ %rd14 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd15, %rd6, 144; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r54, %r20; + mov.u32 %r55, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r54, %r55 }, [ %rd15 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd16, %rd6, 160; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r58, %r20; + mov.u32 %r59, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r58, %r59 }, [ %rd16 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd17, %rd6, 176; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r62, %r20; + mov.u32 %r63, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r62, %r63 }, [ %rd17 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd18, %rd6, 192; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r66, %r20; + mov.u32 %r67, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r66, %r67 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd19, %rd6, 208; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r70, %r20; + mov.u32 %r71, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r70, %r71 }, [ %rd19 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd20, %rd6, 224; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r74, %r20; + mov.u32 %r75, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r74, %r75 }, [ %rd20 + 0 ]; + // end inline asm + .loc 1 37 34 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:34 + add.s64 %rd21, %rd6, 240; + .loc 1 37 60 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:37:60 + // begin inline asm + mov.u32 %r78, %r20; + mov.u32 %r79, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r78, %r79 }, [ %rd21 + 0 ]; + // end inline asm + mov.f32 %f25, 0f00000000; +$L__BB0_4: // %.split4.us + .loc 1 23 44 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:23:44 + and.b32 %r97, %r3, 63; + .loc 1 23 23 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:23:23 + or.b32 %r98, %r2, %r97; + .loc 1 24 21 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:24:21 + setp.lt.s32 %p22, %r98, %r8; + .loc 1 23 44 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:23:44 + and.b32 %r99, %r3, 64; + setp.eq.s32 %p23, %r99, 0; +$L__tmp1: + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r100, %f25; + shfl.sync.bfly.b32 %r101, %r100, 1, 31, -1; + mov.b32 %f19, %r101; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f20, %f25, %f19; +$L__tmp2: + .loc 1 43 28 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:43:28 + shl.b32 %r102, %r4, 2; + mov.u32 %r103, global_smem; + add.s32 %r94, %r103, %r102; + mov.b32 %r95, %f20; + mov.pred %p20, -1; + // begin inline asm + @%p20 st.shared.b32 [ %r94 + 0 ], %r95; + // end inline asm + bar.sync 0; + shl.b32 %r104, %r97, 2; + add.s32 %r105, %r103, %r104; + ld.shared.u32 %r96, [%r105]; + .loc 1 44 25 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:44:25 + mul.wide.s32 %rd28, %r98, 4; + add.s64 %rd27, %rd5, %rd28; + .loc 1 44 36 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:44:36 + and.pred %p21, %p23, %p22; + // begin inline asm + @%p21 st.global.b32 [ %rd27 + 0 ], { %r96 }; + // end inline asm + .loc 1 44 4 // cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py:44:4 + ret; +$L__tmp3: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py" + .file 2 "/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 1 // DW_CHILDREN_yes +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 2 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 0 // DW_CHILDREN_no +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 32 // DW_AT_inline +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 3 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 1 // DW_CHILDREN_yes +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 4 // Abbreviation Code +.b8 29 // DW_TAG_inlined_subroutine +.b8 0 // DW_CHILDREN_no +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 88 // DW_AT_call_file +.b8 11 // DW_FORM_data1 +.b8 89 // DW_AT_call_line +.b8 11 // DW_FORM_data1 +.b8 87 // DW_AT_call_column +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 241 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0xea DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 113 +.b8 54 +.b8 109 +.b8 122 +.b8 119 +.b8 102 +.b8 112 +.b8 105 +.b8 103 +.b8 112 +.b8 53 +.b8 99 +.b8 104 +.b8 114 +.b8 114 +.b8 121 +.b8 111 +.b8 98 +.b8 121 +.b8 53 +.b8 97 +.b8 105 +.b8 54 +.b8 113 +.b8 101 +.b8 97 +.b8 113 +.b8 97 +.b8 105 +.b8 52 +.b8 112 +.b8 107 +.b8 98 +.b8 54 +.b8 105 +.b8 118 +.b8 102 +.b8 52 +.b8 102 +.b8 97 +.b8 50 +.b8 55 +.b8 99 +.b8 50 +.b8 112 +.b8 100 +.b8 120 +.b8 121 +.b8 105 +.b8 54 +.b8 97 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 113 +.b8 54 +.b8 0 +.b8 2 // Abbrev [2] 0x9f:0x27 DW_TAG_subprogram +.b8 116 // DW_AT_name +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 95 +.b8 114 +.b8 101 +.b8 100 +.b8 95 +.b8 102 +.b8 117 +.b8 115 +.b8 101 +.b8 100 +.b8 95 +.b8 95 +.b8 116 +.b8 111 +.b8 95 +.b8 99 +.b8 111 +.b8 112 +.b8 121 +.b8 95 +.b8 109 +.b8 101 +.b8 97 +.b8 110 +.b8 95 +.b8 112 +.b8 111 +.b8 119 +.b8 95 +.b8 51 +.b8 0 +.b8 1 // DW_AT_inline +.b8 3 // Abbrev [3] 0xc6:0x2e DW_TAG_subprogram +.b64 $L__func_begin0 // DW_AT_low_pc +.b64 $L__func_end0 // DW_AT_high_pc +.b32 159 // DW_AT_abstract_origin +.b8 4 // Abbrev [4] 0xdb:0x18 DW_TAG_inlined_subroutine +.b32 159 // DW_AT_abstract_origin +.b64 $L__tmp1 // DW_AT_low_pc +.b64 $L__tmp2 // DW_AT_high_pc +.b8 1 // DW_AT_call_file +.b8 43 // DW_AT_call_line +.b8 25 // DW_AT_call_column +.b8 0 // End Of Children Mark +.b8 0 // End Of Children Mark + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.ttir new file mode 100644 index 0000000000000000000000000000000000000000..eeaaf75fa106e4cde0448bbde58703700ddb21ce --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/O4OXDBGRKNLIJMR4TB7JE5NGXIK62OZJQDIITXH35CBQICJ5VQ6A/triton_red_fused__to_copy_mean_pow_3.ttir @@ -0,0 +1,97 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0) +#loc1 = loc(unknown) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":43:25) +#loc35 = loc(callsite(#loc1 at #loc28)) +module { + tt.func public @triton_red_fused__to_copy_mean_pow_3(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<64x8xbf16> loc(#loc1) + %c8_i32 = arith.constant 8 : i32 loc(#loc1) + %c128_i32 = arith.constant 128 : i32 loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %cst_0 = arith.constant dense<7168> : tensor<64x1xi32> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<64x1xi32> loc(#loc1) + %cst_2 = arith.constant dense<128> : tensor<1x8xi32> loc(#loc1) + %cst_3 = arith.constant dense<0.000000e+00> : tensor<64x8xf32> loc(#loc1) + %cst_4 = arith.constant dense<40> : tensor<64x1xi32> loc(#loc1) + %c64_i32 = arith.constant 64 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c64_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 1 : i32} : tensor<64xi32> -> tensor<64x1xi32> loc(#loc5) + %4 = tt.splat %1 : i32 -> tensor<64x1xi32> loc(#loc6) + %5 = arith.addi %4, %3 : tensor<64x1xi32> loc(#loc6) + %6 = tt.splat %arg2 : i32 -> tensor<64x1xi32> loc(#loc7) + %7 = arith.cmpi slt, %5, %6 : tensor<64x1xi32> loc(#loc7) + %8 = tt.make_range {end = 8 : i32, start = 0 : i32} : tensor<8xi32> loc(#loc8) + %9 = tt.expand_dims %8 {axis = 0 : i32} : tensor<8xi32> -> tensor<1x8xi32> loc(#loc9) + %10 = arith.remsi %5, %cst_4 : tensor<64x1xi32> loc(#loc10) + %11 = arith.divsi %5, %cst_4 : tensor<64x1xi32> loc(#loc11) + %12 = scf.for %arg4 = %c0_i32 to %c128_i32 step %c8_i32 iter_args(%arg5 = %cst_3) -> (tensor<64x8xf32>) : i32 { + %17 = tt.splat %arg4 : i32 -> tensor<1x8xi32> loc(#loc13) + %18 = arith.addi %17, %9 : tensor<1x8xi32> loc(#loc13) + %19 = arith.cmpi slt, %18, %cst_2 : tensor<1x8xi32> loc(#loc14) + %20 = arith.muli %10, %cst_1 : tensor<64x1xi32> loc(#loc15) + %21 = tt.broadcast %18 : tensor<1x8xi32> -> tensor<64x8xi32> loc(#loc16) + %22 = tt.broadcast %20 : tensor<64x1xi32> -> tensor<64x8xi32> loc(#loc16) + %23 = arith.addi %21, %22 : tensor<64x8xi32> loc(#loc16) + %24 = arith.muli %11, %cst_0 : tensor<64x1xi32> loc(#loc17) + %25 = tt.broadcast %24 : tensor<64x1xi32> -> tensor<64x8xi32> loc(#loc18) + %26 = arith.addi %23, %25 : tensor<64x8xi32> loc(#loc18) + %27 = tt.splat %arg0 : !tt.ptr -> tensor<64x8x!tt.ptr> loc(#loc19) + %28 = tt.addptr %27, %26 : tensor<64x8x!tt.ptr>, tensor<64x8xi32> loc(#loc19) + %29 = tt.broadcast %7 : tensor<64x1xi1> -> tensor<64x8xi1> loc(#loc20) + %30 = tt.broadcast %19 : tensor<1x8xi1> -> tensor<64x8xi1> loc(#loc20) + %31 = arith.andi %29, %30 : tensor<64x8xi1> loc(#loc20) + %32 = tt.load %28, %31, %cst evictionPolicy = evict_first : tensor<64x8x!tt.ptr> loc(#loc21) + %33 = arith.extf %32 : tensor<64x8xbf16> to tensor<64x8xf32> loc(#loc22) + %34 = arith.mulf %33, %33 : tensor<64x8xf32> loc(#loc23) + %35 = arith.addf %arg5, %34 : tensor<64x8xf32> loc(#loc24) + %36 = arith.select %31, %35, %arg5 : tensor<64x8xi1>, tensor<64x8xf32> loc(#loc25) + scf.yield %36 : tensor<64x8xf32> loc(#loc26) + } loc(#loc12) + %13 = "tt.reduce"(%12) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc28)), %arg5: f32 loc(callsite(#loc1 at #loc28))): + %17 = arith.addf %arg4, %arg5 : f32 loc(#loc37) + tt.reduce.return %17 : f32 loc(#loc34) + }) : (tensor<64x8xf32>) -> tensor<64xf32> loc(#loc34) + %14 = tt.expand_dims %13 {axis = 1 : i32} : tensor<64xf32> -> tensor<64x1xf32> loc(#loc30) + %15 = tt.splat %arg1 : !tt.ptr -> tensor<64x1x!tt.ptr> loc(#loc31) + %16 = tt.addptr %15, %5 : tensor<64x1x!tt.ptr>, tensor<64x1xi32> loc(#loc31) + tt.store %16, %14, %7 : tensor<64x1x!tt.ptr> loc(#loc32) + tt.return loc(#loc33) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":23:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":23:44) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":23:23) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":24:21) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":25:27) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":25:37) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":27:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":28:19) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":31:40) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":32:31) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":33:29) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:45) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:41) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:55) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:50) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:34) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:68) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:60) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":37:122) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":39:22) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":41:23) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":42:48) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":42:8) +#loc27 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc29 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":43:28) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:25) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:36) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6/cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py":44:4) +#loc34 = loc(callsite(#loc27 at #loc28)) +#loc36 = loc(callsite(#loc29 at #loc27)) +#loc37 = loc(callsite(#loc36 at #loc28)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/QT73R52ZWGXA72GG3HUN4IGNKNSG5DT27CPQ4L4YFYRA3IBRD4ZA/triton_poi_fused_view_7.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/QT73R52ZWGXA72GG3HUN4IGNKNSG5DT27CPQ4L4YFYRA3IBRD4ZA/triton_poi_fused_view_7.ptx new file mode 100644 index 0000000000000000000000000000000000000000..22a010a808217375f741f448e2c73aa6499db526 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/QT73R52ZWGXA72GG3HUN4IGNKNSG5DT27CPQ4L4YFYRA3IBRD4ZA/triton_poi_fused_view_7.ptx @@ -0,0 +1,228 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_poi_fused_view_7 // -- Begin function triton_poi_fused_view_7 + // @triton_poi_fused_view_7 +.visible .entry triton_poi_fused_view_7( + .param .u64 .ptr .global .align 1 triton_poi_fused_view_7_param_0, + .param .u32 triton_poi_fused_view_7_param_1, + .param .u64 .ptr .global .align 1 triton_poi_fused_view_7_param_2 +) +.reqntid 128, 1, 1 +{ + .reg .pred %p<2>; + .reg .b32 %r<12>; + .reg .b64 %rd<4>; + .loc 1 18 0 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:18:0 + +// %bb.0: + ld.param.u64 %rd2, [triton_poi_fused_view_7_param_0]; + ld.param.u32 %r5, [triton_poi_fused_view_7_param_1]; +$L__tmp0: + .loc 1 19 28 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:19:28 + mov.u32 %r6, %ctaid.x; + .loc 1 19 33 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:19:33 + shl.b32 %r7, %r6, 10; + .loc 1 20 36 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:20:36 + mov.u32 %r8, %tid.x; + shl.b32 %r9, %r8, 3; + and.b32 %r10, %r9, 1016; + .loc 1 20 23 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:20:23 + or.b32 %r11, %r10, %r7; + .loc 1 21 21 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:21:21 + setp.lt.s32 %p1, %r11, %r5; + .loc 1 24 25 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:24:25 + mul.wide.s32 %rd3, %r11, 2; + add.s64 %rd1, %rd2, %rd3; + mov.b32 %r1, 0; + .loc 1 24 36 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:24:36 + // begin inline asm + @%p1 st.global.v4.b32 [ %rd1 + 0 ], { %r1, %r1, %r1, %r1 }; + // end inline asm + .loc 1 24 4 // cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py:24:4 + ret; +$L__tmp1: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 0 // DW_CHILDREN_no +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 155 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0x94 DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 106 +.b8 118 +.b8 98 +.b8 118 +.b8 107 +.b8 107 +.b8 100 +.b8 108 +.b8 114 +.b8 104 +.b8 97 +.b8 103 +.b8 114 +.b8 106 +.b8 51 +.b8 53 +.b8 107 +.b8 51 +.b8 55 +.b8 115 +.b8 113 +.b8 117 +.b8 55 +.b8 55 +.b8 98 +.b8 114 +.b8 108 +.b8 97 +.b8 108 +.b8 120 +.b8 117 +.b8 53 +.b8 112 +.b8 116 +.b8 105 +.b8 119 +.b8 112 +.b8 51 +.b8 53 +.b8 108 +.b8 116 +.b8 103 +.b8 112 +.b8 104 +.b8 53 +.b8 103 +.b8 50 +.b8 106 +.b8 119 +.b8 51 +.b8 109 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 106 +.b8 118 +.b8 0 + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/QT73R52ZWGXA72GG3HUN4IGNKNSG5DT27CPQ4L4YFYRA3IBRD4ZA/triton_poi_fused_view_7.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/QT73R52ZWGXA72GG3HUN4IGNKNSG5DT27CPQ4L4YFYRA3IBRD4ZA/triton_poi_fused_view_7.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..7a6dcd9d03a53754162174bf7ddd8403115863c9 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/QT73R52ZWGXA72GG3HUN4IGNKNSG5DT27CPQ4L4YFYRA3IBRD4ZA/triton_poi_fused_view_7.ttgir @@ -0,0 +1,28 @@ +#blocked = #ttg.blocked<{sizePerThread = [8], threadsPerWarp = [32], warpsPerCTA = [4], order = [0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":18:0) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 4 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_poi_fused_view_7(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":18:0), %arg1: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<1024xbf16, #blocked> loc(#loc1) + %c1024_i32 = arith.constant 1024 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c1024_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 1024 : i32, start = 0 : i32} : tensor<1024xi32, #blocked> loc(#loc4) + %3 = tt.splat %1 : i32 -> tensor<1024xi32, #blocked> loc(#loc5) + %4 = arith.addi %3, %2 : tensor<1024xi32, #blocked> loc(#loc5) + %5 = tt.splat %arg1 : i32 -> tensor<1024xi32, #blocked> loc(#loc6) + %6 = arith.cmpi slt, %4, %5 : tensor<1024xi32, #blocked> loc(#loc6) + %7 = tt.splat %arg0 : !tt.ptr -> tensor<1024x!tt.ptr, #blocked> loc(#loc7) + %8 = tt.addptr %7, %4 : tensor<1024x!tt.ptr, #blocked>, tensor<1024xi32, #blocked> loc(#loc7) + tt.store %8, %cst, %6 : tensor<1024x!tt.ptr, #blocked> loc(#loc8) + tt.return loc(#loc9) + } loc(#loc) +} loc(#loc) +#loc1 = loc(unknown) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":19:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":19:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":20:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":20:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":21:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":24:25) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":24:36) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/jv/cjvbvkkdlrhagrj35k37squ77brlalxu5ptiwp35ltgph5g2jw3m.py":24:4) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/SKDOONFXJZUP5C55PQQXZXP2HR3QDCHFRIW5WQHUHTG6ZITHEPQA/triton_red_fused__to_copy_mean_pow_3.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/SKDOONFXJZUP5C55PQQXZXP2HR3QDCHFRIW5WQHUHTG6ZITHEPQA/triton_red_fused__to_copy_mean_pow_3.llir new file mode 100644 index 0000000000000000000000000000000000000000..72fe7d589457af64c29e067918a3465e784d4c0e --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/SKDOONFXJZUP5C55PQQXZXP2HR3QDCHFRIW5WQHUHTG6ZITHEPQA/triton_red_fused__to_copy_mean_pow_3.llir @@ -0,0 +1,166 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 + +define ptx_kernel void @triton_red_fused__to_copy_mean_pow_3(ptr addrspace(1) %0, ptr addrspace(1) %1, i32 %2, i32 %3, ptr addrspace(1) readnone captures(none) %4) local_unnamed_addr !dbg !6 { + %6 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %7 = shl i32 %6, 6, !dbg !10 + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %9 = lshr i32 %8, 3, !dbg !11 + %10 = and i32 %9, 63, !dbg !11 + %11 = or disjoint i32 %10, %7, !dbg !12 + %12 = icmp slt i32 %11, %2, !dbg !13 + %13 = shl i32 %8, 3, !dbg !14 + %14 = and i32 %13, 56, !dbg !14 + %15 = sdiv i32 %11, 40, !dbg !15 + %16 = mul i32 %15, 40, !dbg !16 + %.decomposed = sub i32 %11, %16, !dbg !16 + %17 = shl nsw i32 %.decomposed, 7, !dbg !17 + %18 = mul i32 %15, 7168, !dbg !18 + %19 = or disjoint i32 %17, %14 + %20 = add i32 %19, %18 + %21 = sext i32 %20 to i64, !dbg !19 + %22 = getelementptr bfloat, ptr addrspace(1) %0, i64 %21, !dbg !19 + %23 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_first.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %22, i1 %12) #3, !dbg !20 + %24 = extractvalue { i32, i32, i32, i32 } %23, 0, !dbg !20 + %25 = bitcast i32 %24 to <2 x bfloat>, !dbg !20 + %26 = extractvalue { i32, i32, i32, i32 } %23, 1, !dbg !20 + %27 = bitcast i32 %26 to <2 x bfloat>, !dbg !20 + %28 = extractvalue { i32, i32, i32, i32 } %23, 2, !dbg !20 + %29 = bitcast i32 %28 to <2 x bfloat>, !dbg !20 + %30 = extractvalue { i32, i32, i32, i32 } %23, 3, !dbg !20 + %31 = bitcast i32 %30 to <2 x bfloat>, !dbg !20 + %32 = or disjoint i32 %20, 64, !dbg !21 + %33 = sext i32 %32 to i64, !dbg !19 + %34 = getelementptr bfloat, ptr addrspace(1) %0, i64 %33, !dbg !19 + %35 = tail call { i32, i32, i32, i32 } asm sideeffect "mov.u32 $0, $4;\0A\09mov.u32 $1, $5;\0A\09mov.u32 $2, $6;\0A\09mov.u32 $3, $7;\0A\09@$9 ld.global.L1::evict_first.v4.b32 { $0, $1, $2, $3 }, [ $8 + 0 ];", "=r,=r,=r,=r,r,r,r,r,l,b"(i32 0, i32 0, i32 0, i32 0, ptr addrspace(1) %34, i1 %12) #3, !dbg !20 + %36 = extractvalue { i32, i32, i32, i32 } %35, 0, !dbg !20 + %37 = bitcast i32 %36 to <2 x bfloat>, !dbg !20 + %38 = extractvalue { i32, i32, i32, i32 } %35, 1, !dbg !20 + %39 = bitcast i32 %38 to <2 x bfloat>, !dbg !20 + %40 = extractvalue { i32, i32, i32, i32 } %35, 2, !dbg !20 + %41 = bitcast i32 %40 to <2 x bfloat>, !dbg !20 + %42 = extractvalue { i32, i32, i32, i32 } %35, 3, !dbg !20 + %43 = bitcast i32 %42 to <2 x bfloat>, !dbg !20 + %44 = fpext <2 x bfloat> %25 to <2 x float>, !dbg !22 + %45 = fmul <2 x float> %44, %44, !dbg !23 + %46 = fpext <2 x bfloat> %37 to <2 x float>, !dbg !22 + %47 = fmul <2 x float> %46, %46, !dbg !23 + %48 = fadd <2 x float> %45, %47, !dbg !24 + %49 = fpext <2 x bfloat> %27 to <2 x float>, !dbg !22 + %50 = fmul <2 x float> %49, %49, !dbg !23 + %51 = fpext <2 x bfloat> %39 to <2 x float>, !dbg !22 + %52 = fmul <2 x float> %51, %51, !dbg !23 + %53 = fadd <2 x float> %50, %52, !dbg !24 + %54 = fpext <2 x bfloat> %29 to <2 x float>, !dbg !22 + %55 = fmul <2 x float> %54, %54, !dbg !23 + %56 = fpext <2 x bfloat> %41 to <2 x float>, !dbg !22 + %57 = fmul <2 x float> %56, %56, !dbg !23 + %58 = fadd <2 x float> %55, %57, !dbg !24 + %59 = fpext <2 x bfloat> %31 to <2 x float>, !dbg !22 + %60 = fmul <2 x float> %59, %59, !dbg !23 + %61 = fpext <2 x bfloat> %43 to <2 x float>, !dbg !22 + %62 = fmul <2 x float> %61, %61, !dbg !23 + %63 = fadd <2 x float> %60, %62, !dbg !24 + %64 = and i32 %8, 63, !dbg !11 + %65 = or disjoint i32 %7, %64, !dbg !12 + %66 = icmp slt i32 %65, %2, !dbg !13 + %shift = shufflevector <2 x float> %48, <2 x float> poison, <2 x i32> , !dbg !25 + %67 = fadd <2 x float> %48, %shift, !dbg !25 + %68 = fadd <2 x float> %53, %67, !dbg !25 + %shift10 = shufflevector <2 x float> %53, <2 x float> poison, <2 x i32> , !dbg !25 + %69 = fadd <2 x float> %shift10, %68, !dbg !25 + %70 = fadd <2 x float> %58, %69, !dbg !25 + %shift11 = shufflevector <2 x float> %58, <2 x float> poison, <2 x i32> , !dbg !25 + %71 = fadd <2 x float> %shift11, %70, !dbg !25 + %72 = fadd <2 x float> %63, %71, !dbg !25 + %shift12 = shufflevector <2 x float> %63, <2 x float> poison, <2 x i32> , !dbg !25 + %73 = fadd <2 x float> %shift12, %72, !dbg !25 + %74 = extractelement <2 x float> %73, i64 0, !dbg !25 + %75 = select i1 %12, float %74, float 0.000000e+00, !dbg !25 + %76 = bitcast float %75 to i32, !dbg !30 + %77 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %76, i32 4, i32 31), !dbg !30 + %78 = bitcast i32 %77 to float, !dbg !30 + %79 = fadd float %75, %78, !dbg !25 + %80 = bitcast float %79 to i32, !dbg !30 + %81 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %80, i32 2, i32 31), !dbg !30 + %82 = bitcast i32 %81 to float, !dbg !30 + %83 = fadd float %79, %82, !dbg !25 + %84 = bitcast float %83 to i32, !dbg !30 + %85 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %84, i32 1, i32 31), !dbg !30 + %86 = bitcast i32 %85 to float, !dbg !30 + %87 = fadd float %83, %86, !dbg !25 + %88 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %10, !dbg !31 + %89 = bitcast float %87 to <1 x i32>, !dbg !31 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %88, <1 x i32> %89, i1 true) #3, !dbg !31 + tail call void @llvm.nvvm.barrier0(), !dbg !31 + %90 = getelementptr inbounds nuw float, ptr addrspace(3) @global_smem, i32 %64, !dbg !31 + %91 = load i32, ptr addrspace(3) %90, align 4, !dbg !31 + %92 = sext i32 %65 to i64, !dbg !32 + %93 = getelementptr float, ptr addrspace(1) %1, i64 %92, !dbg !32 + %94 = and i32 %8, 448, !dbg !33 + %95 = icmp eq i32 %94, 0, !dbg !33 + %96 = and i1 %95, %66, !dbg !33 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %91, ptr addrspace(1) %93, i1 %96) #3, !dbg !33 + ret void, !dbg !34 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "cq6mzwfpigp5chrryoby5ai6qeaqai4pkb6ivf4fa27c2pdxyi6a.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/q6") +!4 = !{ptr @triton_red_fused__to_copy_mean_pow_3, !"reqntidx", i32 512} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_mean_pow_3", linkageName: "triton_red_fused__to_copy_mean_pow_3", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 22, column: 33, scope: !6) +!11 = !DILocation(line: 23, column: 44, scope: !6) +!12 = !DILocation(line: 23, column: 23, scope: !6) +!13 = !DILocation(line: 24, column: 21, scope: !6) +!14 = !DILocation(line: 25, column: 37, scope: !6) +!15 = !DILocation(line: 28, column: 19, scope: !6) +!16 = !DILocation(line: 27, column: 19, scope: !6) +!17 = !DILocation(line: 37, column: 45, scope: !6) +!18 = !DILocation(line: 37, column: 55, scope: !6) +!19 = !DILocation(line: 37, column: 34, scope: !6) +!20 = !DILocation(line: 37, column: 60, scope: !6) +!21 = !DILocation(line: 37, column: 50, scope: !6) +!22 = !DILocation(line: 37, column: 122, scope: !6) +!23 = !DILocation(line: 39, column: 22, scope: !6) +!24 = !DILocation(line: 41, column: 23, scope: !6) +!25 = !DILocation(line: 256, column: 15, scope: !26, inlinedAt: !29) +!26 = distinct !DILexicalBlockFile(scope: !28, file: !27, discriminator: 0) +!27 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!28 = distinct !DILexicalBlockFile(scope: !6, file: !27, discriminator: 0) +!29 = !DILocation(line: 43, column: 25, scope: !6) +!30 = !DILocation(line: 286, column: 36, scope: !28, inlinedAt: !29) +!31 = !DILocation(line: 43, column: 28, scope: !6) +!32 = !DILocation(line: 44, column: 25, scope: !6) +!33 = !DILocation(line: 44, column: 36, scope: !6) +!34 = !DILocation(line: 44, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.cubin new file mode 100644 index 0000000000000000000000000000000000000000..eb4bd442d88029d3006c3ce60d3ad454e412387a Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.json new file mode 100644 index 0000000000000000000000000000000000000000..a17dfb85e773bc16f41c82462dfafa93e49b91c1 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.json @@ -0,0 +1 @@ +{"hash": "a3f023a1cb16a33f09c0a3d779a44b5d312d91721262d915e9f91a6ed0955797", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 4, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 256, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_red_fused__to_copy_mean_pow_4"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.ptx b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.ptx new file mode 100644 index 0000000000000000000000000000000000000000..648bd11fa3292b7d88fd32eda413bbe35377d6cf --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.ptx @@ -0,0 +1,559 @@ +// +// Generated by LLVM NVPTX Back-End +// + +.version 8.4 +.target sm_90a +.address_size 64 + + // .globl triton_red_fused__to_copy_mean_pow_4 // -- Begin function triton_red_fused__to_copy_mean_pow_4 +.extern .shared .align 16 .b8 global_smem[]; + // @triton_red_fused__to_copy_mean_pow_4 +.visible .entry triton_red_fused__to_copy_mean_pow_4( + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_0, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_1, + .param .u32 triton_red_fused__to_copy_mean_pow_4_param_2, + .param .u32 triton_red_fused__to_copy_mean_pow_4_param_3, + .param .u64 .ptr .global .align 1 triton_red_fused__to_copy_mean_pow_4_param_4 +) +.reqntid 128, 1, 1 +{ + .reg .pred %p<24>; + .reg .b16 %rs<5>; + .reg .b32 %r<106>; + .reg .f32 %f<26>; + .reg .b64 %rd<35>; + .loc 1 18 0 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:18:0 +$L__func_begin0: + .loc 1 18 0 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:18:0 + +// %bb.0: + ld.param.u32 %r8, [triton_red_fused__to_copy_mean_pow_4_param_2]; + ld.param.u64 %rd5, [triton_red_fused__to_copy_mean_pow_4_param_1]; + ld.param.u64 %rd4, [triton_red_fused__to_copy_mean_pow_4_param_0]; +$L__tmp0: + .loc 1 22 28 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:22:28 + mov.u32 %r1, %ctaid.x; + .loc 1 22 33 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:22:33 + shl.b32 %r2, %r1, 6; + .loc 1 23 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:44 + mov.u32 %r3, %tid.x; + bfe.u32 %r4, %r3, 1, 6; + .loc 1 23 23 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:23 + or.b32 %r9, %r4, %r2; + .loc 1 25 37 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:25:37 + shl.b32 %r10, %r3, 2; + and.b32 %r5, %r10, 4; + .loc 1 28 19 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:28:19 + bfe.s32 %r11, %r1, 25, 1; + shr.u32 %r12, %r11, 29; + add.s32 %r13, %r9, %r12; + shr.s32 %r6, %r13, 3; + setp.ge.s32 %p1, %r9, %r8; + @%p1 bra $L__BB0_5; +// %bb.1: // %.split.us.preheader + .loc 1 31 40 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:31:40 + shl.b32 %r83, %r1, 13; + mad.lo.s32 %r84, %r6, 6144, %r83; + shl.b32 %r85, %r4, 7; + add.s32 %r86, %r84, %r85; + or.b32 %r87, %r86, %r5; + cvt.u64.u32 %rd1, %r87; + mov.f32 %f21, 0f00000000; + mov.b64 %rd34, -8; + mov.f32 %f22, %f21; + mov.f32 %f23, %f21; + mov.f32 %f24, %f21; +$L__BB0_2: // %.split.us + // =>This Inner Loop Header: Depth=1 + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd30, %rd1, %rd34; + cvt.u32.u64 %r92, %rd30; + add.s32 %r93, %r92, 5128; + mul.wide.s32 %rd31, %r93, 2; + add.s64 %rd29, %rd4, %rd31; + mov.b32 %r90, 0; + mov.pred %p18, -1; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r88, %r90; + mov.u32 %r89, %r90; + @%p18 ld.global.L1::evict_first.v2.b32 { %r88, %r89 }, [ %rd29 + 0 ]; + // end inline asm + mov.b32 {%rs1, %rs2}, %r88; + mov.b32 {%rs3, %rs4}, %r89; + .loc 1 37 129 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:129 + cvt.f32.bf16 %f13, %rs1; + cvt.f32.bf16 %f14, %rs2; + cvt.f32.bf16 %f15, %rs3; + cvt.f32.bf16 %f16, %rs4; + .loc 1 41 23 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:41:23 + fma.rn.f32 %f21, %f13, %f13, %f21; + fma.rn.f32 %f22, %f14, %f14, %f22; + fma.rn.f32 %f23, %f15, %f15, %f23; + fma.rn.f32 %f24, %f16, %f16, %f24; + .loc 1 31 40 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:31:40 + add.s64 %rd34, %rd34, 8; + setp.lt.u64 %p19, %rd34, 120; + @%p19 bra $L__BB0_2; +// %bb.3: // %.split4.us.loopexit + .loc 1 23 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:44 + add.f32 %f17, %f21, %f22; + add.f32 %f18, %f23, %f17; + add.f32 %f25, %f24, %f18; + bra.uni $L__BB0_4; +$L__BB0_5: // %.split.preheader + .loc 1 0 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:0:44 + and.b32 %r14, %r13, 33554424; + sub.s32 %r15, %r9, %r14; + shl.b32 %r16, %r15, 7; + mad.lo.s32 %r17, %r6, 7168, %r16; + add.s32 %r7, %r17, 5120; + .loc 1 37 57 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:57 + or.b32 %r82, %r7, %r5; + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + mul.wide.s32 %rd22, %r82, 2; + add.s64 %rd6, %rd4, %rd22; + mov.b32 %r20, 0; + mov.pred %p2, 0; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r18, %r20; + mov.u32 %r19, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r18, %r19 }, [ %rd6 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + cvt.s64.s32 %rd23, %r7; + cvt.u64.u32 %rd24, %r5; + add.s64 %rd25, %rd23, %rd24; + shl.b64 %rd26, %rd25, 1; + add.s64 %rd27, %rd4, %rd26; + add.s64 %rd7, %rd27, 16; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r22, %r20; + mov.u32 %r23, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r22, %r23 }, [ %rd7 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd8, %rd27, 32; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r26, %r20; + mov.u32 %r27, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r26, %r27 }, [ %rd8 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd9, %rd27, 48; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r30, %r20; + mov.u32 %r31, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r30, %r31 }, [ %rd9 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd10, %rd27, 64; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r34, %r20; + mov.u32 %r35, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r34, %r35 }, [ %rd10 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd11, %rd27, 80; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r38, %r20; + mov.u32 %r39, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r38, %r39 }, [ %rd11 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd12, %rd27, 96; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r42, %r20; + mov.u32 %r43, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r42, %r43 }, [ %rd12 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd13, %rd27, 112; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r46, %r20; + mov.u32 %r47, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r46, %r47 }, [ %rd13 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd14, %rd27, 128; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r50, %r20; + mov.u32 %r51, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r50, %r51 }, [ %rd14 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd15, %rd27, 144; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r54, %r20; + mov.u32 %r55, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r54, %r55 }, [ %rd15 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd16, %rd27, 160; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r58, %r20; + mov.u32 %r59, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r58, %r59 }, [ %rd16 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd17, %rd27, 176; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r62, %r20; + mov.u32 %r63, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r62, %r63 }, [ %rd17 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd18, %rd27, 192; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r66, %r20; + mov.u32 %r67, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r66, %r67 }, [ %rd18 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd19, %rd27, 208; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r70, %r20; + mov.u32 %r71, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r70, %r71 }, [ %rd19 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd20, %rd27, 224; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r74, %r20; + mov.u32 %r75, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r74, %r75 }, [ %rd20 + 0 ]; + // end inline asm + .loc 1 37 34 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:34 + add.s64 %rd21, %rd27, 240; + .loc 1 37 67 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:37:67 + // begin inline asm + mov.u32 %r78, %r20; + mov.u32 %r79, %r20; + @%p2 ld.global.L1::evict_first.v2.b32 { %r78, %r79 }, [ %rd21 + 0 ]; + // end inline asm + mov.f32 %f25, 0f00000000; +$L__BB0_4: // %.split4.us + .loc 1 23 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:44 + and.b32 %r97, %r3, 63; + .loc 1 23 23 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:23 + or.b32 %r98, %r2, %r97; + .loc 1 24 21 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:24:21 + setp.lt.s32 %p22, %r98, %r8; + .loc 1 23 44 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:23:44 + and.b32 %r99, %r3, 64; + setp.eq.s32 %p23, %r99, 0; +$L__tmp1: + .loc 2 286 36 // standard.py:286:36 + mov.b32 %r100, %f25; + shfl.sync.bfly.b32 %r101, %r100, 1, 31, -1; + mov.b32 %f19, %r101; + .loc 2 256 15 // standard.py:256:15 + add.f32 %f20, %f25, %f19; +$L__tmp2: + .loc 1 43 28 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:43:28 + shl.b32 %r102, %r4, 2; + mov.u32 %r103, global_smem; + add.s32 %r94, %r103, %r102; + mov.b32 %r95, %f20; + mov.pred %p20, -1; + // begin inline asm + @%p20 st.shared.b32 [ %r94 + 0 ], %r95; + // end inline asm + bar.sync 0; + shl.b32 %r104, %r97, 2; + add.s32 %r105, %r103, %r104; + ld.shared.u32 %r96, [%r105]; + .loc 1 44 25 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:25 + mul.wide.s32 %rd33, %r98, 4; + add.s64 %rd32, %rd5, %rd33; + .loc 1 44 36 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:36 + and.pred %p21, %p23, %p22; + // begin inline asm + @%p21 st.global.b32 [ %rd32 + 0 ], { %r96 }; + // end inline asm + .loc 1 44 4 // cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py:44:4 + ret; +$L__tmp3: +$L__func_end0: + // -- End function +} + .file 1 "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py" + .file 2 "/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py" + .section .debug_abbrev + { +.b8 1 // Abbreviation Code +.b8 17 // DW_TAG_compile_unit +.b8 1 // DW_CHILDREN_yes +.b8 37 // DW_AT_producer +.b8 8 // DW_FORM_string +.b8 19 // DW_AT_language +.b8 5 // DW_FORM_data2 +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 16 // DW_AT_stmt_list +.b8 6 // DW_FORM_data4 +.b8 27 // DW_AT_comp_dir +.b8 8 // DW_FORM_string +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 2 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 0 // DW_CHILDREN_no +.b8 3 // DW_AT_name +.b8 8 // DW_FORM_string +.b8 32 // DW_AT_inline +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 3 // Abbreviation Code +.b8 46 // DW_TAG_subprogram +.b8 1 // DW_CHILDREN_yes +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 4 // Abbreviation Code +.b8 29 // DW_TAG_inlined_subroutine +.b8 0 // DW_CHILDREN_no +.b8 49 // DW_AT_abstract_origin +.b8 19 // DW_FORM_ref4 +.b8 17 // DW_AT_low_pc +.b8 1 // DW_FORM_addr +.b8 18 // DW_AT_high_pc +.b8 1 // DW_FORM_addr +.b8 88 // DW_AT_call_file +.b8 11 // DW_FORM_data1 +.b8 89 // DW_AT_call_line +.b8 11 // DW_FORM_data1 +.b8 87 // DW_AT_call_column +.b8 11 // DW_FORM_data1 +.b8 0 // EOM(1) +.b8 0 // EOM(2) +.b8 0 // EOM(3) + } + .section .debug_info + { +.b32 241 // Length of Unit +.b8 2 // DWARF version number +.b8 0 +.b32 .debug_abbrev // Offset Into Abbrev. Section +.b8 8 // Address Size (in bytes) +.b8 1 // Abbrev [1] 0xb:0xea DW_TAG_compile_unit +.b8 116 // DW_AT_producer +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 0 +.b8 2 // DW_AT_language +.b8 0 +.b8 99 // DW_AT_name +.b8 113 +.b8 118 +.b8 99 +.b8 106 +.b8 106 +.b8 121 +.b8 118 +.b8 107 +.b8 107 +.b8 108 +.b8 97 +.b8 122 +.b8 97 +.b8 103 +.b8 113 +.b8 103 +.b8 108 +.b8 98 +.b8 100 +.b8 107 +.b8 109 +.b8 120 +.b8 121 +.b8 121 +.b8 107 +.b8 119 +.b8 121 +.b8 114 +.b8 118 +.b8 120 +.b8 55 +.b8 107 +.b8 103 +.b8 107 +.b8 118 +.b8 97 +.b8 102 +.b8 109 +.b8 103 +.b8 55 +.b8 51 +.b8 113 +.b8 112 +.b8 110 +.b8 113 +.b8 98 +.b8 115 +.b8 118 +.b8 106 +.b8 98 +.b8 97 +.b8 46 +.b8 112 +.b8 121 +.b8 0 +.b32 .debug_line // DW_AT_stmt_list +.b8 47 // DW_AT_comp_dir +.b8 104 +.b8 111 +.b8 109 +.b8 101 +.b8 47 +.b8 120 +.b8 47 +.b8 46 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 118 +.b8 108 +.b8 108 +.b8 109 +.b8 47 +.b8 116 +.b8 111 +.b8 114 +.b8 99 +.b8 104 +.b8 95 +.b8 99 +.b8 111 +.b8 109 +.b8 112 +.b8 105 +.b8 108 +.b8 101 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 99 +.b8 50 +.b8 50 +.b8 48 +.b8 50 +.b8 51 +.b8 56 +.b8 102 +.b8 97 +.b8 49 +.b8 47 +.b8 114 +.b8 97 +.b8 110 +.b8 107 +.b8 95 +.b8 48 +.b8 95 +.b8 48 +.b8 47 +.b8 105 +.b8 110 +.b8 100 +.b8 117 +.b8 99 +.b8 116 +.b8 111 +.b8 114 +.b8 95 +.b8 99 +.b8 97 +.b8 99 +.b8 104 +.b8 101 +.b8 47 +.b8 113 +.b8 118 +.b8 0 +.b8 2 // Abbrev [2] 0x9f:0x27 DW_TAG_subprogram +.b8 116 // DW_AT_name +.b8 114 +.b8 105 +.b8 116 +.b8 111 +.b8 110 +.b8 95 +.b8 114 +.b8 101 +.b8 100 +.b8 95 +.b8 102 +.b8 117 +.b8 115 +.b8 101 +.b8 100 +.b8 95 +.b8 95 +.b8 116 +.b8 111 +.b8 95 +.b8 99 +.b8 111 +.b8 112 +.b8 121 +.b8 95 +.b8 109 +.b8 101 +.b8 97 +.b8 110 +.b8 95 +.b8 112 +.b8 111 +.b8 119 +.b8 95 +.b8 52 +.b8 0 +.b8 1 // DW_AT_inline +.b8 3 // Abbrev [3] 0xc6:0x2e DW_TAG_subprogram +.b64 $L__func_begin0 // DW_AT_low_pc +.b64 $L__func_end0 // DW_AT_high_pc +.b32 159 // DW_AT_abstract_origin +.b8 4 // Abbrev [4] 0xdb:0x18 DW_TAG_inlined_subroutine +.b32 159 // DW_AT_abstract_origin +.b64 $L__tmp1 // DW_AT_low_pc +.b64 $L__tmp2 // DW_AT_high_pc +.b8 1 // DW_AT_call_file +.b8 43 // DW_AT_call_line +.b8 25 // DW_AT_call_column +.b8 0 // End Of Children Mark +.b8 0 // End Of Children Mark + } + .section .debug_macinfo { } diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..9abbcf25eccc12340775ca98b59a2c794632238f --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UPYCHIOLC2RT6COAUPLXTJCLLUYS3ELSCJRNSFPJ7ENG5UEVK6LQ/triton_red_fused__to_copy_mean_pow_4.ttgir @@ -0,0 +1,107 @@ +#blocked = #ttg.blocked<{sizePerThread = [1, 4], threadsPerWarp = [16, 2], warpsPerCTA = [4, 1], order = [1, 0]}> +#blocked1 = #ttg.blocked<{sizePerThread = [1, 1], threadsPerWarp = [32, 1], warpsPerCTA = [2, 2], order = [0, 1]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0) +#loc1 = loc(unknown) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:25) +#loc34 = loc(callsite(#loc1 at #loc27)) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 4 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_red_fused__to_copy_mean_pow_4(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<64x8xf32, #blocked> loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %c128_i32 = arith.constant 128 : i32 loc(#loc1) + %c8_i32 = arith.constant 8 : i32 loc(#loc1) + %cst_0 = arith.constant dense<0.000000e+00> : tensor<64x8xbf16, #blocked> loc(#loc1) + %c64_i32 = arith.constant 64 : i32 loc(#loc1) + %cst_1 = arith.constant dense<8> : tensor<64x1xi32, #blocked> loc(#loc1) + %cst_2 = arith.constant dense<7168> : tensor<64x1xi32, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<128> : tensor<64x1xi32, #blocked> loc(#loc1) + %cst_4 = arith.constant dense<5120> : tensor<1x8xi32, #blocked> loc(#loc1) + %cst_5 = arith.constant dense<128> : tensor<1x8xi32, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c64_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc4) + %3 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked1}>> loc(#loc4) + %4 = tt.expand_dims %2 {axis = 1 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<64x1xi32, #blocked> loc(#loc4) + %5 = tt.expand_dims %3 {axis = 1 : i32} : tensor<64xi32, #ttg.slice<{dim = 1, parent = #blocked1}>> -> tensor<64x1xi32, #blocked1> loc(#loc4) + %6 = tt.splat %1 : i32 -> tensor<64x1xi32, #blocked> loc(#loc5) + %7 = tt.splat %1 : i32 -> tensor<64x1xi32, #blocked1> loc(#loc5) + %8 = arith.addi %6, %4 : tensor<64x1xi32, #blocked> loc(#loc5) + %9 = arith.addi %7, %5 : tensor<64x1xi32, #blocked1> loc(#loc5) + %10 = tt.splat %arg2 : i32 -> tensor<64x1xi32, #blocked> loc(#loc6) + %11 = tt.splat %arg2 : i32 -> tensor<64x1xi32, #blocked1> loc(#loc6) + %12 = arith.cmpi slt, %8, %10 : tensor<64x1xi32, #blocked> loc(#loc6) + %13 = arith.cmpi slt, %9, %11 : tensor<64x1xi32, #blocked1> loc(#loc6) + %14 = tt.make_range {end = 8 : i32, start = 0 : i32} : tensor<8xi32, #ttg.slice<{dim = 0, parent = #blocked}>> loc(#loc7) + %15 = tt.expand_dims %14 {axis = 0 : i32} : tensor<8xi32, #ttg.slice<{dim = 0, parent = #blocked}>> -> tensor<1x8xi32, #blocked> loc(#loc7) + %16 = arith.remsi %8, %cst_1 : tensor<64x1xi32, #blocked> loc(#loc8) + %17 = arith.divsi %8, %cst_1 : tensor<64x1xi32, #blocked> loc(#loc9) + %18 = arith.muli %16, %cst_3 : tensor<64x1xi32, #blocked> loc(#loc10) + %19 = tt.broadcast %18 : tensor<64x1xi32, #blocked> -> tensor<64x8xi32, #blocked> loc(#loc11) + %20 = arith.muli %17, %cst_2 : tensor<64x1xi32, #blocked> loc(#loc12) + %21 = tt.broadcast %20 : tensor<64x1xi32, #blocked> -> tensor<64x8xi32, #blocked> loc(#loc13) + %22 = tt.splat %arg0 : !tt.ptr -> tensor<64x8x!tt.ptr, #blocked> loc(#loc14) + %23 = tt.broadcast %12 : tensor<64x1xi1, #blocked> -> tensor<64x8xi1, #blocked> loc(#loc15) + %24 = scf.for %arg4 = %c0_i32 to %c128_i32 step %c8_i32 iter_args(%arg5 = %cst) -> (tensor<64x8xf32, #blocked>) : i32 { + %30 = tt.splat %arg4 : i32 -> tensor<1x8xi32, #blocked> loc(#loc17) + %31 = arith.addi %30, %15 : tensor<1x8xi32, #blocked> loc(#loc17) + %32 = arith.cmpi slt, %31, %cst_5 : tensor<1x8xi32, #blocked> loc(#loc18) + %33 = arith.addi %31, %cst_4 : tensor<1x8xi32, #blocked> loc(#loc19) + %34 = tt.broadcast %33 : tensor<1x8xi32, #blocked> -> tensor<64x8xi32, #blocked> loc(#loc11) + %35 = arith.addi %34, %19 : tensor<64x8xi32, #blocked> loc(#loc11) + %36 = arith.addi %35, %21 : tensor<64x8xi32, #blocked> loc(#loc13) + %37 = tt.addptr %22, %36 : tensor<64x8x!tt.ptr, #blocked>, tensor<64x8xi32, #blocked> loc(#loc14) + %38 = tt.broadcast %32 : tensor<1x8xi1, #blocked> -> tensor<64x8xi1, #blocked> loc(#loc15) + %39 = arith.andi %23, %38 : tensor<64x8xi1, #blocked> loc(#loc15) + %40 = tt.load %37, %39, %cst_0 evictionPolicy = evict_first : tensor<64x8x!tt.ptr, #blocked> loc(#loc20) + %41 = arith.extf %40 : tensor<64x8xbf16, #blocked> to tensor<64x8xf32, #blocked> loc(#loc21) + %42 = arith.mulf %41, %41 : tensor<64x8xf32, #blocked> loc(#loc22) + %43 = arith.addf %arg5, %42 : tensor<64x8xf32, #blocked> loc(#loc23) + %44 = arith.select %39, %43, %arg5 : tensor<64x8xi1, #blocked>, tensor<64x8xf32, #blocked> loc(#loc24) + scf.yield %44 : tensor<64x8xf32, #blocked> loc(#loc25) + } loc(#loc16) + %25 = "tt.reduce"(%24) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc27)), %arg5: f32 loc(callsite(#loc1 at #loc27))): + %30 = arith.addf %arg4, %arg5 : f32 loc(#loc36) + tt.reduce.return %30 : f32 loc(#loc33) + }) : (tensor<64x8xf32, #blocked>) -> tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc33) + %26 = ttg.convert_layout %25 : tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked1}>> loc(#loc29) + %27 = tt.expand_dims %26 {axis = 1 : i32} : tensor<64xf32, #ttg.slice<{dim = 1, parent = #blocked1}>> -> tensor<64x1xf32, #blocked1> loc(#loc29) + %28 = tt.splat %arg1 : !tt.ptr -> tensor<64x1x!tt.ptr, #blocked1> loc(#loc30) + %29 = tt.addptr %28, %9 : tensor<64x1x!tt.ptr, #blocked1>, tensor<64x1xi32, #blocked1> loc(#loc30) + tt.store %29, %27, %13 : tensor<64x1x!tt.ptr, #blocked1> loc(#loc31) + tt.return loc(#loc32) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:44) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":23:23) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":24:21) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":25:37) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":27:19) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":28:19) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:52) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:48) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:62) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:57) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:34) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:75) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":31:40) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":32:31) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":33:29) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:41) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:67) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":37:129) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":39:22) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":41:23) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:48) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":42:8) +#loc26 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc28 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":43:28) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:25) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:36) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/qv/cqvcjjyvkklazagqglbdkmxyykwyrvx7kgkvafmg73qpnqbsvjba.py":44:4) +#loc33 = loc(callsite(#loc26 at #loc27)) +#loc35 = loc(callsite(#loc28 at #loc26)) +#loc36 = loc(callsite(#loc35 at #loc27)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/__grp__triton_poi_fused_view_7.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/__grp__triton_poi_fused_view_7.json new file mode 100644 index 0000000000000000000000000000000000000000..56e8c0eb4c937e6daa30ee222ad2a3dcb8036428 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/__grp__triton_poi_fused_view_7.json @@ -0,0 +1 @@ +{"child_paths": {"triton_poi_fused_view_7.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.ttir", "triton_poi_fused_view_7.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.ttgir", "triton_poi_fused_view_7.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.llir", "triton_poi_fused_view_7.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.ptx", "triton_poi_fused_view_7.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.cubin", "triton_poi_fused_view_7.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.cubin new file mode 100644 index 0000000000000000000000000000000000000000..ff29da8773046b90613c5f6ac9cb842c95c982cd Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.json new file mode 100644 index 0000000000000000000000000000000000000000..cf9cbfa03237a18453613bdfa2384a5063fb1b7c --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/UQLCW5AOUDTIFPQ24JL4BYH6X6LMXPPLDGXWOSFLP32O5NFF7XXQ/triton_poi_fused_view_7.json @@ -0,0 +1 @@ +{"hash": "a4162b740ea0e682be1ae257c0e0febf96cbbdeb19af6748ab7ef4eeb4a5fdef", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 8, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 0, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_poi_fused_view_7"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/VGETA23BETNIEXIVGEHBPZZIZWAIGNBXKFDIM3XJZVDJ2ZHNOAEA/triton_red_fused__to_copy_mean_pow_2.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/VGETA23BETNIEXIVGEHBPZZIZWAIGNBXKFDIM3XJZVDJ2ZHNOAEA/triton_red_fused__to_copy_mean_pow_2.ttir new file mode 100644 index 0000000000000000000000000000000000000000..0126deda1e1b852cfd5271827b7ea4690ebddd84 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/VGETA23BETNIEXIVGEHBPZZIZWAIGNBXKFDIM3XJZVDJ2ZHNOAEA/triton_red_fused__to_copy_mean_pow_2.ttir @@ -0,0 +1,100 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":18:0) +#loc1 = loc(unknown) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":43:25) +#loc36 = loc(callsite(#loc1 at #loc29)) +module { + tt.func public @triton_red_fused__to_copy_mean_pow_2(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":18:0), %arg2: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":18:0), %arg3: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<64x4xbf16> loc(#loc1) + %c4_i32 = arith.constant 4 : i32 loc(#loc1) + %c128_i32 = arith.constant 128 : i32 loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %cst_0 = arith.constant dense<7168> : tensor<64x1xi32> loc(#loc1) + %cst_1 = arith.constant dense<128> : tensor<64x1xi32> loc(#loc1) + %cst_2 = arith.constant dense<5120> : tensor<1x4xi32> loc(#loc1) + %cst_3 = arith.constant dense<128> : tensor<1x4xi32> loc(#loc1) + %cst_4 = arith.constant dense<0.000000e+00> : tensor<64x4xf32> loc(#loc1) + %cst_5 = arith.constant dense<8> : tensor<64x1xi32> loc(#loc1) + %c64_i32 = arith.constant 64 : i32 loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.muli %0, %c64_i32 : i32 loc(#loc3) + %2 = tt.make_range {end = 64 : i32, start = 0 : i32} : tensor<64xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 1 : i32} : tensor<64xi32> -> tensor<64x1xi32> loc(#loc5) + %4 = tt.splat %1 : i32 -> tensor<64x1xi32> loc(#loc6) + %5 = arith.addi %4, %3 : tensor<64x1xi32> loc(#loc6) + %6 = tt.splat %arg2 : i32 -> tensor<64x1xi32> loc(#loc7) + %7 = arith.cmpi slt, %5, %6 : tensor<64x1xi32> loc(#loc7) + %8 = tt.make_range {end = 4 : i32, start = 0 : i32} : tensor<4xi32> loc(#loc8) + %9 = tt.expand_dims %8 {axis = 0 : i32} : tensor<4xi32> -> tensor<1x4xi32> loc(#loc9) + %10 = arith.remsi %5, %cst_5 : tensor<64x1xi32> loc(#loc10) + %11 = arith.divsi %5, %cst_5 : tensor<64x1xi32> loc(#loc11) + %12 = scf.for %arg4 = %c0_i32 to %c128_i32 step %c4_i32 iter_args(%arg5 = %cst_4) -> (tensor<64x4xf32>) : i32 { + %17 = tt.splat %arg4 : i32 -> tensor<1x4xi32> loc(#loc13) + %18 = arith.addi %17, %9 : tensor<1x4xi32> loc(#loc13) + %19 = arith.cmpi slt, %18, %cst_3 : tensor<1x4xi32> loc(#loc14) + %20 = arith.addi %18, %cst_2 : tensor<1x4xi32> loc(#loc15) + %21 = arith.muli %10, %cst_1 : tensor<64x1xi32> loc(#loc16) + %22 = tt.broadcast %20 : tensor<1x4xi32> -> tensor<64x4xi32> loc(#loc17) + %23 = tt.broadcast %21 : tensor<64x1xi32> -> tensor<64x4xi32> loc(#loc17) + %24 = arith.addi %22, %23 : tensor<64x4xi32> loc(#loc17) + %25 = arith.muli %11, %cst_0 : tensor<64x1xi32> loc(#loc18) + %26 = tt.broadcast %25 : tensor<64x1xi32> -> tensor<64x4xi32> loc(#loc19) + %27 = arith.addi %24, %26 : tensor<64x4xi32> loc(#loc19) + %28 = tt.splat %arg0 : !tt.ptr -> tensor<64x4x!tt.ptr> loc(#loc20) + %29 = tt.addptr %28, %27 : tensor<64x4x!tt.ptr>, tensor<64x4xi32> loc(#loc20) + %30 = tt.broadcast %7 : tensor<64x1xi1> -> tensor<64x4xi1> loc(#loc21) + %31 = tt.broadcast %19 : tensor<1x4xi1> -> tensor<64x4xi1> loc(#loc21) + %32 = arith.andi %30, %31 : tensor<64x4xi1> loc(#loc21) + %33 = tt.load %29, %32, %cst evictionPolicy = evict_first : tensor<64x4x!tt.ptr> loc(#loc22) + %34 = arith.extf %33 : tensor<64x4xbf16> to tensor<64x4xf32> loc(#loc23) + %35 = arith.mulf %34, %34 : tensor<64x4xf32> loc(#loc24) + %36 = arith.addf %arg5, %35 : tensor<64x4xf32> loc(#loc25) + %37 = arith.select %32, %36, %arg5 : tensor<64x4xi1>, tensor<64x4xf32> loc(#loc26) + scf.yield %37 : tensor<64x4xf32> loc(#loc27) + } loc(#loc12) + %13 = "tt.reduce"(%12) <{axis = 1 : i32}> ({ + ^bb0(%arg4: f32 loc(callsite(#loc1 at #loc29)), %arg5: f32 loc(callsite(#loc1 at #loc29))): + %17 = arith.addf %arg4, %arg5 : f32 loc(#loc38) + tt.reduce.return %17 : f32 loc(#loc35) + }) : (tensor<64x4xf32>) -> tensor<64xf32> loc(#loc35) + %14 = tt.expand_dims %13 {axis = 1 : i32} : tensor<64xf32> -> tensor<64x1xf32> loc(#loc31) + %15 = tt.splat %arg1 : !tt.ptr -> tensor<64x1x!tt.ptr> loc(#loc32) + %16 = tt.addptr %15, %5 : tensor<64x1x!tt.ptr>, tensor<64x1xi32> loc(#loc32) + tt.store %16, %14, %7 : tensor<64x1x!tt.ptr> loc(#loc33) + tt.return loc(#loc34) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":22:33) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":23:36) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":23:44) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":23:23) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":24:21) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":25:27) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":25:37) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":27:19) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":28:19) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":31:40) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":32:31) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":33:29) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:41) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:52) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:48) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:62) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:57) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:34) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:75) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:67) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":37:129) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":39:22) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":41:23) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":42:48) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":42:8) +#loc28 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc30 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":43:28) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":44:25) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":44:36) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/6m/c6md74bo6z3navim6w7x2xbluwkr2h3rmnvoc6wp7jgja6hn3564.py":44:4) +#loc35 = loc(callsite(#loc28 at #loc29)) +#loc37 = loc(callsite(#loc30 at #loc28)) +#loc38 = loc(callsite(#loc37 at #loc29)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/__grp__triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/__grp__triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json new file mode 100644 index 0000000000000000000000000000000000000000..8f171518db7e895e0f550ca3a091a5c98b1f6dcc --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/__grp__triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json @@ -0,0 +1 @@ +{"child_paths": {"triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttir", "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir", "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.llir": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.llir", "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ptx", "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin", "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json": "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json"}} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin new file mode 100644 index 0000000000000000000000000000000000000000..c9b56859a7b1d57645ec2d1516121dfc8f2c8f9e Binary files /dev/null and b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.cubin differ diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json new file mode 100644 index 0000000000000000000000000000000000000000..5e8613f9be641aa1dcbd31eeca8724f4381e9f54 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.json @@ -0,0 +1 @@ +{"hash": "ce4e0ec312476f9c4422ed572d22d966e85d6ca6ea0737b8368fee23207a274b", "target": {"backend": "cuda", "arch": 90, "warp_size": 32}, "num_warps": 16, "num_ctas": 1, "num_stages": 1, "num_buffers_warp_spec": 0, "num_consumer_groups": 0, "reg_dec_producer": 0, "reg_inc_consumer": 0, "maxnreg": null, "cluster_dims": [1, 1, 1], "ptx_version": null, "enable_fp_fusion": true, "launch_cooperative_grid": false, "supported_fp8_dtypes": ["fp8e4b15", "fp8e4nv", "fp8e5"], "deprecated_fp8_dtypes": ["fp8e4b15"], "default_dot_input_precision": "tf32", "allowed_dot_input_precisions": ["tf32", "tf32x3", "ieee"], "max_num_imprecise_acc_default": 1073741824, "extern_libs": [["libdevice", "/home/x/hfenv/lib/python3.12/site-packages/triton/backends/nvidia/lib/libdevice.10.bc"]], "debug": true, "backend_name": "cuda", "sanitize_overflow": false, "arch": "sm90", "triton_version": "3.3.1", "shared": 64, "tmem_size": 0, "global_scratch_size": 0, "global_scratch_align": 1, "name": "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2"} \ No newline at end of file diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.llir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.llir new file mode 100644 index 0000000000000000000000000000000000000000..46bc99b6c28c6060197fa9a0bfa597ffeb88cd78 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.llir @@ -0,0 +1,456 @@ +; ModuleID = 'LLVMDialectModule' +source_filename = "LLVMDialectModule" +target datalayout = "e-p3:32:32-p4:32:32-p5:32:32-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64" + +@global_smem = external addrspace(3) global [0 x i8], align 16 +@.str = private unnamed_addr constant [11 x i8] c"__CUDA_FTZ\00", align 1 + +define ptx_kernel void @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2(ptr addrspace(1) %0, ptr addrspace(1) %1, ptr addrspace(1) %2, ptr addrspace(1) %3, i32 %4, i32 %5, ptr addrspace(1) readnone captures(none) %6) local_unnamed_addr !dbg !6 { + %8 = tail call i32 @llvm.nvvm.read.ptx.sreg.ctaid.x(), !dbg !9 + %.fr5 = freeze i32 %4, !dbg !10 + %9 = icmp slt i32 %8, %.fr5, !dbg !10 + %10 = tail call i32 @llvm.nvvm.read.ptx.sreg.tid.x(), !dbg !11 + %11 = and i32 %10, 31, !dbg !11 + %12 = lshr i32 %10, 5, !dbg !11 + %13 = shl i32 %10, 1, !dbg !11 + %14 = and i32 %13, 1022, !dbg !11 + %15 = mul i32 %8, 5120, !dbg !12 + %16 = or disjoint i32 %14, %15 + %17 = sext i32 %16 to i64, !dbg !13 + %18 = getelementptr bfloat, ptr addrspace(1) %0, i64 %17, !dbg !13 + br i1 %9, label %.split.us.preheader, label %.split.preheader + +.split.preheader: ; preds = %7 + %19 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %18, i1 false) #5, !dbg !14 + %20 = getelementptr bfloat, ptr addrspace(1) %1, i64 %17, !dbg !15 + %21 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %20, i1 false) #5, !dbg !16 + %22 = getelementptr bfloat, ptr addrspace(1) %2, i64 %17, !dbg !17 + %23 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %22, i1 false) #5, !dbg !18 + %24 = add i32 %16, 1024, !dbg !19 + %25 = sext i32 %24 to i64, !dbg !13 + %26 = getelementptr bfloat, ptr addrspace(1) %0, i64 %25, !dbg !13 + %27 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %26, i1 false) #5, !dbg !14 + %28 = getelementptr bfloat, ptr addrspace(1) %1, i64 %25, !dbg !15 + %29 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %28, i1 false) #5, !dbg !16 + %30 = getelementptr bfloat, ptr addrspace(1) %2, i64 %25, !dbg !17 + %31 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %30, i1 false) #5, !dbg !18 + %32 = add i32 %16, 2048, !dbg !19 + %33 = sext i32 %32 to i64, !dbg !13 + %34 = getelementptr bfloat, ptr addrspace(1) %0, i64 %33, !dbg !13 + %35 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %34, i1 false) #5, !dbg !14 + %36 = getelementptr bfloat, ptr addrspace(1) %1, i64 %33, !dbg !15 + %37 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %36, i1 false) #5, !dbg !16 + %38 = getelementptr bfloat, ptr addrspace(1) %2, i64 %33, !dbg !17 + %39 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %38, i1 false) #5, !dbg !18 + %40 = add i32 %16, 3072, !dbg !19 + %41 = sext i32 %40 to i64, !dbg !13 + %42 = getelementptr bfloat, ptr addrspace(1) %0, i64 %41, !dbg !13 + %43 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %42, i1 false) #5, !dbg !14 + %44 = getelementptr bfloat, ptr addrspace(1) %1, i64 %41, !dbg !15 + %45 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %44, i1 false) #5, !dbg !16 + %46 = getelementptr bfloat, ptr addrspace(1) %2, i64 %41, !dbg !17 + %47 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %46, i1 false) #5, !dbg !18 + %48 = add i32 %16, 4096, !dbg !19 + %49 = sext i32 %48 to i64, !dbg !13 + %50 = getelementptr bfloat, ptr addrspace(1) %0, i64 %49, !dbg !13 + %51 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %50, i1 false) #5, !dbg !14 + %52 = getelementptr bfloat, ptr addrspace(1) %1, i64 %49, !dbg !15 + %53 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %52, i1 false) #5, !dbg !16 + %54 = getelementptr bfloat, ptr addrspace(1) %2, i64 %49, !dbg !17 + %55 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %54, i1 false) #5, !dbg !18 + br label %__nv_rsqrtf.exit, !dbg !20 + +.split.us.preheader: ; preds = %7 + %56 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %18, i1 true) #5, !dbg !14 + %57 = bitcast i32 %56 to <2 x bfloat>, !dbg !14 + %58 = getelementptr bfloat, ptr addrspace(1) %1, i64 %17, !dbg !15 + %59 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %58, i1 true) #5, !dbg !16 + %60 = bitcast i32 %59 to <2 x bfloat>, !dbg !16 + %61 = getelementptr bfloat, ptr addrspace(1) %2, i64 %17, !dbg !17 + %62 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %61, i1 true) #5, !dbg !18 + %63 = bitcast i32 %62 to <2 x bfloat>, !dbg !18 + %64 = add i32 %16, 1024, !dbg !19 + %65 = sext i32 %64 to i64, !dbg !13 + %66 = getelementptr bfloat, ptr addrspace(1) %0, i64 %65, !dbg !13 + %67 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %66, i1 true) #5, !dbg !14 + %68 = bitcast i32 %67 to <2 x bfloat>, !dbg !14 + %69 = getelementptr bfloat, ptr addrspace(1) %1, i64 %65, !dbg !15 + %70 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %69, i1 true) #5, !dbg !16 + %71 = bitcast i32 %70 to <2 x bfloat>, !dbg !16 + %72 = getelementptr bfloat, ptr addrspace(1) %2, i64 %65, !dbg !17 + %73 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %72, i1 true) #5, !dbg !18 + %74 = bitcast i32 %73 to <2 x bfloat>, !dbg !18 + %75 = add i32 %16, 2048, !dbg !19 + %76 = sext i32 %75 to i64, !dbg !13 + %77 = getelementptr bfloat, ptr addrspace(1) %0, i64 %76, !dbg !13 + %78 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %77, i1 true) #5, !dbg !14 + %79 = bitcast i32 %78 to <2 x bfloat>, !dbg !14 + %80 = getelementptr bfloat, ptr addrspace(1) %1, i64 %76, !dbg !15 + %81 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %80, i1 true) #5, !dbg !16 + %82 = bitcast i32 %81 to <2 x bfloat>, !dbg !16 + %83 = getelementptr bfloat, ptr addrspace(1) %2, i64 %76, !dbg !17 + %84 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %83, i1 true) #5, !dbg !18 + %85 = bitcast i32 %84 to <2 x bfloat>, !dbg !18 + %86 = add i32 %16, 3072, !dbg !19 + %87 = sext i32 %86 to i64, !dbg !13 + %88 = getelementptr bfloat, ptr addrspace(1) %0, i64 %87, !dbg !13 + %89 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %88, i1 true) #5, !dbg !14 + %90 = bitcast i32 %89 to <2 x bfloat>, !dbg !14 + %91 = getelementptr bfloat, ptr addrspace(1) %1, i64 %87, !dbg !15 + %92 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %91, i1 true) #5, !dbg !16 + %93 = bitcast i32 %92 to <2 x bfloat>, !dbg !16 + %94 = getelementptr bfloat, ptr addrspace(1) %2, i64 %87, !dbg !17 + %95 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %94, i1 true) #5, !dbg !18 + %96 = bitcast i32 %95 to <2 x bfloat>, !dbg !18 + %97 = add i32 %16, 4096, !dbg !19 + %98 = sext i32 %97 to i64, !dbg !13 + %99 = getelementptr bfloat, ptr addrspace(1) %0, i64 %98, !dbg !13 + %100 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %99, i1 true) #5, !dbg !14 + %101 = bitcast i32 %100 to <2 x bfloat>, !dbg !14 + %102 = getelementptr bfloat, ptr addrspace(1) %1, i64 %98, !dbg !15 + %103 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %102, i1 true) #5, !dbg !16 + %104 = bitcast i32 %103 to <2 x bfloat>, !dbg !16 + %105 = getelementptr bfloat, ptr addrspace(1) %2, i64 %98, !dbg !17 + %106 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %105, i1 true) #5, !dbg !18 + %107 = bitcast i32 %106 to <2 x bfloat>, !dbg !18 + %108 = fpext <2 x bfloat> %57 to <2 x float>, !dbg !24 + %109 = fpext <2 x bfloat> %60 to <2 x float>, !dbg !25 + %110 = fpext <2 x bfloat> %63 to <2 x float>, !dbg !26 + %111 = fadd <2 x float> %109, %110, !dbg !27 + %112 = fadd <2 x float> %111, %108, !dbg !28 + %113 = fmul <2 x float> %112, %112, !dbg !29 + %114 = fpext <2 x bfloat> %68 to <2 x float>, !dbg !24 + %115 = fpext <2 x bfloat> %71 to <2 x float>, !dbg !25 + %116 = fpext <2 x bfloat> %74 to <2 x float>, !dbg !26 + %117 = fadd <2 x float> %115, %116, !dbg !27 + %118 = fadd <2 x float> %117, %114, !dbg !28 + %119 = fmul <2 x float> %118, %118, !dbg !29 + %120 = fadd <2 x float> %113, %119, !dbg !30 + %121 = fpext <2 x bfloat> %79 to <2 x float>, !dbg !24 + %122 = fpext <2 x bfloat> %82 to <2 x float>, !dbg !25 + %123 = fpext <2 x bfloat> %85 to <2 x float>, !dbg !26 + %124 = fadd <2 x float> %122, %123, !dbg !27 + %125 = fadd <2 x float> %124, %121, !dbg !28 + %126 = fmul <2 x float> %125, %125, !dbg !29 + %127 = fadd <2 x float> %120, %126, !dbg !30 + %128 = fpext <2 x bfloat> %90 to <2 x float>, !dbg !24 + %129 = fpext <2 x bfloat> %93 to <2 x float>, !dbg !25 + %130 = fpext <2 x bfloat> %96 to <2 x float>, !dbg !26 + %131 = fadd <2 x float> %129, %130, !dbg !27 + %132 = fadd <2 x float> %131, %128, !dbg !28 + %133 = fmul <2 x float> %132, %132, !dbg !29 + %134 = fadd <2 x float> %127, %133, !dbg !30 + %135 = fpext <2 x bfloat> %101 to <2 x float>, !dbg !24 + %136 = fpext <2 x bfloat> %104 to <2 x float>, !dbg !25 + %137 = fpext <2 x bfloat> %107 to <2 x float>, !dbg !26 + %138 = fadd <2 x float> %136, %137, !dbg !27 + %139 = fadd <2 x float> %138, %135, !dbg !28 + %140 = fmul <2 x float> %139, %139, !dbg !29 + %141 = fadd <2 x float> %134, %140, !dbg !30 + %shift = shufflevector <2 x float> %141, <2 x float> poison, <2 x i32> , !dbg !20 + %142 = fadd <2 x float> %141, %shift, !dbg !20 + %143 = extractelement <2 x float> %142, i64 0, !dbg !20 + br label %__nv_rsqrtf.exit, !dbg !20 + +__nv_rsqrtf.exit: ; preds = %.split.preheader, %.split.us.preheader + %144 = phi float [ %143, %.split.us.preheader ], [ 0.000000e+00, %.split.preheader ], !dbg !31 + %145 = bitcast float %144 to i32, !dbg !20 + %146 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %145, i32 16, i32 31), !dbg !20 + %147 = bitcast i32 %146 to float, !dbg !20 + %148 = fadd float %144, %147, !dbg !31 + %149 = bitcast float %148 to i32, !dbg !20 + %150 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %149, i32 8, i32 31), !dbg !20 + %151 = bitcast i32 %150 to float, !dbg !20 + %152 = fadd float %148, %151, !dbg !31 + %153 = bitcast float %152 to i32, !dbg !20 + %154 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %153, i32 4, i32 31), !dbg !20 + %155 = bitcast i32 %154 to float, !dbg !20 + %156 = fadd float %152, %155, !dbg !31 + %157 = bitcast float %156 to i32, !dbg !20 + %158 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %157, i32 2, i32 31), !dbg !20 + %159 = bitcast i32 %158 to float, !dbg !20 + %160 = fadd float %156, %159, !dbg !31 + %161 = bitcast float %160 to i32, !dbg !20 + %162 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %161, i32 1, i32 31), !dbg !20 + %163 = bitcast i32 %162 to float, !dbg !20 + %164 = fadd float %160, %163, !dbg !31 + %165 = and i32 %12, 15, !dbg !20 + %166 = icmp eq i32 %11, 0, !dbg !20 + %167 = getelementptr float, ptr addrspace(3) @global_smem, i32 %165, !dbg !20 + %168 = bitcast float %164 to <1 x i32>, !dbg !20 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %167, <1 x i32> %168, i1 %166) #5, !dbg !20 + tail call void @llvm.nvvm.barrier0(), !dbg !20 + %169 = icmp slt i32 %10, 16, !dbg !20 + %170 = getelementptr float, ptr addrspace(3) @global_smem, i32 %10, !dbg !20 + %171 = tail call i32 asm sideeffect "@$2 ld.shared.b32 $0, [ $1 + 0 ];", "=r,r,b"(ptr addrspace(3) %170, i1 %169) #5, !dbg !20 + %172 = bitcast i32 %171 to float, !dbg !20 + %173 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %171, i32 8, i32 31), !dbg !20 + %174 = bitcast i32 %173 to float, !dbg !20 + %175 = fadd float %172, %174, !dbg !31 + %176 = bitcast float %175 to i32, !dbg !20 + %177 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %176, i32 4, i32 31), !dbg !20 + %178 = bitcast i32 %177 to float, !dbg !20 + %179 = fadd float %175, %178, !dbg !31 + %180 = bitcast float %179 to i32, !dbg !20 + %181 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %180, i32 2, i32 31), !dbg !20 + %182 = bitcast i32 %181 to float, !dbg !20 + %183 = fadd float %179, %182, !dbg !31 + %184 = bitcast float %183 to i32, !dbg !20 + %185 = tail call i32 @llvm.nvvm.shfl.sync.bfly.i32(i32 -1, i32 %184, i32 1, i32 31), !dbg !20 + %186 = bitcast i32 %185 to float, !dbg !20 + %187 = fadd float %183, %186, !dbg !31 + %188 = and i32 %10, 15, !dbg !20 + %189 = icmp eq i32 %188, 0, !dbg !20 + %190 = and i1 %169, %189, !dbg !20 + %191 = bitcast float %187 to <1 x i32>, !dbg !20 + tail call void asm sideeffect "@$2 st.shared.b32 [ $0 + 0 ], $1;", "r,r,b"(ptr addrspace(3) %170, <1 x i32> %191, i1 %190) #5, !dbg !20 + tail call void @llvm.nvvm.barrier0(), !dbg !20 + %192 = load float, ptr addrspace(3) @global_smem, align 16, !dbg !20 + %193 = tail call float @llvm.nvvm.div.full(float %192, float 5.120000e+03), !dbg !33 + %194 = fadd float %193, 0x3EB0C6F7A0000000, !dbg !34 + %195 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !35 + %196 = tail call i32 @__nvvm_reflect(ptr nonnull @.str) #5, !dbg !35 + %.not.i2 = icmp eq i32 %196, 0, !dbg !35 + br i1 %.not.i2, label %199, label %197, !dbg !35 + +197: ; preds = %__nv_rsqrtf.exit + %198 = tail call float @llvm.nvvm.rsqrt.approx.ftz.f(float %194), !dbg !35 + br label %__nv_rsqrtf.exit4, !dbg !35 + +199: ; preds = %__nv_rsqrtf.exit + %200 = tail call float @llvm.nvvm.rsqrt.approx.f(float %194), !dbg !35 + br label %__nv_rsqrtf.exit4, !dbg !35 + +__nv_rsqrtf.exit4: ; preds = %199, %197 + %.0.i3 = phi float [ %198, %197 ], [ %200, %199 ], !dbg !35 + %201 = insertelement <2 x float> poison, float %.0.i3, i64 0, !dbg !36 + %202 = shufflevector <2 x float> %201, <2 x float> poison, <2 x i32> zeroinitializer, !dbg !36 + %203 = zext nneg i32 %14 to i64, !dbg !37 + %204 = or disjoint i32 %15, %14, !dbg !38 + %205 = sext i32 %204 to i64, !dbg !39 + %206 = getelementptr bfloat, ptr addrspace(1) %0, i64 %205, !dbg !39 + %207 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %206, i1 %9) #5, !dbg !40 + %208 = bitcast i32 %207 to <2 x bfloat>, !dbg !40 + %209 = getelementptr bfloat, ptr addrspace(1) %1, i64 %205, !dbg !41 + %210 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %209, i1 %9) #5, !dbg !42 + %211 = bitcast i32 %210 to <2 x bfloat>, !dbg !42 + %212 = getelementptr bfloat, ptr addrspace(1) %2, i64 %205, !dbg !43 + %213 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %212, i1 %9) #5, !dbg !44 + %214 = bitcast i32 %213 to <2 x bfloat>, !dbg !44 + %215 = getelementptr bfloat, ptr addrspace(1) %3, i64 %203, !dbg !45 + %216 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %215, i1 true) #5, !dbg !46 + %217 = bitcast i32 %216 to <2 x bfloat>, !dbg !46 + %218 = fpext <2 x bfloat> %208 to <2 x float>, !dbg !47 + %219 = fpext <2 x bfloat> %211 to <2 x float>, !dbg !48 + %220 = fpext <2 x bfloat> %214 to <2 x float>, !dbg !49 + %221 = fpext <2 x bfloat> %217 to <2 x float>, !dbg !50 + %222 = fadd <2 x float> %219, %220, !dbg !51 + %223 = fadd <2 x float> %222, %218, !dbg !52 + %224 = fmul <2 x float> %202, %223, !dbg !36 + %225 = fmul <2 x float> %224, %221, !dbg !53 + %226 = fptrunc <2 x float> %225 to <2 x bfloat>, !dbg !54 + %227 = bitcast <2 x bfloat> %226 to i32, !dbg !54 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %227, ptr addrspace(1) %206, i1 %9) #5, !dbg !54 + %228 = or disjoint i64 %203, 1024, !dbg !55 + %229 = trunc nuw nsw i64 %228 to i32, !dbg !38 + %230 = add i32 %15, %229, !dbg !38 + %231 = sext i32 %230 to i64, !dbg !39 + %232 = getelementptr bfloat, ptr addrspace(1) %0, i64 %231, !dbg !39 + %233 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %232, i1 %9) #5, !dbg !40 + %234 = bitcast i32 %233 to <2 x bfloat>, !dbg !40 + %235 = getelementptr bfloat, ptr addrspace(1) %1, i64 %231, !dbg !41 + %236 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %235, i1 %9) #5, !dbg !42 + %237 = bitcast i32 %236 to <2 x bfloat>, !dbg !42 + %238 = getelementptr bfloat, ptr addrspace(1) %2, i64 %231, !dbg !43 + %239 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %238, i1 %9) #5, !dbg !44 + %240 = bitcast i32 %239 to <2 x bfloat>, !dbg !44 + %241 = getelementptr bfloat, ptr addrspace(1) %3, i64 %228, !dbg !45 + %242 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %241, i1 true) #5, !dbg !46 + %243 = bitcast i32 %242 to <2 x bfloat>, !dbg !46 + %244 = fpext <2 x bfloat> %234 to <2 x float>, !dbg !47 + %245 = fpext <2 x bfloat> %237 to <2 x float>, !dbg !48 + %246 = fpext <2 x bfloat> %240 to <2 x float>, !dbg !49 + %247 = fpext <2 x bfloat> %243 to <2 x float>, !dbg !50 + %248 = fadd <2 x float> %245, %246, !dbg !51 + %249 = fadd <2 x float> %248, %244, !dbg !52 + %250 = fmul <2 x float> %202, %249, !dbg !36 + %251 = fmul <2 x float> %250, %247, !dbg !53 + %252 = fptrunc <2 x float> %251 to <2 x bfloat>, !dbg !54 + %253 = bitcast <2 x bfloat> %252 to i32, !dbg !54 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %253, ptr addrspace(1) %232, i1 %9) #5, !dbg !54 + %254 = or disjoint i64 %203, 2048, !dbg !55 + %255 = trunc nuw nsw i64 %254 to i32, !dbg !38 + %256 = add i32 %15, %255, !dbg !38 + %257 = sext i32 %256 to i64, !dbg !39 + %258 = getelementptr bfloat, ptr addrspace(1) %0, i64 %257, !dbg !39 + %259 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %258, i1 %9) #5, !dbg !40 + %260 = bitcast i32 %259 to <2 x bfloat>, !dbg !40 + %261 = getelementptr bfloat, ptr addrspace(1) %1, i64 %257, !dbg !41 + %262 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %261, i1 %9) #5, !dbg !42 + %263 = bitcast i32 %262 to <2 x bfloat>, !dbg !42 + %264 = getelementptr bfloat, ptr addrspace(1) %2, i64 %257, !dbg !43 + %265 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %264, i1 %9) #5, !dbg !44 + %266 = bitcast i32 %265 to <2 x bfloat>, !dbg !44 + %267 = getelementptr bfloat, ptr addrspace(1) %3, i64 %254, !dbg !45 + %268 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %267, i1 true) #5, !dbg !46 + %269 = bitcast i32 %268 to <2 x bfloat>, !dbg !46 + %270 = fpext <2 x bfloat> %260 to <2 x float>, !dbg !47 + %271 = fpext <2 x bfloat> %263 to <2 x float>, !dbg !48 + %272 = fpext <2 x bfloat> %266 to <2 x float>, !dbg !49 + %273 = fpext <2 x bfloat> %269 to <2 x float>, !dbg !50 + %274 = fadd <2 x float> %271, %272, !dbg !51 + %275 = fadd <2 x float> %274, %270, !dbg !52 + %276 = fmul <2 x float> %202, %275, !dbg !36 + %277 = fmul <2 x float> %276, %273, !dbg !53 + %278 = fptrunc <2 x float> %277 to <2 x bfloat>, !dbg !54 + %279 = bitcast <2 x bfloat> %278 to i32, !dbg !54 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %279, ptr addrspace(1) %258, i1 %9) #5, !dbg !54 + %280 = or disjoint i64 %203, 3072, !dbg !55 + %281 = trunc nuw nsw i64 %280 to i32, !dbg !38 + %282 = add i32 %15, %281, !dbg !38 + %283 = sext i32 %282 to i64, !dbg !39 + %284 = getelementptr bfloat, ptr addrspace(1) %0, i64 %283, !dbg !39 + %285 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %284, i1 %9) #5, !dbg !40 + %286 = bitcast i32 %285 to <2 x bfloat>, !dbg !40 + %287 = getelementptr bfloat, ptr addrspace(1) %1, i64 %283, !dbg !41 + %288 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %287, i1 %9) #5, !dbg !42 + %289 = bitcast i32 %288 to <2 x bfloat>, !dbg !42 + %290 = getelementptr bfloat, ptr addrspace(1) %2, i64 %283, !dbg !43 + %291 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %290, i1 %9) #5, !dbg !44 + %292 = bitcast i32 %291 to <2 x bfloat>, !dbg !44 + %293 = getelementptr bfloat, ptr addrspace(1) %3, i64 %280, !dbg !45 + %294 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %293, i1 true) #5, !dbg !46 + %295 = bitcast i32 %294 to <2 x bfloat>, !dbg !46 + %296 = fpext <2 x bfloat> %286 to <2 x float>, !dbg !47 + %297 = fpext <2 x bfloat> %289 to <2 x float>, !dbg !48 + %298 = fpext <2 x bfloat> %292 to <2 x float>, !dbg !49 + %299 = fpext <2 x bfloat> %295 to <2 x float>, !dbg !50 + %300 = fadd <2 x float> %297, %298, !dbg !51 + %301 = fadd <2 x float> %300, %296, !dbg !52 + %302 = fmul <2 x float> %202, %301, !dbg !36 + %303 = fmul <2 x float> %302, %299, !dbg !53 + %304 = fptrunc <2 x float> %303 to <2 x bfloat>, !dbg !54 + %305 = bitcast <2 x bfloat> %304 to i32, !dbg !54 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %305, ptr addrspace(1) %284, i1 %9) #5, !dbg !54 + %306 = or disjoint i64 %203, 4096, !dbg !55 + %307 = trunc nuw nsw i64 %306 to i32, !dbg !38 + %308 = add i32 %15, %307, !dbg !38 + %309 = sext i32 %308 to i64, !dbg !39 + %310 = getelementptr bfloat, ptr addrspace(1) %0, i64 %309, !dbg !39 + %311 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %310, i1 %9) #5, !dbg !40 + %312 = bitcast i32 %311 to <2 x bfloat>, !dbg !40 + %313 = getelementptr bfloat, ptr addrspace(1) %1, i64 %309, !dbg !41 + %314 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %313, i1 %9) #5, !dbg !42 + %315 = bitcast i32 %314 to <2 x bfloat>, !dbg !42 + %316 = getelementptr bfloat, ptr addrspace(1) %2, i64 %309, !dbg !43 + %317 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_first.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %316, i1 %9) #5, !dbg !44 + %318 = bitcast i32 %317 to <2 x bfloat>, !dbg !44 + %319 = getelementptr bfloat, ptr addrspace(1) %3, i64 %306, !dbg !45 + %320 = tail call i32 asm sideeffect "mov.u32 $0, $1;\0A\09@$3 ld.global.L1::evict_last.b32 { $0 }, [ $2 + 0 ];", "=r,r,l,b"(i32 0, ptr addrspace(1) %319, i1 true) #5, !dbg !46 + %321 = bitcast i32 %320 to <2 x bfloat>, !dbg !46 + %322 = fpext <2 x bfloat> %312 to <2 x float>, !dbg !47 + %323 = fpext <2 x bfloat> %315 to <2 x float>, !dbg !48 + %324 = fpext <2 x bfloat> %318 to <2 x float>, !dbg !49 + %325 = fpext <2 x bfloat> %321 to <2 x float>, !dbg !50 + %326 = fadd <2 x float> %323, %324, !dbg !51 + %327 = fadd <2 x float> %326, %322, !dbg !52 + %328 = fmul <2 x float> %202, %327, !dbg !36 + %329 = fmul <2 x float> %328, %325, !dbg !53 + %330 = fptrunc <2 x float> %329 to <2 x bfloat>, !dbg !54 + %331 = bitcast <2 x bfloat> %330 to i32, !dbg !54 + tail call void asm sideeffect "@$2 st.global.b32 [ $1 + 0 ], { $0 };", "r,l,b"(i32 %331, ptr addrspace(1) %310, i1 %9) #5, !dbg !54 + ret void, !dbg !56 +} + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.ctaid.x() #0 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) +declare noundef i32 @llvm.nvvm.read.ptx.sreg.tid.x() #0 + +; Function Attrs: convergent nocallback nounwind memory(inaccessiblemem: readwrite) +declare i32 @llvm.nvvm.shfl.sync.bfly.i32(i32, i32, i32, i32) #1 + +; Function Attrs: convergent nocallback nounwind +declare void @llvm.nvvm.barrier0() #2 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.div.full(float, float) #3 + +declare i32 @__nvvm_reflect(ptr) local_unnamed_addr #4 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.ftz.f(float) #3 + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare float @llvm.nvvm.rsqrt.approx.f(float) #3 + +attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) } +attributes #1 = { convergent nocallback nounwind memory(inaccessiblemem: readwrite) } +attributes #2 = { convergent nocallback nounwind } +attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) } +attributes #4 = { "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #5 = { nounwind } + +!llvm.module.flags = !{!0, !1} +!llvm.dbg.cu = !{!2} +!nvvm.annotations = !{!4} +!llvm.ident = !{!5} + +!0 = !{i32 2, !"Debug Info Version", i32 3} +!1 = !{i32 4, !"nvvm-reflect-ftz", i32 1} +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "triton", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) +!3 = !DIFile(filename: "csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py", directory: "/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv") +!4 = !{ptr @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2, !"reqntidx", i32 512} +!5 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"} +!6 = distinct !DISubprogram(name: "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2", linkageName: "triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2", scope: !3, file: !3, line: 18, type: !7, scopeLine: 18, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2) +!7 = !DISubroutineType(cc: DW_CC_normal, types: !8) +!8 = !{} +!9 = !DILocation(line: 22, column: 28, scope: !6) +!10 = !DILocation(line: 24, column: 21, scope: !6) +!11 = !DILocation(line: 25, column: 37, scope: !6) +!12 = !DILocation(line: 35, column: 50, scope: !6) +!13 = !DILocation(line: 35, column: 38, scope: !6) +!14 = !DILocation(line: 35, column: 55, scope: !6) +!15 = !DILocation(line: 36, column: 34, scope: !6) +!16 = !DILocation(line: 36, column: 51, scope: !6) +!17 = !DILocation(line: 37, column: 34, scope: !6) +!18 = !DILocation(line: 37, column: 51, scope: !6) +!19 = !DILocation(line: 35, column: 45, scope: !6) +!20 = !DILocation(line: 286, column: 36, scope: !21, inlinedAt: !23) +!21 = distinct !DILexicalBlockFile(scope: !6, file: !22, discriminator: 0) +!22 = !DIFile(filename: "standard.py", directory: "/home/x/hfenv/lib/python3.12/site-packages/triton/language") +!23 = !DILocation(line: 47, column: 27, scope: !6) +!24 = !DILocation(line: 35, column: 116, scope: !6) +!25 = !DILocation(line: 36, column: 112, scope: !6) +!26 = !DILocation(line: 37, column: 112, scope: !6) +!27 = !DILocation(line: 41, column: 22, scope: !6) +!28 = !DILocation(line: 42, column: 22, scope: !6) +!29 = !DILocation(line: 43, column: 22, scope: !6) +!30 = !DILocation(line: 45, column: 25, scope: !6) +!31 = !DILocation(line: 256, column: 15, scope: !32, inlinedAt: !23) +!32 = distinct !DILexicalBlockFile(scope: !21, file: !22, discriminator: 0) +!33 = !DILocation(line: 64, column: 25, scope: !6) +!34 = !DILocation(line: 66, column: 24, scope: !6) +!35 = !DILocation(line: 67, column: 32, scope: !6) +!36 = !DILocation(line: 68, column: 24, scope: !6) +!37 = !DILocation(line: 48, column: 40, scope: !6) +!38 = !DILocation(line: 54, column: 46, scope: !6) +!39 = !DILocation(line: 54, column: 39, scope: !6) +!40 = !DILocation(line: 54, column: 56, scope: !6) +!41 = !DILocation(line: 55, column: 35, scope: !6) +!42 = !DILocation(line: 55, column: 52, scope: !6) +!43 = !DILocation(line: 56, column: 35, scope: !6) +!44 = !DILocation(line: 56, column: 52, scope: !6) +!45 = !DILocation(line: 57, column: 35, scope: !6) +!46 = !DILocation(line: 57, column: 42, scope: !6) +!47 = !DILocation(line: 54, column: 118, scope: !6) +!48 = !DILocation(line: 55, column: 114, scope: !6) +!49 = !DILocation(line: 56, column: 114, scope: !6) +!50 = !DILocation(line: 57, column: 95, scope: !6) +!51 = !DILocation(line: 61, column: 24, scope: !6) +!52 = !DILocation(line: 62, column: 24, scope: !6) +!53 = !DILocation(line: 70, column: 24, scope: !6) +!54 = !DILocation(line: 71, column: 56, scope: !6) +!55 = !DILocation(line: 49, column: 31, scope: !6) +!56 = !DILocation(line: 48, column: 4, scope: !6) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir new file mode 100644 index 0000000000000000000000000000000000000000..6bb07bf1f2678e2a4dbcb441b92e4bc773ff8e57 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttgir @@ -0,0 +1,144 @@ +#blocked = #ttg.blocked<{sizePerThread = [1, 2], threadsPerWarp = [1, 32], warpsPerCTA = [1, 16], order = [1, 0]}> +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0) +#loc1 = loc(unknown) +#loc27 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":47:27) +#loc59 = loc(callsite(#loc1 at #loc27)) +module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 16 : i32, ttg.target = "cuda:90", "ttg.threads-per-warp" = 32 : i32} { + tt.func public @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg4: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg5: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<1x1024xf32, #blocked> loc(#loc1) + %cst_0 = arith.constant dense<5.120000e+03> : tensor<1x1xf32, #blocked> loc(#loc1) + %cst_1 = arith.constant dense<9.99999997E-7> : tensor<1x1xf32, #blocked> loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %c5120_i32 = arith.constant 5120 : i32 loc(#loc1) + %c1024_i32 = arith.constant 1024 : i32 loc(#loc1) + %cst_2 = arith.constant dense<0.000000e+00> : tensor<1x1024xbf16, #blocked> loc(#loc1) + %cst_3 = arith.constant dense<5120> : tensor<1x1024xi32, #blocked> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.cmpi slt, %0, %arg4 : i32 loc(#loc3) + %2 = tt.make_range {end = 1024 : i32, start = 0 : i32} : tensor<1024xi32, #ttg.slice<{dim = 0, parent = #blocked}>> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 0 : i32} : tensor<1024xi32, #ttg.slice<{dim = 0, parent = #blocked}>> -> tensor<1x1024xi32, #blocked> loc(#loc4) + %4 = arith.muli %0, %c5120_i32 : i32 loc(#loc5) + %5 = tt.splat %4 : i32 -> tensor<1x1024xi32, #blocked> loc(#loc56) + %6 = tt.splat %arg0 : !tt.ptr -> tensor<1x1024x!tt.ptr, #blocked> loc(#loc7) + %7 = tt.splat %1 : i1 -> tensor<1x1024xi1, #blocked> loc(#loc57) + %8 = tt.splat %arg1 : !tt.ptr -> tensor<1x1024x!tt.ptr, #blocked> loc(#loc9) + %9 = tt.splat %arg2 : !tt.ptr -> tensor<1x1024x!tt.ptr, #blocked> loc(#loc10) + %10 = scf.for %arg6 = %c0_i32 to %c5120_i32 step %c1024_i32 iter_args(%arg7 = %cst) -> (tensor<1x1024xf32, #blocked>) : i32 { + %18 = tt.splat %arg6 : i32 -> tensor<1x1024xi32, #blocked> loc(#loc12) + %19 = arith.addi %18, %3 : tensor<1x1024xi32, #blocked> loc(#loc12) + %20 = arith.cmpi slt, %19, %cst_3 : tensor<1x1024xi32, #blocked> loc(#loc13) + %21 = arith.addi %19, %5 : tensor<1x1024xi32, #blocked> loc(#loc6) + %22 = tt.addptr %6, %21 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc7) + %23 = arith.andi %7, %20 : tensor<1x1024xi1, #blocked> loc(#loc8) + %24 = tt.load %22, %23, %cst_2 evictionPolicy = evict_last : tensor<1x1024x!tt.ptr, #blocked> loc(#loc14) + %25 = arith.extf %24 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc15) + %26 = tt.addptr %8, %21 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc9) + %27 = tt.load %26, %23, %cst_2 evictionPolicy = evict_last : tensor<1x1024x!tt.ptr, #blocked> loc(#loc16) + %28 = arith.extf %27 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc17) + %29 = tt.addptr %9, %21 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc10) + %30 = tt.load %29, %23, %cst_2 evictionPolicy = evict_last : tensor<1x1024x!tt.ptr, #blocked> loc(#loc18) + %31 = arith.extf %30 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc19) + %32 = arith.addf %28, %31 : tensor<1x1024xf32, #blocked> loc(#loc20) + %33 = arith.addf %25, %32 : tensor<1x1024xf32, #blocked> loc(#loc21) + %34 = arith.mulf %33, %33 : tensor<1x1024xf32, #blocked> loc(#loc22) + %35 = arith.addf %arg7, %34 : tensor<1x1024xf32, #blocked> loc(#loc23) + %36 = arith.select %23, %35, %arg7 : tensor<1x1024xi1, #blocked>, tensor<1x1024xf32, #blocked> loc(#loc24) + scf.yield %36 : tensor<1x1024xf32, #blocked> loc(#loc25) + } loc(#loc11) + %11 = "tt.reduce"(%10) <{axis = 1 : i32}> ({ + ^bb0(%arg6: f32 loc(callsite(#loc1 at #loc27)), %arg7: f32 loc(callsite(#loc1 at #loc27))): + %18 = arith.addf %arg6, %arg7 : f32 loc(#loc61) + tt.reduce.return %18 : f32 loc(#loc58) + }) : (tensor<1x1024xf32, #blocked>) -> tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked}>> loc(#loc58) + %12 = tt.expand_dims %11 {axis = 1 : i32} : tensor<1xf32, #ttg.slice<{dim = 1, parent = #blocked}>> -> tensor<1x1xf32, #blocked> loc(#loc29) + %13 = tt.splat %arg3 : !tt.ptr -> tensor<1x1024x!tt.ptr, #blocked> loc(#loc30) + %14 = arith.divf %12, %cst_0 : tensor<1x1xf32, #blocked> loc(#loc31) + %15 = arith.addf %14, %cst_1 : tensor<1x1xf32, #blocked> loc(#loc32) + %16 = tt.extern_elementwise %15 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1x1xf32, #blocked>) -> tensor<1x1xf32, #blocked> loc(#loc33) + %17 = tt.broadcast %16 : tensor<1x1xf32, #blocked> -> tensor<1x1024xf32, #blocked> loc(#loc34) + scf.for %arg6 = %c0_i32 to %c5120_i32 step %c1024_i32 : i32 { + %18 = tt.splat %arg6 : i32 -> tensor<1x1024xi32, #blocked> loc(#loc36) + %19 = arith.addi %18, %3 : tensor<1x1024xi32, #blocked> loc(#loc36) + %20 = arith.cmpi slt, %19, %cst_3 : tensor<1x1024xi32, #blocked> loc(#loc37) + %21 = arith.addi %19, %5 : tensor<1x1024xi32, #blocked> loc(#loc38) + %22 = tt.addptr %6, %21 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc39) + %23 = arith.andi %7, %20 : tensor<1x1024xi1, #blocked> loc(#loc40) + %24 = tt.load %22, %23, %cst_2 evictionPolicy = evict_first : tensor<1x1024x!tt.ptr, #blocked> loc(#loc41) + %25 = arith.extf %24 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc42) + %26 = tt.addptr %8, %21 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc43) + %27 = tt.load %26, %23, %cst_2 evictionPolicy = evict_first : tensor<1x1024x!tt.ptr, #blocked> loc(#loc44) + %28 = arith.extf %27 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc45) + %29 = tt.addptr %9, %21 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc46) + %30 = tt.load %29, %23, %cst_2 evictionPolicy = evict_first : tensor<1x1024x!tt.ptr, #blocked> loc(#loc47) + %31 = arith.extf %30 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc48) + %32 = tt.addptr %13, %19 : tensor<1x1024x!tt.ptr, #blocked>, tensor<1x1024xi32, #blocked> loc(#loc30) + %33 = tt.load %32, %20, %cst_2 evictionPolicy = evict_last : tensor<1x1024x!tt.ptr, #blocked> loc(#loc49) + %34 = arith.extf %33 : tensor<1x1024xbf16, #blocked> to tensor<1x1024xf32, #blocked> loc(#loc50) + %35 = arith.addf %28, %31 : tensor<1x1024xf32, #blocked> loc(#loc51) + %36 = arith.addf %25, %35 : tensor<1x1024xf32, #blocked> loc(#loc52) + %37 = arith.mulf %36, %17 : tensor<1x1024xf32, #blocked> loc(#loc34) + %38 = arith.mulf %37, %34 : tensor<1x1024xf32, #blocked> loc(#loc53) + %39 = arith.truncf %38 : tensor<1x1024xf32, #blocked> to tensor<1x1024xbf16, #blocked> loc(#loc54) + tt.store %22, %39, %23 : tensor<1x1024x!tt.ptr, #blocked> loc(#loc54) + } loc(#loc35) + tt.return loc(#loc55) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":24:21) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":25:37) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:50) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:45) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:38) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:63) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:34) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:34) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":29:40) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":30:31) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":31:29) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:55) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:116) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:51) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:112) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:51) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:112) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":41:22) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":42:22) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":43:22) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":45:25) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":46:50) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":46:8) +#loc26 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc28 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc29 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":47:30) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:35) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":64:25) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":66:24) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":67:32) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":68:24) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":48:40) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":49:31) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":50:29) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:46) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:39) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:64) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:56) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:118) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:35) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:52) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:114) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:35) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:52) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:114) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:42) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:95) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":61:24) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":62:24) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":70:24) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":71:56) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":48:4) +#loc56 = loc(fused[#loc6, #loc5]) +#loc57 = loc(fused[#loc8, #loc3]) +#loc58 = loc(callsite(#loc26 at #loc27)) +#loc60 = loc(callsite(#loc28 at #loc26)) +#loc61 = loc(callsite(#loc60 at #loc27)) diff --git a/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttir b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttir new file mode 100644 index 0000000000000000000000000000000000000000..b7b9739f079c4faab0d16e6750f55c47ea29bef3 --- /dev/null +++ b/platform/aiml/models/vllm/torch_compile_cache/c220238fa1/rank_0_0/triton_cache/ZZHA5QYSI5XZYRBC5VLS2IWZM3UF23FG5IDTPOBWR7XCGID2E5FQ/triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2.ttir @@ -0,0 +1,153 @@ +#loc = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0) +#loc1 = loc(unknown) +#loc28 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":47:27) +#loc61 = loc(callsite(#loc1 at #loc28)) +module { + tt.func public @triton_red_fused__to_copy_add_mean_mul_pow_rsqrt_2(%arg0: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg1: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg2: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg3: !tt.ptr {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg4: i32 loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0), %arg5: i32 {tt.divisibility = 16 : i32} loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":18:0)) attributes {noinline = false} { + %cst = arith.constant dense<0.000000e+00> : tensor<1x1024xbf16> loc(#loc1) + %c1024_i32 = arith.constant 1024 : i32 loc(#loc1) + %c5120_i32 = arith.constant 5120 : i32 loc(#loc1) + %c0_i32 = arith.constant 0 : i32 loc(#loc1) + %cst_0 = arith.constant dense<9.99999997E-7> : tensor<1x1xf32> loc(#loc1) + %cst_1 = arith.constant dense<5.120000e+03> : tensor<1x1xf32> loc(#loc1) + %cst_2 = arith.constant dense<5120> : tensor<1x1024xi32> loc(#loc1) + %cst_3 = arith.constant dense<0.000000e+00> : tensor<1x1024xf32> loc(#loc1) + %0 = tt.get_program_id x : i32 loc(#loc2) + %1 = arith.cmpi slt, %0, %arg4 : i32 loc(#loc3) + %2 = tt.make_range {end = 1024 : i32, start = 0 : i32} : tensor<1024xi32> loc(#loc4) + %3 = tt.expand_dims %2 {axis = 0 : i32} : tensor<1024xi32> -> tensor<1x1024xi32> loc(#loc5) + %4 = scf.for %arg6 = %c0_i32 to %c5120_i32 step %c1024_i32 iter_args(%arg7 = %cst_3) -> (tensor<1x1024xf32>) : i32 { + %7 = tt.splat %arg6 : i32 -> tensor<1x1024xi32> loc(#loc7) + %8 = arith.addi %7, %3 : tensor<1x1024xi32> loc(#loc7) + %9 = arith.cmpi slt, %8, %cst_2 : tensor<1x1024xi32> loc(#loc8) + %10 = arith.muli %0, %c5120_i32 : i32 loc(#loc9) + %11 = tt.splat %10 : i32 -> tensor<1x1024xi32> loc(#loc58) + %12 = arith.addi %8, %11 : tensor<1x1024xi32> loc(#loc10) + %13 = tt.splat %arg0 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc11) + %14 = tt.addptr %13, %12 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc11) + %15 = tt.splat %1 : i1 -> tensor<1x1024xi1> loc(#loc59) + %16 = arith.andi %15, %9 : tensor<1x1024xi1> loc(#loc12) + %17 = tt.load %14, %16, %cst evictionPolicy = evict_last : tensor<1x1024x!tt.ptr> loc(#loc13) + %18 = arith.extf %17 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc14) + %19 = tt.splat %arg1 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc15) + %20 = tt.addptr %19, %12 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc15) + %21 = tt.load %20, %16, %cst evictionPolicy = evict_last : tensor<1x1024x!tt.ptr> loc(#loc16) + %22 = arith.extf %21 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc17) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc18) + %24 = tt.addptr %23, %12 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc18) + %25 = tt.load %24, %16, %cst evictionPolicy = evict_last : tensor<1x1024x!tt.ptr> loc(#loc19) + %26 = arith.extf %25 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc20) + %27 = arith.addf %22, %26 : tensor<1x1024xf32> loc(#loc21) + %28 = arith.addf %18, %27 : tensor<1x1024xf32> loc(#loc22) + %29 = arith.mulf %28, %28 : tensor<1x1024xf32> loc(#loc23) + %30 = arith.addf %arg7, %29 : tensor<1x1024xf32> loc(#loc24) + %31 = arith.select %16, %30, %arg7 : tensor<1x1024xi1>, tensor<1x1024xf32> loc(#loc25) + scf.yield %31 : tensor<1x1024xf32> loc(#loc26) + } loc(#loc6) + %5 = "tt.reduce"(%4) <{axis = 1 : i32}> ({ + ^bb0(%arg6: f32 loc(callsite(#loc1 at #loc28)), %arg7: f32 loc(callsite(#loc1 at #loc28))): + %7 = arith.addf %arg6, %arg7 : f32 loc(#loc65) + tt.reduce.return %7 : f32 loc(#loc60) + }) : (tensor<1x1024xf32>) -> tensor<1xf32> loc(#loc60) + %6 = tt.expand_dims %5 {axis = 1 : i32} : tensor<1xf32> -> tensor<1x1xf32> loc(#loc30) + scf.for %arg6 = %c0_i32 to %c5120_i32 step %c1024_i32 : i32 { + %7 = tt.splat %arg6 : i32 -> tensor<1x1024xi32> loc(#loc32) + %8 = arith.addi %7, %3 : tensor<1x1024xi32> loc(#loc32) + %9 = arith.cmpi slt, %8, %cst_2 : tensor<1x1024xi32> loc(#loc33) + %10 = arith.muli %0, %c5120_i32 : i32 loc(#loc34) + %11 = tt.splat %10 : i32 -> tensor<1x1024xi32> loc(#loc63) + %12 = arith.addi %8, %11 : tensor<1x1024xi32> loc(#loc35) + %13 = tt.splat %arg0 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc36) + %14 = tt.addptr %13, %12 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc36) + %15 = tt.splat %1 : i1 -> tensor<1x1024xi1> loc(#loc64) + %16 = arith.andi %15, %9 : tensor<1x1024xi1> loc(#loc37) + %17 = tt.load %14, %16, %cst evictionPolicy = evict_first : tensor<1x1024x!tt.ptr> loc(#loc38) + %18 = arith.extf %17 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc39) + %19 = tt.splat %arg1 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc40) + %20 = tt.addptr %19, %12 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc40) + %21 = tt.load %20, %16, %cst evictionPolicy = evict_first : tensor<1x1024x!tt.ptr> loc(#loc41) + %22 = arith.extf %21 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc42) + %23 = tt.splat %arg2 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc43) + %24 = tt.addptr %23, %12 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc43) + %25 = tt.load %24, %16, %cst evictionPolicy = evict_first : tensor<1x1024x!tt.ptr> loc(#loc44) + %26 = arith.extf %25 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc45) + %27 = tt.splat %arg3 : !tt.ptr -> tensor<1x1024x!tt.ptr> loc(#loc46) + %28 = tt.addptr %27, %8 : tensor<1x1024x!tt.ptr>, tensor<1x1024xi32> loc(#loc46) + %29 = tt.load %28, %9, %cst evictionPolicy = evict_last : tensor<1x1024x!tt.ptr> loc(#loc47) + %30 = arith.extf %29 : tensor<1x1024xbf16> to tensor<1x1024xf32> loc(#loc48) + %31 = arith.addf %22, %26 : tensor<1x1024xf32> loc(#loc49) + %32 = arith.addf %18, %31 : tensor<1x1024xf32> loc(#loc50) + %33 = arith.divf %6, %cst_1 : tensor<1x1xf32> loc(#loc51) + %34 = arith.addf %33, %cst_0 : tensor<1x1xf32> loc(#loc52) + %35 = tt.extern_elementwise %34 {libname = "", libpath = "", pure = true, symbol = "__nv_rsqrtf"} : (tensor<1x1xf32>) -> tensor<1x1xf32> loc(#loc53) + %36 = tt.broadcast %35 : tensor<1x1xf32> -> tensor<1x1024xf32> loc(#loc54) + %37 = arith.mulf %32, %36 : tensor<1x1024xf32> loc(#loc54) + %38 = arith.mulf %37, %30 : tensor<1x1024xf32> loc(#loc55) + %39 = arith.truncf %38 : tensor<1x1024xf32> to tensor<1x1024xbf16> loc(#loc56) + tt.store %14, %39, %16 : tensor<1x1024x!tt.ptr> loc(#loc56) + } loc(#loc31) + tt.return loc(#loc57) + } loc(#loc) +} loc(#loc) +#loc2 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":22:28) +#loc3 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":24:21) +#loc4 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":25:27) +#loc5 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":25:37) +#loc6 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":29:40) +#loc7 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":30:31) +#loc8 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":31:29) +#loc9 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:50) +#loc10 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:45) +#loc11 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:38) +#loc12 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:63) +#loc13 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:55) +#loc14 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":35:116) +#loc15 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:34) +#loc16 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:51) +#loc17 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":36:112) +#loc18 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:34) +#loc19 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:51) +#loc20 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":37:112) +#loc21 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":41:22) +#loc22 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":42:22) +#loc23 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":43:22) +#loc24 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":45:25) +#loc25 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":46:50) +#loc26 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":46:8) +#loc27 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":286:36) +#loc29 = loc("/home/x/hfenv/lib/python3.12/site-packages/triton/language/standard.py":256:15) +#loc30 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":47:30) +#loc31 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":48:40) +#loc32 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":49:31) +#loc33 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":50:29) +#loc34 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:51) +#loc35 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:46) +#loc36 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:39) +#loc37 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:64) +#loc38 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:56) +#loc39 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":54:118) +#loc40 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:35) +#loc41 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:52) +#loc42 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":55:114) +#loc43 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:35) +#loc44 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:52) +#loc45 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":56:114) +#loc46 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:35) +#loc47 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:42) +#loc48 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":57:95) +#loc49 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":61:24) +#loc50 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":62:24) +#loc51 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":64:25) +#loc52 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":66:24) +#loc53 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":67:32) +#loc54 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":68:24) +#loc55 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":70:24) +#loc56 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":71:56) +#loc57 = loc("/home/x/.cache/vllm/torch_compile_cache/c220238fa1/rank_0_0/inductor_cache/sv/csvd6r27ftdh3ew6fnq2tbcrl4m4hqxai7yhptsemkeilyic4gzz.py":48:4) +#loc58 = loc(fused[#loc10, #loc9]) +#loc59 = loc(fused[#loc12, #loc3]) +#loc60 = loc(callsite(#loc27 at #loc28)) +#loc62 = loc(callsite(#loc29 at #loc27)) +#loc63 = loc(fused[#loc35, #loc34]) +#loc64 = loc(fused[#loc37, #loc3]) +#loc65 = loc(callsite(#loc62 at #loc28)) diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/3464.83ee62c8.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/3464.83ee62c8.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..b7ab179c1975e266298054ce31912c4de3cbe003 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/3464.83ee62c8.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[3464],{30214:function(C,e,t){t.d(e,{W:function(){return o}});var V=t(89555),n=(t(31014),t(88443)),H=t(59403),l=t(68048),r=t(50111);const o=({className:C})=>{const{theme:e}=(0,H.u)();return(0,r.Y)(l.Tag,{componentId:"codegen_mlflow_app_src_shared_building_blocks_previewbadge.tsx_14",className:C,css:(0,V.AH)({marginLeft:e.spacing.xs},""),color:"turquoise",children:(0,r.Y)(n.A,{id:"8qJt7/",defaultMessage:"Experimental"})})}},48588:function(C,e,t){t.d(e,{L:function(){return l}});t(31014);var V=t(68048),n=t(23823),H=t(50111);function l(C){const{usesFullHeight:e,...t}=C;return(0,H.FD)(V.PageWrapper,{css:e?r.useFullHeightLayout:r.wrapper,children:[(0,H.Y)(n.S,{css:r.fixedSpacer}),e?C.children:(0,H.Y)("div",{...t,css:r.container})]})}l.defaultProps={usesFullHeight:!1};const r={useFullHeightLayout:{height:"calc(100% - 60px)",display:"flex",flexDirection:"column","&:last-child":{flexGrow:1}},wrapper:{flex:1},fixedSpacer:{flexShrink:0},container:{width:"100%",flexGrow:1,paddingBottom:24}}},73414:function(C,e,t){t.d(e,{E:function(){return o},p:function(){return i}});var V=t(31014),n=t(91144),H=t(50111);const l="_mlflow_user_setting_dismiss_next_model_registry_ui",r=V.createContext({usingNextModelsUI:(0,n.WX)(),setUsingNextModelsUI:()=>{}}),o=()=>(0,V.useContext)(r),i=C=>e=>{const[t,o]=(0,V.useState)("true"!==localStorage.getItem(l));(0,V.useEffect)((()=>{localStorage.setItem(l,(!t).toString())}),[t]);const i=(0,V.useMemo)((()=>({usingNextModelsUI:t,setUsingNextModelsUI:o})),[t]);return(0,n.WX)()?(0,H.Y)(r.Provider,{value:i,children:(0,H.Y)(C,{...e,usingNextModelsUI:i.usingNextModelsUI})}):(0,H.Y)(C,{...e,usingNextModelsUI:!1})}},79085:function(C,e,t){t.d(e,{o:function(){return s},z:function(){return c}});var V=t(89555),n=(t(31014),t(68048)),H=t(59403),l=t(23823),r=t(88464),o=t(30214),i=t(50111);function s({menu:C}){const e=(0,i.Y)(n.Menu,{children:C.map((({id:C,itemName:e,onClick:t,href:V,...H})=>(0,i.Y)(n.Menu.Item,{onClick:t,href:V,"data-testid":C,...H,children:e},C)))});return C.length>0?(0,i.Y)(n.Dropdown,{overlay:e,trigger:["click"],placement:"bottomLeft",arrow:!0,children:(0,i.Y)(H.B,{componentId:"codegen_mlflow_app_src_shared_building_blocks_pageheader.tsx_54",icon:(0,i.Y)(n.OverflowIcon,{}),"data-testid":"overflow-menu-trigger","aria-label":"Open header dropdown menu"})}):null}var a={name:"1gz4j9a",styles:"margin-left:0"};function c(C){const{title:e,breadcrumbs:t=[],titleAddOns:s=[],preview:c,children:d,spacerSize:M,hideSpacer:L=!1,dangerouslyAppendEmotionCSS:u}=C,{theme:m}=(0,H.u)();(0,r.A)();return(0,i.FD)(i.FK,{children:[(0,i.Y)(n.Header,{breadcrumbs:t.length>0&&(0,i.Y)(n.Breadcrumb,{includeTrailingCaret:!0,children:t.map(((C,e)=>(0,i.Y)(n.Breadcrumb.Item,{children:C},e)))}),buttons:d,title:e,titleAddOns:(0,i.FD)(i.FK,{children:[c&&(0,i.Y)(o.W,{css:a}),s]}),dangerouslyAppendEmotionCSS:u}),(0,i.Y)(l.S,{css:(0,V.AH)({flexShrink:0,...L?{display:"none"}:{}},""),size:M})]})}},81866:function(C,e,t){t.d(e,{$0:function(){return s},$c:function(){return f},$p:function(){return a},BE:function(){return p},CG:function(){return m},Gs:function(){return u},IP:function(){return c},QQ:function(){return i},Qs:function(){return h},SF:function(){return g},Tm:function(){return w},UA:function(){return L},Wb:function(){return Z},e3:function(){return r},gL:function(){return E},jI:function(){return o},uB:function(){return _},zA:function(){return d},zr:function(){return M}});var V=t(68048),n=t(88443),H=t(24478),l=t(50111);const r={NONE:"None",STAGING:"Staging",PRODUCTION:"Production",ARCHIVED:"Archived"},o=[r.STAGING,r.PRODUCTION],i={[r.NONE]:"None",[r.STAGING]:"Staging",[r.PRODUCTION]:"Production",[r.ARCHIVED]:"Archived"},s={[r.NONE]:(0,l.Y)(V.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_37",children:i[r.NONE]}),[r.STAGING]:(0,l.Y)(V.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_38",color:"lemon",children:i[r.STAGING]}),[r.PRODUCTION]:(0,l.Y)(V.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_39",color:"lime",children:i[r.PRODUCTION]}),[r.ARCHIVED]:(0,l.Y)(V.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_40",color:"charcoal",children:i[r.ARCHIVED]})};let a=function(C){return C.APPLIED_TRANSITION="APPLIED_TRANSITION",C.REQUESTED_TRANSITION="REQUESTED_TRANSITION",C.SYSTEM_TRANSITION="SYSTEM_TRANSITION",C.CANCELLED_REQUEST="CANCELLED_REQUEST",C.APPROVED_REQUEST="APPROVED_REQUEST",C.REJECTED_REQUEST="REJECTED_REQUEST",C.NEW_COMMENT="NEW_COMMENT",C}({});(0,l.Y)("div",{style:{marginTop:-12},children:"_"});const c={READY:"READY"},d={[c.READY]:(0,l.Y)(n.A,{id:"f/An1W",defaultMessage:"Ready."})},M={[c.READY]:(0,l.Y)(n.A,{id:"zAvilr",defaultMessage:"Ready"})},L={[c.READY]:(0,l.Y)(H.vV,{})},u=1e4,m=25,Z=25,g=75,h="name",p="timestamp",f="creation_timestamp",_={ASC:"ascend",DESC:"descend"},E=C=>(0,l.Y)(n.A,{id:"Ll6vbT",defaultMessage:"Model versions in the `{currentStage}` stage will be moved to the `Archived` stage.",values:{currentStage:C}}),w="https://mlflow.org/docs/latest/model-registry.html#using-registered-model-aliases"},84963:function(C,e,t){t.d(e,{C:function(){return F}});var V,n,H,l,r,o,i,s,a,c,d,M,L,u,m,Z,g,h,p,f,_,E,w,x=t(31014),I=t(88464),y=t(88443),A=t(23823),D=t(59403);function N(){return N=Object.assign?Object.assign.bind():function(C){for(var e=1;e(0,Y.FD)(A.d,{componentId:"codegen_mlflow_app_src_model-registry_components_modelsnextuipromomodal.tsx_15",visible:C,title:(0,Y.Y)(y.A,{id:"mtxqm8",defaultMessage:"Flexible, governed deployments with the new Model Registry UI"}),onCancel:e,footer:(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(D.B,{componentId:"codegen_mlflow_app_src_model-registry_components_modelsnextuipromomodal.tsx_26",href:v.pG,rel:"noopener",target:"_blank",children:(0,Y.Y)(y.A,{id:"/Q7stq",defaultMessage:"Learn more"})}),(0,Y.Y)(D.B,{componentId:"codegen_mlflow_app_src_model-registry_components_modelsnextuipromomodal.tsx_32",type:"primary",onClick:t,children:(0,Y.Y)(y.A,{id:"zB8rjH",defaultMessage:"Try it now"})})]}),children:[(0,Y.Y)(S,{width:"100%"}),(0,Y.Y)(D.T.Text,{children:(0,Y.Y)(y.A,{id:"oqBCfB",defaultMessage:"With the latest Model Registry UI, you can use Model Aliases for flexible \n references to specific model versions, streamlining deployment in a given environment. Use \n Model Tags to annotate model versions with metadata, like the status of pre-deployment checks.",values:{b:C=>(0,Y.Y)("b",{children:C})}})})]});var R=t(68048),O=t(73414);const U="_mlflow_model_registry_promo_modal_dismissed",F=()=>{const{usingNextModelsUI:C,setUsingNextModelsUI:e}=(0,O.E)(),t="true"===window.localStorage.getItem(U),[V,n]=(0,x.useState)(!t),[H,l]=(0,x.useState)(!1),r=(0,x.useCallback)((()=>{n(!1),window.localStorage.setItem(U,"true")}),[]),o=(0,I.A)().formatMessage({id:"8WJEHc",defaultMessage:"New model registry UI"}),{theme:i}=(0,D.u)();return(0,Y.FD)(Y.FK,{children:[(0,Y.FD)("div",{style:{display:"flex",alignItems:"center",gap:i.spacing.xs},children:[(0,Y.Y)("label",{children:o}),(0,Y.Y)(R.Switch,{componentId:"codegen_mlflow_app_src_model-registry_components_modelsnextuitoggleswitch.tsx_39",checked:C,"aria-label":o,onChange:C=>{C?e(!0):l(!0)}})]}),(0,Y.Y)(b,{visible:V,onClose:()=>{r()},onTryItNow:()=>{r()}}),(0,Y.Y)(A.d,{componentId:"codegen_mlflow_app_src_model-registry_components_modelsnextuitoggleswitch.tsx_50",visible:H,title:(0,Y.Y)(y.A,{id:"ICg2LX",defaultMessage:"Disable the new model stages"}),okText:"Disable",onCancel:()=>{l(!1)},onOk:()=>{e(!1),l(!1)},children:(0,Y.Y)(y.A,{id:"DLGEdG",defaultMessage:" Thank you for exploring the new Model Registry UI. We are dedicated to providing the best experience, and your feedback is invaluable. Please share your thoughts with us here.",values:{link:C=>(0,Y.Y)(D.T.Link,{componentId:"codegen_mlflow_app_src_model-registry_components_modelsnextuitoggleswitch.tsx_74",href:"https://forms.gle/aMB4qDrhMeEm2r359",openInNewTab:!0,children:C})}})})]})}},86020:function(C,e,t){t.d(e,{Z:function(){return r}});var V=t(89555),n=t(59403),H=t(68048),l=t(50111);const r=({value:C,closable:e,onClose:t,className:r,compact:o=!1})=>{const{theme:i}=(0,n.u)();return(0,l.Y)(H.Tag,{componentId:"codegen_mlflow_app_src_model-registry_components_aliases_modelversionaliastag.tsx_23",css:(0,V.AH)({fontWeight:i.typography.typographyBoldFontWeight,marginRight:i.spacing.xs},""),className:r,closable:e,onClose:t,title:C,children:(0,l.FD)("span",{css:(0,V.AH)({display:"block",whiteSpace:"nowrap",maxWidth:o?160:300,textOverflow:"ellipsis",overflow:"hidden"},""),children:["@","\xa0",C]})})}}}]); +//# sourceMappingURL=3464.83ee62c8.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4173.cd85b491.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4173.cd85b491.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..0254c200719ecc62f93e22b59e57f0c637459b5b --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4173.cd85b491.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4173.cd85b491.chunk.js","mappings":"sPAMO,MAAMA,EAAyBA,EACpCC,eACAC,sBACAC,WAAU,EACVC,iBACAC,2BAQA,MAAM,eAAEC,EAAgBC,UAAWC,GCRMC,GACzCR,eACAE,cAKA,MAAM,KAAEO,EAAI,UAAEH,IAAcI,EAAAA,EAAAA,GAC1B,CAdc,6BAcFV,IACZW,UACEC,IAAUZ,EAAc,4BACxB,MAAMa,EAAgB,CAACb,GAEvB,OAAOc,EAAAA,EAAcC,oBAAoBF,EAAe,yBAAqBG,OAAWA,EAAW,EAAE,GAEvG,CACEd,QAASA,GAAWe,QAAQjB,KAKhC,MAAO,CACLK,gBAFsBC,KAAcY,EAAAA,EAAAA,SAAY,OAAJT,QAAI,IAAJA,OAAI,EAAJA,EAAMU,QAGlDb,UAAWA,GAAaJ,GAAWe,QAAQjB,GAC5C,EDhB8DQ,CAA4B,CACzFR,eACAE,aAGKkB,EAAaC,IAAkBC,EAAAA,EAAAA,WAAS,IAEzC,aAAEC,EAAcjB,UAAWkB,GEdcC,GAC/CzB,eACAE,cAKA,MAAM,KAAEO,EAAI,UAAEH,EAAS,MAAEoB,IAAUhB,EAAAA,EAAAA,GACjC,CAdc,oCAcFV,IACZW,UACEC,IAAUZ,EAAc,4BACxB,MAAMa,EAAgB,CAACb,GAOvB,aALkBc,EAAAA,EAAca,WAAW,CACzCC,eAAgBf,EAChBgB,YAAa,GAGL,GAE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GAAC+Z,EAAAA,SAAQ,IACfC,SAAU,CACR3a,EAAK6B,cAAc,CAAAJ,GAAA,SACjBC,eAAe,cAGjB1B,EAAK6B,cAAc,CAAAJ,GAAA,SACjBC,eAAe,oBAMvB,C,wGC5BC,MAAM4J,EAAqCA,EAAG/B,iBACnD,MAAMvJ,GAAOC,EAAAA,EAAAA,KAEb,OACEU,EAAAA,EAAAA,GAACW,EAAAA,EAAW+T,KAAI,CACdlT,KAAK,KACLoY,wBAAyB,CACvBC,SAAU,CACRC,KAAMlR,EAAW8B,iBACjBjJ,MAAMzB,EAAAA,EAAAA,GAAC+Z,EAAAA,SAAQ,IACfC,SAAU,CACR3a,EAAK6B,cAAc,CAAAJ,GAAA,SACjBC,eAAe,2BAGjB1B,EAAK6B,cAAc,CAAAJ,GAAA,SACjBC,eAAe,iCAMvB,C,wGCtBC,MAAMyJ,EAAiCA,EAAG5B,iBAC/C,MAAMvJ,GAAOC,EAAAA,EAAAA,KAEb,OACEU,EAAAA,EAAAA,GAACW,EAAAA,EAAW+T,KAAI,CACdlT,KAAK,KACLoY,wBAAyB,CACvBC,SAAU,CACRC,KAAMlR,EAAW/M,aACjB4F,MAAMzB,EAAAA,EAAAA,GAAC+Z,EAAAA,SAAQ,IACfC,SAAU,CACR3a,EAAK6B,cAAc,CAAAJ,GAAA,SACjBC,eAAe,uBAGjB1B,EAAK6B,cAAc,CAAAJ,GAAA,SACjBC,eAAe,6BAMvB,C","sources":["experiment-tracking/components/experiment-page/hooks/useInferExperimentKind.tsx","experiment-tracking/components/traces/hooks/useExperimentContainsTraces.tsx","experiment-tracking/components/traces/hooks/useExperimentContainsTrainingRuns.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewInferredKindPopover.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewHeaderKindSelector.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewInferredKindModal.tsx","experiment-tracking/components/experiment-page/components/header/tab-selector-bar/TabSelectorBarConstants.tsx","experiment-tracking/components/experiment-page/components/header/tab-selector-bar/TabSelectorBar.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewHeaderV2.tsx","experiment-tracking/components/experiment-page/hooks/useGetExperimentPageActiveTabByRoute.tsx","shared/building_blocks/CopyBox.tsx","experiment-tracking/components/modals/GetLinkModal.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentGetShareLinkModal.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewHeaderShareButton.tsx","experiment-tracking/components/experiment-page/components/ExperimentViewArtifactLocation.tsx","experiment-tracking/components/modals/DeleteExperimentModal.tsx","experiment-tracking/components/modals/RenameExperimentModal.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewManagementMenu.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewHeader.tsx","experiment-tracking/components/experiment-page/hooks/useExperimentPageViewMode.tsx","experiment-tracking/components/experiment-page/hooks/useUpdateExperimentKind.tsx","experiment-tracking/components/experiment-page/components/ExperimentViewDescriptionNotes.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewCopyTitle.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewCopyArtifactLocation.tsx","experiment-tracking/components/experiment-page/components/header/ExperimentViewCopyExperimentId.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport { useExperimentContainsTraces } from '../../traces/hooks/useExperimentContainsTraces';\nimport { ExperimentKind, ExperimentPageTabName } from '../../../constants';\nimport { useExperimentContainsTrainingRuns } from '../../traces/hooks/useExperimentContainsTrainingRuns';\nimport { isEditableExperimentKind } from '../../../utils/ExperimentKindUtils';\n\nexport const useInferExperimentKind = ({\n experimentId,\n isLoadingExperiment,\n enabled = true,\n experimentTags,\n updateExperimentKind,\n}: {\n experimentId?: string;\n isLoadingExperiment: boolean;\n enabled?: boolean;\n experimentTags?: { key?: string | null; value?: string | null }[] | null;\n updateExperimentKind: (params: { experimentId: string; kind: ExperimentKind }) => void;\n}) => {\n const { containsTraces, isLoading: isTracesBeingDetermined } = useExperimentContainsTraces({\n experimentId,\n enabled,\n });\n\n const [isDismissed, setIsDismissed] = useState(false);\n\n const { containsRuns, isLoading: isTrainingRunsBeingDetermined } = useExperimentContainsTrainingRuns({\n experimentId,\n enabled,\n });\n\n const isLoading = enabled && (isLoadingExperiment || isTracesBeingDetermined || isTrainingRunsBeingDetermined);\n\n const inferredExperimentKind = useMemo(() => {\n if (!enabled || isLoading || isDismissed) {\n return undefined;\n }\n if (containsTraces) {\n return ExperimentKind.GENAI_DEVELOPMENT_INFERRED;\n }\n if (containsRuns) {\n return ExperimentKind.CUSTOM_MODEL_DEVELOPMENT_INFERRED;\n }\n return ExperimentKind.NO_INFERRED_TYPE;\n }, [\n // prettier-ignore\n enabled,\n isDismissed,\n isLoading,\n containsTraces,\n containsRuns,\n ]);\n\n const inferredExperimentPageTab = useMemo(() => {\n if (inferredExperimentKind === ExperimentKind.GENAI_DEVELOPMENT_INFERRED) {\n return ExperimentPageTabName.Traces;\n }\n if (inferredExperimentKind === ExperimentKind.CUSTOM_MODEL_DEVELOPMENT_INFERRED) {\n return ExperimentPageTabName.Runs;\n }\n return undefined;\n }, [inferredExperimentKind]);\n\n // automatically update the experiment type if it's not user-editable\n useEffect(() => {\n if (inferredExperimentKind && !isEditableExperimentKind(inferredExperimentKind)) {\n updateExperimentKind({ experimentId: experimentId ?? '', kind: inferredExperimentKind });\n }\n }, [experimentId, inferredExperimentKind, updateExperimentKind]);\n\n return {\n isLoading,\n inferredExperimentKind,\n inferredExperimentPageTab,\n dismiss: () => setIsDismissed(true),\n };\n};\n","import { useQuery } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { MlflowService } from '../../../sdk/MlflowService';\nimport { isEmpty } from 'lodash';\nimport invariant from 'invariant';\n\nconst QUERY_KEY = 'EXPERIMENT_CONTAINS_TRACES';\n\n/**\n * Hook for checking if there are any traces for a given experiment.\n * Returns `containsTraces` set to `true` if there's at least one trace, `false` otherwise.\n */\nexport const useExperimentContainsTraces = ({\n experimentId,\n enabled,\n}: {\n experimentId?: string;\n enabled?: boolean;\n}) => {\n const { data, isLoading } = useQuery(\n [QUERY_KEY, experimentId],\n async () => {\n invariant(experimentId, 'experimentId is required');\n const experimentIds = [experimentId];\n\n return MlflowService.getExperimentTraces(experimentIds, 'timestamp_ms DESC', undefined, undefined, 1);\n },\n {\n enabled: enabled && Boolean(experimentId),\n },\n );\n\n const containsTraces = !isLoading && !isEmpty(data?.traces);\n return {\n containsTraces,\n isLoading: isLoading && enabled && Boolean(experimentId),\n };\n};\n","import { useQuery } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { MlflowService } from '../../../sdk/MlflowService';\nimport { isEmpty } from 'lodash';\nimport invariant from 'invariant';\nimport { useMemo } from 'react';\n\nconst QUERY_KEY = 'EXPERIMENT_CONTAINS_TRAINING_RUNS';\n\n/**\n * Hook for checking if there are any runs in a given experiment.\n * Returns `containsRuns` set to `true` if there's at least one run, `false` otherwise.\n */\nexport const useExperimentContainsTrainingRuns = ({\n experimentId,\n enabled,\n}: {\n experimentId?: string;\n enabled?: boolean;\n}) => {\n const { data, isLoading, error } = useQuery(\n [QUERY_KEY, experimentId],\n async () => {\n invariant(experimentId, 'experimentId is required');\n const experimentIds = [experimentId];\n\n const ret = await MlflowService.searchRuns({\n experiment_ids: experimentIds,\n max_results: 1,\n });\n\n return ret;\n },\n {\n enabled: Boolean(experimentId) && enabled,\n },\n );\n\n const containsRuns = useMemo(() => !isLoading && !isEmpty(data?.runs), [isLoading, data]);\n\n return {\n containsRuns,\n isLoading: isLoading && enabled && Boolean(experimentId),\n };\n};\n","import { Button, CloseIcon, Popover, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { ExperimentKind } from '../../../../constants';\nimport { ExperimentKindDropdownLabels, ExperimentKindShortLabels } from '../../../../utils/ExperimentKindUtils';\n\nexport const ExperimentViewInferredKindPopover = ({\n children,\n inferredExperimentKind,\n onConfirm,\n onDismiss,\n isInferredKindEditable = false,\n}: {\n children: React.ReactNode;\n inferredExperimentKind: ExperimentKind;\n onConfirm?: () => void;\n onDismiss?: () => void;\n isInferredKindEditable?: boolean;\n}) => {\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n\n return (\n
\n {children}\n \n \n
\n \n \n \n
\n
\n \n \n \n \n \n \n
\n }\n size=\"small\"\n />\n
\n
\n \n
\n );\n};\n","import { ChevronDownIcon, DropdownMenu, Popover, Spinner, Tag, Tooltip } from '@databricks/design-system';\nimport { coerceToEnum } from '@databricks/web-shared/utils';\nimport { entries } from 'lodash';\nimport { useMemo, useState } from 'react';\nimport { defineMessage, FormattedMessage } from 'react-intl';\nimport { ExperimentKind } from '../../../../constants';\nimport {\n ExperimentKindDropdownLabels,\n getSelectableExperimentKinds,\n isEditableExperimentKind,\n normalizeInferredExperimentKind,\n} from '../../../../utils/ExperimentKindUtils';\nimport { ExperimentViewInferredKindPopover } from './ExperimentViewInferredKindPopover';\n\nconst getVisibleLabel = (kind: ExperimentKind, readOnly: boolean) => {\n if (kind === ExperimentKind.NO_INFERRED_TYPE || kind === ExperimentKind.EMPTY) {\n if (readOnly) {\n // if the user does not have permission to edit the experiment kind, we show the \"None\" label\n return ExperimentKindDropdownLabels[ExperimentKind.NO_INFERRED_TYPE];\n }\n return defineMessage({\n defaultMessage: 'Select a type',\n description: 'Label for the experiment type selector in the experiment view header',\n });\n }\n return ExperimentKindDropdownLabels[kind];\n};\n\nexport const ExperimentViewHeaderKindSelector = ({\n value,\n inferredExperimentKind,\n onChange,\n isUpdating,\n readOnly = false,\n}: {\n value?: ExperimentKind;\n inferredExperimentKind?: ExperimentKind;\n onChange?: (kind: ExperimentKind) => void;\n isUpdating?: boolean;\n readOnly?: boolean;\n}) => {\n const dropdownItems = useMemo(\n () =>\n entries(ExperimentKindDropdownLabels).filter(([key]) =>\n getSelectableExperimentKinds().includes(key as ExperimentKind),\n ),\n [],\n );\n\n const currentValue = useMemo(() => {\n if (inferredExperimentKind) {\n return normalizeInferredExperimentKind(inferredExperimentKind);\n }\n return coerceToEnum(ExperimentKind, value, ExperimentKind.NO_INFERRED_TYPE);\n }, [value, inferredExperimentKind]);\n\n const visibleLabel = getVisibleLabel(currentValue, readOnly);\n const [dropdownOpen, setDropdownOpen] = useState(false);\n const [displayInferencePopover, setDisplayInferencePopover] = useState(\n Boolean(inferredExperimentKind && !readOnly && isEditableExperimentKind(inferredExperimentKind)),\n );\n\n // Determines if we should render a dropdown or just a tag.\n const usingDropdown = isEditableExperimentKind(currentValue) && !readOnly;\n\n const tagElement = (\n : null}\n componentId=\"mlflow.experiment_view.header.experiment_kind_selector\"\n css={{ marginRight: 0 }}\n // Empty callback so renders its \"clickable\" UI style\n onClick={!usingDropdown ? undefined : () => {}}\n >\n {visibleLabel && } {usingDropdown && }\n \n );\n\n const tagElementWithTooltip = {tagElement};\n\n if (readOnly) {\n return tagElementWithTooltip;\n }\n\n const dropdownElement = (\n {\n setDisplayInferencePopover(false);\n setDropdownOpen(open);\n }}\n >\n {/* Mixing dropdown with tooltip requires different ordering */}\n \n {tagElement}\n \n \n \n \n \n \n {dropdownItems.map(([key, label]) => {\n const isSelected = key === currentValue;\n return (\n onChange?.(key as ExperimentKind)}\n checked={isSelected}\n >\n \n \n \n );\n })}\n \n \n );\n\n if (displayInferencePopover && inferredExperimentKind) {\n return (\n {\n if (inferredExperimentKind) {\n onChange?.(normalizeInferredExperimentKind(inferredExperimentKind));\n }\n setDisplayInferencePopover(false);\n }}\n onDismiss={() => setDisplayInferencePopover(false)}\n isInferredKindEditable={isEditableExperimentKind(currentValue)}\n >\n {usingDropdown ? dropdownElement : tagElementWithTooltip}\n \n );\n }\n\n return usingDropdown ? dropdownElement : tagElementWithTooltip;\n};\n\nconst ExperimentTypeTooltip = ({ children }: { children: React.ReactNode }) => (\n \n }\n >\n {children}\n \n);\n","import { Modal, Radio, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { ExperimentKind } from '../../../../constants';\nimport { ExperimentKindDropdownLabels } from '../../../../utils/ExperimentKindUtils';\n\nexport const ExperimentViewInferredKindModal = ({\n onDismiss,\n onConfirm,\n}: {\n onDismiss?: () => void;\n onConfirm: (kind: ExperimentKind) => void;\n}) => {\n const { theme } = useDesignSystemTheme();\n const [selectedKind, setSelectedKind] = useState(ExperimentKind.CUSTOM_MODEL_DEVELOPMENT);\n\n return (\n \n }\n cancelText={\n \n }\n okText={\n \n }\n onOk={() => onConfirm(selectedKind)}\n >\n \n \n \n
\n setSelectedKind(ExperimentKind.GENAI_DEVELOPMENT)}\n >\n \n \n setSelectedKind(ExperimentKind.CUSTOM_MODEL_DEVELOPMENT)}\n >\n \n \n
\n \n );\n};\n","import Routes from '@mlflow/mlflow/src/experiment-tracking/routes';\n\nimport {\n GearIcon,\n ListBorderIcon,\n ListIcon,\n ModelsIcon,\n PlusMinusSquareIcon,\n UserIcon,\n TextBoxIcon,\n} from '@databricks/design-system';\nimport { ExperimentPageTabName } from '@mlflow/mlflow/src/experiment-tracking/constants';\nimport { FormattedMessage } from 'react-intl';\nimport { ExperimentViewRunsCompareMode } from '@mlflow/mlflow/src/experiment-tracking/types';\n\nexport type TabConfig = {\n label: React.ReactNode;\n icon: React.ReactNode;\n getRoute: (experimentId: string) => string;\n};\n\nexport type TabConfigMap = Partial>;\n\nconst RunsTabConfig = {\n label: (\n \n ),\n icon: ,\n getRoute: (experimentId: string) => Routes.getExperimentPageTabRoute(experimentId, ExperimentPageTabName.Runs),\n};\n\nconst TracesTabConfig = {\n label: (\n \n ),\n icon: ,\n getRoute: (experimentId: string) => Routes.getExperimentPageTabRoute(experimentId, ExperimentPageTabName.Traces),\n};\n\nconst ModelsTabConfig = {\n label: (\n \n ),\n icon: ,\n getRoute: (experimentId: string) => Routes.getExperimentPageTabRoute(experimentId, ExperimentPageTabName.Models),\n};\n\nexport const GenAIExperimentTabConfigMap: TabConfigMap = {\n [ExperimentPageTabName.Traces]: TracesTabConfig,\n [ExperimentPageTabName.Models]: ModelsTabConfig,\n};\n\nexport const GenAIExperimentWithPromptsTabConfigMap = GenAIExperimentTabConfigMap;\n\nexport const CustomExperimentTabConfigMap: TabConfigMap = {\n [ExperimentPageTabName.Runs]: RunsTabConfig,\n [ExperimentPageTabName.Models]: {\n ...ModelsTabConfig,\n label: (\n \n ),\n },\n [ExperimentPageTabName.Traces]: TracesTabConfig,\n};\n\nexport const DefaultTabConfigMap: TabConfigMap = {\n ...CustomExperimentTabConfigMap,\n};\n","import React from 'react';\nimport {\n SegmentedControlGroup,\n SegmentedControlButton,\n useDesignSystemTheme,\n Tooltip,\n} from '@databricks/design-system';\n\nimport { ExperimentKind, ExperimentPageTabName } from '@mlflow/mlflow/src/experiment-tracking/constants';\nimport { useExperimentPageViewMode } from '@mlflow/mlflow/src/experiment-tracking/components/experiment-page/hooks/useExperimentPageViewMode';\nimport { Link, useParams } from '@mlflow/mlflow/src/common/utils/RoutingUtils';\nimport { coerceToEnum } from '@databricks/web-shared/utils';\nimport { shouldEnablePromptsTabOnDBPlatform } from '../../../../../../common/utils/FeatureUtils';\nimport {\n TabConfigMap,\n GenAIExperimentTabConfigMap,\n GenAIExperimentWithPromptsTabConfigMap,\n CustomExperimentTabConfigMap,\n DefaultTabConfigMap,\n} from './TabSelectorBarConstants';\nimport { FormattedMessage } from 'react-intl';\nimport { useGetExperimentPageActiveTabByRoute } from '../../../hooks/useGetExperimentPageActiveTabByRoute';\n\nconst isRunsViewTab = (tabName: string) => ['TABLE', 'CHART', 'ARTIFACT'].includes(tabName);\nconst iTracesViewTab = (tabName: string) => ['TRACES'].includes(tabName);\n\nconst getExperimentTabsConfig = (experimentKind?: ExperimentKind): TabConfigMap => {\n switch (experimentKind) {\n case ExperimentKind.GENAI_DEVELOPMENT:\n case ExperimentKind.GENAI_DEVELOPMENT_INFERRED:\n return shouldEnablePromptsTabOnDBPlatform()\n ? GenAIExperimentWithPromptsTabConfigMap\n : GenAIExperimentTabConfigMap;\n case ExperimentKind.CUSTOM_MODEL_DEVELOPMENT:\n case ExperimentKind.CUSTOM_MODEL_DEVELOPMENT_INFERRED:\n case ExperimentKind.FORECASTING:\n case ExperimentKind.REGRESSION:\n case ExperimentKind.AUTOML:\n case ExperimentKind.CLASSIFICATION:\n return CustomExperimentTabConfigMap;\n default:\n return DefaultTabConfigMap;\n }\n};\n\nexport const TabSelectorBar = ({ experimentKind }: { experimentKind?: ExperimentKind }) => {\n const { experimentId, tabName } = useParams();\n const { theme } = useDesignSystemTheme();\n const [viewMode] = useExperimentPageViewMode();\n\n // In the tab selector bar, we're interested in top-level tab names based on the current route\n const { topLevelTabName: tabNameFromRoute } = useGetExperimentPageActiveTabByRoute();\n\n let tabNameFromParams = coerceToEnum(ExperimentPageTabName, tabName, undefined);\n if (tabNameFromParams === ExperimentPageTabName.Datasets) {\n // datasets is a sub-tab of evaluation runs, so we\n // should show the evaluation runs tab as active\n tabNameFromParams = ExperimentPageTabName.EvaluationRuns;\n }\n if (tabNameFromParams === ExperimentPageTabName.LabelingSchemas) {\n // labeling schemas is a sub-tab of labeling sessions, so we\n // should show the labeling sessions tab as active\n tabNameFromParams = ExperimentPageTabName.LabelingSessions;\n }\n\n const tabNameFromViewMode = (() => {\n if (isRunsViewTab(viewMode)) {\n return ExperimentPageTabName.Runs;\n } else if (iTracesViewTab(viewMode)) {\n return ExperimentPageTabName.Traces;\n } else {\n return viewMode;\n }\n })();\n\n const activeTab = tabNameFromRoute ?? tabNameFromParams ?? tabNameFromViewMode;\n\n const tabsConfig = getExperimentTabsConfig(experimentKind ?? ExperimentKind.NO_INFERRED_TYPE);\n\n return (\n \n {Object.entries(tabsConfig).map(([tabName, tabConfig]) => {\n const isActive = tabName === activeTab;\n\n return (\n \n \n \n {tabConfig.label}\n \n \n \n \n {/* comment for formatting */}\n {tabConfig.label}\n \n }\n componentId={`mlflow.experiment-tracking.tab-selector-bar.${tabName}`}\n >\n {tabConfig.icon}\n \n }\n />\n \n \n );\n })}\n \n );\n};\n","import React, { useMemo } from 'react';\nimport {\n Breadcrumb,\n ParagraphSkeleton,\n TitleSkeleton,\n Tooltip,\n Typography,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { ExperimentViewCopyTitle } from './ExperimentViewCopyTitle';\nimport { ExperimentEntity } from '../../../../types';\nimport { ExperimentPageSearchFacetsState } from '../../models/ExperimentPageSearchFacetsState';\nimport { ExperimentPageUIState } from '../../models/ExperimentPageUIState';\nimport { ExperimentViewArtifactLocation } from '../ExperimentViewArtifactLocation';\nimport { ExperimentViewCopyExperimentId } from './ExperimentViewCopyExperimentId';\nimport { ExperimentViewCopyArtifactLocation } from './ExperimentViewCopyArtifactLocation';\nimport { InfoPopover } from '@databricks/design-system';\nimport { TabSelectorBar } from './tab-selector-bar/TabSelectorBar';\nimport { ExperimentViewHeaderShareButton } from './ExperimentViewHeaderShareButton';\nimport { getExperimentKindFromTags } from '../../../../utils/ExperimentKindUtils';\n\nimport { ExperimentKind } from '../../../../constants';\n/**\n * Header for a single experiment page. Displays title, breadcrumbs and provides\n * controls for renaming, deleting and editing permissions.\n */\nexport const ExperimentViewHeaderV2 = React.memo(\n ({\n experiment,\n inferredExperimentKind,\n searchFacetsState,\n uiState,\n setEditing,\n experimentKindSelector,\n }: {\n experiment: ExperimentEntity;\n inferredExperimentKind?: ExperimentKind;\n searchFacetsState?: ExperimentPageSearchFacetsState;\n uiState?: ExperimentPageUIState;\n setEditing: (editing: boolean) => void;\n experimentKindSelector?: React.ReactNode;\n }) => {\n const { theme } = useDesignSystemTheme();\n // eslint-disable-next-line prefer-const\n let breadcrumbs: React.ReactNode[] = [];\n const experimentIds = useMemo(() => (experiment ? [experiment?.experimentId] : []), [experiment]);\n // Extract the last part of the experiment name\n const normalizedExperimentName = useMemo(() => experiment.name.split('/').pop(), [experiment.name]);\n\n const getInfoTooltip = () => {\n return (\n
\n \n \n
\n \n : {experiment.name + ' '}\n \n
\n
\n \n : {experiment.experimentId + ' '}\n \n
\n
\n \n : {' '}\n \n
\n
\n \n
\n );\n };\n\n const experimentKind = inferredExperimentKind ?? getExperimentKindFromTags(experiment.tags);\n\n return (\n
\n \n {breadcrumbs.map((breadcrumb, index) => (\n {breadcrumb}\n ))}\n \n
\n \n \n \n \n {normalizedExperimentName}\n \n \n \n {experimentKindSelector}\n {getInfoTooltip()}\n
\n \n \n \n
\n \n \n );\n },\n);\n\nexport function ExperimentViewHeaderV2Skeleton() {\n const { theme } = useDesignSystemTheme();\n\n return (\n
\n \n
\n \n \n \n
\n
\n );\n}\n","import { useMemo } from 'react';\nimport { shouldEnableExperimentPageChildRoutes } from '../../../../common/utils/FeatureUtils';\nimport { matchPath, useLocation } from '../../../../common/utils/RoutingUtils';\nimport { RoutePaths } from '../../../routes';\nimport { ExperimentPageTabName } from '../../../constants';\nimport { map } from 'lodash';\n\n// Maps experiment page route paths to enumerated tab names\nconst ExperimentPageRoutePathToTabNameMap = map(\n {\n [RoutePaths.experimentPageTabRuns]: ExperimentPageTabName.Runs,\n [RoutePaths.experimentPageTabTraces]: ExperimentPageTabName.Traces,\n [RoutePaths.experimentPageTabModels]: ExperimentPageTabName.Models,\n },\n (tabName, routePath) => ({ routePath, tabName }),\n);\n\n// Gets exact tab name based on given pathname\nconst getTabNameFromRoutePath = (pathname: string) =>\n ExperimentPageRoutePathToTabNameMap\n // Find the first route path that matches the given pathname\n .find(({ routePath }) => Boolean(matchPath(routePath, pathname)))?.tabName;\n\n// Maps exact tab names to top-level tab names\nconst getTopLevelTab = (tabName?: ExperimentPageTabName) => {\n return tabName;\n};\n\nexport const useGetExperimentPageActiveTabByRoute = () => {\n const { pathname } = useLocation();\n\n const tabNameFromRoute = useMemo(() => {\n if (!shouldEnableExperimentPageChildRoutes()) {\n return;\n }\n const tabName = getTabNameFromRoutePath(pathname);\n return tabName;\n }, [pathname]);\n return {\n tabName: tabNameFromRoute,\n topLevelTabName: getTopLevelTab(tabNameFromRoute),\n };\n};\n","import { Input } from '@databricks/design-system';\nimport { CopyButton } from './CopyButton';\n\ntype Props = {\n copyText: string;\n};\n\nexport const CopyBox = ({ copyText }: Props) => (\n
\n \n \n
\n);\n","import { FormattedMessage } from 'react-intl';\nimport { Modal } from '@databricks/design-system';\nimport { CopyBox } from '../../../shared/building_blocks/CopyBox';\n\ntype Props = {\n visible: boolean;\n onCancel: () => void;\n link: string;\n};\n\nexport const GetLinkModal = ({ visible, onCancel, link }: Props) => {\n return (\n }\n visible={visible}\n onCancel={onCancel}\n >\n \n \n );\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { GenericSkeleton, Input, Modal } from '@databricks/design-system';\nimport { useDispatch } from 'react-redux';\nimport { ThunkDispatch } from '../../../../../redux-types';\nimport { setExperimentTagApi } from '../../../../actions';\nimport Routes from '../../../../routes';\nimport { CopyButton } from '../../../../../shared/building_blocks/CopyButton';\nimport { ExperimentPageSearchFacetsState } from '../../models/ExperimentPageSearchFacetsState';\nimport { ExperimentPageUIState } from '../../models/ExperimentPageUIState';\nimport { getStringSHA256, textCompressDeflate } from '../../../../../common/utils/StringUtils';\nimport Utils from '../../../../../common/utils/Utils';\nimport {\n EXPERIMENT_PAGE_VIEW_STATE_SHARE_TAG_PREFIX,\n EXPERIMENT_PAGE_VIEW_STATE_SHARE_URL_PARAM_KEY,\n} from '../../../../constants';\nimport { shouldUseCompressedExperimentViewSharedState } from '../../../../../common/utils/FeatureUtils';\nimport {\n EXPERIMENT_PAGE_VIEW_MODE_QUERY_PARAM_KEY,\n useExperimentPageViewMode,\n} from '../../hooks/useExperimentPageViewMode';\nimport type { ExperimentViewRunsCompareMode } from '../../../../types';\n\ntype GetShareLinkModalProps = {\n onCancel: () => void;\n visible: boolean;\n experimentIds: string[];\n searchFacetsState: ExperimentPageSearchFacetsState;\n uiState: ExperimentPageUIState;\n};\n\ntype ShareableViewState = ExperimentPageSearchFacetsState & ExperimentPageUIState;\n\n// Typescript-based test to ensure that the keys of the two states are disjoint.\n// If they are not disjoint, the state serialization will not work as expected.\nconst _arePersistedStatesDisjoint: [\n keyof ExperimentPageSearchFacetsState & keyof ExperimentPageUIState extends never ? true : false,\n] = [true];\n\nconst serializePersistedState = async (state: ShareableViewState) => {\n if (shouldUseCompressedExperimentViewSharedState()) {\n return textCompressDeflate(JSON.stringify(state));\n }\n return JSON.stringify(state);\n};\n\nconst getShareableUrl = (experimentId: string, shareStateHash: string, viewMode?: ExperimentViewRunsCompareMode) => {\n // As a start, get the route\n const route = Routes.getExperimentPageRoute(experimentId);\n\n // Begin building the query params\n const queryParams = new URLSearchParams();\n\n // Add the share state hash\n queryParams.set(EXPERIMENT_PAGE_VIEW_STATE_SHARE_URL_PARAM_KEY, shareStateHash);\n\n // If the view mode is set, add it to the query params\n if (viewMode) {\n queryParams.set(EXPERIMENT_PAGE_VIEW_MODE_QUERY_PARAM_KEY, viewMode);\n }\n\n // In regular implementation, build the hash part of the URL\n const params = queryParams.toString();\n const hashParam = `${route}${params?.startsWith('?') ? '' : '?'}${params}`;\n const shareURL = `${window.location.origin}${window.location.pathname}#${hashParam}`;\n return shareURL;\n};\n\n/**\n * Modal that displays shareable link for the experiment page.\n * The shareable state is created by serializing the search facets and UI state and storing\n * it as a tag on the experiment.\n */\nexport const ExperimentGetShareLinkModal = ({\n onCancel,\n visible,\n experimentIds,\n searchFacetsState,\n uiState,\n}: GetShareLinkModalProps) => {\n const [sharedStateUrl, setSharedStateUrl] = useState('');\n const [linkInProgress, setLinkInProgress] = useState(true);\n const [generatedState, setGeneratedState] = useState(null);\n const [viewMode] = useExperimentPageViewMode();\n\n const dispatch = useDispatch();\n\n const stateToSerialize = useMemo(() => ({ ...searchFacetsState, ...uiState }), [searchFacetsState, uiState]);\n\n const createSerializedState = useCallback(\n async (state: ShareableViewState) => {\n if (experimentIds.length > 1) {\n setLinkInProgress(false);\n setGeneratedState(state);\n setSharedStateUrl(window.location.href);\n return;\n }\n setLinkInProgress(true);\n const [experimentId] = experimentIds;\n try {\n const data = await serializePersistedState(state);\n const hash = await getStringSHA256(data);\n\n const tagName = `${EXPERIMENT_PAGE_VIEW_STATE_SHARE_TAG_PREFIX}${hash}`;\n\n await dispatch(setExperimentTagApi(experimentId, tagName, data));\n\n setLinkInProgress(false);\n setGeneratedState(state);\n\n setSharedStateUrl(getShareableUrl(experimentId, hash, viewMode));\n } catch (e) {\n Utils.logErrorAndNotifyUser('Failed to create shareable link for experiment');\n throw e;\n }\n },\n [dispatch, experimentIds, viewMode],\n );\n\n useEffect(() => {\n if (!visible || generatedState === stateToSerialize) {\n return;\n }\n createSerializedState(stateToSerialize);\n }, [visible, createSerializedState, generatedState, stateToSerialize]);\n\n return (\n \n }\n visible={visible}\n onCancel={onCancel}\n >\n
\n {linkInProgress ? (\n \n ) : (\n \n )}\n \n
\n \n );\n};\n","import { Button } from '@databricks/design-system';\nimport { useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { GetLinkModal } from '../../../modals/GetLinkModal';\nimport { ExperimentPageSearchFacetsState } from '../../models/ExperimentPageSearchFacetsState';\nimport { ExperimentPageUIState } from '../../models/ExperimentPageUIState';\nimport { ExperimentGetShareLinkModal } from './ExperimentGetShareLinkModal';\n\n/**\n * Experiment page header part responsible for displaying button\n * that displays modal for sharing the link\n */\nexport const ExperimentViewHeaderShareButton = ({\n searchFacetsState,\n uiState,\n experimentIds,\n}: {\n searchFacetsState?: ExperimentPageSearchFacetsState;\n uiState?: ExperimentPageUIState;\n experimentIds?: string[];\n}) => {\n const [showGetLinkModal, setShowGetLinkModal] = useState(false);\n\n return (\n <>\n {searchFacetsState && uiState && experimentIds ? (\n setShowGetLinkModal(false)}\n experimentIds={experimentIds}\n />\n ) : (\n setShowGetLinkModal(false)}\n />\n )}\n {/* TODO: ensure that E2E tests are working after refactor is complete */}\n setShowGetLinkModal(true)}\n data-testid=\"share-button\"\n >\n \n \n \n );\n};\n","import React from 'react';\n\nexport interface ExperimentViewArtifactLocationProps {\n artifactLocation: string;\n}\n\nexport const ExperimentViewArtifactLocation = ({ artifactLocation }: ExperimentViewArtifactLocationProps) => {\n return <>{artifactLocation};\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { ConfirmModal } from './ConfirmModal';\nimport { deleteExperimentApi } from '../../actions';\nimport Routes from '../../routes';\nimport Utils from '../../../common/utils/Utils';\nimport { connect } from 'react-redux';\nimport { NavigateFunction } from '../../../common/utils/RoutingUtils';\nimport { getUUID } from '../../../common/utils/ActionUtils';\nimport { withRouterNext } from '../../../common/utils/withRouterNext';\n\ntype Props = {\n isOpen: boolean;\n onClose: (...args: any[]) => any;\n activeExperimentIds?: string[];\n experimentId: string;\n experimentName: string;\n deleteExperimentApi: (...args: any[]) => any;\n onExperimentDeleted: () => void;\n navigate: NavigateFunction;\n};\n\nexport class DeleteExperimentModalImpl extends Component {\n handleSubmit = () => {\n const { experimentId, activeExperimentIds } = this.props;\n const deleteExperimentRequestId = getUUID();\n\n const deletePromise = this.props\n .deleteExperimentApi(experimentId, deleteExperimentRequestId)\n .then(() => {\n // reload the page if an active experiment was deleted\n if (activeExperimentIds?.includes(experimentId)) {\n if (activeExperimentIds.length === 1) {\n // send it to root\n this.props.navigate(Routes.rootRoute);\n } else {\n const experimentIds = activeExperimentIds.filter((eid) => eid !== experimentId);\n const route =\n experimentIds.length === 1\n ? Routes.getExperimentPageRoute(experimentIds[0])\n : Routes.getCompareExperimentsPageRoute(experimentIds);\n this.props.navigate(route);\n }\n }\n })\n .then(() => this.props.onExperimentDeleted())\n .catch((e: any) => {\n Utils.logErrorAndNotifyUser(e);\n });\n\n return deletePromise;\n };\n\n render() {\n return (\n \n

\n \n Experiment \"{this.props.experimentName}\" (Experiment ID: {this.props.experimentId}) will be deleted.\n \n

\n {/* @ts-expect-error TS(4111): Property 'MLFLOW_SHOW_GDPR_PURGING_MESSAGES' comes from a... Remove this comment to see the full error message */}\n {process.env.MLFLOW_SHOW_GDPR_PURGING_MESSAGES === 'true' ? (\n

\n Deleted experiments are restorable for 30 days, after which they are purged along with their associated\n runs, including metrics, params, tags, and artifacts.\n

\n ) : (\n ''\n )}\n \n }\n confirmButtonText=\"Delete\"\n />\n );\n }\n}\n\nconst mapDispatchToProps = {\n deleteExperimentApi,\n};\n\nexport const DeleteExperimentModal = withRouterNext(connect(undefined, mapDispatchToProps)(DeleteExperimentModalImpl));\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport debounce from 'lodash/debounce';\n\nimport { GenericInputModal } from './GenericInputModal';\nimport { RenameForm, NEW_NAME_FIELD } from './RenameForm';\nimport { getExperimentNameValidator } from '../../../common/forms/validations';\n\nimport { updateExperimentApi, getExperimentApi } from '../../actions';\nimport { getExperiments } from '../../reducers/Reducers';\nimport Utils from '../../../common/utils/Utils';\n\ntype RenameExperimentModalImplProps = {\n isOpen?: boolean;\n experimentId?: string;\n experimentName?: string;\n experimentNames: string[];\n onClose: (...args: any[]) => any;\n updateExperimentApi: (...args: any[]) => any;\n getExperimentApi: (...args: any[]) => any;\n onExperimentRenamed: () => void;\n};\n\nclass RenameExperimentModalImpl extends Component {\n handleRenameExperiment = (values: any) => {\n // get value of input field\n const newExperimentName = values[NEW_NAME_FIELD];\n const updateExperimentPromise = this.props\n .updateExperimentApi(this.props.experimentId, newExperimentName)\n .then(() => {\n this.props.getExperimentApi(this.props.experimentId);\n this.props.onExperimentRenamed();\n })\n .catch((e: any) => Utils.logErrorAndNotifyUser(e));\n\n return updateExperimentPromise;\n };\n\n debouncedExperimentNameValidator = debounce(\n getExperimentNameValidator(() => this.props.experimentNames),\n 400,\n );\n\n render() {\n const { isOpen, experimentName } = this.props;\n return (\n \n {/* @ts-expect-error TS(2769): No overload matches this call. */}\n \n \n );\n }\n}\n\nconst mapStateToProps = (state: any) => {\n const experiments = getExperiments(state);\n const experimentNames = experiments.map((e) => e.name);\n return { experimentNames };\n};\n\nconst mapDispatchToProps = {\n updateExperimentApi,\n getExperimentApi,\n};\n\nexport const RenameExperimentModal = connect(mapStateToProps, mapDispatchToProps)(RenameExperimentModalImpl);\n","import { useCallback, useMemo, useState } from 'react';\nimport { Typography } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { OverflowMenu } from '../../../../../shared/building_blocks/PageHeader';\nimport { ExperimentEntity } from '../../../../types';\nimport { getExperimentType } from '../../utils/experimentPage.common-utils';\nimport { shouldEnableExperimentPageHeaderV2 } from '@mlflow/mlflow/src/common/utils/FeatureUtils';\nimport { getShareFeedbackOverflowMenuItem } from './ExperimentViewHeader.utils';\nimport { getExperimentKindFromTags } from '../../../../utils/ExperimentKindUtils';\nimport { ExperimentKind } from '../../../../constants';\nimport { useNavigate } from '@mlflow/mlflow/src/common/utils/RoutingUtils';\nimport Routes from '@mlflow/mlflow/src/experiment-tracking/routes';\nimport { DeleteExperimentModal } from '../../../modals/DeleteExperimentModal';\nimport { RenameExperimentModal } from '../../../modals/RenameExperimentModal';\nimport { useInvalidateExperimentList } from '../../hooks/useExperimentListQuery';\n\n/**\n * Experiment page header part responsible for displaying menu\n * with rename and delete buttons\n */\nexport const ExperimentViewManagementMenu = ({\n experiment,\n setEditing,\n baseComponentId = 'mlflow.experiment_page.managementMenu',\n}: {\n experiment: ExperimentEntity;\n setEditing?: (editing: boolean) => void;\n baseComponentId?: string;\n}) => {\n const [showRenameExperimentModal, setShowRenameExperimentModal] = useState(false);\n const [showDeleteExperimentModal, setShowDeleteExperimentModal] = useState(false);\n const invalidateExperimentList = useInvalidateExperimentList();\n const navigate = useNavigate();\n\n return (\n <>\n \n ),\n onClick: () => setShowRenameExperimentModal(true),\n },\n {\n id: 'delete',\n itemName: (\n \n ),\n onClick: () => setShowDeleteExperimentModal(true),\n },\n ]}\n />\n setShowRenameExperimentModal(false)}\n onExperimentRenamed={invalidateExperimentList}\n />\n setShowDeleteExperimentModal(false)}\n onExperimentDeleted={() => {\n invalidateExperimentList();\n navigate(Routes.experimentsObservatoryRoute);\n }}\n />\n \n );\n};\n","import React, { useMemo } from 'react';\nimport { Button, GenericSkeleton, NewWindowIcon, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { PageHeader } from '../../../../../shared/building_blocks/PageHeader';\nimport { ExperimentViewCopyTitle } from './ExperimentViewCopyTitle';\nimport { ExperimentViewHeaderShareButton } from './ExperimentViewHeaderShareButton';\nimport { ExperimentEntity } from '../../../../types';\nimport { ExperimentPageSearchFacetsState } from '../../models/ExperimentPageSearchFacetsState';\nimport { ExperimentPageUIState } from '../../models/ExperimentPageUIState';\nimport { ExperimentViewArtifactLocation } from '../ExperimentViewArtifactLocation';\nimport { ExperimentViewCopyExperimentId } from './ExperimentViewCopyExperimentId';\nimport { ExperimentViewCopyArtifactLocation } from './ExperimentViewCopyArtifactLocation';\nimport { InfoSmallIcon, InfoPopover } from '@databricks/design-system';\nimport { Popover } from '@databricks/design-system';\nimport { EXPERIMENT_PAGE_FEEDBACK_URL } from '@mlflow/mlflow/src/experiment-tracking/constants';\nimport { Link } from '@mlflow/mlflow/src/common/utils/RoutingUtils';\nimport Routes from '@mlflow/mlflow/src/experiment-tracking/routes';\nimport { ExperimentViewManagementMenu } from './ExperimentViewManagementMenu';\n\n/**\n * Header for a single experiment page. Displays title, breadcrumbs and provides\n * controls for renaming, deleting and editing permissions.\n */\nexport const ExperimentViewHeader = React.memo(\n ({\n experiment,\n searchFacetsState,\n uiState,\n showAddDescriptionButton,\n setEditing,\n }: {\n experiment: ExperimentEntity;\n searchFacetsState?: ExperimentPageSearchFacetsState;\n uiState?: ExperimentPageUIState;\n showAddDescriptionButton: boolean;\n setEditing: (editing: boolean) => void;\n }) => {\n const breadcrumbs = useMemo(\n () => [\n \n \n ,\n ],\n [],\n );\n const experimentIds = useMemo(() => (experiment ? [experiment?.experimentId] : []), [experiment]);\n\n const { theme } = useDesignSystemTheme();\n\n /**\n * Extract the last part of the experiment name\n */\n const normalizedExperimentName = useMemo(() => experiment.name.split('/').pop(), [experiment.name]);\n\n const feedbackFormUrl = EXPERIMENT_PAGE_FEEDBACK_URL;\n\n const renderFeedbackForm = () => {\n const feedbackLink = (\n }\n >\n \n \n );\n return feedbackLink;\n };\n\n const getShareButton = () => {\n const shareButtonElement = (\n \n );\n return shareButtonElement;\n };\n\n const getInfoTooltip = () => {\n return (\n
\n \n \n
\n \n : {experiment.name + ' '}\n \n
\n
\n \n : {experiment.experimentId + ' '}\n \n
\n
\n \n : {' '}\n \n
\n
\n \n \n );\n };\n const getAddDescriptionButton = () => {\n return (\n {\n setEditing(true);\n }}\n css={{\n marginLeft: theme.spacing.sm,\n background: `${theme.colors.backgroundSecondary} !important`,\n border: 'none',\n }}\n >\n Add Description\n \n );\n };\n\n return (\n \n {normalizedExperimentName}\n \n }\n titleAddOns={[\n getInfoTooltip(),\n renderFeedbackForm(),\n showAddDescriptionButton && getAddDescriptionButton(),\n ].filter(Boolean)}\n breadcrumbs={breadcrumbs}\n spacerSize=\"sm\"\n dangerouslyAppendEmotionCSS={{\n [theme.responsive.mediaQueries.sm]: {\n // Do not wrap the title and buttons on >= small screens\n '& > div': {\n flexWrap: 'nowrap',\n },\n // The title itself should display elements horizontally\n h2: {\n display: 'flex',\n overflow: 'hidden',\n },\n },\n }}\n >\n
\n {/* Wrap the buttons in a flex element */}\n \n {getShareButton()}\n
\n \n );\n },\n);\n\nexport function ExperimentViewHeaderSkeleton() {\n const { theme } = useDesignSystemTheme();\n\n return (\n
\n
\n \n
\n
\n
\n \n
\n
\n \n \n
\n
\n
\n );\n}\n","import { useNavigate, useSearchParams } from '../../../../common/utils/RoutingUtils';\nimport { ExperimentPageTabName } from '../../../constants';\nimport Routes from '../../../routes';\nimport { type ExperimentViewRunsCompareMode } from '../../../types';\n\nexport const EXPERIMENT_PAGE_VIEW_MODE_QUERY_PARAM_KEY = 'compareRunsMode';\n\nexport const getExperimentPageDefaultViewMode = (): ExperimentViewRunsCompareMode => 'TABLE';\n\n// This map is being used to wire routes to certain view modes\nconst viewModeToRouteMap: Partial void>> = {\n MODELS: (experimentId: string) => Routes.getExperimentPageTabRoute(experimentId, ExperimentPageTabName.Models),\n};\n/**\n * Hook using search params to retrieve and update the current experiment page runs view mode.\n * Handles legacy part of the mode switching, based on \"compareRunsMode\" query parameter.\n * Modern part of the mode switching is handled by which works using route params.\n */\nexport const useExperimentPageViewMode = (): [\n ExperimentViewRunsCompareMode,\n (newCompareRunsMode: ExperimentViewRunsCompareMode, experimentId?: string) => void,\n] => {\n const [params, setParams] = useSearchParams();\n const navigate = useNavigate();\n\n const mode =\n (params.get(EXPERIMENT_PAGE_VIEW_MODE_QUERY_PARAM_KEY) as ExperimentViewRunsCompareMode) ||\n getExperimentPageDefaultViewMode();\n const setMode = (newCompareRunsMode: ExperimentViewRunsCompareMode, experimentId?: string) => {\n // Check if the new mode should actually navigate to a different route instead of just changing the query param\n if (newCompareRunsMode in viewModeToRouteMap && experimentId) {\n const route = viewModeToRouteMap[newCompareRunsMode]?.(experimentId);\n if (route) {\n navigate(route);\n return;\n }\n }\n setParams(\n (currentParams) => {\n currentParams.set(EXPERIMENT_PAGE_VIEW_MODE_QUERY_PARAM_KEY, newCompareRunsMode || '');\n return currentParams;\n },\n { replace: false },\n );\n };\n\n return [mode, setMode];\n};\n","import { useMutation } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { ExperimentKind } from '../../../constants';\nimport { MlflowService } from '../../../sdk/MlflowService';\n\n/**\n * An utility wrapper hook to update the experiment kind.\n * The success callback is optional but it's part of the mutation to include it in the loading state.\n */\nexport const useUpdateExperimentKind = (onSuccess?: () => void) =>\n useMutation({\n mutationFn: ({ experimentId, kind }) =>\n MlflowService.setExperimentTag({\n experiment_id: experimentId,\n key: 'mlflow.experimentKind',\n value: kind,\n }).then(() => onSuccess?.() ?? Promise.resolve()),\n });\n","import { ExperimentEntity } from '../../../types';\nimport { KeyValueEntity } from '../../../../common/types';\nimport {\n Button,\n ChevronDownIcon,\n ChevronUpIcon,\n Modal,\n PencilIcon,\n LegacyTooltip,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { useCallback, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { getExperimentTags } from '../../../reducers/Reducers';\nimport { NOTE_CONTENT_TAG } from '../../../utils/NoteUtils';\nimport { ThunkDispatch } from '../../../../redux-types';\nimport React from 'react';\nimport 'react-mde/lib/styles/css/react-mde-all.css';\nimport ReactMde, { SvgIcon } from 'react-mde';\nimport {\n forceAnchorTagNewTab,\n getMarkdownConverter,\n sanitizeConvertedHtml,\n} from '../../../../common/utils/MarkdownUtils';\nimport { FormattedMessage } from 'react-intl';\nimport { setExperimentTagApi } from '../../../actions';\n\nconst extractNoteFromTags = (tags: Record) =>\n Object.values(tags).find((t) => t.key === NOTE_CONTENT_TAG)?.value || undefined;\n\nconst toolbarCommands = [\n ['header', 'bold', 'italic', 'strikethrough'],\n ['link', 'code', 'image'],\n ['unordered-list', 'ordered-list'],\n];\n\nconst converter = getMarkdownConverter();\n\nconst getSanitizedHtmlContent = (markdown: string | undefined) => {\n if (markdown) {\n const sanitized = sanitizeConvertedHtml(converter.makeHtml(markdown));\n return forceAnchorTagNewTab(sanitized);\n }\n return null;\n};\n\nexport const ExperimentViewDescriptionNotes = ({\n experiment,\n editing,\n setEditing,\n setShowAddDescriptionButton,\n onNoteUpdated,\n defaultValue,\n}: {\n experiment: ExperimentEntity;\n editing: boolean;\n setEditing: (editing: boolean) => void;\n setShowAddDescriptionButton: (show: boolean) => void;\n onNoteUpdated?: () => void;\n defaultValue?: string;\n}) => {\n const storedNote = useSelector((state) => {\n const tags = getExperimentTags(experiment.experimentId, state);\n return tags ? extractNoteFromTags(tags) : '';\n });\n setShowAddDescriptionButton(!storedNote);\n\n const effectiveNote = storedNote || defaultValue;\n const [tmpNote, setTmpNote] = useState(effectiveNote);\n const [selectedTab, setSelectedTab] = useState<'write' | 'preview' | undefined>('write');\n const [isExpanded, setIsExpanded] = useState(false);\n\n const { theme } = useDesignSystemTheme();\n const PADDING_HORIZONTAL = 12;\n const DISPLAY_LINE_HEIGHT = 16;\n const COLLAPSE_MAX_HEIGHT = DISPLAY_LINE_HEIGHT + 2 * theme.spacing.sm;\n const MIN_EDITOR_HEIGHT = 200;\n const MAX_EDITOR_HEIGHT = 500;\n const MIN_PREVIEW_HEIGHT = 20;\n\n const dispatch = useDispatch();\n\n const handleSubmitEditNote = useCallback(\n (updatedNote?: string) => {\n setEditing(false);\n setShowAddDescriptionButton(!updatedNote);\n const action = setExperimentTagApi(experiment.experimentId, NOTE_CONTENT_TAG, updatedNote);\n dispatch(action).then(onNoteUpdated);\n },\n [experiment.experimentId, dispatch, setEditing, setShowAddDescriptionButton, onNoteUpdated],\n );\n\n return (\n
\n {effectiveNote && (\n \n \n \n
\n }\n onClick={() => setEditing(true)}\n style={{ padding: `0px ${theme.spacing.sm}px` }}\n />\n {isExpanded ? (\n }\n onClick={() => setIsExpanded(false)}\n style={{ padding: `0px ${theme.spacing.sm}px` }}\n />\n ) : (\n }\n onClick={() => setIsExpanded(true)}\n style={{ padding: `0px ${theme.spacing.sm}px` }}\n />\n )}\n \n )}\n description modal > title\"\n />\n }\n visible={editing}\n okText={\n description modal > save button\" />\n }\n cancelText={\n description modal > cancel button\" />\n }\n onOk={() => {\n handleSubmitEditNote(tmpNote);\n setEditing(false);\n }}\n onCancel={() => {\n setTmpNote(effectiveNote);\n setEditing(false);\n }}\n >\n \n setTmpNote(value)}\n selectedTab={selectedTab}\n onTabChange={(newTab) => setSelectedTab(newTab)}\n generateMarkdownPreview={() => Promise.resolve(getSanitizedHtmlContent(tmpNote))}\n getIcon={(name) => (\n \n \n \n \n \n )}\n />\n \n \n \n );\n};\n","import { CopyIcon, Typography } from '@databricks/design-system';\nimport { useIntl } from 'react-intl';\nimport { ExperimentEntity } from '../../../../types';\n\n/**\n * Experiment page header part responsible for copying\n * the title after clicking on the icon\n */\nexport const ExperimentViewCopyTitle = ({\n experiment,\n size,\n}: {\n experiment: ExperimentEntity;\n size: 'sm' | 'md' | 'lg' | 'xl';\n}) => {\n const intl = useIntl();\n\n return (\n ,\n tooltips: [\n intl.formatMessage({\n defaultMessage: 'Copy path',\n description: 'Copy tooltip to copy experiment path from experiment runs table header',\n }),\n intl.formatMessage({\n defaultMessage: 'Path copied',\n description: 'Tooltip displayed after experiment path was successfully copied to clipboard',\n }),\n ],\n },\n }}\n />\n );\n};\n","import { CopyIcon, Typography } from '@databricks/design-system';\nimport { useIntl } from 'react-intl';\nimport { ExperimentEntity } from '../../../../types';\n\n/**\n * Experiment page header part responsible for copying\n * the artifact location after clicking on the icon\n */\nexport const ExperimentViewCopyArtifactLocation = ({ experiment }: { experiment: ExperimentEntity }) => {\n const intl = useIntl();\n\n return (\n ,\n tooltips: [\n intl.formatMessage({\n defaultMessage: 'Copy artifact location',\n description: 'Copy tooltip to copy experiment artifact location from experiment runs table header',\n }),\n intl.formatMessage({\n defaultMessage: 'Artifact location copied',\n description: 'Tooltip displayed after experiment artifact location was successfully copied to clipboard',\n }),\n ],\n },\n }}\n />\n );\n};\n","import { CopyIcon, Typography } from '@databricks/design-system';\nimport { useIntl } from 'react-intl';\nimport { ExperimentEntity } from '../../../../types';\n\n/**\n * Experiment page header part responsible for copying\n * the experimentId after clicking on the icon\n */\nexport const ExperimentViewCopyExperimentId = ({ experiment }: { experiment: ExperimentEntity }) => {\n const intl = useIntl();\n\n return (\n ,\n tooltips: [\n intl.formatMessage({\n defaultMessage: 'Copy experiment id',\n description: 'Copy tooltip to copy experiment id from experiment runs table header',\n }),\n intl.formatMessage({\n defaultMessage: 'Experiment id copied',\n description: 'Tooltip displayed after experiment id was successfully copied to clipboard',\n }),\n ],\n },\n }}\n />\n );\n};\n"],"names":["useInferExperimentKind","experimentId","isLoadingExperiment","enabled","experimentTags","updateExperimentKind","containsTraces","isLoading","isTracesBeingDetermined","useExperimentContainsTraces","data","useQuery","async","invariant","experimentIds","MlflowService","getExperimentTraces","undefined","Boolean","isEmpty","traces","isDismissed","setIsDismissed","useState","containsRuns","isTrainingRunsBeingDetermined","useExperimentContainsTrainingRuns","error","searchRuns","experiment_ids","max_results","useMemo","runs","inferredExperimentKind","ExperimentKind","GENAI_DEVELOPMENT_INFERRED","CUSTOM_MODEL_DEVELOPMENT_INFERRED","NO_INFERRED_TYPE","inferredExperimentPageTab","ExperimentPageTabName","Traces","Runs","useEffect","isEditableExperimentKind","kind","dismiss","_ref","name","styles","_ref2","_ref3","_ref4","ExperimentViewInferredKindPopover","children","onConfirm","onDismiss","isInferredKindEditable","intl","useIntl","theme","useDesignSystemTheme","_jsxs","css","Popover","Root","componentId","open","modal","_jsx","Trigger","asChild","Content","Arrow","_css","display","alignItems","gap","spacing","sm","Typography","Paragraph","FormattedMessage","id","defaultMessage","values","kindLabel","formatMessage","ExperimentKindShortLabels","isEditable","Button","onClick","type","size","icon","CloseIcon","ExperimentViewHeaderKindSelector","value","onChange","isUpdating","readOnly","dropdownItems","entries","ExperimentKindDropdownLabels","filter","key","getSelectableExperimentKinds","includes","currentValue","normalizeInferredExperimentKind","coerceToEnum","visibleLabel","getVisibleLabel","EMPTY","defineMessage","dropdownOpen","setDropdownOpen","displayInferencePopover","setDisplayInferencePopover","usingDropdown","tagElement","Tag","Spinner","ChevronDownIcon","tagElementWithTooltip","ExperimentTypeTooltip","dropdownElement","DropdownMenu","onOpenChange","align","Label","map","label","isSelected","CheckboxItem","checked","ItemIndicator","Tooltip","content","ExperimentViewInferredKindModal","selectedKind","setSelectedKind","CUSTOM_MODEL_DEVELOPMENT","Modal","visible","onCancel","title","cancelText","okText","onOk","flexDirection","marginBottom","Radio","GENAI_DEVELOPMENT","RunsTabConfig","ListIcon","getRoute","Routes","getExperimentPageTabRoute","TracesTabConfig","ListBorderIcon","ModelsTabConfig","ModelsIcon","Models","GenAIExperimentTabConfigMap","GenAIExperimentWithPromptsTabConfigMap","CustomExperimentTabConfigMap","DefaultTabConfigMap","TabSelectorBar","experimentKind","tabName","useParams","viewMode","useExperimentPageViewMode","topLevelTabName","tabNameFromRoute","useGetExperimentPageActiveTabByRoute","tabNameFromParams","Datasets","EvaluationRuns","LabelingSchemas","LabelingSessions","tabNameFromViewMode","isRunsViewTab","iTracesViewTab","activeTab","tabsConfig","shouldEnablePromptsTabOnDBPlatform","FORECASTING","REGRESSION","AUTOML","CLASSIFICATION","getExperimentTabsConfig","SegmentedControlGroup","newStyleFlagOverride","justifySelf","responsive","mediaQueries","xl","Object","tabConfig","isActive","React","Link","className","to","SegmentedControlButton","delayDuration","ExperimentViewHeaderV2","experiment","searchFacetsState","uiState","setEditing","experimentKindSelector","normalizedExperimentName","split","pop","getExperimentKindFromTags","tags","xs","Breadcrumb","includeTrailingCaret","breadcrumb","index","Item","overflow","minWidth","Title","withoutMargins","level","style","marginRight","InfoPopover","iconTitle","flexWrap","whiteSpace","ExperimentViewCopyTitle","ExperimentViewCopyExperimentId","ExperimentViewArtifactLocation","artifactLocation","ExperimentViewCopyArtifactLocation","justifyContent","marginLeft","ExperimentViewHeaderShareButton","_ref5","ExperimentViewHeaderV2Skeleton","ParagraphSkeleton","loading","TitleSkeleton","width","height","general","heightSm","alignSelf","lg","ExperimentPageRoutePathToTabNameMap","RoutePaths","experimentPageTabRuns","experimentPageTabTraces","experimentPageTabModels","routePath","pathname","useLocation","shouldEnableExperimentPageChildRoutes","_ExperimentPageRouteP","find","matchPath","getTabNameFromRoutePath","CopyBox","copyText","Input","CopyButton","GetLinkModal","link","ExperimentGetShareLinkModal","sharedStateUrl","setSharedStateUrl","linkInProgress","setLinkInProgress","generatedState","setGeneratedState","dispatch","useDispatch","stateToSerialize","createSerializedState","useCallback","length","state","window","location","href","shouldUseCompressedExperimentViewSharedState","textCompressDeflate","JSON","stringify","serializePersistedState","hash","getStringSHA256","tagName","EXPERIMENT_PAGE_VIEW_STATE_SHARE_TAG_PREFIX","setExperimentTagApi","getShareableUrl","shareStateHash","route","getExperimentPageRoute","queryParams","URLSearchParams","set","EXPERIMENT_PAGE_VIEW_STATE_SHARE_URL_PARAM_KEY","EXPERIMENT_PAGE_VIEW_MODE_QUERY_PARAM_KEY","params","toString","hashParam","startsWith","origin","e","Utils","logErrorAndNotifyUser","GenericSkeleton","placeholder","showGetLinkModal","setShowGetLinkModal","_Fragment","DeleteExperimentModalImpl","Component","constructor","args","handleSubmit","activeExperimentIds","this","props","deleteExperimentRequestId","getUUID","deleteExperimentApi","then","navigate","rootRoute","eid","getCompareExperimentsPageRoute","onExperimentDeleted","catch","render","ConfirmModal","isOpen","onClose","experimentName","helpText","confirmButtonText","mapDispatchToProps","DeleteExperimentModal","withRouterNext","connect","RenameExperimentModalImpl","handleRenameExperiment","newExperimentName","NEW_NAME_FIELD","updateExperimentApi","getExperimentApi","onExperimentRenamed","debouncedExperimentNameValidator","debounce","getExperimentNameValidator","experimentNames","GenericInputModal","RenameForm","validator","RenameExperimentModal","getExperiments","ExperimentViewManagementMenu","baseComponentId","showRenameExperimentModal","setShowRenameExperimentModal","showDeleteExperimentModal","setShowDeleteExperimentModal","invalidateExperimentList","useInvalidateExperimentList","useNavigate","OverflowMenu","menu","itemName","experimentsObservatoryRoute","ExperimentViewHeader","showAddDescriptionButton","breadcrumbs","feedbackFormUrl","EXPERIMENT_PAGE_FEEDBACK_URL","PageHeader","wordBreak","textOverflow","verticalAlign","titleAddOns","target","rel","endIcon","NewWindowIcon","background","colors","backgroundSecondary","border","Text","spacerSize","dangerouslyAppendEmotionCSS","h2","ExperimentViewHeaderSkeleton","md","getExperimentPageDefaultViewMode","viewModeToRouteMap","MODELS","setParams","useSearchParams","get","setMode","newCompareRunsMode","_viewModeToRouteMap$n","call","currentParams","replace","useUpdateExperimentKind","onSuccess","useMutation","mutationFn","setExperimentTag","experiment_id","_onSuccess","Promise","resolve","toolbarCommands","converter","getMarkdownConverter","getSanitizedHtmlContent","markdown","sanitized","sanitizeConvertedHtml","makeHtml","forceAnchorTagNewTab","ExperimentViewDescriptionNotes","editing","setShowAddDescriptionButton","onNoteUpdated","defaultValue","storedNote","useSelector","getExperimentTags","_Object$values$find","t","NOTE_CONTENT_TAG","extractNoteFromTags","effectiveNote","tmpNote","setTmpNote","selectedTab","setSelectedTab","isExpanded","setIsExpanded","COLLAPSE_MAX_HEIGHT","handleSubmitEditNote","updatedNote","action","lineHeight","typography","lineHeightLg","padding","flexGrow","overflowWrap","maxHeight","dangerouslySetInnerHTML","__html","PencilIcon","ChevronUpIcon","ReactMde","minEditorHeight","maxEditorHeight","minPreviewHeight","onTabChange","newTab","generateMarkdownPreview","getIcon","LegacyTooltip","color","textPrimary","SvgIcon","dangerouslySetAntdProps","copyable","text","CopyIcon","tooltips"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4175.8b841372.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4175.8b841372.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..5f6967ab63492aa387f262523a704b16f211c14c --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4175.8b841372.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[4175],{15971:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(33886);function o(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},22734:function(e,t,n){"use strict";n.d(t,{z:function(){return g}});var r=n(31014);function o(){return o=Object.assign||function(e){for(var t=1;t=0&&n.callbacks.splice(r,1),n.callbacks.length||s.delete(e),s.size||cancelAnimationFrame(i)}}});return n.observe(),function(){n.unobserve()}}}),[o]),p}function f(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e}var p=function(){return 50},d=function(e){return e},h=function(e,t){return e[t?"offsetWidth":"offsetHeight"]},m=function(e){for(var t=Math.max(e.start-e.overscan,0),n=Math.min(e.end+e.overscan,e.size-1),r=[],o=t;o<=n;o++)r.push(o);return r};function g(e){var t,n=e.size,i=void 0===n?0:n,l=e.estimateSize,s=void 0===l?p:l,a=e.overscan,f=void 0===a?1:a,g=e.paddingStart,v=void 0===g?0:g,k=e.paddingEnd,x=void 0===k?0:k,b=e.parentRef,w=e.horizontal,S=e.scrollToFn,C=e.useObserver,E=e.initialRect,P=e.onScrollElement,O=e.scrollOffsetFn,I=e.keyExtractor,T=void 0===I?d:I,A=e.measureSize,D=void 0===A?h:A,L=e.rangeExtractor,z=void 0===L?m:L,F=w?"width":"height",M=w?"scrollLeft":"scrollTop",N=r.useRef({scrollOffset:0,measurements:[]}),R=r.useState(0),j=R[0],_=R[1];N.current.scrollOffset=j;var H=(C||c)(b,E)[F];N.current.outerSize=H;var B=r.useCallback((function(e){b.current&&(b.current[M]=e)}),[b,M]),V=S||B;S=r.useCallback((function(e){V(e,B)}),[B,V]);var U=r.useState({}),q=U[0],W=U[1],$=r.useCallback((function(){return W({})}),[]),Q=r.useRef([]),Y=r.useMemo((function(){var e=Q.current.length>0?Math.min.apply(Math,Q.current):0;Q.current=[];for(var t=N.current.measurements.slice(0,e),n=e;n=i+l?"end":"start"),"start"===r?S(e):"end"===r?S(e-l):"center"===r&&S(e-l/2)}),[S]),le=r.useCallback((function(e,t){var n=void 0===t?{}:t,r=n.align,l=void 0===r?"auto":r,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(n,["align"]),a=N.current,u=a.measurements,c=a.scrollOffset,f=a.outerSize,p=u[Math.max(0,Math.min(e,i-1))];if(p){if("auto"===l)if(p.end>=c+f)l="end";else{if(!(p.start<=c))return;l="start"}var d="center"===l?p.start+p.size/2:"end"===l?p.end:p.start;ie(d,o({align:l},s))}}),[ie,i]),se=r.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;nr))return o;t=o-1}}return e>0?e-1:0}},32785:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(33886);function o(e,t,n,o){const i=o?o-1:Number.POSITIVE_INFINITY;let l=0;return function(o){if((0,r.On)(o))return e.enter(n),s(o);return t(o)};function s(o){return(0,r.On)(o)&&l++-1&&e.test(String.fromCharCode(t))}}},41977:function(e,t,n){"use strict";function r(e,t,n,r){const o=e.length;let i,l=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return o},m:function(){return r}})},53087:function(e,t,n){"use strict";function r(e,t,n){const r=[];let o=-1;for(;++o0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?c.push(...i):i&&c.push(i),s=n+f[0].length,u=!0),!r.global)break;f=r.exec(e.value)}u?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],o=n.indexOf(")");const i=r(e,"(");let l=r(e,")");for(;-1!==o&&i>l;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),l++;return[e,n]}(n+o);if(!s[0])return!1;const a={type:"link",title:null,url:l+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function C(e,t,n,r){return!(!E(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function E(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.Ny)(n)||(0,i.es)(n))&&(!t||47!==n)}var P=n(75609);function O(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function I(){this.buffer()}function T(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,o.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,P.B)(this.sliceSerialize(e)).toLowerCase()}function A(e){this.exit(e)}function D(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function L(){this.buffer()}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,o.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,P.B)(this.sliceSerialize(e)).toLowerCase()}function F(e){this.exit(e)}function M(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]"})),s(),l(),i+=o.move("]"),i}function N(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const l=n.enter("footnoteDefinition"),s=n.enter("label");return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(n.indentLines(n.containerFlow(e,o.current()),R)),l(),i}function R(e,t,n){return 0===t?e:(n?"":" ")+e}M.peek=function(){return"["};const j=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function _(e){this.enter({type:"delete",children:[]},e)}function H(e){this.exit(e)}function B(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let l=o.move("~~");return l+=n.containerPhrasing(e,{...o.current(),before:l,after:"~"}),l+=o.move("~~"),i(),l}function V(e){return e.length}function U(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function q(e,t,n){return">"+(n?"":" ")+e}function W(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),s()),u+=a.move(")"),l(),u}function ee(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("![");const u=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=c,i(),"full"!==o&&u&&u===f?"shortcut"===o?a=a.slice(0,-1):a+=s.move("]"):a+=s.move(f+"]"),a}function te(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i\u007F]/.test(e.url))}function re(e,t,n,r){const o=Y(n),i='"'===o?"Quote":"Apostrophe",l=n.createTracker(r);let s,a;if(ne(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()})),r+=l.move(">"),s(),n.stack=t,r}s=n.enter("link"),a=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),u+=l.move(")"),s(),u}function oe(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=c,i(),"full"!==o&&u&&u===f?"shortcut"===o?a=a.slice(0,-1):a+=s.move("]"):a+=s.move(f+"]"),a}function ie(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function le(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Z.peek=function(){return"<"},G.peek=function(){return"!"},ee.peek=function(){return"!"},te.peek=function(){return"`"},re.peek=function(e,t,n){return ne(e,n)?"<":"["},oe.peek=function(){return"["};const se=function(e){if(null===e||void 0===e)return ue;if("function"===typeof e)return ae(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),q);return o(),l},break:$,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",l="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Q);return e(),t}const s=n.createTracker(r),a=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,l=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>l&&(l=i):i=1,o=r+t.length,r=n.indexOf(t,o);return l}(i,o)+1,3)),u=n.enter("codeFenced");let c=s.move(a);if(e.lang){const t=n.enter(`codeFencedLang${l}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${l}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...s.current()})),t()}return c+=s.move("\n"),i&&(c+=s.move(i+"\n")),c+=s.move(a),u(),c},definition:function(e,t,n,r){const o=Y(n),i='"'===o?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),s()),l(),u},emphasis:J,hardBreak:$,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(X(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),l=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),l+"\n"+(1===o?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf("\n"))+1))}const l="#".repeat(o),s=n.enter("headingAtx"),a=n.enter("phrasing");i.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),a(),s(),u},html:Z,image:G,imageReference:ee,inlineCode:te,link:re,linkReference:oe,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ie(n);const s=e.ordered?"."===l?")":".":function(e){const t=ie(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let a=!(!t||!n.bulletLastUsed)&&l===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==l&&"-"!==l||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),le(n)===l&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let l=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(l=4*Math.ceil(l/4));const s=n.createTracker(r);s.move(i+" ".repeat(l-i.length)),s.shift(l);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(l))+e;return(n?i:i+" ".repeat(l-i.length))+e}));return a(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),o(),l},root:function(e,t,n,r){return(e.children.some((function(e){return fe(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:pe,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(le(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function he(e){const t=e._align;(0,o.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function me(e){this.exit(e),this.data.inTable=void 0}function ge(e){this.enter({type:"tableRow",children:[]},e)}function ye(e){this.exit(e)}function ve(e){this.enter({type:"tableCell",children:[]},e)}function ke(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,xe));const n=this.stack[this.stack.length-1];(0,o.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function xe(e,t){return"|"===t?t:e}function be(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=de.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("table");for(;++oa&&(a=e[u].length);++fs[f])&&(s[f]=e)}n.push(i)}i[u]=n,l[u]=o}var c;let f=-1;if("object"===typeof n&&"length"in n)for(;++fs[f]&&(s[f]=i),d[f]=i),p[f]=l}i.splice(1,0,p),l.splice(1,0,d),u=-1;const h=[];for(;++u0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Fe[43]=ze,Fe[45]=ze,Fe[46]=ze,Fe[95]=ze,Fe[72]=[ze,Le],Fe[104]=[ze,Le],Fe[87]=[ze,De],Fe[119]=[ze,De];var Be=n(93379),Ve=n(32785);const Ue={tokenize:function(e,t,n){const r=this;return(0,Ve.N)(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function qe(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){l=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!l||!l._balanced)return n(o);const s=(0,P.B)(r.sliceSerialize({start:l.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function We(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...a),e}function $e(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(a){if(s>999||93===a&&!l||null===a||91===a||(0,i.Ee)(a))return n(a);if(93===a){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes((0,P.B)(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return(0,i.Ee)(a)||(l=!0),s++,e.consume(a),92===a?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Qe(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!s||null===t||91===t||(0,i.Ee)(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return l=(0,P.B)(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,i.Ee)(t)||(s=!0),a++,e.consume(t),92===t?f:c}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(l)||o.push(l),(0,Ve.N)(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Ye(e,t,n){return e.check(Be.B,t,e.attempt(Ue,t,n))}function Je(e){e.exit("gfmFootnoteDefinition")}var Ke=n(41977),Xe=n(15971),Ze=n(53087);function Ge(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let l=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const a=(0,Xe.S)(o);if(126===i)return l>1?r(i):(e.consume(i),l++,s);if(l<2&&!t)return r(i);const u=e.exit("strikethroughSequenceTemporary"),c=(0,Xe.S)(i);return u._open=!c||2===c&&Boolean(a),u._close=!a||2===a&&Boolean(c),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function tt(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?b:a;if(i===b&&r.parser.lazy[r.now().line])return n(e);return i(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return u(e);return o=!0,s+=1,u(e)}(t)}function u(t){return null===t?n(t):(0,i.HP)(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,i.On)(t)?(0,Ve.N)(e,u,"whitespace")(t):(s+=1,o&&(o=!1,l+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||(0,i.Ee)(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?f:c)}function f(t){return 92===t||124===t?(e.consume(t),c):c(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,(0,i.On)(t)?(0,Ve.N)(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?m(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):x(t)}function h(t){return(0,i.On)(t)?(0,Ve.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(s+=1,g(t)):null===t||(0,i.HP)(t)?k(t):x(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),y(t)):x(t)}function y(t){return 45===t?(e.consume(t),y):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return(0,i.On)(t)?(0,Ve.N)(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?d(n):(null===n||(0,i.HP)(n))&&o&&l===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):x(n)}function x(e){return n(e)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||(0,i.HP)(n)?(e.exit("tableRow"),t(n)):(0,i.On)(n)?(0,Ve.N)(e,w,"whitespace")(n):(e.enter("data"),S(n))}function S(t){return null===t||124===t||(0,i.Ee)(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?C:S)}function C(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function rt(e,t){let n,r,o,i=-1,l=!0,s=0,a=[0,0,0,0],u=[0,0,0,0],c=!1,f=0;const p=new et;for(;++in[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",l,t]])}return void 0!==o&&(i.end=Object.assign({},lt(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function it(e,t,n,r,o){const i=[],l=lt(t.events,n);o&&(o.end=Object.assign({},l),i.push(["exit",o,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function lt(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const st={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return(0,i.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return(0,i.HP)(r)?t(r):(0,i.On)(r)?e.check({tokenize:at},t,n)(r):n(r)}}};function at(e,t,n){return(0,Ve.N)(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const ut={};function ct(e){const t=e||ut,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return(0,Ee.y)([{text:Fe},{document:{91:{tokenize:Qe,continuation:{tokenize:Ye},exit:Je}},text:{91:{tokenize:$e},93:{add:"after",tokenize:qe,resolveTo:We}}},Ge(e),{flow:{null:{tokenize:nt,resolveAll:rt}}},{text:{91:st}}])}(t)),o.push([{transforms:[w],enter:{literalAutolink:g,literalAutolinkEmail:y,literalAutolinkHttp:y,literalAutolinkWww:y},exit:{literalAutolink:b,literalAutolinkEmail:x,literalAutolinkHttp:v,literalAutolinkWww:k}},{enter:{gfmFootnoteDefinition:O,gfmFootnoteDefinitionLabelString:I,gfmFootnoteCall:D,gfmFootnoteCallString:L},exit:{gfmFootnoteDefinition:A,gfmFootnoteDefinitionLabelString:T,gfmFootnoteCall:F,gfmFootnoteCallString:z}},{canContainEols:["delete"],enter:{strikethrough:_},exit:{strikethrough:H}},{enter:{table:he,tableData:ve,tableHeader:ve,tableRow:ge},exit:{codeText:ke,table:me,tableData:ye,tableHeader:ye,tableRow:ye}},{exit:{taskListCheckValueChecked:we,taskListCheckValueUnchecked:we,paragraph:Se}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:h,notInConstruct:m},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:h,notInConstruct:m},{character:":",before:"[ps]",after:"\\/",inConstruct:h,notInConstruct:m}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:N,footnoteReference:M}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:j}],handlers:{delete:B}},be(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ce}}]}}(t))}},57557:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!==typeof e)return n;var r=(0,o.default)(e),i="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(89188))},58006:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});const r={};function o(e,t){const n=t||r;return i(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function i(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l(e.children,t,n)}return Array.isArray(e)?l(e,t,n):""}function l(e,t,n){const r=[];let o=-1;for(;++o0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function K(e){return e&&"object"===typeof e?"position"in e||"type"in e?Z(e.position):"start"in e||"end"in e?Z(e):"line"in e||"column"in e?X(e):"":""}function X(e){return G(e&&e.line)+":"+G(e&&e.column)}function Z(e){return X(e&&e.start)+"-"+X(e&&e.end)}function G(e){return e&&"number"===typeof e?e:1}class ee extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=l?l.line:void 0,this.name=K(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ee.prototype.file="",ee.prototype.name="",ee.prototype.reason="",ee.prototype.message="",ee.prototype.stack="",ee.prototype.column=void 0,ee.prototype.line=void 0,ee.prototype.ancestors=void 0,ee.prototype.cause=void 0,ee.prototype.fatal=void 0,ee.prototype.place=void 0,ee.prototype.ruleId=void 0,ee.prototype.source=void 0;const te={}.hasOwnProperty,ne=new Map,re=/[A-Z]/g,oe=/-([a-z])/g,ie=new Set(["table","tbody","thead","tfoot","tr"]),le=new Set(["td","th"]),se="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ae(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const l=Array.isArray(o.children),s=Y(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const l=Array.isArray(o.children)?n:t;return i?l(r,o,i):l(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?_:j,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=ue(o,e,void 0);return i&&"string"!==typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function ue(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=_,e.schema=o);e.ancestors.push(t);const i=he(e,t.tagName,!1),l=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&te.call(t.properties,o)){const i=de(e,o,t.properties[o]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof l&&le.has(t.tagName)?r=l:n[o]=l}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=pe(e,t);ie.has(t.tagName)&&(s=s.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&f(t.value):f(t));var t})));return ce(e,l,i,t),fe(l,s),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}me(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=_,e.schema=o);e.ancestors.push(t);const l=null===t.name?e.Fragment:he(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);const o=t.expression;(0,i.ok)("ObjectExpression"===o.type);const l=o.properties[0];(0,i.ok)("SpreadElement"===l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else me(e,t.position);else{const o=r.name;let l;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else me(e,t.position);else l=null===r.value||r.value;n[o]=l}return n}(e,t),a=pe(e,t);return ce(e,s,l,t),fe(s,a),e.ancestors.pop(),e.schema=r,e.create(t,l,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);me(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return fe(r,pe(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ce(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fe(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pe(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:ne;for(;++r4&&"data"===n.slice(0,4)&&H.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(B,q);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!B.test(e)){let n=e.replace(V,U);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=P}return new o(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{Q(t,r)}catch(o){if(!e.ignoreInvalidStyle){const t=o,n=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=se+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(oe,ye)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)te.call(e,n)&&(t[ge(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?W[r.property]||r.property:r.attribute,n]}}function he(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ce(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ce(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ce(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(ei))return;const n=t.events.length;let o,s,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){if(o){s=t.events[a][1].end;break}o=!0}for(y(l),e=n;er;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Le={tokenize:function(e,t,n){return(0,Ie.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var ze=n(93379);const Fe={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):(0,Te.HP)(t)?e.check(Me,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Ee(e),e}},Me={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,Ie.N)(e,o,"linePrefix")};function o(o){if(null===o||(0,Te.HP)(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const Ne={tokenize:function(e){const t=this,n=e.attempt(ze.B,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,(0,Ie.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Fe,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Re={resolveAll:Be()},je=He("string"),_e=He("text");function He(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return a(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function a(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1){const e=l[0];"string"===typeof e?l[0]=e.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}(l,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function m(){let e;for(;r._index=3&&(null===i||(0,Te.HP)(i))?(e.exit("thematicBreak"),t(i)):n(i)}function l(t){return t===r?(e.consume(t),o++,l):(e.exit("thematicBreakSequence"),(0,Te.On)(t)?(0,Ie.N)(e,i,"whitespace")(t):i(t))}}};const $e={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,l=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:(0,Te.BM)(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(We,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return(0,Te.BM)(t)&&++l<10?(e.consume(t),s):(!r.interrupt||l<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),a(t)):n(t)}function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ze.B,r.interrupt?n:u,e.attempt(Qe,f,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function c(t){return(0,Te.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ze.B,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,Ie.N)(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!(0,Te.On)(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ye,t,o)(n)}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,Ie.N)(e,e.attempt($e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Qe={tokenize:function(e,t,n){const r=this;return(0,Ie.N)(e,(function(e){const o=r.events[r.events.length-1];return!(0,Te.On)(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ye={tokenize:function(e,t,n){const r=this;return(0,Ie.N)(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Je={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return(0,Te.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if((0,Te.On)(t))return(0,Ie.N)(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Je,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Ke(e,t,n,r,o,i,l,s,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||(0,Te.JQ)(t))return n(t);return e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||(0,Te.HP)(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return c||null!==o&&41!==o&&!(0,Te.Ee)(o)?c999||null===f||91===f||93===f&&!s||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):(0,Te.HP)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||(0,Te.HP)(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!(0,Te.On)(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Ze(e,t,n,r,o,i){let l;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,s;return n(t)};function s(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),a(n))}function a(t){return t===l?(e.exit(i),s(l)):null===t?n(t):(0,Te.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,Ie.N)(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||(0,Te.HP)(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function Ge(e,t){let n;return function r(o){if((0,Te.HP)(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if((0,Te.On)(o))return(0,Ie.N)(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}var et=n(75609);const tt={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Xe.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=(0,et.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return(0,Te.Ee)(t)?Ge(e,s)(t):s(t)}function s(t){return Ke(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(nt,u,u)(t)}function u(t){return(0,Te.On)(t)?(0,Ie.N)(e,c,"whitespace")(t):c(t)}function c(i){return null===i||(0,Te.HP)(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},nt={tokenize:function(e,t,n){return function(t){return(0,Te.Ee)(t)?Ge(e,r)(t):n(t)};function r(t){return Ze(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return(0,Te.On)(t)?(0,Ie.N)(e,i,"whitespace")(t):i(t)}function i(e){return null===e||(0,Te.HP)(e)?t(e):n(e)}},partial:!0};const rt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),(0,Ie.N)(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):(0,Te.HP)(t)?e.attempt(ot,i,s)(t):(e.enter("codeFlowValue"),l(t))}function l(t){return null===t||(0,Te.HP)(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),l)}function s(n){return e.exit("codeIndented"),t(n)}}},ot={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):(0,Te.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(0,Ie.N)(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):(0,Te.HP)(e)?o(e):n(e)}},partial:!0};const it={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||(0,Te.Ee)(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),l(n)):null===n||(0,Te.HP)(n)?(e.exit("atxHeading"),t(n)):(0,Te.On)(n)?(0,Ie.N)(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function l(t){return 35===t?(e.consume(t),l):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||(0,Te.Ee)(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},(0,we.m)(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const lt={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let l,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){l="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||l))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),(0,Te.On)(t)?(0,Ie.N)(e,l,"lineSuffix")(t):l(t))}function l(r){return null===r||(0,Te.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=l;return e.push(["exit",l,t]),e}};const st=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],ut={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,l,s,a;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),o=3,r.interrupt?t:F):(0,Te.CW)(s)?(e.consume(s),l=String.fromCharCode(s),h):n(s)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,s=0,p):(0,Te.CW)(i)?(e.consume(i),o=4,r.interrupt?t:F):n(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:F):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:P:p):n(o)}function d(t){return(0,Te.CW)(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||(0,Te.Ee)(s)){const a=47===s,u=l.toLowerCase();return a||i||!at.includes(u)?st.includes(l.toLowerCase())?(o=6,a?(e.consume(s),m):r.interrupt?t(s):P(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):P(s))}return 45===s||(0,Te.lV)(s)?(e.consume(s),l+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:P):n(o)}function g(t){return(0,Te.On)(t)?(e.consume(t),g):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||(0,Te.CW)(t)?(e.consume(t),v):(0,Te.On)(t)?(e.consume(t),y):C(t)}function v(t){return 45===t||46===t||58===t||95===t||(0,Te.lV)(t)?(e.consume(t),v):k(t)}function k(t){return 61===t?(e.consume(t),x):(0,Te.On)(t)?(e.consume(t),k):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):(0,Te.On)(t)?(e.consume(t),x):w(t)}function b(t){return t===a?(e.consume(t),a=null,S):null===t||(0,Te.HP)(t)?n(t):(e.consume(t),b)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||(0,Te.Ee)(t)?k(t):(e.consume(t),w)}function S(e){return 47===e||62===e||(0,Te.On)(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||(0,Te.HP)(t)?P(t):(0,Te.On)(t)?(e.consume(t),E):n(t)}function P(t){return 45===t&&2===o?(e.consume(t),A):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t),M):63===t&&3===o?(e.consume(t),F):93===t&&5===o?(e.consume(t),z):!(0,Te.HP)(t)||6!==o&&7!==o?null===t||(0,Te.HP)(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(ct,N,O)(t))}function O(t){return e.check(ft,I,N)(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||(0,Te.HP)(t)?O(t):(e.enter("htmlFlowData"),P(t))}function A(t){return 45===t?(e.consume(t),F):P(t)}function D(t){return 47===t?(e.consume(t),l="",L):P(t)}function L(t){if(62===t){const n=l.toLowerCase();return at.includes(n)?(e.consume(t),M):P(t)}return(0,Te.CW)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):P(t)}function z(t){return 93===t?(e.consume(t),F):P(t)}function F(t){return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),F):P(t)}function M(t){return null===t||(0,Te.HP)(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),M)}function N(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},ct={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ze.B,t,n)}},partial:!0},ft={tokenize:function(e,t,n){const r=this;return function(t){if((0,Te.HP)(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const pt={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},dt={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return l;function l(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a}function a(t){return e.enter("codeFencedFence"),(0,Te.On)(t)?(0,Ie.N)(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),(0,Te.On)(t)?(0,Ie.N)(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||(0,Te.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,l=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return l=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}(t)};function a(t){return t===i?(s++,e.consume(t),a):s<3?n(t):(e.exit("codeFencedFenceSequence"),(0,Te.On)(t)?(0,Ie.N)(e,u,"whitespace")(t):u(t))}function u(n){return null===n||(0,Te.HP)(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(pt,d,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||(0,Te.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):(0,Te.On)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,Ie.N)(e,f,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function f(t){return null===t||(0,Te.HP)(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||(0,Te.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),p)}function d(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return l>0&&(0,Te.On)(t)?(0,Ie.N)(e,g,"linePrefix",l+1)(t):g(t)}function g(t){return null===t||(0,Te.HP)(t)?e.check(pt,d,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||(0,Te.HP)(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const ht=document.createElement("i");function mt(e){const t="&"+e+";";ht.innerHTML=t;const n=ht.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const gt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=Te.lV,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Te.ok,u):(e.enter("characterReferenceValue"),o=7,i=Te.BM,u(t))}function u(s){if(59===s&&l){const o=e.exit("characterReferenceValue");return i!==Te.lV||mt(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&l++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),p=Object.assign({},e[c][1].start);Pt(f,-s),Pt(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=(0,we.V)(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=(0,we.V)(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),a=(0,we.V)(a,(0,Ue.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=(0,we.V)(a,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,a=(0,we.V)(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,we.m)(e,n-1,c-n+3,a),c=n+a.length-u-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Ut=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vt(n.slice(t?2:1),t?16:10)}return mt(n)||e}const Wt={}.hasOwnProperty;function $t(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ne),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(Z),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(Q),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(Q,l),codeText:i(Y,l),codeTextData:E,data:E,codeFlowValue:E,definition:i(J),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(X),hardBreakEscape:i(G),hardBreakTrailing:i(G),htmlFlow:i(ee,l),htmlFlowData:E,htmlText:i(ee,l),htmlTextData:E,image:i(te),label:l,link:i(ne),listItem:i(oe),listItemValue:p,listOrdered:i(re,f),listUnordered:i(re),paragraph:i(ie),reference:_,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(Z),strong:i(le),thematicBreak:i(ae)},exit:{atxHeading:a(),atxHeadingSequence:b,autolink:a(),autolinkEmail:W,autolinkProtocol:q,blockQuote:a(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:V,characterReference:U,codeFenced:a(g),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:P,codeIndented:a(y),codeText:a(D),codeTextData:P,data:P,definition:a(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:k,emphasis:a(),hardBreakEscape:a(I),hardBreakTrailing:a(I),htmlFlow:a(T),htmlFlowData:P,htmlText:a(A),htmlTextData:P,image:a(z),label:M,labelText:F,lineEnding:O,link:a(L),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:H,resourceDestinationString:N,resourceTitleString:R,resource:j,setextHeading:a(C),setextHeadingLineSequence:S,setextHeadingText:w,strong:a(),thematicBreak:a()}};Yt(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:u,buffer:l,resume:c,data:n},a=[];let f=-1;for(;++f0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Kt).call(i,void 0,e[0])}for(r.position={start:Qt(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Qt(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case 0:case-1:return n(l,o);case 1:{const e=n([],o);for(const t of l)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),o);case 4:{const{source:e,flags:t}=l;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of l)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of l)e.add(r(t));return e}case 7:{const{name:e,message:t}=l;return n(new Zt[e](t),o)}case 8:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o)}return n(new Zt[i](l),o)};return r})(new Map,e)(0),en="",{toString:tn}={},{keys:nn}=Object,rn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=tn.call(e).slice(8,-1);switch(n){case"Array":return[1,en];case"Object":return[2,en];case"Date":return[3,en];case"RegExp":return[4,en];case"Map":return[5,en];case"Set":return[6,en]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},on=([e,t])=>0===e&&("function"===t||"symbol"===t),ln=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[l,s]=rn(r);switch(l){case 0:{let t=r;switch(s){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([l,t],r)}case 1:{if(s)return o([s,[...r]],r);const e=[],t=o([l,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],a=o([l,n],r);for(const t of nn(r))!e&&on(rn(r[t]))||n.push([i(t),i(r[t])]);return a}case 3:return o([l,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([l,{source:e,flags:t}],r)}case 5:{const t=[],n=o([l,t],r);for(const[o,l]of r)(e||!on(rn(o))&&!on(rn(l)))&&t.push([i(o),i(l)]);return n}case 6:{const t=[],n=o([l,t],r);for(const o of r)!e&&on(rn(o))||t.push(i(o));return n}}const{message:a}=r;return o([l,{name:s,message:a}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var sn="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Gt(ln(e,t)):structuredClone(e):(e,t)=>Gt(ln(e,t));function an(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(l=String.fromCharCode(i,t),o=1):l="\ufffd"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function un(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function cn(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var fn=n(77379);const pn=hn("end"),dn=hn("start");function hn(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function mn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push({type:"text",value:r}),o}function gn(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function yn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(vn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(vn(t.slice(o),o>0,!1)),i.join("")}function vn(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const kn={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=an(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mn(e,t);const o={src:an(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:an(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mn(e,t);const o={href:an(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:an(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=dn(t.children[1]),l=pn(t.children[t.children.length-1]);i&&l&&(r.position={start:i,end:l}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length;let s=-1;const a=[];for(;++s0&&n.push({type:"text",value:"\n"}),n}function In(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Tn(e,t){const n=Sn(e,t),r=n.one(e,void 0),o=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||un,r=e.options.footnoteBackLabel||cn,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a0&&f.push({type:"text",value:" "});let e="string"===typeof n?n:n(a,c);"string"===typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=i[i.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else i.push(...f);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...sn(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&((0,i.ok)("children"in l),l.children.push({type:"text",value:"\n"},o)),l}function An(e,t){return e&&"run"in e?async function(n,r){const o=Tn(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Tn(n,{file:r,...t||e})}}function Dn(e){if(e)throw e}var Ln=n(80555);function zn(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fn(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!==typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...l){const s=e[++n];let a=-1;if(i)r(i);else{for(;++at.length;let s;r&&t.push(o);try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return o(i)}r||(s instanceof Promise?s.then(l,o):s instanceof Error?o(s):l(s))}function o(e,...r){n||(n=!0,t(e,...r))}function l(e){o(null,e)}}(s,o)(...l):r(null,...l)}}(null,...t)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Mn={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Nn(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Nn(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Nn(e);let t,n=e.length,r=-1,o=0,i=-1,l=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==l&&(l=1):i>-1&&(l=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,s=0;continue}}else if(o.length>0){o="",i=0,l=a,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Nn(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Rn={cwd:function(){return"/"}};function jn(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function _n(e){if("string"===typeof e)e=new URL(e);else if(!jn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n0){let[r,...i]=t;const l=n[o][1];zn(l)&&zn(r)&&(r=Ln(!0,l,r)),n[o]=[e,r,...i]}}}}const Yn=(new Qn).freeze();function Jn(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Kn(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zn(e){if(!zn(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Gn(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function er(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Bn(e)}const tr="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",nr=[],rr={allowDangerousHtml:!0},or=/^(https?|ircs?|mailto|xmpp)$/i,ir=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lr(e){const t=sr(e),n=ar(e);return ur(t.runSync(t.parse(n),n),e)}function sr(e){const t=e.rehypePlugins||nr,n=e.remarkPlugins||nr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rr}:rr;return Yn().use(Xt).use(n).use(An,r).use(t)}function ar(e){const t=e.children||"",n=new Bn;return"string"===typeof t?n.value=t:(0,i.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}function ur(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,l=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||cr;for(const c of ir)Object.hasOwn(t,c.from)&&(0,i.HB)("Unexpected `"+c.from+"` prop, "+(c.to?"use `"+c.to+"` instead":"remove it")+" (see <"+tr+"#"+c.id+"> for more info)");return n&&l&&(0,i.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),function(e,t,n,r){let o,i,l;"function"===typeof t&&"function"!==typeof n?(i=void 0,l=t,o=n):(i=t,l=n,o=r),(0,fn.VG)(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)}),o)}(e,(function(e,t,o){if("raw"===e.type&&o&&"number"===typeof t)return s?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ke)if(Object.hasOwn(ke,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ke[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&r&&"number"===typeof t&&(i=!r(e,t,o)),i&&o&&"number"===typeof t)return a&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}})),ae(e,{Fragment:xe.Fragment,components:o,ignoreInvalidStyle:!0,jsx:xe.jsx,jsxs:xe.jsxs,passKeys:!0,passNode:!0})}function cr(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||or.test(e.slice(0,t))?e:""}},75609:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:function(){return r}})},77379:function(e,t,n){"use strict";n.d(t,{dc:function(){return u},VG:function(){return f}});const r=function(e){if(null===e||void 0===e)return i;if("function"===typeof e)return o(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return h;function h(){let d,h,m,g=s;if((!t||l(r,i,p[p.length-1]||void 0))&&(g=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[a,e];return null===e||void 0===e?s:[e]}(n(r,p)),g[0]===u))return g;if("children"in r&&r.children){const t=r;if(t.children&&g[0]!==c)for(h=(o?t.children.length:-1)+f,m=p.concat(t);h>-1&&h 👉 **Note**: eof (`null`) is seen as whitespace.\n *\n * @param {Code} code\n * Code.\n * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}\n * Group.\n */\nexport function classifyCharacter(code) {\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return 1\n }\n if (unicodePunctuation(code)) {\n return 2\n }\n}\n","var props = ['bottom', 'height', 'left', 'right', 'top', 'width'];\n\nvar rectChanged = function rectChanged(a, b) {\n if (a === void 0) {\n a = {};\n }\n\n if (b === void 0) {\n b = {};\n }\n\n return props.some(function (prop) {\n return a[prop] !== b[prop];\n });\n};\n\nvar observedNodes =\n/*#__PURE__*/\nnew Map();\nvar rafId;\n\nvar run = function run() {\n var changedStates = [];\n observedNodes.forEach(function (state, node) {\n var newRect = node.getBoundingClientRect();\n\n if (rectChanged(newRect, state.rect)) {\n state.rect = newRect;\n changedStates.push(state);\n }\n });\n changedStates.forEach(function (state) {\n state.callbacks.forEach(function (cb) {\n return cb(state.rect);\n });\n });\n rafId = window.requestAnimationFrame(run);\n};\n\nfunction observeRect(node, cb) {\n return {\n observe: function observe() {\n var wasEmpty = observedNodes.size === 0;\n\n if (observedNodes.has(node)) {\n observedNodes.get(node).callbacks.push(cb);\n } else {\n observedNodes.set(node, {\n rect: undefined,\n hasRectChanged: false,\n callbacks: [cb]\n });\n }\n\n if (wasEmpty) run();\n },\n unobserve: function unobserve() {\n var state = observedNodes.get(node);\n\n if (state) {\n // Remove the callback\n var index = state.callbacks.indexOf(cb);\n if (index >= 0) state.callbacks.splice(index, 1); // Remove the node reference\n\n if (!state.callbacks.length) observedNodes[\"delete\"](node); // Stop the loop\n\n if (!observedNodes.size) cancelAnimationFrame(rafId);\n }\n }\n };\n}\n\nexport default observeRect;\n//# sourceMappingURL=observe-rect.esm.js.map\n","import React from 'react'\n\nexport default typeof window !== 'undefined'\n ? React.useLayoutEffect\n : React.useEffect\n","import React from 'react'\nimport observeRect from '@reach/observe-rect'\nimport useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'\n\nexport default function useRect(\n nodeRef,\n initialRect = { width: 0, height: 0 }\n) {\n const [element, setElement] = React.useState(nodeRef.current)\n const [rect, dispatch] = React.useReducer(rectReducer, initialRect)\n const initialRectSet = React.useRef(false)\n\n useIsomorphicLayoutEffect(() => {\n if (nodeRef.current !== element) {\n setElement(nodeRef.current)\n }\n })\n\n useIsomorphicLayoutEffect(() => {\n if (element && !initialRectSet.current) {\n initialRectSet.current = true\n const rect = element.getBoundingClientRect()\n dispatch({ rect })\n }\n }, [element])\n\n React.useEffect(() => {\n if (!element) {\n return\n }\n\n const observer = observeRect(element, rect => {\n dispatch({ rect })\n })\n\n observer.observe()\n\n return () => {\n observer.unobserve()\n }\n }, [element])\n\n return rect\n}\n\nfunction rectReducer(state, action) {\n const rect = action.rect\n if (state.height !== rect.height || state.width !== rect.width) {\n return rect\n }\n return state\n}\n","import React from 'react'\nimport useRect from './useRect'\nimport useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect'\n\nconst defaultEstimateSize = () => 50\n\nconst defaultKeyExtractor = index => index\n\nconst defaultMeasureSize = (el, horizontal) => {\n const key = horizontal ? 'offsetWidth' : 'offsetHeight'\n\n return el[key]\n}\n\nexport const defaultRangeExtractor = range => {\n const start = Math.max(range.start - range.overscan, 0)\n const end = Math.min(range.end + range.overscan, range.size - 1)\n\n const arr = []\n\n for (let i = start; i <= end; i++) {\n arr.push(i)\n }\n\n return arr\n}\n\nexport function useVirtual({\n size = 0,\n estimateSize = defaultEstimateSize,\n overscan = 1,\n paddingStart = 0,\n paddingEnd = 0,\n parentRef,\n horizontal,\n scrollToFn,\n useObserver,\n initialRect,\n onScrollElement,\n scrollOffsetFn,\n keyExtractor = defaultKeyExtractor,\n measureSize = defaultMeasureSize,\n rangeExtractor = defaultRangeExtractor,\n}) {\n const sizeKey = horizontal ? 'width' : 'height'\n const scrollKey = horizontal ? 'scrollLeft' : 'scrollTop'\n\n const latestRef = React.useRef({\n scrollOffset: 0,\n measurements: [],\n })\n\n const [scrollOffset, setScrollOffset] = React.useState(0)\n latestRef.current.scrollOffset = scrollOffset\n\n const useMeasureParent = useObserver || useRect\n\n const { [sizeKey]: outerSize } = useMeasureParent(parentRef, initialRect)\n\n latestRef.current.outerSize = outerSize\n\n const defaultScrollToFn = React.useCallback(\n offset => {\n if (parentRef.current) {\n parentRef.current[scrollKey] = offset\n }\n },\n [parentRef, scrollKey]\n )\n\n const resolvedScrollToFn = scrollToFn || defaultScrollToFn\n\n scrollToFn = React.useCallback(\n offset => {\n resolvedScrollToFn(offset, defaultScrollToFn)\n },\n [defaultScrollToFn, resolvedScrollToFn]\n )\n\n const [measuredCache, setMeasuredCache] = React.useState({})\n\n const measure = React.useCallback(() => setMeasuredCache({}), [])\n\n const pendingMeasuredCacheIndexesRef = React.useRef([])\n\n const measurements = React.useMemo(() => {\n const min =\n pendingMeasuredCacheIndexesRef.current.length > 0\n ? Math.min(...pendingMeasuredCacheIndexesRef.current)\n : 0\n pendingMeasuredCacheIndexesRef.current = []\n\n const measurements = latestRef.current.measurements.slice(0, min)\n\n for (let i = min; i < size; i++) {\n const key = keyExtractor(i)\n const measuredSize = measuredCache[key]\n const start = measurements[i - 1] ? measurements[i - 1].end : paddingStart\n const size =\n typeof measuredSize === 'number' ? measuredSize : estimateSize(i)\n const end = start + size\n measurements[i] = { index: i, start, size, end, key }\n }\n return measurements\n }, [estimateSize, measuredCache, paddingStart, size, keyExtractor])\n\n const totalSize = (measurements[size - 1]?.end || paddingStart) + paddingEnd\n\n latestRef.current.measurements = measurements\n latestRef.current.totalSize = totalSize\n\n const element = onScrollElement ? onScrollElement.current : parentRef.current\n\n const scrollOffsetFnRef = React.useRef(scrollOffsetFn)\n scrollOffsetFnRef.current = scrollOffsetFn\n\n useIsomorphicLayoutEffect(() => {\n if (!element) {\n setScrollOffset(0)\n\n return\n }\n\n const onScroll = event => {\n const offset = scrollOffsetFnRef.current\n ? scrollOffsetFnRef.current(event)\n : element[scrollKey]\n\n setScrollOffset(offset)\n }\n\n onScroll()\n\n element.addEventListener('scroll', onScroll, {\n capture: false,\n passive: true,\n })\n\n return () => {\n element.removeEventListener('scroll', onScroll)\n }\n }, [element, scrollKey])\n\n const { start, end } = calculateRange(latestRef.current)\n\n const indexes = React.useMemo(\n () =>\n rangeExtractor({\n start,\n end,\n overscan,\n size: measurements.length,\n }),\n [start, end, overscan, measurements.length, rangeExtractor]\n )\n\n const measureSizeRef = React.useRef(measureSize)\n measureSizeRef.current = measureSize\n\n const virtualItems = React.useMemo(() => {\n const virtualItems = []\n\n for (let k = 0, len = indexes.length; k < len; k++) {\n const i = indexes[k]\n const measurement = measurements[i]\n\n const item = {\n ...measurement,\n measureRef: el => {\n if (el) {\n const measuredSize = measureSizeRef.current(el, horizontal)\n\n if (measuredSize !== item.size) {\n const { scrollOffset } = latestRef.current\n\n if (item.start < scrollOffset) {\n defaultScrollToFn(scrollOffset + (measuredSize - item.size))\n }\n\n pendingMeasuredCacheIndexesRef.current.push(i)\n\n setMeasuredCache(old => ({\n ...old,\n [item.key]: measuredSize,\n }))\n }\n }\n },\n }\n\n virtualItems.push(item)\n }\n\n return virtualItems\n }, [indexes, defaultScrollToFn, horizontal, measurements])\n\n const mountedRef = React.useRef(false)\n\n useIsomorphicLayoutEffect(() => {\n if (mountedRef.current) {\n setMeasuredCache({})\n }\n mountedRef.current = true\n }, [estimateSize])\n\n const scrollToOffset = React.useCallback(\n (toOffset, { align = 'start' } = {}) => {\n const { scrollOffset, outerSize } = latestRef.current\n\n if (align === 'auto') {\n if (toOffset <= scrollOffset) {\n align = 'start'\n } else if (toOffset >= scrollOffset + outerSize) {\n align = 'end'\n } else {\n align = 'start'\n }\n }\n\n if (align === 'start') {\n scrollToFn(toOffset)\n } else if (align === 'end') {\n scrollToFn(toOffset - outerSize)\n } else if (align === 'center') {\n scrollToFn(toOffset - outerSize / 2)\n }\n },\n [scrollToFn]\n )\n\n const tryScrollToIndex = React.useCallback(\n (index, { align = 'auto', ...rest } = {}) => {\n const { measurements, scrollOffset, outerSize } = latestRef.current\n\n const measurement = measurements[Math.max(0, Math.min(index, size - 1))]\n\n if (!measurement) {\n return\n }\n\n if (align === 'auto') {\n if (measurement.end >= scrollOffset + outerSize) {\n align = 'end'\n } else if (measurement.start <= scrollOffset) {\n align = 'start'\n } else {\n return\n }\n }\n\n const toOffset =\n align === 'center'\n ? measurement.start + measurement.size / 2\n : align === 'end'\n ? measurement.end\n : measurement.start\n\n scrollToOffset(toOffset, { align, ...rest })\n },\n [scrollToOffset, size]\n )\n\n const scrollToIndex = React.useCallback(\n (...args) => {\n // We do a double request here because of\n // dynamic sizes which can cause offset shift\n // and end up in the wrong spot. Unfortunately,\n // we can't know about those dynamic sizes until\n // we try and render them. So double down!\n tryScrollToIndex(...args)\n requestAnimationFrame(() => {\n tryScrollToIndex(...args)\n })\n },\n [tryScrollToIndex]\n )\n\n return {\n virtualItems,\n totalSize,\n scrollToOffset,\n scrollToIndex,\n measure,\n }\n}\n\nconst findNearestBinarySearch = (low, high, getCurrentValue, value) => {\n while (low <= high) {\n let middle = ((low + high) / 2) | 0\n let currentValue = getCurrentValue(middle)\n\n if (currentValue < value) {\n low = middle + 1\n } else if (currentValue > value) {\n high = middle - 1\n } else {\n return middle\n }\n }\n\n if (low > 0) {\n return low - 1\n } else {\n return 0\n }\n}\n\nfunction calculateRange({ measurements, outerSize, scrollOffset }) {\n const size = measurements.length - 1\n const getOffset = index => measurements[index].start\n\n let start = findNearestBinarySearch(0, size, getOffset, scrollOffset)\n let end = start\n\n while (end < size && measurements[end].end < scrollOffset + outerSize) {\n end++\n }\n\n return { start, end }\n}\n","/**\n * @typedef {import('micromark-util-types').Effects} Effects\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenType} TokenType\n */\n\nimport {markdownSpace} from 'micromark-util-character'\n\n// To do: implement `spaceOrTab`, `spaceOrTabMinMax`, `spaceOrTabWithOptions`.\n\n/**\n * Parse spaces and tabs.\n *\n * There is no `nok` parameter:\n *\n * * spaces in markdown are often optional, in which case this factory can be\n * used and `ok` will be switched to whether spaces were found or not\n * * one line ending or space can be detected with `markdownSpace(code)` right\n * before using `factorySpace`\n *\n * ###### Examples\n *\n * Where `␉` represents a tab (plus how much it expands) and `␠` represents a\n * single space.\n *\n * ```markdown\n * ␉\n * ␠␠␠␠\n * ␉␠\n * ```\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {TokenType} type\n * Type (`' \\t'`).\n * @param {number | undefined} [max=Infinity]\n * Max (exclusive).\n * @returns {State}\n * Start state.\n */\nexport function factorySpace(effects, ok, type, max) {\n const limit = max ? max - 1 : Number.POSITIVE_INFINITY\n let size = 0\n return start\n\n /** @type {State} */\n function start(code) {\n if (markdownSpace(code)) {\n effects.enter(type)\n return prefix(code)\n }\n return ok(code)\n }\n\n /** @type {State} */\n function prefix(code) {\n if (markdownSpace(code) && size++ < limit) {\n effects.consume(code)\n return prefix\n }\n effects.exit(type)\n return ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n */\n\n/**\n * Check whether the character code represents an ASCII alpha (`a` through `z`,\n * case insensitive).\n *\n * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.\n *\n * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)\n * to U+005A (`Z`).\n *\n * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)\n * to U+007A (`z`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiAlpha = regexCheck(/[A-Za-z]/);\n\n/**\n * Check whether the character code represents an ASCII alphanumeric (`a`\n * through `z`, case insensitive, or `0` through `9`).\n *\n * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha\n * (see `asciiAlpha`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiAlphanumeric = regexCheck(/[\\dA-Za-z]/);\n\n/**\n * Check whether the character code represents an ASCII atext.\n *\n * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in\n * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),\n * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F\n * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E\n * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE\n * (`{`) to U+007E TILDE (`~`).\n *\n * See:\n * **\\[RFC5322]**:\n * [Internet Message Format](https://tools.ietf.org/html/rfc5322).\n * P. Resnick.\n * IETF.\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiAtext = regexCheck(/[#-'*+\\--9=?A-Z^-~]/);\n\n/**\n * Check whether a character code is an ASCII control character.\n *\n * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)\n * to U+001F (US), or U+007F (DEL).\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function asciiControl(code) {\n return (\n // Special whitespace codes (which have negative values), C0 and Control\n // character DEL\n code !== null && (code < 32 || code === 127)\n );\n}\n\n/**\n * Check whether the character code represents an ASCII digit (`0` through `9`).\n *\n * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to\n * U+0039 (`9`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiDigit = regexCheck(/\\d/);\n\n/**\n * Check whether the character code represents an ASCII hex digit (`a` through\n * `f`, case insensitive, or `0` through `9`).\n *\n * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex\n * digit, or an ASCII lower hex digit.\n *\n * An **ASCII upper hex digit** is a character in the inclusive range U+0041\n * (`A`) to U+0046 (`F`).\n *\n * An **ASCII lower hex digit** is a character in the inclusive range U+0061\n * (`a`) to U+0066 (`f`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiHexDigit = regexCheck(/[\\dA-Fa-f]/);\n\n/**\n * Check whether the character code represents ASCII punctuation.\n *\n * An **ASCII punctuation** is a character in the inclusive ranges U+0021\n * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT\n * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT\n * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/);\n\n/**\n * Check whether a character code is a markdown line ending.\n *\n * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN\n * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).\n *\n * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE\n * RETURN (CR) are replaced by these virtual characters depending on whether\n * they occurred together.\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownLineEnding(code) {\n return code !== null && code < -2;\n}\n\n/**\n * Check whether a character code is a markdown line ending (see\n * `markdownLineEnding`) or markdown space (see `markdownSpace`).\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownLineEndingOrSpace(code) {\n return code !== null && (code < 0 || code === 32);\n}\n\n/**\n * Check whether a character code is a markdown space.\n *\n * A **markdown space** is the concrete character U+0020 SPACE (SP) and the\n * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).\n *\n * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is\n * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL\n * SPACE (VS) characters, depending on the column at which the tab occurred.\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownSpace(code) {\n return code === -2 || code === -1 || code === 32;\n}\n\n// Size note: removing ASCII from the regex and using `asciiPunctuation` here\n// In fact adds to the bundle size.\n/**\n * Check whether the character code represents Unicode punctuation.\n *\n * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,\n * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`\n * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`\n * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII\n * punctuation (see `asciiPunctuation`).\n *\n * See:\n * **\\[UNICODE]**:\n * [The Unicode Standard](https://www.unicode.org/versions/).\n * Unicode Consortium.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const unicodePunctuation = regexCheck(/\\p{P}|\\p{S}/u);\n\n/**\n * Check whether the character code represents Unicode whitespace.\n *\n * Note that this does handle micromark specific markdown whitespace characters.\n * See `markdownLineEndingOrSpace` to check that.\n *\n * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,\n * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),\n * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\\[UNICODE]**).\n *\n * See:\n * **\\[UNICODE]**:\n * [The Unicode Standard](https://www.unicode.org/versions/).\n * Unicode Consortium.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const unicodeWhitespace = regexCheck(/\\s/);\n\n/**\n * Create a code check from a regex.\n *\n * @param {RegExp} regex\n * @returns {(code: Code) => boolean}\n */\nfunction regexCheck(regex) {\n return check;\n\n /**\n * Check whether a code matches the bound regex.\n *\n * @param {Code} code\n * Character code.\n * @returns {boolean}\n * Whether the character code matches the bound regex.\n */\n function check(code) {\n return code !== null && code > -1 && regex.test(String.fromCharCode(code));\n }\n}","/**\n * Like `Array#splice`, but smarter for giant arrays.\n *\n * `Array#splice` takes all items to be inserted as individual argument which\n * causes a stack overflow in V8 when trying to insert 100k items for instance.\n *\n * Otherwise, this does not return the removed items, and takes `items` as an\n * array instead of rest parameters.\n *\n * @template {unknown} T\n * Item type.\n * @param {Array} list\n * List to operate on.\n * @param {number} start\n * Index to remove/insert at (can be negative).\n * @param {number} remove\n * Number of items to remove.\n * @param {Array} items\n * Items to inject into `list`.\n * @returns {undefined}\n * Nothing.\n */\nexport function splice(list, start, remove, items) {\n const end = list.length\n let chunkStart = 0\n /** @type {Array} */\n let parameters\n\n // Make start between zero and `end` (included).\n if (start < 0) {\n start = -start > end ? 0 : end + start\n } else {\n start = start > end ? end : start\n }\n remove = remove > 0 ? remove : 0\n\n // No need to chunk the items if there’s only a couple (10k) items.\n if (items.length < 10000) {\n parameters = Array.from(items)\n parameters.unshift(start, remove)\n // @ts-expect-error Hush, it’s fine.\n list.splice(...parameters)\n } else {\n // Delete `remove` items starting from `start`\n if (remove) list.splice(start, remove)\n\n // Insert the items in chunks to not cause stack overflows.\n while (chunkStart < items.length) {\n parameters = items.slice(chunkStart, chunkStart + 10000)\n parameters.unshift(start, 0)\n // @ts-expect-error Hush, it’s fine.\n list.splice(...parameters)\n chunkStart += 10000\n start += 10000\n }\n }\n}\n\n/**\n * Append `items` (an array) at the end of `list` (another array).\n * When `list` was empty, returns `items` instead.\n *\n * This prevents a potentially expensive operation when `list` is empty,\n * and adds items in batches to prevent V8 from hanging.\n *\n * @template {unknown} T\n * Item type.\n * @param {Array} list\n * List to operate on.\n * @param {Array} items\n * Items to add to `list`.\n * @returns {Array}\n * Either `list` or `items`.\n */\nexport function push(list, items) {\n if (list.length > 0) {\n splice(list, list.length, 0, items)\n return list\n }\n return items\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n */\n\n/**\n * Call all `resolveAll`s.\n *\n * @param {Array<{resolveAll?: Resolver | undefined}>} constructs\n * List of constructs, optionally with `resolveAll`s.\n * @param {Array} events\n * List of events.\n * @param {TokenizeContext} context\n * Context used by `tokenize`.\n * @returns {Array}\n * Changed events.\n */\nexport function resolveAll(constructs, events, context) {\n /** @type {Array} */\n const called = []\n let index = -1\n\n while (++index < constructs.length) {\n const resolve = constructs[index].resolveAll\n\n if (resolve && !called.includes(resolve)) {\n events = resolve(events, context)\n called.push(resolve)\n }\n }\n\n return events\n}\n","/**\n * Count how often a character (or substring) is used in a string.\n *\n * @param {string} value\n * Value to search in.\n * @param {string} character\n * Character (or substring) to look for.\n * @return {number}\n * Number of times `character` occurred in `value`.\n */\nexport function ccount(value, character) {\n const source = String(value)\n\n if (typeof character !== 'string') {\n throw new TypeError('Expected character')\n }\n\n let count = 0\n let index = source.indexOf(character)\n\n while (index !== -1) {\n count++\n index = source.indexOf(character, index + character.length)\n }\n\n return count\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\n/**\n * @template Fn\n * @template Fallback\n * @typedef {Fn extends (value: any) => value is infer Thing ? Thing : Fallback} Predicate\n */\n\n/**\n * @callback Check\n * Check that an arbitrary value is a node.\n * @param {unknown} this\n * The given context.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean}\n * Whether this is a node and passes a test.\n *\n * @typedef {Record | Node} Props\n * Object to check for equivalence.\n *\n * Note: `Node` is included as it is common but is not indexable.\n *\n * @typedef {Array | Props | TestFunction | string | null | undefined} Test\n * Check for an arbitrary node.\n *\n * @callback TestFunction\n * Check if a node passes a test.\n * @param {unknown} this\n * The given context.\n * @param {Node} node\n * A node.\n * @param {number | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | undefined} [parent]\n * The node’s parent.\n * @returns {boolean | undefined | void}\n * Whether this node passes the test.\n *\n * Note: `void` is included until TS sees no return as `undefined`.\n */\n\n/**\n * Check if `node` is a `Node` and whether it passes the given test.\n *\n * @param {unknown} node\n * Thing to check, typically `Node`.\n * @param {Test} test\n * A check for a specific node.\n * @param {number | null | undefined} index\n * The node’s position in its parent.\n * @param {Parent | null | undefined} parent\n * The node’s parent.\n * @param {unknown} context\n * Context object (`this`) to pass to `test` functions.\n * @returns {boolean}\n * Whether `node` is a node and passes a test.\n */\nexport const is =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate) &\n * ((node?: null | undefined) => false) &\n * ((node: unknown, test?: null | undefined, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &\n * ((node: unknown, test?: Test, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [node]\n * @param {Test} [test]\n * @param {number | null | undefined} [index]\n * @param {Parent | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function (node, test, index, parent, context) {\n const check = convert(test)\n\n if (\n index !== undefined &&\n index !== null &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite index')\n }\n\n if (\n parent !== undefined &&\n parent !== null &&\n (!is(parent) || !parent.children)\n ) {\n throw new Error('Expected parent node')\n }\n\n if (\n (parent === undefined || parent === null) !==\n (index === undefined || index === null)\n ) {\n throw new Error('Expected both parent and index')\n }\n\n return looksLikeANode(node)\n ? check.call(context, node, index, parent)\n : false\n }\n )\n\n/**\n * Generate an assertion from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * a `node`, `index`, and `parent`.\n *\n * @param {Test} test\n * * when nullish, checks if `node` is a `Node`.\n * * when `string`, works like passing `(node) => node.type === test`.\n * * when `function` checks if function passed the node is true.\n * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.\n * * when `array`, checks if any one of the subtests pass.\n * @returns {Check}\n * An assertion.\n */\nexport const convert =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate) &\n * ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &\n * ((test?: Test) => Check)\n * )}\n */\n (\n /**\n * @param {Test} [test]\n * @returns {Check}\n */\n function (test) {\n if (test === null || test === undefined) {\n return ok\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n if (typeof test === 'object') {\n return Array.isArray(test) ? anyFactory(test) : propsFactory(test)\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n throw new Error('Expected function, string, or object as test')\n }\n )\n\n/**\n * @param {Array} tests\n * @returns {Check}\n */\nfunction anyFactory(tests) {\n /** @type {Array} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @type {TestFunction}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].apply(this, parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn an object into a test for a node with a certain fields.\n *\n * @param {Props} check\n * @returns {Check}\n */\nfunction propsFactory(check) {\n const checkAsRecord = /** @type {Record} */ (check)\n\n return castFactory(all)\n\n /**\n * @param {Node} node\n * @returns {boolean}\n */\n function all(node) {\n const nodeAsRecord = /** @type {Record} */ (\n /** @type {unknown} */ (node)\n )\n\n /** @type {string} */\n let key\n\n for (key in check) {\n if (nodeAsRecord[key] !== checkAsRecord[key]) return false\n }\n\n return true\n }\n}\n\n/**\n * Turn a string into a test for a node with a certain type.\n *\n * @param {string} check\n * @returns {Check}\n */\nfunction typeFactory(check) {\n return castFactory(type)\n\n /**\n * @param {Node} node\n */\n function type(node) {\n return node && node.type === check\n }\n}\n\n/**\n * Turn a custom test into a test for a node that passes that test.\n *\n * @param {TestFunction} testFunction\n * @returns {Check}\n */\nfunction castFactory(testFunction) {\n return check\n\n /**\n * @this {unknown}\n * @type {Check}\n */\n function check(value, index, parent) {\n return Boolean(\n looksLikeANode(value) &&\n testFunction.call(\n this,\n value,\n typeof index === 'number' ? index : undefined,\n parent || undefined\n )\n )\n }\n}\n\nfunction ok() {\n return true\n}\n\n/**\n * @param {unknown} value\n * @returns {value is Node}\n */\nfunction looksLikeANode(value) {\n return value !== null && typeof value === 'object' && 'type' in value\n}\n","/**\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Text} Text\n * @typedef {import('unist-util-visit-parents').Test} Test\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * @typedef RegExpMatchObject\n * Info on the match.\n * @property {number} index\n * The index of the search at which the result was found.\n * @property {string} input\n * A copy of the search string in the text node.\n * @property {[...Array, Text]} stack\n * All ancestors of the text node, where the last node is the text itself.\n *\n * @typedef {RegExp | string} Find\n * Pattern to find.\n *\n * Strings are escaped and then turned into global expressions.\n *\n * @typedef {Array} FindAndReplaceList\n * Several find and replaces, in array form.\n *\n * @typedef {[Find, Replace?]} FindAndReplaceTuple\n * Find and replace in tuple form.\n *\n * @typedef {ReplaceFunction | string | null | undefined} Replace\n * Thing to replace with.\n *\n * @callback ReplaceFunction\n * Callback called when a search matches.\n * @param {...any} parameters\n * The parameters are the result of corresponding search expression:\n *\n * * `value` (`string`) — whole match\n * * `...capture` (`Array`) — matches from regex capture groups\n * * `match` (`RegExpMatchObject`) — info on the match\n * @returns {Array | PhrasingContent | string | false | null | undefined}\n * Thing to replace with.\n *\n * * when `null`, `undefined`, `''`, remove the match\n * * …or when `false`, do not replace at all\n * * …or when `string`, replace with a text node of that value\n * * …or when `Node` or `Array`, replace with those nodes\n *\n * @typedef {[RegExp, ReplaceFunction]} Pair\n * Normalized find and replace.\n *\n * @typedef {Array} Pairs\n * All find and replaced.\n *\n * @typedef Options\n * Configuration.\n * @property {Test | null | undefined} [ignore]\n * Test for which nodes to ignore (optional).\n */\n\nimport escape from 'escape-string-regexp'\nimport {visitParents} from 'unist-util-visit-parents'\nimport {convert} from 'unist-util-is'\n\n/**\n * Find patterns in a tree and replace them.\n *\n * The algorithm searches the tree in *preorder* for complete values in `Text`\n * nodes.\n * Partial matches are not supported.\n *\n * @param {Nodes} tree\n * Tree to change.\n * @param {FindAndReplaceList | FindAndReplaceTuple} list\n * Patterns to find.\n * @param {Options | null | undefined} [options]\n * Configuration (when `find` is not `Find`).\n * @returns {undefined}\n * Nothing.\n */\nexport function findAndReplace(tree, list, options) {\n const settings = options || {}\n const ignored = convert(settings.ignore || [])\n const pairs = toPairs(list)\n let pairIndex = -1\n\n while (++pairIndex < pairs.length) {\n visitParents(tree, 'text', visitor)\n }\n\n /** @type {import('unist-util-visit-parents').BuildVisitor} */\n function visitor(node, parents) {\n let index = -1\n /** @type {Parents | undefined} */\n let grandparent\n\n while (++index < parents.length) {\n const parent = parents[index]\n /** @type {Array | undefined} */\n const siblings = grandparent ? grandparent.children : undefined\n\n if (\n ignored(\n parent,\n siblings ? siblings.indexOf(parent) : undefined,\n grandparent\n )\n ) {\n return\n }\n\n grandparent = parent\n }\n\n if (grandparent) {\n return handler(node, parents)\n }\n }\n\n /**\n * Handle a text node which is not in an ignored parent.\n *\n * @param {Text} node\n * Text node.\n * @param {Array} parents\n * Parents.\n * @returns {VisitorResult}\n * Result.\n */\n function handler(node, parents) {\n const parent = parents[parents.length - 1]\n const find = pairs[pairIndex][0]\n const replace = pairs[pairIndex][1]\n let start = 0\n /** @type {Array} */\n const siblings = parent.children\n const index = siblings.indexOf(node)\n let change = false\n /** @type {Array} */\n let nodes = []\n\n find.lastIndex = 0\n\n let match = find.exec(node.value)\n\n while (match) {\n const position = match.index\n /** @type {RegExpMatchObject} */\n const matchObject = {\n index: match.index,\n input: match.input,\n stack: [...parents, node]\n }\n let value = replace(...match, matchObject)\n\n if (typeof value === 'string') {\n value = value.length > 0 ? {type: 'text', value} : undefined\n }\n\n // It wasn’t a match after all.\n if (value === false) {\n // False acts as if there was no match.\n // So we need to reset `lastIndex`, which currently being at the end of\n // the current match, to the beginning.\n find.lastIndex = position + 1\n } else {\n if (start !== position) {\n nodes.push({\n type: 'text',\n value: node.value.slice(start, position)\n })\n }\n\n if (Array.isArray(value)) {\n nodes.push(...value)\n } else if (value) {\n nodes.push(value)\n }\n\n start = position + match[0].length\n change = true\n }\n\n if (!find.global) {\n break\n }\n\n match = find.exec(node.value)\n }\n\n if (change) {\n if (start < node.value.length) {\n nodes.push({type: 'text', value: node.value.slice(start)})\n }\n\n parent.children.splice(index, 1, ...nodes)\n } else {\n nodes = [node]\n }\n\n return index + nodes.length\n }\n}\n\n/**\n * Turn a tuple or a list of tuples into pairs.\n *\n * @param {FindAndReplaceList | FindAndReplaceTuple} tupleOrList\n * Schema.\n * @returns {Pairs}\n * Clean pairs.\n */\nfunction toPairs(tupleOrList) {\n /** @type {Pairs} */\n const result = []\n\n if (!Array.isArray(tupleOrList)) {\n throw new TypeError('Expected find and replace tuple or list of tuples')\n }\n\n /** @type {FindAndReplaceList} */\n // @ts-expect-error: correct.\n const list =\n !tupleOrList[0] || Array.isArray(tupleOrList[0])\n ? tupleOrList\n : [tupleOrList]\n\n let index = -1\n\n while (++index < list.length) {\n const tuple = list[index]\n result.push([toExpression(tuple[0]), toFunction(tuple[1])])\n }\n\n return result\n}\n\n/**\n * Turn a find into an expression.\n *\n * @param {Find} find\n * Find.\n * @returns {RegExp}\n * Expression.\n */\nfunction toExpression(find) {\n return typeof find === 'string' ? new RegExp(escape(find), 'g') : find\n}\n\n/**\n * Turn a replace into a function.\n *\n * @param {Replace} replace\n * Replace.\n * @returns {ReplaceFunction}\n * Function.\n */\nfunction toFunction(replace) {\n return typeof replace === 'function'\n ? replace\n : function () {\n return replace\n }\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","/**\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-from-markdown').Transform} FromMarkdownTransform\n *\n * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n *\n * @typedef {import('mdast-util-find-and-replace').RegExpMatchObject} RegExpMatchObject\n * @typedef {import('mdast-util-find-and-replace').ReplaceFunction} ReplaceFunction\n */\n\nimport {ccount} from 'ccount'\nimport {ok as assert} from 'devlop'\nimport {unicodePunctuation, unicodeWhitespace} from 'micromark-util-character'\nimport {findAndReplace} from 'mdast-util-find-and-replace'\n\n/** @type {ConstructName} */\nconst inConstruct = 'phrasing'\n/** @type {Array} */\nconst notInConstruct = ['autolink', 'link', 'image', 'label']\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralFromMarkdown() {\n return {\n transforms: [transformGfmAutolinkLiterals],\n enter: {\n literalAutolink: enterLiteralAutolink,\n literalAutolinkEmail: enterLiteralAutolinkValue,\n literalAutolinkHttp: enterLiteralAutolinkValue,\n literalAutolinkWww: enterLiteralAutolinkValue\n },\n exit: {\n literalAutolink: exitLiteralAutolink,\n literalAutolinkEmail: exitLiteralAutolinkEmail,\n literalAutolinkHttp: exitLiteralAutolinkHttp,\n literalAutolinkWww: exitLiteralAutolinkWww\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralToMarkdown() {\n return {\n unsafe: [\n {\n character: '@',\n before: '[+\\\\-.\\\\w]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: '.',\n before: '[Ww]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: ':',\n before: '[ps]',\n after: '\\\\/',\n inConstruct,\n notInConstruct\n }\n ]\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolink(token) {\n this.enter({type: 'link', title: null, url: '', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolinkValue(token) {\n this.config.enter.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkHttp(token) {\n this.config.exit.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkWww(token) {\n this.config.exit.data.call(this, token)\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'link')\n node.url = 'http://' + this.sliceSerialize(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkEmail(token) {\n this.config.exit.autolinkEmail.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolink(token) {\n this.exit(token)\n}\n\n/** @type {FromMarkdownTransform} */\nfunction transformGfmAutolinkLiterals(tree) {\n findAndReplace(\n tree,\n [\n [/(https?:\\/\\/|www(?=\\.))([-.\\w]+)([^ \\t\\r\\n]*)/gi, findUrl],\n [/([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)/g, findEmail]\n ],\n {ignore: ['link', 'linkReference']}\n )\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} protocol\n * @param {string} domain\n * @param {string} path\n * @param {RegExpMatchObject} match\n * @returns {Array | Link | false}\n */\n// eslint-disable-next-line max-params\nfunction findUrl(_, protocol, domain, path, match) {\n let prefix = ''\n\n // Not an expected previous character.\n if (!previous(match)) {\n return false\n }\n\n // Treat `www` as part of the domain.\n if (/^w/i.test(protocol)) {\n domain = protocol + domain\n protocol = ''\n prefix = 'http://'\n }\n\n if (!isCorrectDomain(domain)) {\n return false\n }\n\n const parts = splitUrl(domain + path)\n\n if (!parts[0]) return false\n\n /** @type {Link} */\n const result = {\n type: 'link',\n title: null,\n url: prefix + protocol + parts[0],\n children: [{type: 'text', value: protocol + parts[0]}]\n }\n\n if (parts[1]) {\n return [result, {type: 'text', value: parts[1]}]\n }\n\n return result\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} atext\n * @param {string} label\n * @param {RegExpMatchObject} match\n * @returns {Link | false}\n */\nfunction findEmail(_, atext, label, match) {\n if (\n // Not an expected previous character.\n !previous(match, true) ||\n // Label ends in not allowed character.\n /[-\\d_]$/.test(label)\n ) {\n return false\n }\n\n return {\n type: 'link',\n title: null,\n url: 'mailto:' + atext + '@' + label,\n children: [{type: 'text', value: atext + '@' + label}]\n }\n}\n\n/**\n * @param {string} domain\n * @returns {boolean}\n */\nfunction isCorrectDomain(domain) {\n const parts = domain.split('.')\n\n if (\n parts.length < 2 ||\n (parts[parts.length - 1] &&\n (/_/.test(parts[parts.length - 1]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 1]))) ||\n (parts[parts.length - 2] &&\n (/_/.test(parts[parts.length - 2]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 2])))\n ) {\n return false\n }\n\n return true\n}\n\n/**\n * @param {string} url\n * @returns {[string, string | undefined]}\n */\nfunction splitUrl(url) {\n const trailExec = /[!\"&'),.:;<>?\\]}]+$/.exec(url)\n\n if (!trailExec) {\n return [url, undefined]\n }\n\n url = url.slice(0, trailExec.index)\n\n let trail = trailExec[0]\n let closingParenIndex = trail.indexOf(')')\n const openingParens = ccount(url, '(')\n let closingParens = ccount(url, ')')\n\n while (closingParenIndex !== -1 && openingParens > closingParens) {\n url += trail.slice(0, closingParenIndex + 1)\n trail = trail.slice(closingParenIndex + 1)\n closingParenIndex = trail.indexOf(')')\n closingParens++\n }\n\n return [url, trail]\n}\n\n/**\n * @param {RegExpMatchObject} match\n * @param {boolean | null | undefined} [email=false]\n * @returns {boolean}\n */\nfunction previous(match, email) {\n const code = match.input.charCodeAt(match.index - 1)\n\n return (\n (match.index === 0 ||\n unicodeWhitespace(code) ||\n unicodePunctuation(code)) &&\n (!email || code !== 47)\n )\n}\n","/**\n * @typedef {import('mdast').FootnoteDefinition} FootnoteDefinition\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Map} Map\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\nimport {ok as assert} from 'devlop'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\n\nfootnoteReference.peek = footnoteReferencePeek\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown`.\n */\nexport function gfmFootnoteFromMarkdown() {\n return {\n enter: {\n gfmFootnoteDefinition: enterFootnoteDefinition,\n gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,\n gfmFootnoteCall: enterFootnoteCall,\n gfmFootnoteCallString: enterFootnoteCallString\n },\n exit: {\n gfmFootnoteDefinition: exitFootnoteDefinition,\n gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,\n gfmFootnoteCall: exitFootnoteCall,\n gfmFootnoteCallString: exitFootnoteCallString\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown`.\n */\nexport function gfmFootnoteToMarkdown() {\n return {\n // This is on by default already.\n unsafe: [{character: '[', inConstruct: ['phrasing', 'label', 'reference']}],\n handlers: {footnoteDefinition, footnoteReference}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinition(token) {\n this.enter(\n {type: 'footnoteDefinition', identifier: '', label: '', children: []},\n token\n )\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinitionLabelString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinitionLabelString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteDefinition')\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinition(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCall(token) {\n this.enter({type: 'footnoteReference', identifier: '', label: ''}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCallString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCallString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteReference')\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCall(token) {\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {FootnoteReference} node\n */\nfunction footnoteReference(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteReference')\n const subexit = state.enter('reference')\n value += tracker.move(\n state.safe(state.associationId(node), {\n ...tracker.current(),\n before: value,\n after: ']'\n })\n )\n subexit()\n exit()\n value += tracker.move(']')\n return value\n}\n\n/** @type {ToMarkdownHandle} */\nfunction footnoteReferencePeek() {\n return '['\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {FootnoteDefinition} node\n */\nfunction footnoteDefinition(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteDefinition')\n const subexit = state.enter('label')\n value += tracker.move(\n state.safe(state.associationId(node), {\n ...tracker.current(),\n before: value,\n after: ']'\n })\n )\n subexit()\n value += tracker.move(\n ']:' + (node.children && node.children.length > 0 ? ' ' : '')\n )\n tracker.shift(4)\n value += tracker.move(\n state.indentLines(state.containerFlow(node, tracker.current()), map)\n )\n exit()\n\n return value\n}\n\n/** @type {Map} */\nfunction map(line, index, blank) {\n if (index === 0) {\n return line\n }\n\n return (blank ? '' : ' ') + line\n}\n","/**\n * @typedef {import('mdast').Delete} Delete\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\n/**\n * List of constructs that occur in phrasing (paragraphs, headings), but cannot\n * contain strikethrough.\n * So they sort of cancel each other out.\n * Note: could use a better name.\n *\n * Note: keep in sync with: \n *\n * @type {Array}\n */\nconst constructsWithoutStrikethrough = [\n 'autolink',\n 'destinationLiteral',\n 'destinationRaw',\n 'reference',\n 'titleQuote',\n 'titleApostrophe'\n]\n\nhandleDelete.peek = peekDelete\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughFromMarkdown() {\n return {\n canContainEols: ['delete'],\n enter: {strikethrough: enterStrikethrough},\n exit: {strikethrough: exitStrikethrough}\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughToMarkdown() {\n return {\n unsafe: [\n {\n character: '~',\n inConstruct: 'phrasing',\n notInConstruct: constructsWithoutStrikethrough\n }\n ],\n handlers: {delete: handleDelete}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterStrikethrough(token) {\n this.enter({type: 'delete', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitStrikethrough(token) {\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {Delete} node\n */\nfunction handleDelete(node, _, state, info) {\n const tracker = state.createTracker(info)\n const exit = state.enter('strikethrough')\n let value = tracker.move('~~')\n value += state.containerPhrasing(node, {\n ...tracker.current(),\n before: value,\n after: '~'\n })\n value += tracker.move('~~')\n exit()\n return value\n}\n\n/** @type {ToMarkdownHandle} */\nfunction peekDelete() {\n return '~'\n}\n","/**\n * @typedef Options\n * Configuration (optional).\n * @property {string|null|ReadonlyArray} [align]\n * One style for all columns, or styles for their respective columns.\n * Each style is either `'l'` (left), `'r'` (right), or `'c'` (center).\n * Other values are treated as `''`, which doesn’t place the colon in the\n * alignment row but does align left.\n * *Only the lowercased first character is used, so `Right` is fine.*\n * @property {boolean} [padding=true]\n * Whether to add a space of padding between delimiters and cells.\n *\n * When `true`, there is padding:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there is no padding:\n *\n * ```markdown\n * |Alpha|B |\n * |-----|-----|\n * |C |Delta|\n * ```\n * @property {boolean} [delimiterStart=true]\n * Whether to begin each row with the delimiter.\n *\n * > 👉 **Note**: please don’t use this: it could create fragile structures\n * > that aren’t understandable to some markdown parsers.\n *\n * When `true`, there are starting delimiters:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there are no starting delimiters:\n *\n * ```markdown\n * Alpha | B |\n * ----- | ----- |\n * C | Delta |\n * ```\n * @property {boolean} [delimiterEnd=true]\n * Whether to end each row with the delimiter.\n *\n * > 👉 **Note**: please don’t use this: it could create fragile structures\n * > that aren’t understandable to some markdown parsers.\n *\n * When `true`, there are ending delimiters:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there are no ending delimiters:\n *\n * ```markdown\n * | Alpha | B\n * | ----- | -----\n * | C | Delta\n * ```\n * @property {boolean} [alignDelimiters=true]\n * Whether to align the delimiters.\n * By default, they are aligned:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * Pass `false` to make them staggered:\n *\n * ```markdown\n * | Alpha | B |\n * | - | - |\n * | C | Delta |\n * ```\n * @property {(value: string) => number} [stringLength]\n * Function to detect the length of table cell content.\n * This is used when aligning the delimiters (`|`) between table cells.\n * Full-width characters and emoji mess up delimiter alignment when viewing\n * the markdown source.\n * To fix this, you can pass this function, which receives the cell content\n * and returns its “visible” size.\n * Note that what is and isn’t visible depends on where the text is displayed.\n *\n * Without such a function, the following:\n *\n * ```js\n * markdownTable([\n * ['Alpha', 'Bravo'],\n * ['中文', 'Charlie'],\n * ['👩‍❤️‍👩', 'Delta']\n * ])\n * ```\n *\n * Yields:\n *\n * ```markdown\n * | Alpha | Bravo |\n * | - | - |\n * | 中文 | Charlie |\n * | 👩‍❤️‍👩 | Delta |\n * ```\n *\n * With [`string-width`](https://github.com/sindresorhus/string-width):\n *\n * ```js\n * import stringWidth from 'string-width'\n *\n * markdownTable(\n * [\n * ['Alpha', 'Bravo'],\n * ['中文', 'Charlie'],\n * ['👩‍❤️‍👩', 'Delta']\n * ],\n * {stringLength: stringWidth}\n * )\n * ```\n *\n * Yields:\n *\n * ```markdown\n * | Alpha | Bravo |\n * | ----- | ------- |\n * | 中文 | Charlie |\n * | 👩‍❤️‍👩 | Delta |\n * ```\n */\n\n/**\n * @typedef {Options} MarkdownTableOptions\n * @todo\n * Remove next major.\n */\n\n/**\n * Generate a markdown ([GFM](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables)) table..\n *\n * @param {ReadonlyArray>} table\n * Table data (matrix of strings).\n * @param {Options} [options]\n * Configuration (optional).\n * @returns {string}\n */\nexport function markdownTable(table, options = {}) {\n const align = (options.align || []).concat()\n const stringLength = options.stringLength || defaultStringLength\n /** @type {Array} Character codes as symbols for alignment per column. */\n const alignments = []\n /** @type {Array>} Cells per row. */\n const cellMatrix = []\n /** @type {Array>} Sizes of each cell per row. */\n const sizeMatrix = []\n /** @type {Array} */\n const longestCellByColumn = []\n let mostCellsPerRow = 0\n let rowIndex = -1\n\n // This is a superfluous loop if we don’t align delimiters, but otherwise we’d\n // do superfluous work when aligning, so optimize for aligning.\n while (++rowIndex < table.length) {\n /** @type {Array} */\n const row = []\n /** @type {Array} */\n const sizes = []\n let columnIndex = -1\n\n if (table[rowIndex].length > mostCellsPerRow) {\n mostCellsPerRow = table[rowIndex].length\n }\n\n while (++columnIndex < table[rowIndex].length) {\n const cell = serialize(table[rowIndex][columnIndex])\n\n if (options.alignDelimiters !== false) {\n const size = stringLength(cell)\n sizes[columnIndex] = size\n\n if (\n longestCellByColumn[columnIndex] === undefined ||\n size > longestCellByColumn[columnIndex]\n ) {\n longestCellByColumn[columnIndex] = size\n }\n }\n\n row.push(cell)\n }\n\n cellMatrix[rowIndex] = row\n sizeMatrix[rowIndex] = sizes\n }\n\n // Figure out which alignments to use.\n let columnIndex = -1\n\n if (typeof align === 'object' && 'length' in align) {\n while (++columnIndex < mostCellsPerRow) {\n alignments[columnIndex] = toAlignment(align[columnIndex])\n }\n } else {\n const code = toAlignment(align)\n\n while (++columnIndex < mostCellsPerRow) {\n alignments[columnIndex] = code\n }\n }\n\n // Inject the alignment row.\n columnIndex = -1\n /** @type {Array} */\n const row = []\n /** @type {Array} */\n const sizes = []\n\n while (++columnIndex < mostCellsPerRow) {\n const code = alignments[columnIndex]\n let before = ''\n let after = ''\n\n if (code === 99 /* `c` */) {\n before = ':'\n after = ':'\n } else if (code === 108 /* `l` */) {\n before = ':'\n } else if (code === 114 /* `r` */) {\n after = ':'\n }\n\n // There *must* be at least one hyphen-minus in each alignment cell.\n let size =\n options.alignDelimiters === false\n ? 1\n : Math.max(\n 1,\n longestCellByColumn[columnIndex] - before.length - after.length\n )\n\n const cell = before + '-'.repeat(size) + after\n\n if (options.alignDelimiters !== false) {\n size = before.length + size + after.length\n\n if (size > longestCellByColumn[columnIndex]) {\n longestCellByColumn[columnIndex] = size\n }\n\n sizes[columnIndex] = size\n }\n\n row[columnIndex] = cell\n }\n\n // Inject the alignment row.\n cellMatrix.splice(1, 0, row)\n sizeMatrix.splice(1, 0, sizes)\n\n rowIndex = -1\n /** @type {Array} */\n const lines = []\n\n while (++rowIndex < cellMatrix.length) {\n const row = cellMatrix[rowIndex]\n const sizes = sizeMatrix[rowIndex]\n columnIndex = -1\n /** @type {Array} */\n const line = []\n\n while (++columnIndex < mostCellsPerRow) {\n const cell = row[columnIndex] || ''\n let before = ''\n let after = ''\n\n if (options.alignDelimiters !== false) {\n const size =\n longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0)\n const code = alignments[columnIndex]\n\n if (code === 114 /* `r` */) {\n before = ' '.repeat(size)\n } else if (code === 99 /* `c` */) {\n if (size % 2) {\n before = ' '.repeat(size / 2 + 0.5)\n after = ' '.repeat(size / 2 - 0.5)\n } else {\n before = ' '.repeat(size / 2)\n after = before\n }\n } else {\n after = ' '.repeat(size)\n }\n }\n\n if (options.delimiterStart !== false && !columnIndex) {\n line.push('|')\n }\n\n if (\n options.padding !== false &&\n // Don’t add the opening space if we’re not aligning and the cell is\n // empty: there will be a closing space.\n !(options.alignDelimiters === false && cell === '') &&\n (options.delimiterStart !== false || columnIndex)\n ) {\n line.push(' ')\n }\n\n if (options.alignDelimiters !== false) {\n line.push(before)\n }\n\n line.push(cell)\n\n if (options.alignDelimiters !== false) {\n line.push(after)\n }\n\n if (options.padding !== false) {\n line.push(' ')\n }\n\n if (\n options.delimiterEnd !== false ||\n columnIndex !== mostCellsPerRow - 1\n ) {\n line.push('|')\n }\n }\n\n lines.push(\n options.delimiterEnd === false\n ? line.join('').replace(/ +$/, '')\n : line.join('')\n )\n }\n\n return lines.join('\\n')\n}\n\n/**\n * @param {string|null|undefined} [value]\n * @returns {string}\n */\nfunction serialize(value) {\n return value === null || value === undefined ? '' : String(value)\n}\n\n/**\n * @param {string} value\n * @returns {number}\n */\nfunction defaultStringLength(value) {\n return value.length\n}\n\n/**\n * @param {string|null|undefined} value\n * @returns {number}\n */\nfunction toAlignment(value) {\n const code = typeof value === 'string' ? value.codePointAt(0) : 0\n\n return code === 67 /* `C` */ || code === 99 /* `c` */\n ? 99 /* `c` */\n : code === 76 /* `L` */ || code === 108 /* `l` */\n ? 108 /* `l` */\n : code === 82 /* `R` */ || code === 114 /* `r` */\n ? 114 /* `r` */\n : 0\n}\n","/**\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').Map} Map\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Blockquote} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function blockquote(node, _, state, info) {\n const exit = state.enter('blockquote')\n const tracker = state.createTracker(info)\n tracker.move('> ')\n tracker.shift(2)\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return '>' + (blank ? '' : ' ') + line\n}\n","/**\n * @typedef {import('../types.js').ConstructName} ConstructName\n * @typedef {import('../types.js').Unsafe} Unsafe\n */\n\n/**\n * @param {Array} stack\n * @param {Unsafe} pattern\n * @returns {boolean}\n */\nexport function patternInScope(stack, pattern) {\n return (\n listInScope(stack, pattern.inConstruct, true) &&\n !listInScope(stack, pattern.notInConstruct, false)\n )\n}\n\n/**\n * @param {Array} stack\n * @param {Unsafe['inConstruct']} list\n * @param {boolean} none\n * @returns {boolean}\n */\nfunction listInScope(stack, list, none) {\n if (typeof list === 'string') {\n list = [list]\n }\n\n if (!list || list.length === 0) {\n return none\n }\n\n let index = -1\n\n while (++index < list.length) {\n if (stack.includes(list[index])) {\n return true\n }\n }\n\n return false\n}\n","/**\n * @typedef {import('mdast').Break} Break\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {patternInScope} from '../util/pattern-in-scope.js'\n\n/**\n * @param {Break} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function hardBreak(_, _1, state, info) {\n let index = -1\n\n while (++index < state.unsafe.length) {\n // If we can’t put eols in this construct (setext headings, tables), use a\n // space instead.\n if (\n state.unsafe[index].character === '\\n' &&\n patternInScope(state.stack, state.unsafe[index])\n ) {\n return /[ \\t]/.test(info.before) ? '' : ' '\n }\n }\n\n return '\\\\\\n'\n}\n","/**\n * @typedef {import('mdast').Code} Code\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').Map} Map\n * @typedef {import('../types.js').State} State\n */\n\nimport {longestStreak} from 'longest-streak'\nimport {formatCodeAsIndented} from '../util/format-code-as-indented.js'\nimport {checkFence} from '../util/check-fence.js'\n\n/**\n * @param {Code} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function code(node, _, state, info) {\n const marker = checkFence(state)\n const raw = node.value || ''\n const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'\n\n if (formatCodeAsIndented(node, state)) {\n const exit = state.enter('codeIndented')\n const value = state.indentLines(raw, map)\n exit()\n return value\n }\n\n const tracker = state.createTracker(info)\n const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3))\n const exit = state.enter('codeFenced')\n let value = tracker.move(sequence)\n\n if (node.lang) {\n const subexit = state.enter(`codeFencedLang${suffix}`)\n value += tracker.move(\n state.safe(node.lang, {\n before: value,\n after: ' ',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n if (node.lang && node.meta) {\n const subexit = state.enter(`codeFencedMeta${suffix}`)\n value += tracker.move(' ')\n value += tracker.move(\n state.safe(node.meta, {\n before: value,\n after: '\\n',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n value += tracker.move('\\n')\n\n if (raw) {\n value += tracker.move(raw + '\\n')\n }\n\n value += tracker.move(sequence)\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return (blank ? '' : ' ') + line\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkQuote(state) {\n const marker = state.options.quote || '\"'\n\n if (marker !== '\"' && marker !== \"'\") {\n throw new Error(\n 'Cannot serialize title with `' +\n marker +\n '` for `options.quote`, expected `\"`, or `\\'`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkEmphasis} from '../util/check-emphasis.js'\n\nemphasis.peek = emphasisPeek\n\n// To do: there are cases where emphasis cannot “form” depending on the\n// previous or next character of sequences.\n// There’s no way around that though, except for injecting zero-width stuff.\n// Do we need to safeguard against that?\n/**\n * @param {Emphasis} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function emphasis(node, _, state, info) {\n const marker = checkEmphasis(state)\n const exit = state.enter('emphasis')\n const tracker = state.createTracker(info)\n let value = tracker.move(marker)\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: marker,\n ...tracker.current()\n })\n )\n value += tracker.move(marker)\n exit()\n return value\n}\n\n/**\n * @param {Emphasis} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction emphasisPeek(_, _1, state) {\n return state.options.emphasis || '*'\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkEmphasis(state) {\n const marker = state.options.emphasis || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize emphasis with `' +\n marker +\n '` for `options.emphasis`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../types.js').State} State\n */\n\nimport {EXIT, visit} from 'unist-util-visit'\nimport {toString} from 'mdast-util-to-string'\n\n/**\n * @param {Heading} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatHeadingAsSetext(node, state) {\n let literalWithBreak = false\n\n // Look for literals with a line break.\n // Note that this also\n visit(node, function (node) {\n if (\n ('value' in node && /\\r?\\n|\\r/.test(node.value)) ||\n node.type === 'break'\n ) {\n literalWithBreak = true\n return EXIT\n }\n })\n\n return Boolean(\n (!node.depth || node.depth < 3) &&\n toString(node) &&\n (state.options.setext || literalWithBreak)\n )\n}\n","/**\n * @typedef {import('unist').Node} UnistNode\n * @typedef {import('unist').Parent} UnistParent\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * @typedef {Exclude | undefined} Test\n * Test from `unist-util-is`.\n *\n * Note: we have remove and add `undefined`, because otherwise when generating\n * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,\n * which doesn’t work when publishing on npm.\n */\n\n// To do: use types from `unist-util-visit-parents` when it’s released.\n\n/**\n * @typedef {(\n * Fn extends (value: any) => value is infer Thing\n * ? Thing\n * : Fallback\n * )} Predicate\n * Get the value of a type guard `Fn`.\n * @template Fn\n * Value; typically function that is a type guard (such as `(x): x is Y`).\n * @template Fallback\n * Value to yield if `Fn` is not a type guard.\n */\n\n/**\n * @typedef {(\n * Check extends null | undefined // No test.\n * ? Value\n * : Value extends {type: Check} // String (type) test.\n * ? Value\n * : Value extends Check // Partial test.\n * ? Value\n * : Check extends Function // Function test.\n * ? Predicate extends Value\n * ? Predicate\n * : never\n * : never // Some other test?\n * )} MatchesOne\n * Check whether a node matches a primitive check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test, but not arrays.\n */\n\n/**\n * @typedef {(\n * Check extends Array\n * ? MatchesOne\n * : MatchesOne\n * )} Matches\n * Check whether a node matches a check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test.\n */\n\n/**\n * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint\n * Number; capped reasonably.\n */\n\n/**\n * @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment\n * Increment a number in the type system.\n * @template {Uint} [I=0]\n * Index.\n */\n\n/**\n * @typedef {(\n * Node extends UnistParent\n * ? Node extends {children: Array}\n * ? Child extends Children ? Node : never\n * : never\n * : never\n * )} InternalParent\n * Collect nodes that can be parents of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {InternalParent, Child>} Parent\n * Collect nodes in `Tree` that can be parents of `Child`.\n * @template {UnistNode} Tree\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {(\n * Depth extends Max\n * ? never\n * :\n * | InternalParent\n * | InternalAncestor, Max, Increment>\n * )} InternalAncestor\n * Collect nodes in `Tree` that can be ancestors of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @typedef {(\n * Tree extends UnistParent\n * ? Depth extends Max\n * ? Tree\n * : Tree | InclusiveDescendant>\n * : Tree\n * )} InclusiveDescendant\n * Collect all (inclusive) descendants of `Tree`.\n *\n * > 👉 **Note**: for performance reasons, this seems to be the fastest way to\n * > recurse without actually running into an infinite loop, which the\n * > previous version did.\n * >\n * > Practically, a max of `2` is typically enough assuming a `Root` is\n * > passed, but it doesn’t improve performance.\n * > It gets higher with `List > ListItem > Table > TableRow > TableCell`.\n * > Using up to `10` doesn’t hurt or help either.\n * @template {UnistNode} Tree\n * Tree type.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform `parent`.\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of `parent` still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Visited extends UnistNode ? number | undefined : never} index\n * Index of `node` in `parent`.\n * @param {Ancestor extends UnistParent ? Ancestor | undefined : never} parent\n * Parent of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n * @template {UnistNode} [Visited=UnistNode]\n * Visited node type.\n * @template {UnistParent} [Ancestor=UnistParent]\n * Ancestor type.\n */\n\n/**\n * @typedef {Visitor>} BuildVisitorFromMatch\n * Build a typed `Visitor` function from a node and all possible parents.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} Visited\n * Node type.\n * @template {UnistParent} Ancestor\n * Parent type.\n */\n\n/**\n * @typedef {(\n * BuildVisitorFromMatch<\n * Matches,\n * Extract\n * >\n * )} BuildVisitorFromDescendants\n * Build a typed `Visitor` function from a list of descendants and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} Descendant\n * Node type.\n * @template {Test} Check\n * Test type.\n */\n\n/**\n * @typedef {(\n * BuildVisitorFromDescendants<\n * InclusiveDescendant,\n * Check\n * >\n * )} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} [Tree=UnistNode]\n * Node type.\n * @template {Test} [Check=Test]\n * Test type.\n */\n\nimport {visitParents} from 'unist-util-visit-parents'\n\nexport {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'\n\n/**\n * Visit nodes.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @overload\n * @param {Tree} tree\n * @param {Check} check\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @overload\n * @param {Tree} tree\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @param {UnistNode} tree\n * Tree to traverse.\n * @param {Visitor | Test} testOrVisitor\n * `unist-util-is`-compatible test (optional, omit to pass a visitor).\n * @param {Visitor | boolean | null | undefined} [visitorOrReverse]\n * Handle each node (when test is omitted, pass `reverse`).\n * @param {boolean | null | undefined} [maybeReverse=false]\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns {undefined}\n * Nothing.\n *\n * @template {UnistNode} Tree\n * Node type.\n * @template {Test} Check\n * `unist-util-is`-compatible test.\n */\nexport function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {\n /** @type {boolean | null | undefined} */\n let reverse\n /** @type {Test} */\n let test\n /** @type {Visitor} */\n let visitor\n\n if (\n typeof testOrVisitor === 'function' &&\n typeof visitorOrReverse !== 'function'\n ) {\n test = undefined\n visitor = testOrVisitor\n reverse = visitorOrReverse\n } else {\n // @ts-expect-error: assume the overload with test was given.\n test = testOrVisitor\n // @ts-expect-error: assume the overload with test was given.\n visitor = visitorOrReverse\n reverse = maybeReverse\n }\n\n visitParents(tree, test, overload, reverse)\n\n /**\n * @param {UnistNode} node\n * @param {Array} parents\n */\n function overload(node, parents) {\n const parent = parents[parents.length - 1]\n const index = parent ? parent.children.indexOf(node) : undefined\n return visitor(node, index, parent)\n }\n}\n","/**\n * @typedef {import('mdast').Html} Html\n */\n\nhtml.peek = htmlPeek\n\n/**\n * @param {Html} node\n * @returns {string}\n */\nexport function html(node) {\n return node.value || ''\n}\n\n/**\n * @returns {string}\n */\nfunction htmlPeek() {\n return '<'\n}\n","/**\n * @typedef {import('mdast').Image} Image\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\nimage.peek = imagePeek\n\n/**\n * @param {Image} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function image(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('image')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n value += tracker.move(\n state.safe(node.alt, {before: value, after: ']', ...tracker.current()})\n )\n value += tracker.move('](')\n\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n exit()\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imagePeek() {\n return '!'\n}\n","/**\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimageReference.peek = imageReferencePeek\n\n/**\n * @param {ImageReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function imageReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('imageReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n const alt = state.safe(node.alt, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(alt + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !alt || alt !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imageReferencePeek() {\n return '!'\n}\n","/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').State} State\n */\n\ninlineCode.peek = inlineCodePeek\n\n/**\n * @param {InlineCode} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nexport function inlineCode(node, _, state) {\n let value = node.value || ''\n let sequence = '`'\n let index = -1\n\n // If there is a single grave accent on its own in the code, use a fence of\n // two.\n // If there are two in a row, use one.\n while (new RegExp('(^|[^`])' + sequence + '([^`]|$)').test(value)) {\n sequence += '`'\n }\n\n // If this is not just spaces or eols (tabs don’t count), and either the\n // first or last character are a space, eol, or tick, then pad with spaces.\n if (\n /[^ \\r\\n]/.test(value) &&\n ((/^[ \\r\\n]/.test(value) && /[ \\r\\n]$/.test(value)) || /^`|`$/.test(value))\n ) {\n value = ' ' + value + ' '\n }\n\n // We have a potential problem: certain characters after eols could result in\n // blocks being seen.\n // For example, if someone injected the string `'\\n# b'`, then that would\n // result in an ATX heading.\n // We can’t escape characters in `inlineCode`, but because eols are\n // transformed to spaces when going from markdown to HTML anyway, we can swap\n // them out.\n while (++index < state.unsafe.length) {\n const pattern = state.unsafe[index]\n const expression = state.compilePattern(pattern)\n /** @type {RegExpExecArray | null} */\n let match\n\n // Only look for `atBreak`s.\n // Btw: note that `atBreak` patterns will always start the regex at LF or\n // CR.\n if (!pattern.atBreak) continue\n\n while ((match = expression.exec(value))) {\n let position = match.index\n\n // Support CRLF (patterns only look for one of the characters).\n if (\n value.charCodeAt(position) === 10 /* `\\n` */ &&\n value.charCodeAt(position - 1) === 13 /* `\\r` */\n ) {\n position--\n }\n\n value = value.slice(0, position) + ' ' + value.slice(match.index + 1)\n }\n }\n\n return sequence + value + sequence\n}\n\n/**\n * @returns {string}\n */\nfunction inlineCodePeek() {\n return '`'\n}\n","/**\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../types.js').State} State\n */\n\nimport {toString} from 'mdast-util-to-string'\n\n/**\n * @param {Link} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatLinkAsAutolink(node, state) {\n const raw = toString(node)\n\n return Boolean(\n !state.options.resourceLink &&\n // If there’s a url…\n node.url &&\n // And there’s a no title…\n !node.title &&\n // And the content of `node` is a single text node…\n node.children &&\n node.children.length === 1 &&\n node.children[0].type === 'text' &&\n // And if the url is the same as the content…\n (raw === node.url || 'mailto:' + raw === node.url) &&\n // And that starts w/ a protocol…\n /^[a-z][a-z+.-]+:/i.test(node.url) &&\n // And that doesn’t contain ASCII control codes (character escapes and\n // references don’t work), space, or angle brackets…\n !/[\\0- <>\\u007F]/.test(node.url)\n )\n}\n","/**\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Exit} Exit\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkQuote} from '../util/check-quote.js'\nimport {formatLinkAsAutolink} from '../util/format-link-as-autolink.js'\n\nlink.peek = linkPeek\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function link(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const tracker = state.createTracker(info)\n /** @type {Exit} */\n let exit\n /** @type {Exit} */\n let subexit\n\n if (formatLinkAsAutolink(node, state)) {\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n exit = state.enter('autolink')\n let value = tracker.move('<')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '>',\n ...tracker.current()\n })\n )\n value += tracker.move('>')\n exit()\n state.stack = stack\n return value\n }\n\n exit = state.enter('link')\n subexit = state.enter('label')\n let value = tracker.move('[')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '](',\n ...tracker.current()\n })\n )\n value += tracker.move('](')\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n\n exit()\n return value\n}\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nfunction linkPeek(node, _, state) {\n return formatLinkAsAutolink(node, state) ? '<' : '['\n}\n","/**\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nlinkReference.peek = linkReferencePeek\n\n/**\n * @param {LinkReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function linkReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('linkReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n const text = state.containerPhrasing(node, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(text + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !text || text !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction linkReferencePeek() {\n return '['\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkBullet(state) {\n const marker = state.options.bullet || '*'\n\n if (marker !== '*' && marker !== '+' && marker !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bullet`, expected `*`, `+`, or `-`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkRule(state) {\n const marker = state.options.rule || '*'\n\n if (marker !== '*' && marker !== '-' && marker !== '_') {\n throw new Error(\n 'Cannot serialize rules with `' +\n marker +\n '` for `options.rule`, expected `*`, `-`, or `_`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\n/**\n * @template Fn\n * @template Fallback\n * @typedef {Fn extends (value: any) => value is infer Thing ? Thing : Fallback} Predicate\n */\n\n/**\n * @callback Check\n * Check that an arbitrary value is a node.\n * @param {unknown} this\n * The given context.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean}\n * Whether this is a node and passes a test.\n *\n * @typedef {Record | Node} Props\n * Object to check for equivalence.\n *\n * Note: `Node` is included as it is common but is not indexable.\n *\n * @typedef {Array | Props | TestFunction | string | null | undefined} Test\n * Check for an arbitrary node.\n *\n * @callback TestFunction\n * Check if a node passes a test.\n * @param {unknown} this\n * The given context.\n * @param {Node} node\n * A node.\n * @param {number | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | undefined} [parent]\n * The node’s parent.\n * @returns {boolean | undefined | void}\n * Whether this node passes the test.\n *\n * Note: `void` is included until TS sees no return as `undefined`.\n */\n\n/**\n * Check if `node` is a `Node` and whether it passes the given test.\n *\n * @param {unknown} node\n * Thing to check, typically `Node`.\n * @param {Test} test\n * A check for a specific node.\n * @param {number | null | undefined} index\n * The node’s position in its parent.\n * @param {Parent | null | undefined} parent\n * The node’s parent.\n * @param {unknown} context\n * Context object (`this`) to pass to `test` functions.\n * @returns {boolean}\n * Whether `node` is a node and passes a test.\n */\nexport const is =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate) &\n * ((node?: null | undefined) => false) &\n * ((node: unknown, test?: null | undefined, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &\n * ((node: unknown, test?: Test, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [node]\n * @param {Test} [test]\n * @param {number | null | undefined} [index]\n * @param {Parent | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function (node, test, index, parent, context) {\n const check = convert(test)\n\n if (\n index !== undefined &&\n index !== null &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite index')\n }\n\n if (\n parent !== undefined &&\n parent !== null &&\n (!is(parent) || !parent.children)\n ) {\n throw new Error('Expected parent node')\n }\n\n if (\n (parent === undefined || parent === null) !==\n (index === undefined || index === null)\n ) {\n throw new Error('Expected both parent and index')\n }\n\n return looksLikeANode(node)\n ? check.call(context, node, index, parent)\n : false\n }\n )\n\n/**\n * Generate an assertion from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * a `node`, `index`, and `parent`.\n *\n * @param {Test} test\n * * when nullish, checks if `node` is a `Node`.\n * * when `string`, works like passing `(node) => node.type === test`.\n * * when `function` checks if function passed the node is true.\n * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.\n * * when `array`, checks if any one of the subtests pass.\n * @returns {Check}\n * An assertion.\n */\nexport const convert =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate) &\n * ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &\n * ((test?: Test) => Check)\n * )}\n */\n (\n /**\n * @param {Test} [test]\n * @returns {Check}\n */\n function (test) {\n if (test === null || test === undefined) {\n return ok\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n if (typeof test === 'object') {\n return Array.isArray(test) ? anyFactory(test) : propsFactory(test)\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n throw new Error('Expected function, string, or object as test')\n }\n )\n\n/**\n * @param {Array} tests\n * @returns {Check}\n */\nfunction anyFactory(tests) {\n /** @type {Array} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @type {TestFunction}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].apply(this, parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn an object into a test for a node with a certain fields.\n *\n * @param {Props} check\n * @returns {Check}\n */\nfunction propsFactory(check) {\n const checkAsRecord = /** @type {Record} */ (check)\n\n return castFactory(all)\n\n /**\n * @param {Node} node\n * @returns {boolean}\n */\n function all(node) {\n const nodeAsRecord = /** @type {Record} */ (\n /** @type {unknown} */ (node)\n )\n\n /** @type {string} */\n let key\n\n for (key in check) {\n if (nodeAsRecord[key] !== checkAsRecord[key]) return false\n }\n\n return true\n }\n}\n\n/**\n * Turn a string into a test for a node with a certain type.\n *\n * @param {string} check\n * @returns {Check}\n */\nfunction typeFactory(check) {\n return castFactory(type)\n\n /**\n * @param {Node} node\n */\n function type(node) {\n return node && node.type === check\n }\n}\n\n/**\n * Turn a custom test into a test for a node that passes that test.\n *\n * @param {TestFunction} testFunction\n * @returns {Check}\n */\nfunction castFactory(testFunction) {\n return check\n\n /**\n * @this {unknown}\n * @type {Check}\n */\n function check(value, index, parent) {\n return Boolean(\n looksLikeANode(value) &&\n testFunction.call(\n this,\n value,\n typeof index === 'number' ? index : undefined,\n parent || undefined\n )\n )\n }\n}\n\nfunction ok() {\n return true\n}\n\n/**\n * @param {unknown} value\n * @returns {value is Node}\n */\nfunction looksLikeANode(value) {\n return value !== null && typeof value === 'object' && 'type' in value\n}\n","/**\n * @typedef {import('mdast').Html} Html\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n */\n\nimport {convert} from 'unist-util-is'\n\n/**\n * Check if the given value is *phrasing content*.\n *\n * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @returns\n * Whether `value` is phrasing content.\n */\n\nexport const phrasing =\n /** @type {(node?: unknown) => node is Exclude} */\n (\n convert([\n 'break',\n 'delete',\n 'emphasis',\n // To do: next major: removed since footnotes were added to GFM.\n 'footnote',\n 'footnoteReference',\n 'image',\n 'imageReference',\n 'inlineCode',\n // Enabled by `mdast-util-math`:\n 'inlineMath',\n 'link',\n 'linkReference',\n // Enabled by `mdast-util-mdx`:\n 'mdxJsxTextElement',\n // Enabled by `mdast-util-mdx`:\n 'mdxTextExpression',\n 'strong',\n 'text',\n // Enabled by `mdast-util-directive`:\n 'textDirective'\n ])\n )\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkStrong} from '../util/check-strong.js'\n\nstrong.peek = strongPeek\n\n// To do: there are cases where emphasis cannot “form” depending on the\n// previous or next character of sequences.\n// There’s no way around that though, except for injecting zero-width stuff.\n// Do we need to safeguard against that?\n/**\n * @param {Strong} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function strong(node, _, state, info) {\n const marker = checkStrong(state)\n const exit = state.enter('strong')\n const tracker = state.createTracker(info)\n let value = tracker.move(marker + marker)\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: marker,\n ...tracker.current()\n })\n )\n value += tracker.move(marker + marker)\n exit()\n return value\n}\n\n/**\n * @param {Strong} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction strongPeek(_, _1, state) {\n return state.options.strong || '*'\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkStrong(state) {\n const marker = state.options.strong || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize strong with `' +\n marker +\n '` for `options.strong`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n","import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {definition} from './definition.js'\nimport {emphasis} from './emphasis.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {image} from './image.js'\nimport {imageReference} from './image-reference.js'\nimport {inlineCode} from './inline-code.js'\nimport {link} from './link.js'\nimport {linkReference} from './link-reference.js'\nimport {list} from './list.js'\nimport {listItem} from './list-item.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default (CommonMark) handlers.\n */\nexport const handle = {\n blockquote,\n break: hardBreak,\n code,\n definition,\n emphasis,\n hardBreak,\n heading,\n html,\n image,\n imageReference,\n inlineCode,\n link,\n linkReference,\n list,\n listItem,\n paragraph,\n root,\n strong,\n text,\n thematicBreak\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkFence(state) {\n const marker = state.options.fence || '`'\n\n if (marker !== '`' && marker !== '~') {\n throw new Error(\n 'Cannot serialize code with `' +\n marker +\n '` for `options.fence`, expected `` ` `` or `~`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Code} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatCodeAsIndented(node, state) {\n return Boolean(\n state.options.fences === false &&\n node.value &&\n // If there’s no info…\n !node.lang &&\n // And there’s a non-whitespace character…\n /[^ \\r\\n]/.test(node.value) &&\n // And the value doesn’t start or end in a blank…\n !/^[\\t ]*(?:[\\r\\n]|$)|(?:^|[\\r\\n])[\\t ]*$/.test(node.value)\n )\n}\n","/**\n * Get the count of the longest repeating streak of `substring` in `value`.\n *\n * @param {string} value\n * Content to search in.\n * @param {string} substring\n * Substring to look for, typically one character.\n * @returns {number}\n * Count of most frequent adjacent `substring`s in `value`.\n */\nexport function longestStreak(value, substring) {\n const source = String(value)\n let index = source.indexOf(substring)\n let expected = index\n let count = 0\n let max = 0\n\n if (typeof substring !== 'string') {\n throw new TypeError('Expected substring')\n }\n\n while (index !== -1) {\n if (index === expected) {\n if (++count > max) {\n max = count\n }\n } else {\n count = 1\n }\n\n expected = index + substring.length\n index = source.indexOf(substring, expected)\n }\n\n return max\n}\n","/**\n * @typedef {import('mdast').Definition} Definition\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\n/**\n * @param {Definition} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function definition(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('definition')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n value += tracker.move(\n state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n )\n value += tracker.move(']: ')\n\n subexit()\n\n if (\n // If there’s no url, or…\n !node.url ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : '\\n',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n exit()\n\n return value\n}\n","/**\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {formatHeadingAsSetext} from '../util/format-heading-as-setext.js'\n\n/**\n * @param {Heading} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function heading(node, _, state, info) {\n const rank = Math.max(Math.min(6, node.depth || 1), 1)\n const tracker = state.createTracker(info)\n\n if (formatHeadingAsSetext(node, state)) {\n const exit = state.enter('headingSetext')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...tracker.current(),\n before: '\\n',\n after: '\\n'\n })\n subexit()\n exit()\n\n return (\n value +\n '\\n' +\n (rank === 1 ? '=' : '-').repeat(\n // The whole size…\n value.length -\n // Minus the position of the character after the last EOL (or\n // 0 if there is none)…\n (Math.max(value.lastIndexOf('\\r'), value.lastIndexOf('\\n')) + 1)\n )\n )\n }\n\n const sequence = '#'.repeat(rank)\n const exit = state.enter('headingAtx')\n const subexit = state.enter('phrasing')\n\n // Note: for proper tracking, we should reset the output positions when there\n // is no content returned, because then the space is not output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n tracker.move(sequence + ' ')\n\n let value = state.containerPhrasing(node, {\n before: '# ',\n after: '\\n',\n ...tracker.current()\n })\n\n if (/^[\\t ]/.test(value)) {\n // To do: what effect has the character reference on tracking?\n value =\n '&#x' +\n value.charCodeAt(0).toString(16).toUpperCase() +\n ';' +\n value.slice(1)\n }\n\n value = value ? sequence + ' ' + value : sequence\n\n if (state.options.closeAtx) {\n value += ' ' + sequence\n }\n\n subexit()\n exit()\n\n return value\n}\n","/**\n * @typedef {import('mdast').List} List\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkBulletOther} from '../util/check-bullet-other.js'\nimport {checkBulletOrdered} from '../util/check-bullet-ordered.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {List} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function list(node, parent, state, info) {\n const exit = state.enter('list')\n const bulletCurrent = state.bulletCurrent\n /** @type {string} */\n let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state)\n /** @type {string} */\n const bulletOther = node.ordered\n ? bullet === '.'\n ? ')'\n : '.'\n : checkBulletOther(state)\n let useDifferentMarker =\n parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false\n\n if (!node.ordered) {\n const firstListItem = node.children ? node.children[0] : undefined\n\n // If there’s an empty first list item directly in two list items,\n // we have to use a different bullet:\n //\n // ```markdown\n // * - *\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (\n // Bullet could be used as a thematic break marker:\n (bullet === '*' || bullet === '-') &&\n // Empty first list item:\n firstListItem &&\n (!firstListItem.children || !firstListItem.children[0]) &&\n // Directly in two other list items:\n state.stack[state.stack.length - 1] === 'list' &&\n state.stack[state.stack.length - 2] === 'listItem' &&\n state.stack[state.stack.length - 3] === 'list' &&\n state.stack[state.stack.length - 4] === 'listItem' &&\n // That are each the first child.\n state.indexStack[state.indexStack.length - 1] === 0 &&\n state.indexStack[state.indexStack.length - 2] === 0 &&\n state.indexStack[state.indexStack.length - 3] === 0\n ) {\n useDifferentMarker = true\n }\n\n // If there’s a thematic break at the start of the first list item,\n // we have to use a different bullet:\n //\n // ```markdown\n // * ---\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (checkRule(state) === bullet && firstListItem) {\n let index = -1\n\n while (++index < node.children.length) {\n const item = node.children[index]\n\n if (\n item &&\n item.type === 'listItem' &&\n item.children &&\n item.children[0] &&\n item.children[0].type === 'thematicBreak'\n ) {\n useDifferentMarker = true\n break\n }\n }\n }\n }\n\n if (useDifferentMarker) {\n bullet = bulletOther\n }\n\n state.bulletCurrent = bullet\n const value = state.containerFlow(node, info)\n state.bulletLastUsed = bullet\n state.bulletCurrent = bulletCurrent\n exit()\n return value\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkBulletOrdered(state) {\n const marker = state.options.bulletOrdered || '.'\n\n if (marker !== '.' && marker !== ')') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bulletOrdered`, expected `.` or `)`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkBullet} from './check-bullet.js'\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkBulletOther(state) {\n const bullet = checkBullet(state)\n const bulletOther = state.options.bulletOther\n\n if (!bulletOther) {\n return bullet === '*' ? '-' : '*'\n }\n\n if (bulletOther !== '*' && bulletOther !== '+' && bulletOther !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n bulletOther +\n '` for `options.bulletOther`, expected `*`, `+`, or `-`'\n )\n }\n\n if (bulletOther === bullet) {\n throw new Error(\n 'Expected `bullet` (`' +\n bullet +\n '`) and `bulletOther` (`' +\n bulletOther +\n '`) to be different'\n )\n }\n\n return bulletOther\n}\n","/**\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').Map} Map\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkListItemIndent} from '../util/check-list-item-indent.js'\n\n/**\n * @param {ListItem} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function listItem(node, parent, state, info) {\n const listItemIndent = checkListItemIndent(state)\n let bullet = state.bulletCurrent || checkBullet(state)\n\n // Add the marker value for ordered lists.\n if (parent && parent.type === 'list' && parent.ordered) {\n bullet =\n (typeof parent.start === 'number' && parent.start > -1\n ? parent.start\n : 1) +\n (state.options.incrementListMarker === false\n ? 0\n : parent.children.indexOf(node)) +\n bullet\n }\n\n let size = bullet.length + 1\n\n if (\n listItemIndent === 'tab' ||\n (listItemIndent === 'mixed' &&\n ((parent && parent.type === 'list' && parent.spread) || node.spread))\n ) {\n size = Math.ceil(size / 4) * 4\n }\n\n const tracker = state.createTracker(info)\n tracker.move(bullet + ' '.repeat(size - bullet.length))\n tracker.shift(size)\n const exit = state.enter('listItem')\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n\n return value\n\n /** @type {Map} */\n function map(line, index, blank) {\n if (index) {\n return (blank ? '' : ' '.repeat(size)) + line\n }\n\n return (blank ? bullet : bullet + ' '.repeat(size - bullet.length)) + line\n }\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkListItemIndent(state) {\n const style = state.options.listItemIndent || 'one'\n\n if (style !== 'tab' && style !== 'one' && style !== 'mixed') {\n throw new Error(\n 'Cannot serialize items with `' +\n style +\n '` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`'\n )\n }\n\n return style\n}\n","/**\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Paragraph} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function paragraph(node, _, state, info) {\n const exit = state.enter('paragraph')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, info)\n subexit()\n exit()\n return value\n}\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').Root} Root\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {phrasing} from 'mdast-util-phrasing'\n\n/**\n * @param {Root} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function root(node, _, state, info) {\n // Note: `html` nodes are ambiguous.\n const hasPhrasing = node.children.some(function (d) {\n return phrasing(d)\n })\n const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow\n return fn.call(state, node, info)\n}\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').Text} Text\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Text} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function text(node, _, state, info) {\n return state.safe(node.value, info)\n}\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkRuleRepetition} from '../util/check-rule-repetition.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {ThematicBreak} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nexport function thematicBreak(_, _1, state) {\n const value = (\n checkRule(state) + (state.options.ruleSpaces ? ' ' : '')\n ).repeat(checkRuleRepetition(state))\n\n return state.options.ruleSpaces ? value.slice(0, -1) : value\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkRuleRepetition(state) {\n const repetition = state.options.ruleRepetition || 3\n\n if (repetition < 3) {\n throw new Error(\n 'Cannot serialize rules with repetition `' +\n repetition +\n '` for `options.ruleRepetition`, expected `3` or more'\n )\n }\n\n return repetition\n}\n","/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Table} Table\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('mdast').TableRow} TableRow\n *\n * @typedef {import('markdown-table').Options} MarkdownTableOptions\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').State} State\n * @typedef {import('mdast-util-to-markdown').Info} Info\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [tableCellPadding=true]\n * Whether to add a space of padding between delimiters and cells (default:\n * `true`).\n * @property {boolean | null | undefined} [tablePipeAlign=true]\n * Whether to align the delimiters (default: `true`).\n * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]\n * Function to detect the length of table cell content, used when aligning\n * the delimiters between cells (optional).\n */\n\nimport {ok as assert} from 'devlop'\nimport {markdownTable} from 'markdown-table'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM tables in\n * markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM tables.\n */\nexport function gfmTableFromMarkdown() {\n return {\n enter: {\n table: enterTable,\n tableData: enterCell,\n tableHeader: enterCell,\n tableRow: enterRow\n },\n exit: {\n codeText: exitCodeText,\n table: exitTable,\n tableData: exit,\n tableHeader: exit,\n tableRow: exit\n }\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterTable(token) {\n const align = token._align\n assert(align, 'expected `_align` on table')\n this.enter(\n {\n type: 'table',\n align: align.map(function (d) {\n return d === 'none' ? null : d\n }),\n children: []\n },\n token\n )\n this.data.inTable = true\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitTable(token) {\n this.exit(token)\n this.data.inTable = undefined\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterRow(token) {\n this.enter({type: 'tableRow', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exit(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterCell(token) {\n this.enter({type: 'tableCell', children: []}, token)\n}\n\n// Overwrite the default code text data handler to unescape escaped pipes when\n// they are in tables.\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCodeText(token) {\n let value = this.resume()\n\n if (this.data.inTable) {\n value = value.replace(/\\\\([\\\\|])/g, replace)\n }\n\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'inlineCode')\n node.value = value\n this.exit(token)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @returns {string}\n */\nfunction replace($0, $1) {\n // Pipes work, backslashes don’t (but can’t escape pipes).\n return $1 === '|' ? $1 : $0\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM tables in\n * markdown.\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM tables.\n */\nexport function gfmTableToMarkdown(options) {\n const settings = options || {}\n const padding = settings.tableCellPadding\n const alignDelimiters = settings.tablePipeAlign\n const stringLength = settings.stringLength\n const around = padding ? ' ' : '|'\n\n return {\n unsafe: [\n {character: '\\r', inConstruct: 'tableCell'},\n {character: '\\n', inConstruct: 'tableCell'},\n // A pipe, when followed by a tab or space (padding), or a dash or colon\n // (unpadded delimiter row), could result in a table.\n {atBreak: true, character: '|', after: '[\\t :-]'},\n // A pipe in a cell must be encoded.\n {character: '|', inConstruct: 'tableCell'},\n // A colon must be followed by a dash, in which case it could start a\n // delimiter row.\n {atBreak: true, character: ':', after: '-'},\n // A delimiter row can also start with a dash, when followed by more\n // dashes, a colon, or a pipe.\n // This is a stricter version than the built in check for lists, thematic\n // breaks, and setex heading underlines though:\n // \n {atBreak: true, character: '-', after: '[:|-]'}\n ],\n handlers: {\n inlineCode: inlineCodeWithTable,\n table: handleTable,\n tableCell: handleTableCell,\n tableRow: handleTableRow\n }\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {Table} node\n */\n function handleTable(node, _, state, info) {\n return serializeData(handleTableAsData(node, state, info), node.align)\n }\n\n /**\n * This function isn’t really used normally, because we handle rows at the\n * table level.\n * But, if someone passes in a table row, this ensures we make somewhat sense.\n *\n * @type {ToMarkdownHandle}\n * @param {TableRow} node\n */\n function handleTableRow(node, _, state, info) {\n const row = handleTableRowAsData(node, state, info)\n const value = serializeData([row])\n // `markdown-table` will always add an align row\n return value.slice(0, value.indexOf('\\n'))\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {TableCell} node\n */\n function handleTableCell(node, _, state, info) {\n const exit = state.enter('tableCell')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...info,\n before: around,\n after: around\n })\n subexit()\n exit()\n return value\n }\n\n /**\n * @param {Array>} matrix\n * @param {Array | null | undefined} [align]\n */\n function serializeData(matrix, align) {\n return markdownTable(matrix, {\n align,\n // @ts-expect-error: `markdown-table` types should support `null`.\n alignDelimiters,\n // @ts-expect-error: `markdown-table` types should support `null`.\n padding,\n // @ts-expect-error: `markdown-table` types should support `null`.\n stringLength\n })\n }\n\n /**\n * @param {Table} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array>} */\n const result = []\n const subexit = state.enter('table')\n\n while (++index < children.length) {\n result[index] = handleTableRowAsData(children[index], state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @param {TableRow} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableRowAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array} */\n const result = []\n const subexit = state.enter('tableRow')\n\n while (++index < children.length) {\n // Note: the positional info as used here is incorrect.\n // Making it correct would be impossible due to aligning cells?\n // And it would need copy/pasting `markdown-table` into this project.\n result[index] = handleTableCell(children[index], node, state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {InlineCode} node\n */\n function inlineCodeWithTable(node, parent, state) {\n let value = defaultHandlers.inlineCode(node, parent, state)\n\n if (state.stack.includes('tableCell')) {\n value = value.replace(/\\|/g, '\\\\$&')\n }\n\n return value\n }\n}\n","/**\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n */\n\nimport {ok as assert} from 'devlop'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM task\n * list items in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemFromMarkdown() {\n return {\n exit: {\n taskListCheckValueChecked: exitCheck,\n taskListCheckValueUnchecked: exitCheck,\n paragraph: exitParagraphWithTaskListItem\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM task list\n * items in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemToMarkdown() {\n return {\n unsafe: [{atBreak: true, character: '-', after: '[:|-]'}],\n handlers: {listItem: listItemWithTaskListItem}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCheck(token) {\n // We’re always in a paragraph, in a list item.\n const node = this.stack[this.stack.length - 2]\n assert(node.type === 'listItem')\n node.checked = token.type === 'taskListCheckValueChecked'\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitParagraphWithTaskListItem(token) {\n const parent = this.stack[this.stack.length - 2]\n\n if (\n parent &&\n parent.type === 'listItem' &&\n typeof parent.checked === 'boolean'\n ) {\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'paragraph')\n const head = node.children[0]\n\n if (head && head.type === 'text') {\n const siblings = parent.children\n let index = -1\n /** @type {Paragraph | undefined} */\n let firstParaghraph\n\n while (++index < siblings.length) {\n const sibling = siblings[index]\n if (sibling.type === 'paragraph') {\n firstParaghraph = sibling\n break\n }\n }\n\n if (firstParaghraph === node) {\n // Must start with a space or a tab.\n head.value = head.value.slice(1)\n\n if (head.value.length === 0) {\n node.children.shift()\n } else if (\n node.position &&\n head.position &&\n typeof head.position.start.offset === 'number'\n ) {\n head.position.start.column++\n head.position.start.offset++\n node.position.start = Object.assign({}, head.position.start)\n }\n }\n }\n }\n\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {ListItem} node\n */\nfunction listItemWithTaskListItem(node, parent, state, info) {\n const head = node.children[0]\n const checkable =\n typeof node.checked === 'boolean' && head && head.type === 'paragraph'\n const checkbox = '[' + (node.checked ? 'x' : ' ') + '] '\n const tracker = state.createTracker(info)\n\n if (checkable) {\n tracker.move(checkbox)\n }\n\n let value = defaultHandlers.listItem(node, parent, state, {\n ...info,\n ...tracker.current()\n })\n\n if (checkable) {\n value = value.replace(/^(?:[*+-]|\\d+\\.)([\\r\\n]| {1,3})/, check)\n }\n\n return value\n\n /**\n * @param {string} $0\n * @returns {string}\n */\n function check($0) {\n return $0 + checkbox\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').ConstructRecord} ConstructRecord\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Previous} Previous\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n asciiControl,\n markdownLineEndingOrSpace,\n unicodePunctuation,\n unicodeWhitespace\n} from 'micromark-util-character'\nconst wwwPrefix = {\n tokenize: tokenizeWwwPrefix,\n partial: true\n}\nconst domain = {\n tokenize: tokenizeDomain,\n partial: true\n}\nconst path = {\n tokenize: tokenizePath,\n partial: true\n}\nconst trail = {\n tokenize: tokenizeTrail,\n partial: true\n}\nconst emailDomainDotTrail = {\n tokenize: tokenizeEmailDomainDotTrail,\n partial: true\n}\nconst wwwAutolink = {\n tokenize: tokenizeWwwAutolink,\n previous: previousWww\n}\nconst protocolAutolink = {\n tokenize: tokenizeProtocolAutolink,\n previous: previousProtocol\n}\nconst emailAutolink = {\n tokenize: tokenizeEmailAutolink,\n previous: previousEmail\n}\n\n/** @type {ConstructRecord} */\nconst text = {}\n\n/**\n * Create an extension for `micromark` to support GitHub autolink literal\n * syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * autolink literal syntax.\n */\nexport function gfmAutolinkLiteral() {\n return {\n text\n }\n}\n\n/** @type {Code} */\nlet code = 48\n\n// Add alphanumerics.\nwhile (code < 123) {\n text[code] = emailAutolink\n code++\n if (code === 58) code = 65\n else if (code === 91) code = 97\n}\ntext[43] = emailAutolink\ntext[45] = emailAutolink\ntext[46] = emailAutolink\ntext[95] = emailAutolink\ntext[72] = [emailAutolink, protocolAutolink]\ntext[104] = [emailAutolink, protocolAutolink]\ntext[87] = [emailAutolink, wwwAutolink]\ntext[119] = [emailAutolink, wwwAutolink]\n\n// To do: perform email autolink literals on events, afterwards.\n// That’s where `markdown-rs` and `cmark-gfm` perform it.\n// It should look for `@`, then for atext backwards, and then for a label\n// forwards.\n// To do: `mailto:`, `xmpp:` protocol as prefix.\n\n/**\n * Email autolink literal.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^^^^^^^^^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeEmailAutolink(effects, ok, nok) {\n const self = this\n /** @type {boolean | undefined} */\n let dot\n /** @type {boolean} */\n let data\n return start\n\n /**\n * Start of email autolink literal.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (\n !gfmAtext(code) ||\n !previousEmail.call(self, self.previous) ||\n previousUnbalanced(self.events)\n ) {\n return nok(code)\n }\n effects.enter('literalAutolink')\n effects.enter('literalAutolinkEmail')\n return atext(code)\n }\n\n /**\n * In email atext.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function atext(code) {\n if (gfmAtext(code)) {\n effects.consume(code)\n return atext\n }\n if (code === 64) {\n effects.consume(code)\n return emailDomain\n }\n return nok(code)\n }\n\n /**\n * In email domain.\n *\n * The reference code is a bit overly complex as it handles the `@`, of which\n * there may be just one.\n * Source: \n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function emailDomain(code) {\n // Dot followed by alphanumerical (not `-` or `_`).\n if (code === 46) {\n return effects.check(\n emailDomainDotTrail,\n emailDomainAfter,\n emailDomainDot\n )(code)\n }\n\n // Alphanumerical, `-`, and `_`.\n if (code === 45 || code === 95 || asciiAlphanumeric(code)) {\n data = true\n effects.consume(code)\n return emailDomain\n }\n\n // To do: `/` if xmpp.\n\n // Note: normally we’d truncate trailing punctuation from the link.\n // However, email autolink literals cannot contain any of those markers,\n // except for `.`, but that can only occur if it isn’t trailing.\n // So we can ignore truncating!\n return emailDomainAfter(code)\n }\n\n /**\n * In email domain, on dot that is not a trail.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function emailDomainDot(code) {\n effects.consume(code)\n dot = true\n return emailDomain\n }\n\n /**\n * After email domain.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function emailDomainAfter(code) {\n // Domain must not be empty, must include a dot, and must end in alphabetical.\n // Source: .\n if (data && dot && asciiAlpha(self.previous)) {\n effects.exit('literalAutolinkEmail')\n effects.exit('literalAutolink')\n return ok(code)\n }\n return nok(code)\n }\n}\n\n/**\n * `www` autolink literal.\n *\n * ```markdown\n * > | a www.example.org b\n * ^^^^^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeWwwAutolink(effects, ok, nok) {\n const self = this\n return wwwStart\n\n /**\n * Start of www autolink literal.\n *\n * ```markdown\n * > | www.example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function wwwStart(code) {\n if (\n (code !== 87 && code !== 119) ||\n !previousWww.call(self, self.previous) ||\n previousUnbalanced(self.events)\n ) {\n return nok(code)\n }\n effects.enter('literalAutolink')\n effects.enter('literalAutolinkWww')\n // Note: we *check*, so we can discard the `www.` we parsed.\n // If it worked, we consider it as a part of the domain.\n return effects.check(\n wwwPrefix,\n effects.attempt(domain, effects.attempt(path, wwwAfter), nok),\n nok\n )(code)\n }\n\n /**\n * After a www autolink literal.\n *\n * ```markdown\n * > | www.example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function wwwAfter(code) {\n effects.exit('literalAutolinkWww')\n effects.exit('literalAutolink')\n return ok(code)\n }\n}\n\n/**\n * Protocol autolink literal.\n *\n * ```markdown\n * > | a https://example.org b\n * ^^^^^^^^^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeProtocolAutolink(effects, ok, nok) {\n const self = this\n let buffer = ''\n let seen = false\n return protocolStart\n\n /**\n * Start of protocol autolink literal.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function protocolStart(code) {\n if (\n (code === 72 || code === 104) &&\n previousProtocol.call(self, self.previous) &&\n !previousUnbalanced(self.events)\n ) {\n effects.enter('literalAutolink')\n effects.enter('literalAutolinkHttp')\n buffer += String.fromCodePoint(code)\n effects.consume(code)\n return protocolPrefixInside\n }\n return nok(code)\n }\n\n /**\n * In protocol.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^^^^^\n * ```\n *\n * @type {State}\n */\n function protocolPrefixInside(code) {\n // `5` is size of `https`\n if (asciiAlpha(code) && buffer.length < 5) {\n // @ts-expect-error: definitely number.\n buffer += String.fromCodePoint(code)\n effects.consume(code)\n return protocolPrefixInside\n }\n if (code === 58) {\n const protocol = buffer.toLowerCase()\n if (protocol === 'http' || protocol === 'https') {\n effects.consume(code)\n return protocolSlashesInside\n }\n }\n return nok(code)\n }\n\n /**\n * In slashes.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^^\n * ```\n *\n * @type {State}\n */\n function protocolSlashesInside(code) {\n if (code === 47) {\n effects.consume(code)\n if (seen) {\n return afterProtocol\n }\n seen = true\n return protocolSlashesInside\n }\n return nok(code)\n }\n\n /**\n * After protocol, before domain.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function afterProtocol(code) {\n // To do: this is different from `markdown-rs`:\n // https://github.com/wooorm/markdown-rs/blob/b3a921c761309ae00a51fe348d8a43adbc54b518/src/construct/gfm_autolink_literal.rs#L172-L182\n return code === null ||\n asciiControl(code) ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code) ||\n unicodePunctuation(code)\n ? nok(code)\n : effects.attempt(domain, effects.attempt(path, protocolAfter), nok)(code)\n }\n\n /**\n * After a protocol autolink literal.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function protocolAfter(code) {\n effects.exit('literalAutolinkHttp')\n effects.exit('literalAutolink')\n return ok(code)\n }\n}\n\n/**\n * `www` prefix.\n *\n * ```markdown\n * > | a www.example.org b\n * ^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeWwwPrefix(effects, ok, nok) {\n let size = 0\n return wwwPrefixInside\n\n /**\n * In www prefix.\n *\n * ```markdown\n * > | www.example.com\n * ^^^^\n * ```\n *\n * @type {State}\n */\n function wwwPrefixInside(code) {\n if ((code === 87 || code === 119) && size < 3) {\n size++\n effects.consume(code)\n return wwwPrefixInside\n }\n if (code === 46 && size === 3) {\n effects.consume(code)\n return wwwPrefixAfter\n }\n return nok(code)\n }\n\n /**\n * After www prefix.\n *\n * ```markdown\n * > | www.example.com\n * ^\n * ```\n *\n * @type {State}\n */\n function wwwPrefixAfter(code) {\n // If there is *anything*, we can link.\n return code === null ? nok(code) : ok(code)\n }\n}\n\n/**\n * Domain.\n *\n * ```markdown\n * > | a https://example.org b\n * ^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDomain(effects, ok, nok) {\n /** @type {boolean | undefined} */\n let underscoreInLastSegment\n /** @type {boolean | undefined} */\n let underscoreInLastLastSegment\n /** @type {boolean | undefined} */\n let seen\n return domainInside\n\n /**\n * In domain.\n *\n * ```markdown\n * > | https://example.com/a\n * ^^^^^^^^^^^\n * ```\n *\n * @type {State}\n */\n function domainInside(code) {\n // Check whether this marker, which is a trailing punctuation\n // marker, optionally followed by more trailing markers, and then\n // followed by an end.\n if (code === 46 || code === 95) {\n return effects.check(trail, domainAfter, domainAtPunctuation)(code)\n }\n\n // GH documents that only alphanumerics (other than `-`, `.`, and `_`) can\n // occur, which sounds like ASCII only, but they also support `www.點看.com`,\n // so that’s Unicode.\n // Instead of some new production for Unicode alphanumerics, markdown\n // already has that for Unicode punctuation and whitespace, so use those.\n // Source: .\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code) ||\n (code !== 45 && unicodePunctuation(code))\n ) {\n return domainAfter(code)\n }\n seen = true\n effects.consume(code)\n return domainInside\n }\n\n /**\n * In domain, at potential trailing punctuation, that was not trailing.\n *\n * ```markdown\n * > | https://example.com\n * ^\n * ```\n *\n * @type {State}\n */\n function domainAtPunctuation(code) {\n // There is an underscore in the last segment of the domain\n if (code === 95) {\n underscoreInLastSegment = true\n }\n // Otherwise, it’s a `.`: save the last segment underscore in the\n // penultimate segment slot.\n else {\n underscoreInLastLastSegment = underscoreInLastSegment\n underscoreInLastSegment = undefined\n }\n effects.consume(code)\n return domainInside\n }\n\n /**\n * After domain.\n *\n * ```markdown\n * > | https://example.com/a\n * ^\n * ```\n *\n * @type {State} */\n function domainAfter(code) {\n // Note: that’s GH says a dot is needed, but it’s not true:\n // \n if (underscoreInLastLastSegment || underscoreInLastSegment || !seen) {\n return nok(code)\n }\n return ok(code)\n }\n}\n\n/**\n * Path.\n *\n * ```markdown\n * > | a https://example.org/stuff b\n * ^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizePath(effects, ok) {\n let sizeOpen = 0\n let sizeClose = 0\n return pathInside\n\n /**\n * In path.\n *\n * ```markdown\n * > | https://example.com/a\n * ^^\n * ```\n *\n * @type {State}\n */\n function pathInside(code) {\n if (code === 40) {\n sizeOpen++\n effects.consume(code)\n return pathInside\n }\n\n // To do: `markdown-rs` also needs this.\n // If this is a paren, and there are less closings than openings,\n // we don’t check for a trail.\n if (code === 41 && sizeClose < sizeOpen) {\n return pathAtPunctuation(code)\n }\n\n // Check whether this trailing punctuation marker is optionally\n // followed by more trailing markers, and then followed\n // by an end.\n if (\n code === 33 ||\n code === 34 ||\n code === 38 ||\n code === 39 ||\n code === 41 ||\n code === 42 ||\n code === 44 ||\n code === 46 ||\n code === 58 ||\n code === 59 ||\n code === 60 ||\n code === 63 ||\n code === 93 ||\n code === 95 ||\n code === 126\n ) {\n return effects.check(trail, ok, pathAtPunctuation)(code)\n }\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return ok(code)\n }\n effects.consume(code)\n return pathInside\n }\n\n /**\n * In path, at potential trailing punctuation, that was not trailing.\n *\n * ```markdown\n * > | https://example.com/a\"b\n * ^\n * ```\n *\n * @type {State}\n */\n function pathAtPunctuation(code) {\n // Count closing parens.\n if (code === 41) {\n sizeClose++\n }\n effects.consume(code)\n return pathInside\n }\n}\n\n/**\n * Trail.\n *\n * This calls `ok` if this *is* the trail, followed by an end, which means\n * the entire trail is not part of the link.\n * It calls `nok` if this *is* part of the link.\n *\n * ```markdown\n * > | https://example.com\").\n * ^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTrail(effects, ok, nok) {\n return trail\n\n /**\n * In trail of domain or path.\n *\n * ```markdown\n * > | https://example.com\").\n * ^\n * ```\n *\n * @type {State}\n */\n function trail(code) {\n // Regular trailing punctuation.\n if (\n code === 33 ||\n code === 34 ||\n code === 39 ||\n code === 41 ||\n code === 42 ||\n code === 44 ||\n code === 46 ||\n code === 58 ||\n code === 59 ||\n code === 63 ||\n code === 95 ||\n code === 126\n ) {\n effects.consume(code)\n return trail\n }\n\n // `&` followed by one or more alphabeticals and then a `;`, is\n // as a whole considered as trailing punctuation.\n // In all other cases, it is considered as continuation of the URL.\n if (code === 38) {\n effects.consume(code)\n return trailCharRefStart\n }\n\n // Needed because we allow literals after `[`, as we fix:\n // .\n // Check that it is not followed by `(` or `[`.\n if (code === 93) {\n effects.consume(code)\n return trailBracketAfter\n }\n if (\n // `<` is an end.\n code === 60 ||\n // So is whitespace.\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return ok(code)\n }\n return nok(code)\n }\n\n /**\n * In trail, after `]`.\n *\n * > 👉 **Note**: this deviates from `cmark-gfm` to fix a bug.\n * > See end of for more.\n *\n * ```markdown\n * > | https://example.com](\n * ^\n * ```\n *\n * @type {State}\n */\n function trailBracketAfter(code) {\n // Whitespace or something that could start a resource or reference is the end.\n // Switch back to trail otherwise.\n if (\n code === null ||\n code === 40 ||\n code === 91 ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return ok(code)\n }\n return trail(code)\n }\n\n /**\n * In character-reference like trail, after `&`.\n *\n * ```markdown\n * > | https://example.com&).\n * ^\n * ```\n *\n * @type {State}\n */\n function trailCharRefStart(code) {\n // When non-alpha, it’s not a trail.\n return asciiAlpha(code) ? trailCharRefInside(code) : nok(code)\n }\n\n /**\n * In character-reference like trail.\n *\n * ```markdown\n * > | https://example.com&).\n * ^\n * ```\n *\n * @type {State}\n */\n function trailCharRefInside(code) {\n // Switch back to trail if this is well-formed.\n if (code === 59) {\n effects.consume(code)\n return trail\n }\n if (asciiAlpha(code)) {\n effects.consume(code)\n return trailCharRefInside\n }\n\n // It’s not a trail.\n return nok(code)\n }\n}\n\n/**\n * Dot in email domain trail.\n *\n * This calls `ok` if this *is* the trail, followed by an end, which means\n * the trail is not part of the link.\n * It calls `nok` if this *is* part of the link.\n *\n * ```markdown\n * > | contact@example.org.\n * ^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeEmailDomainDotTrail(effects, ok, nok) {\n return start\n\n /**\n * Dot.\n *\n * ```markdown\n * > | contact@example.org.\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Must be dot.\n effects.consume(code)\n return after\n }\n\n /**\n * After dot.\n *\n * ```markdown\n * > | contact@example.org.\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Not a trail if alphanumeric.\n return asciiAlphanumeric(code) ? nok(code) : ok(code)\n }\n}\n\n/**\n * See:\n * .\n *\n * @type {Previous}\n */\nfunction previousWww(code) {\n return (\n code === null ||\n code === 40 ||\n code === 42 ||\n code === 95 ||\n code === 91 ||\n code === 93 ||\n code === 126 ||\n markdownLineEndingOrSpace(code)\n )\n}\n\n/**\n * See:\n * .\n *\n * @type {Previous}\n */\nfunction previousProtocol(code) {\n return !asciiAlpha(code)\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Previous}\n */\nfunction previousEmail(code) {\n // Do not allow a slash “inside” atext.\n // The reference code is a bit weird, but that’s what it results in.\n // Source: .\n // Other than slash, every preceding character is allowed.\n return !(code === 47 || gfmAtext(code))\n}\n\n/**\n * @param {Code} code\n * @returns {boolean}\n */\nfunction gfmAtext(code) {\n return (\n code === 43 ||\n code === 45 ||\n code === 46 ||\n code === 95 ||\n asciiAlphanumeric(code)\n )\n}\n\n/**\n * @param {Array} events\n * @returns {boolean}\n */\nfunction previousUnbalanced(events) {\n let index = events.length\n let result = false\n while (index--) {\n const token = events[index][1]\n if (\n (token.type === 'labelLink' || token.type === 'labelImage') &&\n !token._balanced\n ) {\n result = true\n break\n }\n\n // If we’ve seen this token, and it was marked as not having any unbalanced\n // bracket before it, we can exit.\n if (token._gfmAutolinkLiteralWalkedInto) {\n result = false\n break\n }\n }\n if (events.length > 0 && !result) {\n // Mark the last token as “walked into” w/o finding\n // anything.\n events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true\n }\n return result\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Exiter} Exiter\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {blankLine} from 'micromark-core-commonmark'\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEndingOrSpace} from 'micromark-util-character'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nconst indent = {\n tokenize: tokenizeIndent,\n partial: true\n}\n\n// To do: micromark should support a `_hiddenGfmFootnoteSupport`, which only\n// affects label start (image).\n// That will let us drop `tokenizePotentialGfmFootnote*`.\n// It currently has a `_hiddenFootnoteSupport`, which affects that and more.\n// That can be removed when `micromark-extension-footnote` is archived.\n\n/**\n * Create an extension for `micromark` to enable GFM footnote syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to\n * enable GFM footnote syntax.\n */\nexport function gfmFootnote() {\n /** @type {Extension} */\n return {\n document: {\n [91]: {\n tokenize: tokenizeDefinitionStart,\n continuation: {\n tokenize: tokenizeDefinitionContinuation\n },\n exit: gfmFootnoteDefinitionEnd\n }\n },\n text: {\n [91]: {\n tokenize: tokenizeGfmFootnoteCall\n },\n [93]: {\n add: 'after',\n tokenize: tokenizePotentialGfmFootnoteCall,\n resolveTo: resolveToPotentialGfmFootnoteCall\n }\n }\n }\n}\n\n// To do: remove after micromark update.\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizePotentialGfmFootnoteCall(effects, ok, nok) {\n const self = this\n let index = self.events.length\n const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = [])\n /** @type {Token} */\n let labelStart\n\n // Find an opening.\n while (index--) {\n const token = self.events[index][1]\n if (token.type === 'labelImage') {\n labelStart = token\n break\n }\n\n // Exit if we’ve walked far enough.\n if (\n token.type === 'gfmFootnoteCall' ||\n token.type === 'labelLink' ||\n token.type === 'label' ||\n token.type === 'image' ||\n token.type === 'link'\n ) {\n break\n }\n }\n return start\n\n /**\n * @type {State}\n */\n function start(code) {\n if (!labelStart || !labelStart._balanced) {\n return nok(code)\n }\n const id = normalizeIdentifier(\n self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })\n )\n if (id.codePointAt(0) !== 94 || !defined.includes(id.slice(1))) {\n return nok(code)\n }\n effects.enter('gfmFootnoteCallLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallLabelMarker')\n return ok(code)\n }\n}\n\n// To do: remove after micromark update.\n/** @type {Resolver} */\nfunction resolveToPotentialGfmFootnoteCall(events, context) {\n let index = events.length\n /** @type {Token | undefined} */\n let labelStart\n\n // Find an opening.\n while (index--) {\n if (\n events[index][1].type === 'labelImage' &&\n events[index][0] === 'enter'\n ) {\n labelStart = events[index][1]\n break\n }\n }\n // Change the `labelImageMarker` to a `data`.\n events[index + 1][1].type = 'data'\n events[index + 3][1].type = 'gfmFootnoteCallLabelMarker'\n\n // The whole (without `!`):\n /** @type {Token} */\n const call = {\n type: 'gfmFootnoteCall',\n start: Object.assign({}, events[index + 3][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n }\n // The `^` marker\n /** @type {Token} */\n const marker = {\n type: 'gfmFootnoteCallMarker',\n start: Object.assign({}, events[index + 3][1].end),\n end: Object.assign({}, events[index + 3][1].end)\n }\n // Increment the end 1 character.\n marker.end.column++\n marker.end.offset++\n marker.end._bufferIndex++\n /** @type {Token} */\n const string = {\n type: 'gfmFootnoteCallString',\n start: Object.assign({}, marker.end),\n end: Object.assign({}, events[events.length - 1][1].start)\n }\n /** @type {Token} */\n const chunk = {\n type: 'chunkString',\n contentType: 'string',\n start: Object.assign({}, string.start),\n end: Object.assign({}, string.end)\n }\n\n /** @type {Array} */\n const replacement = [\n // Take the `labelImageMarker` (now `data`, the `!`)\n events[index + 1],\n events[index + 2],\n ['enter', call, context],\n // The `[`\n events[index + 3],\n events[index + 4],\n // The `^`.\n ['enter', marker, context],\n ['exit', marker, context],\n // Everything in between.\n ['enter', string, context],\n ['enter', chunk, context],\n ['exit', chunk, context],\n ['exit', string, context],\n // The ending (`]`, properly parsed and labelled).\n events[events.length - 2],\n events[events.length - 1],\n ['exit', call, context]\n ]\n events.splice(index, events.length - index + 1, ...replacement)\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeGfmFootnoteCall(effects, ok, nok) {\n const self = this\n const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = [])\n let size = 0\n /** @type {boolean} */\n let data\n\n // Note: the implementation of `markdown-rs` is different, because it houses\n // core *and* extensions in one project.\n // Therefore, it can include footnote logic inside `label-end`.\n // We can’t do that, but luckily, we can parse footnotes in a simpler way than\n // needed for labels.\n return start\n\n /**\n * Start of footnote label.\n *\n * ```markdown\n * > | a [^b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('gfmFootnoteCall')\n effects.enter('gfmFootnoteCallLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallLabelMarker')\n return callStart\n }\n\n /**\n * After `[`, at `^`.\n *\n * ```markdown\n * > | a [^b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function callStart(code) {\n if (code !== 94) return nok(code)\n effects.enter('gfmFootnoteCallMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallMarker')\n effects.enter('gfmFootnoteCallString')\n effects.enter('chunkString').contentType = 'string'\n return callData\n }\n\n /**\n * In label.\n *\n * ```markdown\n * > | a [^b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function callData(code) {\n if (\n // Too long.\n size > 999 ||\n // Closing brace with nothing.\n (code === 93 && !data) ||\n // Space or tab is not supported by GFM for some reason.\n // `\\n` and `[` not being supported makes sense.\n code === null ||\n code === 91 ||\n markdownLineEndingOrSpace(code)\n ) {\n return nok(code)\n }\n if (code === 93) {\n effects.exit('chunkString')\n const token = effects.exit('gfmFootnoteCallString')\n if (!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))) {\n return nok(code)\n }\n effects.enter('gfmFootnoteCallLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallLabelMarker')\n effects.exit('gfmFootnoteCall')\n return ok\n }\n if (!markdownLineEndingOrSpace(code)) {\n data = true\n }\n size++\n effects.consume(code)\n return code === 92 ? callEscape : callData\n }\n\n /**\n * On character after escape.\n *\n * ```markdown\n * > | a [^b\\c] d\n * ^\n * ```\n *\n * @type {State}\n */\n function callEscape(code) {\n if (code === 91 || code === 92 || code === 93) {\n effects.consume(code)\n size++\n return callData\n }\n return callData(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDefinitionStart(effects, ok, nok) {\n const self = this\n const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = [])\n /** @type {string} */\n let identifier\n let size = 0\n /** @type {boolean | undefined} */\n let data\n return start\n\n /**\n * Start of GFM footnote definition.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('gfmFootnoteDefinition')._container = true\n effects.enter('gfmFootnoteDefinitionLabel')\n effects.enter('gfmFootnoteDefinitionLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteDefinitionLabelMarker')\n return labelAtMarker\n }\n\n /**\n * In label, at caret.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelAtMarker(code) {\n if (code === 94) {\n effects.enter('gfmFootnoteDefinitionMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteDefinitionMarker')\n effects.enter('gfmFootnoteDefinitionLabelString')\n effects.enter('chunkString').contentType = 'string'\n return labelInside\n }\n return nok(code)\n }\n\n /**\n * In label.\n *\n * > 👉 **Note**: `cmark-gfm` prevents whitespace from occurring in footnote\n * > definition labels.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelInside(code) {\n if (\n // Too long.\n size > 999 ||\n // Closing brace with nothing.\n (code === 93 && !data) ||\n // Space or tab is not supported by GFM for some reason.\n // `\\n` and `[` not being supported makes sense.\n code === null ||\n code === 91 ||\n markdownLineEndingOrSpace(code)\n ) {\n return nok(code)\n }\n if (code === 93) {\n effects.exit('chunkString')\n const token = effects.exit('gfmFootnoteDefinitionLabelString')\n identifier = normalizeIdentifier(self.sliceSerialize(token))\n effects.enter('gfmFootnoteDefinitionLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteDefinitionLabelMarker')\n effects.exit('gfmFootnoteDefinitionLabel')\n return labelAfter\n }\n if (!markdownLineEndingOrSpace(code)) {\n data = true\n }\n size++\n effects.consume(code)\n return code === 92 ? labelEscape : labelInside\n }\n\n /**\n * After `\\`, at a special character.\n *\n * > 👉 **Note**: `cmark-gfm` currently does not support escaped brackets:\n * > \n *\n * ```markdown\n * > | [^a\\*b]: c\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEscape(code) {\n if (code === 91 || code === 92 || code === 93) {\n effects.consume(code)\n size++\n return labelInside\n }\n return labelInside(code)\n }\n\n /**\n * After definition label.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelAfter(code) {\n if (code === 58) {\n effects.enter('definitionMarker')\n effects.consume(code)\n effects.exit('definitionMarker')\n if (!defined.includes(identifier)) {\n defined.push(identifier)\n }\n\n // Any whitespace after the marker is eaten, forming indented code\n // is not possible.\n // No space is also fine, just like a block quote marker.\n return factorySpace(\n effects,\n whitespaceAfter,\n 'gfmFootnoteDefinitionWhitespace'\n )\n }\n return nok(code)\n }\n\n /**\n * After definition prefix.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function whitespaceAfter(code) {\n // `markdown-rs` has a wrapping token for the prefix that is closed here.\n return ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDefinitionContinuation(effects, ok, nok) {\n /// Start of footnote definition continuation.\n ///\n /// ```markdown\n /// | [^a]: b\n /// > | c\n /// ^\n /// ```\n //\n // Either a blank line, which is okay, or an indented thing.\n return effects.check(blankLine, ok, effects.attempt(indent, ok, nok))\n}\n\n/** @type {Exiter} */\nfunction gfmFootnoteDefinitionEnd(effects) {\n effects.exit('gfmFootnoteDefinition')\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeIndent(effects, ok, nok) {\n const self = this\n return factorySpace(\n effects,\n afterPrefix,\n 'gfmFootnoteDefinitionIndent',\n 4 + 1\n )\n\n /**\n * @type {State}\n */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1]\n return tail &&\n tail[1].type === 'gfmFootnoteDefinitionIndent' &&\n tail[2].sliceSerialize(tail[1], true).length === 4\n ? ok(code)\n : nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [singleTilde=true]\n * Whether to support strikethrough with a single tilde (default: `true`).\n *\n * Single tildes work on github.com, but are technically prohibited by the\n * GFM spec.\n */\n\nimport {splice} from 'micromark-util-chunked'\nimport {classifyCharacter} from 'micromark-util-classify-character'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/**\n * Create an extension for `micromark` to enable GFM strikethrough syntax.\n *\n * @param {Options | null | undefined} [options={}]\n * Configuration.\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions`, to\n * enable GFM strikethrough syntax.\n */\nexport function gfmStrikethrough(options) {\n const options_ = options || {}\n let single = options_.singleTilde\n const tokenizer = {\n tokenize: tokenizeStrikethrough,\n resolveAll: resolveAllStrikethrough\n }\n if (single === null || single === undefined) {\n single = true\n }\n return {\n text: {\n [126]: tokenizer\n },\n insideSpan: {\n null: [tokenizer]\n },\n attentionMarkers: {\n null: [126]\n }\n }\n\n /**\n * Take events and resolve strikethrough.\n *\n * @type {Resolver}\n */\n function resolveAllStrikethrough(events, context) {\n let index = -1\n\n // Walk through all events.\n while (++index < events.length) {\n // Find a token that can close.\n if (\n events[index][0] === 'enter' &&\n events[index][1].type === 'strikethroughSequenceTemporary' &&\n events[index][1]._close\n ) {\n let open = index\n\n // Now walk back to find an opener.\n while (open--) {\n // Find a token that can open the closer.\n if (\n events[open][0] === 'exit' &&\n events[open][1].type === 'strikethroughSequenceTemporary' &&\n events[open][1]._open &&\n // If the sizes are the same:\n events[index][1].end.offset - events[index][1].start.offset ===\n events[open][1].end.offset - events[open][1].start.offset\n ) {\n events[index][1].type = 'strikethroughSequence'\n events[open][1].type = 'strikethroughSequence'\n\n /** @type {Token} */\n const strikethrough = {\n type: 'strikethrough',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[index][1].end)\n }\n\n /** @type {Token} */\n const text = {\n type: 'strikethroughText',\n start: Object.assign({}, events[open][1].end),\n end: Object.assign({}, events[index][1].start)\n }\n\n // Opening.\n /** @type {Array} */\n const nextEvents = [\n ['enter', strikethrough, context],\n ['enter', events[open][1], context],\n ['exit', events[open][1], context],\n ['enter', text, context]\n ]\n const insideSpan = context.parser.constructs.insideSpan.null\n if (insideSpan) {\n // Between.\n splice(\n nextEvents,\n nextEvents.length,\n 0,\n resolveAll(insideSpan, events.slice(open + 1, index), context)\n )\n }\n\n // Closing.\n splice(nextEvents, nextEvents.length, 0, [\n ['exit', text, context],\n ['enter', events[index][1], context],\n ['exit', events[index][1], context],\n ['exit', strikethrough, context]\n ])\n splice(events, open - 1, index - open + 3, nextEvents)\n index = open + nextEvents.length - 2\n break\n }\n }\n }\n }\n index = -1\n while (++index < events.length) {\n if (events[index][1].type === 'strikethroughSequenceTemporary') {\n events[index][1].type = 'data'\n }\n }\n return events\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\n function tokenizeStrikethrough(effects, ok, nok) {\n const previous = this.previous\n const events = this.events\n let size = 0\n return start\n\n /** @type {State} */\n function start(code) {\n if (\n previous === 126 &&\n events[events.length - 1][1].type !== 'characterEscape'\n ) {\n return nok(code)\n }\n effects.enter('strikethroughSequenceTemporary')\n return more(code)\n }\n\n /** @type {State} */\n function more(code) {\n const before = classifyCharacter(previous)\n if (code === 126) {\n // If this is the third marker, exit.\n if (size > 1) return nok(code)\n effects.consume(code)\n size++\n return more\n }\n if (size < 2 && !single) return nok(code)\n const token = effects.exit('strikethroughSequenceTemporary')\n const after = classifyCharacter(code)\n token._open = !after || (after === 2 && Boolean(before))\n token._close = !before || (before === 2 && Boolean(after))\n return ok(code)\n }\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\n// Port of `edit_map.rs` from `markdown-rs`.\n// This should move to `markdown-js` later.\n\n// Deal with several changes in events, batching them together.\n//\n// Preferably, changes should be kept to a minimum.\n// Sometimes, it’s needed to change the list of events, because parsing can be\n// messy, and it helps to expose a cleaner interface of events to the compiler\n// and other users.\n// It can also help to merge many adjacent similar events.\n// And, in other cases, it’s needed to parse subcontent: pass some events\n// through another tokenizer and inject the result.\n\n/**\n * @typedef {[number, number, Array]} Change\n * @typedef {[number, number, number]} Jump\n */\n\n/**\n * Tracks a bunch of edits.\n */\nexport class EditMap {\n /**\n * Create a new edit map.\n */\n constructor() {\n /**\n * Record of changes.\n *\n * @type {Array}\n */\n this.map = []\n }\n\n /**\n * Create an edit: a remove and/or add at a certain place.\n *\n * @param {number} index\n * @param {number} remove\n * @param {Array} add\n * @returns {undefined}\n */\n add(index, remove, add) {\n addImpl(this, index, remove, add)\n }\n\n // To do: add this when moving to `micromark`.\n // /**\n // * Create an edit: but insert `add` before existing additions.\n // *\n // * @param {number} index\n // * @param {number} remove\n // * @param {Array} add\n // * @returns {undefined}\n // */\n // addBefore(index, remove, add) {\n // addImpl(this, index, remove, add, true)\n // }\n\n /**\n * Done, change the events.\n *\n * @param {Array} events\n * @returns {undefined}\n */\n consume(events) {\n this.map.sort(function (a, b) {\n return a[0] - b[0]\n })\n\n /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */\n if (this.map.length === 0) {\n return\n }\n\n // To do: if links are added in events, like they are in `markdown-rs`,\n // this is needed.\n // // Calculate jumps: where items in the current list move to.\n // /** @type {Array} */\n // const jumps = []\n // let index = 0\n // let addAcc = 0\n // let removeAcc = 0\n // while (index < this.map.length) {\n // const [at, remove, add] = this.map[index]\n // removeAcc += remove\n // addAcc += add.length\n // jumps.push([at, removeAcc, addAcc])\n // index += 1\n // }\n //\n // . shiftLinks(events, jumps)\n\n let index = this.map.length\n /** @type {Array>} */\n const vecs = []\n while (index > 0) {\n index -= 1\n vecs.push(\n events.slice(this.map[index][0] + this.map[index][1]),\n this.map[index][2]\n )\n\n // Truncate rest.\n events.length = this.map[index][0]\n }\n vecs.push([...events])\n events.length = 0\n let slice = vecs.pop()\n while (slice) {\n events.push(...slice)\n slice = vecs.pop()\n }\n\n // Truncate everything.\n this.map.length = 0\n }\n}\n\n/**\n * Create an edit.\n *\n * @param {EditMap} editMap\n * @param {number} at\n * @param {number} remove\n * @param {Array} add\n * @returns {undefined}\n */\nfunction addImpl(editMap, at, remove, add) {\n let index = 0\n\n /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */\n if (remove === 0 && add.length === 0) {\n return\n }\n while (index < editMap.map.length) {\n if (editMap.map[index][0] === at) {\n editMap.map[index][1] += remove\n\n // To do: before not used by tables, use when moving to micromark.\n // if (before) {\n // add.push(...editMap.map[index][2])\n // editMap.map[index][2] = add\n // } else {\n editMap.map[index][2].push(...add)\n // }\n\n return\n }\n index += 1\n }\n editMap.map.push([at, remove, add])\n}\n\n// /**\n// * Shift `previous` and `next` links according to `jumps`.\n// *\n// * This fixes links in case there are events removed or added between them.\n// *\n// * @param {Array} events\n// * @param {Array} jumps\n// */\n// function shiftLinks(events, jumps) {\n// let jumpIndex = 0\n// let index = 0\n// let add = 0\n// let rm = 0\n\n// while (index < events.length) {\n// const rmCurr = rm\n\n// while (jumpIndex < jumps.length && jumps[jumpIndex][0] <= index) {\n// add = jumps[jumpIndex][2]\n// rm = jumps[jumpIndex][1]\n// jumpIndex += 1\n// }\n\n// // Ignore items that will be removed.\n// if (rm > rmCurr) {\n// index += rm - rmCurr\n// } else {\n// // ?\n// // if let Some(link) = &events[index].link {\n// // if let Some(next) = link.next {\n// // events[next].link.as_mut().unwrap().previous = Some(index + add - rm);\n// // while jumpIndex < jumps.len() && jumps[jumpIndex].0 <= next {\n// // add = jumps[jumpIndex].2;\n// // rm = jumps[jumpIndex].1;\n// // jumpIndex += 1;\n// // }\n// // events[index].link.as_mut().unwrap().next = Some(next + add - rm);\n// // index = next;\n// // continue;\n// // }\n// // }\n// index += 1\n// }\n// }\n// }\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\n/**\n * @typedef {'center' | 'left' | 'none' | 'right'} Align\n */\n\n/**\n * Figure out the alignment of a GFM table.\n *\n * @param {Readonly>} events\n * List of events.\n * @param {number} index\n * Table enter event.\n * @returns {Array}\n * List of aligns.\n */\nexport function gfmTableAlign(events, index) {\n let inDelimiterRow = false\n /** @type {Array} */\n const align = []\n while (index < events.length) {\n const event = events[index]\n if (inDelimiterRow) {\n if (event[0] === 'enter') {\n // Start of alignment value: set a new column.\n // To do: `markdown-rs` uses `tableDelimiterCellValue`.\n if (event[1].type === 'tableContent') {\n align.push(\n events[index + 1][1].type === 'tableDelimiterMarker'\n ? 'left'\n : 'none'\n )\n }\n }\n // Exits:\n // End of alignment value: change the column.\n // To do: `markdown-rs` uses `tableDelimiterCellValue`.\n else if (event[1].type === 'tableContent') {\n if (events[index - 1][1].type === 'tableDelimiterMarker') {\n const alignIndex = align.length - 1\n align[alignIndex] = align[alignIndex] === 'left' ? 'center' : 'right'\n }\n }\n // Done!\n else if (event[1].type === 'tableDelimiterRow') {\n break\n }\n } else if (event[0] === 'enter' && event[1].type === 'tableDelimiterRow') {\n inDelimiterRow = true\n }\n index += 1\n }\n return align\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\n/**\n * @typedef {[number, number, number, number]} Range\n * Cell info.\n *\n * @typedef {0 | 1 | 2 | 3} RowKind\n * Where we are: `1` for head row, `2` for delimiter row, `3` for body row.\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nimport {EditMap} from './edit-map.js'\nimport {gfmTableAlign} from './infer.js'\n\n/**\n * Create an HTML extension for `micromark` to support GitHub tables syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * table syntax.\n */\nexport function gfmTable() {\n return {\n flow: {\n null: {\n tokenize: tokenizeTable,\n resolveAll: resolveTable\n }\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTable(effects, ok, nok) {\n const self = this\n let size = 0\n let sizeB = 0\n /** @type {boolean | undefined} */\n let seen\n return start\n\n /**\n * Start of a GFM table.\n *\n * If there is a valid table row or table head before, then we try to parse\n * another row.\n * Otherwise, we try to parse a head.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * > | | b |\n * ^\n * ```\n * @type {State}\n */\n function start(code) {\n let index = self.events.length - 1\n while (index > -1) {\n const type = self.events[index][1].type\n if (\n type === 'lineEnding' ||\n // Note: markdown-rs uses `whitespace` instead of `linePrefix`\n type === 'linePrefix'\n )\n index--\n else break\n }\n const tail = index > -1 ? self.events[index][1].type : null\n const next =\n tail === 'tableHead' || tail === 'tableRow' ? bodyRowStart : headRowBefore\n\n // Don’t allow lazy body rows.\n if (next === bodyRowStart && self.parser.lazy[self.now().line]) {\n return nok(code)\n }\n return next(code)\n }\n\n /**\n * Before table head row.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowBefore(code) {\n effects.enter('tableHead')\n effects.enter('tableRow')\n return headRowStart(code)\n }\n\n /**\n * Before table head row, after whitespace.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowStart(code) {\n if (code === 124) {\n return headRowBreak(code)\n }\n\n // To do: micromark-js should let us parse our own whitespace in extensions,\n // like `markdown-rs`:\n //\n // ```js\n // // 4+ spaces.\n // if (markdownSpace(code)) {\n // return nok(code)\n // }\n // ```\n\n seen = true\n // Count the first character, that isn’t a pipe, double.\n sizeB += 1\n return headRowBreak(code)\n }\n\n /**\n * At break in table head row.\n *\n * ```markdown\n * > | | a |\n * ^\n * ^\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowBreak(code) {\n if (code === null) {\n // Note: in `markdown-rs`, we need to reset, in `micromark-js` we don‘t.\n return nok(code)\n }\n if (markdownLineEnding(code)) {\n // If anything other than one pipe (ignoring whitespace) was used, it’s fine.\n if (sizeB > 1) {\n sizeB = 0\n // To do: check if this works.\n // Feel free to interrupt:\n self.interrupt = true\n effects.exit('tableRow')\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return headDelimiterStart\n }\n\n // Note: in `markdown-rs`, we need to reset, in `micromark-js` we don‘t.\n return nok(code)\n }\n if (markdownSpace(code)) {\n // To do: check if this is fine.\n // effects.attempt(State::Next(StateName::GfmTableHeadRowBreak), State::Nok)\n // State::Retry(space_or_tab(tokenizer))\n return factorySpace(effects, headRowBreak, 'whitespace')(code)\n }\n sizeB += 1\n if (seen) {\n seen = false\n // Header cell count.\n size += 1\n }\n if (code === 124) {\n effects.enter('tableCellDivider')\n effects.consume(code)\n effects.exit('tableCellDivider')\n // Whether a delimiter was seen.\n seen = true\n return headRowBreak\n }\n\n // Anything else is cell data.\n effects.enter('data')\n return headRowData(code)\n }\n\n /**\n * In table head row data.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowData(code) {\n if (code === null || code === 124 || markdownLineEndingOrSpace(code)) {\n effects.exit('data')\n return headRowBreak(code)\n }\n effects.consume(code)\n return code === 92 ? headRowEscape : headRowData\n }\n\n /**\n * In table head row escape.\n *\n * ```markdown\n * > | | a\\-b |\n * ^\n * | | ---- |\n * | | c |\n * ```\n *\n * @type {State}\n */\n function headRowEscape(code) {\n if (code === 92 || code === 124) {\n effects.consume(code)\n return headRowData\n }\n return headRowData(code)\n }\n\n /**\n * Before delimiter row.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headDelimiterStart(code) {\n // Reset `interrupt`.\n self.interrupt = false\n\n // Note: in `markdown-rs`, we need to handle piercing here too.\n if (self.parser.lazy[self.now().line]) {\n return nok(code)\n }\n effects.enter('tableDelimiterRow')\n // Track if we’ve seen a `:` or `|`.\n seen = false\n if (markdownSpace(code)) {\n return factorySpace(\n effects,\n headDelimiterBefore,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n }\n return headDelimiterBefore(code)\n }\n\n /**\n * Before delimiter row, after optional whitespace.\n *\n * Reused when a `|` is found later, to parse another cell.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headDelimiterBefore(code) {\n if (code === 45 || code === 58) {\n return headDelimiterValueBefore(code)\n }\n if (code === 124) {\n seen = true\n // If we start with a pipe, we open a cell marker.\n effects.enter('tableCellDivider')\n effects.consume(code)\n effects.exit('tableCellDivider')\n return headDelimiterCellBefore\n }\n\n // More whitespace / empty row not allowed at start.\n return headDelimiterNok(code)\n }\n\n /**\n * After `|`, before delimiter cell.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterCellBefore(code) {\n if (markdownSpace(code)) {\n return factorySpace(effects, headDelimiterValueBefore, 'whitespace')(code)\n }\n return headDelimiterValueBefore(code)\n }\n\n /**\n * Before delimiter cell value.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterValueBefore(code) {\n // Align: left.\n if (code === 58) {\n sizeB += 1\n seen = true\n effects.enter('tableDelimiterMarker')\n effects.consume(code)\n effects.exit('tableDelimiterMarker')\n return headDelimiterLeftAlignmentAfter\n }\n\n // Align: none.\n if (code === 45) {\n sizeB += 1\n // To do: seems weird that this *isn’t* left aligned, but that state is used?\n return headDelimiterLeftAlignmentAfter(code)\n }\n if (code === null || markdownLineEnding(code)) {\n return headDelimiterCellAfter(code)\n }\n return headDelimiterNok(code)\n }\n\n /**\n * After delimiter cell left alignment marker.\n *\n * ```markdown\n * | | a |\n * > | | :- |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterLeftAlignmentAfter(code) {\n if (code === 45) {\n effects.enter('tableDelimiterFiller')\n return headDelimiterFiller(code)\n }\n\n // Anything else is not ok after the left-align colon.\n return headDelimiterNok(code)\n }\n\n /**\n * In delimiter cell filler.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterFiller(code) {\n if (code === 45) {\n effects.consume(code)\n return headDelimiterFiller\n }\n\n // Align is `center` if it was `left`, `right` otherwise.\n if (code === 58) {\n seen = true\n effects.exit('tableDelimiterFiller')\n effects.enter('tableDelimiterMarker')\n effects.consume(code)\n effects.exit('tableDelimiterMarker')\n return headDelimiterRightAlignmentAfter\n }\n effects.exit('tableDelimiterFiller')\n return headDelimiterRightAlignmentAfter(code)\n }\n\n /**\n * After delimiter cell right alignment marker.\n *\n * ```markdown\n * | | a |\n * > | | -: |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterRightAlignmentAfter(code) {\n if (markdownSpace(code)) {\n return factorySpace(effects, headDelimiterCellAfter, 'whitespace')(code)\n }\n return headDelimiterCellAfter(code)\n }\n\n /**\n * After delimiter cell.\n *\n * ```markdown\n * | | a |\n * > | | -: |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterCellAfter(code) {\n if (code === 124) {\n return headDelimiterBefore(code)\n }\n if (code === null || markdownLineEnding(code)) {\n // Exit when:\n // * there was no `:` or `|` at all (it’s a thematic break or setext\n // underline instead)\n // * the header cell count is not the delimiter cell count\n if (!seen || size !== sizeB) {\n return headDelimiterNok(code)\n }\n\n // Note: in markdown-rs`, a reset is needed here.\n effects.exit('tableDelimiterRow')\n effects.exit('tableHead')\n // To do: in `markdown-rs`, resolvers need to be registered manually.\n // effects.register_resolver(ResolveName::GfmTable)\n return ok(code)\n }\n return headDelimiterNok(code)\n }\n\n /**\n * In delimiter row, at a disallowed byte.\n *\n * ```markdown\n * | | a |\n * > | | x |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterNok(code) {\n // Note: in `markdown-rs`, we need to reset, in `micromark-js` we don‘t.\n return nok(code)\n }\n\n /**\n * Before table body row.\n *\n * ```markdown\n * | | a |\n * | | - |\n * > | | b |\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowStart(code) {\n // Note: in `markdown-rs` we need to manually take care of a prefix,\n // but in `micromark-js` that is done for us, so if we’re here, we’re\n // never at whitespace.\n effects.enter('tableRow')\n return bodyRowBreak(code)\n }\n\n /**\n * At break in table body row.\n *\n * ```markdown\n * | | a |\n * | | - |\n * > | | b |\n * ^\n * ^\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowBreak(code) {\n if (code === 124) {\n effects.enter('tableCellDivider')\n effects.consume(code)\n effects.exit('tableCellDivider')\n return bodyRowBreak\n }\n if (code === null || markdownLineEnding(code)) {\n effects.exit('tableRow')\n return ok(code)\n }\n if (markdownSpace(code)) {\n return factorySpace(effects, bodyRowBreak, 'whitespace')(code)\n }\n\n // Anything else is cell content.\n effects.enter('data')\n return bodyRowData(code)\n }\n\n /**\n * In table body row data.\n *\n * ```markdown\n * | | a |\n * | | - |\n * > | | b |\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowData(code) {\n if (code === null || code === 124 || markdownLineEndingOrSpace(code)) {\n effects.exit('data')\n return bodyRowBreak(code)\n }\n effects.consume(code)\n return code === 92 ? bodyRowEscape : bodyRowData\n }\n\n /**\n * In table body row escape.\n *\n * ```markdown\n * | | a |\n * | | ---- |\n * > | | b\\-c |\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowEscape(code) {\n if (code === 92 || code === 124) {\n effects.consume(code)\n return bodyRowData\n }\n return bodyRowData(code)\n }\n}\n\n/** @type {Resolver} */\n\nfunction resolveTable(events, context) {\n let index = -1\n let inFirstCellAwaitingPipe = true\n /** @type {RowKind} */\n let rowKind = 0\n /** @type {Range} */\n let lastCell = [0, 0, 0, 0]\n /** @type {Range} */\n let cell = [0, 0, 0, 0]\n let afterHeadAwaitingFirstBodyRow = false\n let lastTableEnd = 0\n /** @type {Token | undefined} */\n let currentTable\n /** @type {Token | undefined} */\n let currentBody\n /** @type {Token | undefined} */\n let currentCell\n const map = new EditMap()\n while (++index < events.length) {\n const event = events[index]\n const token = event[1]\n if (event[0] === 'enter') {\n // Start of head.\n if (token.type === 'tableHead') {\n afterHeadAwaitingFirstBodyRow = false\n\n // Inject previous (body end and) table end.\n if (lastTableEnd !== 0) {\n flushTableEnd(map, context, lastTableEnd, currentTable, currentBody)\n currentBody = undefined\n lastTableEnd = 0\n }\n\n // Inject table start.\n currentTable = {\n type: 'table',\n start: Object.assign({}, token.start),\n // Note: correct end is set later.\n end: Object.assign({}, token.end)\n }\n map.add(index, 0, [['enter', currentTable, context]])\n } else if (\n token.type === 'tableRow' ||\n token.type === 'tableDelimiterRow'\n ) {\n inFirstCellAwaitingPipe = true\n currentCell = undefined\n lastCell = [0, 0, 0, 0]\n cell = [0, index + 1, 0, 0]\n\n // Inject table body start.\n if (afterHeadAwaitingFirstBodyRow) {\n afterHeadAwaitingFirstBodyRow = false\n currentBody = {\n type: 'tableBody',\n start: Object.assign({}, token.start),\n // Note: correct end is set later.\n end: Object.assign({}, token.end)\n }\n map.add(index, 0, [['enter', currentBody, context]])\n }\n rowKind = token.type === 'tableDelimiterRow' ? 2 : currentBody ? 3 : 1\n }\n // Cell data.\n else if (\n rowKind &&\n (token.type === 'data' ||\n token.type === 'tableDelimiterMarker' ||\n token.type === 'tableDelimiterFiller')\n ) {\n inFirstCellAwaitingPipe = false\n\n // First value in cell.\n if (cell[2] === 0) {\n if (lastCell[1] !== 0) {\n cell[0] = cell[1]\n currentCell = flushCell(\n map,\n context,\n lastCell,\n rowKind,\n undefined,\n currentCell\n )\n lastCell = [0, 0, 0, 0]\n }\n cell[2] = index\n }\n } else if (token.type === 'tableCellDivider') {\n if (inFirstCellAwaitingPipe) {\n inFirstCellAwaitingPipe = false\n } else {\n if (lastCell[1] !== 0) {\n cell[0] = cell[1]\n currentCell = flushCell(\n map,\n context,\n lastCell,\n rowKind,\n undefined,\n currentCell\n )\n }\n lastCell = cell\n cell = [lastCell[1], index, 0, 0]\n }\n }\n }\n // Exit events.\n else if (token.type === 'tableHead') {\n afterHeadAwaitingFirstBodyRow = true\n lastTableEnd = index\n } else if (\n token.type === 'tableRow' ||\n token.type === 'tableDelimiterRow'\n ) {\n lastTableEnd = index\n if (lastCell[1] !== 0) {\n cell[0] = cell[1]\n currentCell = flushCell(\n map,\n context,\n lastCell,\n rowKind,\n index,\n currentCell\n )\n } else if (cell[1] !== 0) {\n currentCell = flushCell(map, context, cell, rowKind, index, currentCell)\n }\n rowKind = 0\n } else if (\n rowKind &&\n (token.type === 'data' ||\n token.type === 'tableDelimiterMarker' ||\n token.type === 'tableDelimiterFiller')\n ) {\n cell[3] = index\n }\n }\n if (lastTableEnd !== 0) {\n flushTableEnd(map, context, lastTableEnd, currentTable, currentBody)\n }\n map.consume(context.events)\n\n // To do: move this into `html`, when events are exposed there.\n // That’s what `markdown-rs` does.\n // That needs updates to `mdast-util-gfm-table`.\n index = -1\n while (++index < context.events.length) {\n const event = context.events[index]\n if (event[0] === 'enter' && event[1].type === 'table') {\n event[1]._align = gfmTableAlign(context.events, index)\n }\n }\n return events\n}\n\n/**\n * Generate a cell.\n *\n * @param {EditMap} map\n * @param {Readonly} context\n * @param {Readonly} range\n * @param {RowKind} rowKind\n * @param {number | undefined} rowEnd\n * @param {Token | undefined} previousCell\n * @returns {Token | undefined}\n */\n// eslint-disable-next-line max-params\nfunction flushCell(map, context, range, rowKind, rowEnd, previousCell) {\n // `markdown-rs` uses:\n // rowKind === 2 ? 'tableDelimiterCell' : 'tableCell'\n const groupName =\n rowKind === 1\n ? 'tableHeader'\n : rowKind === 2\n ? 'tableDelimiter'\n : 'tableData'\n // `markdown-rs` uses:\n // rowKind === 2 ? 'tableDelimiterCellValue' : 'tableCellText'\n const valueName = 'tableContent'\n\n // Insert an exit for the previous cell, if there is one.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- exit\n // ^^^^-- this cell\n // ```\n if (range[0] !== 0) {\n previousCell.end = Object.assign({}, getPoint(context.events, range[0]))\n map.add(range[0], 0, [['exit', previousCell, context]])\n }\n\n // Insert enter of this cell.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- enter\n // ^^^^-- this cell\n // ```\n const now = getPoint(context.events, range[1])\n previousCell = {\n type: groupName,\n start: Object.assign({}, now),\n // Note: correct end is set later.\n end: Object.assign({}, now)\n }\n map.add(range[1], 0, [['enter', previousCell, context]])\n\n // Insert text start at first data start and end at last data end, and\n // remove events between.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- enter\n // ^-- exit\n // ^^^^-- this cell\n // ```\n if (range[2] !== 0) {\n const relatedStart = getPoint(context.events, range[2])\n const relatedEnd = getPoint(context.events, range[3])\n /** @type {Token} */\n const valueToken = {\n type: valueName,\n start: Object.assign({}, relatedStart),\n end: Object.assign({}, relatedEnd)\n }\n map.add(range[2], 0, [['enter', valueToken, context]])\n if (rowKind !== 2) {\n // Fix positional info on remaining events\n const start = context.events[range[2]]\n const end = context.events[range[3]]\n start[1].end = Object.assign({}, end[1].end)\n start[1].type = 'chunkText'\n start[1].contentType = 'text'\n\n // Remove if needed.\n if (range[3] > range[2] + 1) {\n const a = range[2] + 1\n const b = range[3] - range[2] - 1\n map.add(a, b, [])\n }\n }\n map.add(range[3] + 1, 0, [['exit', valueToken, context]])\n }\n\n // Insert an exit for the last cell, if at the row end.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- exit\n // ^^^^^^-- this cell (the last one contains two “between” parts)\n // ```\n if (rowEnd !== undefined) {\n previousCell.end = Object.assign({}, getPoint(context.events, rowEnd))\n map.add(rowEnd, 0, [['exit', previousCell, context]])\n previousCell = undefined\n }\n return previousCell\n}\n\n/**\n * Generate table end (and table body end).\n *\n * @param {Readonly} map\n * @param {Readonly} context\n * @param {number} index\n * @param {Token} table\n * @param {Token | undefined} tableBody\n */\n// eslint-disable-next-line max-params\nfunction flushTableEnd(map, context, index, table, tableBody) {\n /** @type {Array} */\n const exits = []\n const related = getPoint(context.events, index)\n if (tableBody) {\n tableBody.end = Object.assign({}, related)\n exits.push(['exit', tableBody, context])\n }\n table.end = Object.assign({}, related)\n exits.push(['exit', table, context])\n map.add(index + 1, 0, exits)\n}\n\n/**\n * @param {Readonly>} events\n * @param {number} index\n * @returns {Readonly}\n */\nfunction getPoint(events, index) {\n const event = events[index]\n const side = event[0] === 'enter' ? 'start' : 'end'\n return event[1][side]\n}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nconst tasklistCheck = {\n tokenize: tokenizeTasklistCheck\n}\n\n/**\n * Create an HTML extension for `micromark` to support GFM task list items\n * syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `htmlExtensions` to\n * support GFM task list items when serializing to HTML.\n */\nexport function gfmTaskListItem() {\n return {\n text: {\n [91]: tasklistCheck\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTasklistCheck(effects, ok, nok) {\n const self = this\n return open\n\n /**\n * At start of task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (\n // Exit if there’s stuff before.\n self.previous !== null ||\n // Exit if not in the first content that is the first child of a list\n // item.\n !self._gfmTasklistFirstContentOfListItem\n ) {\n return nok(code)\n }\n effects.enter('taskListCheck')\n effects.enter('taskListCheckMarker')\n effects.consume(code)\n effects.exit('taskListCheckMarker')\n return inside\n }\n\n /**\n * In task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n // Currently we match how GH works in files.\n // To match how GH works in comments, use `markdownSpace` (`[\\t ]`) instead\n // of `markdownLineEndingOrSpace` (`[\\t\\n\\r ]`).\n if (markdownLineEndingOrSpace(code)) {\n effects.enter('taskListCheckValueUnchecked')\n effects.consume(code)\n effects.exit('taskListCheckValueUnchecked')\n return close\n }\n if (code === 88 || code === 120) {\n effects.enter('taskListCheckValueChecked')\n effects.consume(code)\n effects.exit('taskListCheckValueChecked')\n return close\n }\n return nok(code)\n }\n\n /**\n * At close of task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function close(code) {\n if (code === 93) {\n effects.enter('taskListCheckMarker')\n effects.consume(code)\n effects.exit('taskListCheckMarker')\n effects.exit('taskListCheck')\n return after\n }\n return nok(code)\n }\n\n /**\n * @type {State}\n */\n function after(code) {\n // EOL in paragraph means there must be something else after it.\n if (markdownLineEnding(code)) {\n return ok(code)\n }\n\n // Space or tab?\n // Check what comes after.\n if (markdownSpace(code)) {\n return effects.check(\n {\n tokenize: spaceThenNonSpace\n },\n ok,\n nok\n )(code)\n }\n\n // EOF, or non-whitespace, both wrong.\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction spaceThenNonSpace(effects, ok, nok) {\n return factorySpace(effects, after, 'whitespace')\n\n /**\n * After whitespace, after task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // EOF means there was nothing, so bad.\n // EOL means there’s content after it, so good.\n // Impossible to have more spaces.\n // Anything else is good.\n return code === null ? nok(code) : ok(code)\n }\n}\n","/**\n * @import {Root} from 'mdast'\n * @import {Options} from 'remark-gfm'\n * @import {} from 'remark-parse'\n * @import {} from 'remark-stringify'\n * @import {Processor} from 'unified'\n */\n\nimport {gfmFromMarkdown, gfmToMarkdown} from 'mdast-util-gfm'\nimport {gfm} from 'micromark-extension-gfm'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Add support GFM (autolink literals, footnotes, strikethrough, tables,\n * tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function remarkGfm(options) {\n // @ts-expect-error: TS is wrong about `this`.\n // eslint-disable-next-line unicorn/no-this-assignment\n const self = /** @type {Processor} */ (this)\n const settings = options || emptyOptions\n const data = self.data()\n\n const micromarkExtensions =\n data.micromarkExtensions || (data.micromarkExtensions = [])\n const fromMarkdownExtensions =\n data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])\n const toMarkdownExtensions =\n data.toMarkdownExtensions || (data.toMarkdownExtensions = [])\n\n micromarkExtensions.push(gfm(settings))\n fromMarkdownExtensions.push(gfmFromMarkdown())\n toMarkdownExtensions.push(gfmToMarkdown(settings))\n}\n","/**\n * @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions\n * @typedef {import('micromark-extension-gfm-strikethrough').Options} Options\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n */\n\nimport {\n combineExtensions,\n combineHtmlExtensions\n} from 'micromark-util-combine-extensions'\nimport {\n gfmAutolinkLiteral,\n gfmAutolinkLiteralHtml\n} from 'micromark-extension-gfm-autolink-literal'\nimport {gfmFootnote, gfmFootnoteHtml} from 'micromark-extension-gfm-footnote'\nimport {\n gfmStrikethrough,\n gfmStrikethroughHtml\n} from 'micromark-extension-gfm-strikethrough'\nimport {gfmTable, gfmTableHtml} from 'micromark-extension-gfm-table'\nimport {gfmTagfilterHtml} from 'micromark-extension-gfm-tagfilter'\nimport {\n gfmTaskListItem,\n gfmTaskListItemHtml\n} from 'micromark-extension-gfm-task-list-item'\n\n/**\n * Create an extension for `micromark` to enable GFM syntax.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-strikethrough`.\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * syntax.\n */\nexport function gfm(options) {\n return combineExtensions([\n gfmAutolinkLiteral(),\n gfmFootnote(),\n gfmStrikethrough(options),\n gfmTable(),\n gfmTaskListItem()\n ])\n}\n\n/**\n * Create an extension for `micromark` to support GFM when serializing to HTML.\n *\n * @param {HtmlOptions | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-footnote`.\n * @returns {HtmlExtension}\n * Extension for `micromark` that can be passed in `htmlExtensions` to\n * support GFM when serializing to HTML.\n */\nexport function gfmHtml(options) {\n return combineHtmlExtensions([\n gfmAutolinkLiteralHtml(),\n gfmFootnoteHtml(options),\n gfmStrikethroughHtml(),\n gfmTableHtml(),\n gfmTagfilterHtml(),\n gfmTaskListItemHtml()\n ])\n}\n","/**\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\n/**\n * @typedef {import('mdast-util-gfm-table').Options} Options\n * Configuration.\n */\n\nimport {\n gfmAutolinkLiteralFromMarkdown,\n gfmAutolinkLiteralToMarkdown\n} from 'mdast-util-gfm-autolink-literal'\nimport {\n gfmFootnoteFromMarkdown,\n gfmFootnoteToMarkdown\n} from 'mdast-util-gfm-footnote'\nimport {\n gfmStrikethroughFromMarkdown,\n gfmStrikethroughToMarkdown\n} from 'mdast-util-gfm-strikethrough'\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\nimport {\n gfmTaskListItemFromMarkdown,\n gfmTaskListItemToMarkdown\n} from 'mdast-util-gfm-task-list-item'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @returns {Array}\n * Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmFromMarkdown() {\n return [\n gfmAutolinkLiteralFromMarkdown(),\n gfmFootnoteFromMarkdown(),\n gfmStrikethroughFromMarkdown(),\n gfmTableFromMarkdown(),\n gfmTaskListItemFromMarkdown()\n ]\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmToMarkdown(options) {\n return {\n extensions: [\n gfmAutolinkLiteralToMarkdown(),\n gfmFootnoteToMarkdown(),\n gfmStrikethroughToMarkdown(),\n gfmTableToMarkdown(options),\n gfmTaskListItemToMarkdown()\n ]\n }\n}\n","import type { Declaration } from 'inline-style-parser';\nimport parse from 'inline-style-parser';\n\nexport { Declaration };\n\ninterface StyleObject {\n [name: string]: string;\n}\n\ntype Iterator = (\n property: string,\n value: string,\n declaration: Declaration,\n) => void;\n\n/**\n * Parses inline style to object.\n *\n * @param style - Inline style.\n * @param iterator - Iterator.\n * @returns - Style object or null.\n *\n * @example Parsing inline style to object:\n *\n * ```js\n * import parse from 'style-to-object';\n * parse('line-height: 42;'); // { 'line-height': '42' }\n * ```\n */\nexport default function StyleToObject(\n style: string,\n iterator?: Iterator,\n): StyleObject | null {\n let styleObject: StyleObject | null = null;\n\n if (!style || typeof style !== 'string') {\n return styleObject;\n }\n\n const declarations = parse(style);\n const hasIterator = typeof iterator === 'function';\n\n declarations.forEach((declaration) => {\n if (declaration.type !== 'declaration') {\n return;\n }\n\n const { property, value } = declaration;\n\n if (hasIterator) {\n iterator(property, value, declaration);\n } else if (value) {\n styleObject = styleObject || {};\n styleObject[property] = value;\n }\n });\n\n return styleObject;\n}\n","/**\n * @typedef {import('mdast').Nodes} Nodes\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [includeImageAlt=true]\n * Whether to use `alt` for `image`s (default: `true`).\n * @property {boolean | null | undefined} [includeHtml=true]\n * Whether to use `value` of HTML (default: `true`).\n */\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Get the text content of a node or list of nodes.\n *\n * Prefers the node’s plain-text fields, otherwise serializes its children,\n * and if the given value is an array, serialize the nodes in it.\n *\n * @param {unknown} [value]\n * Thing to serialize, typically `Node`.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized `value`.\n */\nexport function toString(value, options) {\n const settings = options || emptyOptions\n const includeImageAlt =\n typeof settings.includeImageAlt === 'boolean'\n ? settings.includeImageAlt\n : true\n const includeHtml =\n typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true\n\n return one(value, includeImageAlt, includeHtml)\n}\n\n/**\n * One node or several nodes.\n *\n * @param {unknown} value\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized node.\n */\nfunction one(value, includeImageAlt, includeHtml) {\n if (node(value)) {\n if ('value' in value) {\n return value.type === 'html' && !includeHtml ? '' : value.value\n }\n\n if (includeImageAlt && 'alt' in value && value.alt) {\n return value.alt\n }\n\n if ('children' in value) {\n return all(value.children, includeImageAlt, includeHtml)\n }\n }\n\n if (Array.isArray(value)) {\n return all(value, includeImageAlt, includeHtml)\n }\n\n return ''\n}\n\n/**\n * Serialize a list of nodes.\n *\n * @param {Array} values\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized nodes.\n */\nfunction all(values, includeImageAlt, includeHtml) {\n /** @type {Array} */\n const result = []\n let index = -1\n\n while (++index < values.length) {\n result[index] = one(values[index], includeImageAlt, includeHtml)\n }\n\n return result.join('')\n}\n\n/**\n * Check if `value` looks like a node.\n *\n * @param {unknown} value\n * Thing.\n * @returns {value is Nodes}\n * Whether `value` is a node.\n */\nfunction node(value) {\n return Boolean(value && typeof value === 'object')\n}\n","export function deprecate(fn) {\n return fn\n}\n\nexport function equal() {}\n\nexport function ok() {}\n\nexport function unreachable() {}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Handles} Handles\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n * @typedef {import('micromark-util-types').NormalizedExtension} NormalizedExtension\n */\n\nimport {splice} from 'micromark-util-chunked'\n\nconst hasOwnProperty = {}.hasOwnProperty\n\n/**\n * Combine multiple syntax extensions into one.\n *\n * @param {Array} extensions\n * List of syntax extensions.\n * @returns {NormalizedExtension}\n * A single combined extension.\n */\nexport function combineExtensions(extensions) {\n /** @type {NormalizedExtension} */\n const all = {}\n let index = -1\n\n while (++index < extensions.length) {\n syntaxExtension(all, extensions[index])\n }\n\n return all\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {NormalizedExtension} all\n * Extension to merge into.\n * @param {Extension} extension\n * Extension to merge.\n * @returns {undefined}\n */\nfunction syntaxExtension(all, extension) {\n /** @type {keyof Extension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n /** @type {Record} */\n const left = maybe || (all[hook] = {})\n /** @type {Record | undefined} */\n const right = extension[hook]\n /** @type {string} */\n let code\n\n if (right) {\n for (code in right) {\n if (!hasOwnProperty.call(left, code)) left[code] = []\n const value = right[code]\n constructs(\n // @ts-expect-error Looks like a list.\n left[code],\n Array.isArray(value) ? value : value ? [value] : []\n )\n }\n }\n }\n}\n\n/**\n * Merge `list` into `existing` (both lists of constructs).\n * Mutates `existing`.\n *\n * @param {Array} existing\n * @param {Array} list\n * @returns {undefined}\n */\nfunction constructs(existing, list) {\n let index = -1\n /** @type {Array} */\n const before = []\n\n while (++index < list.length) {\n // @ts-expect-error Looks like an object.\n ;(list[index].add === 'after' ? existing : before).push(list[index])\n }\n\n splice(existing, 0, 0, before)\n}\n\n/**\n * Combine multiple HTML extensions into one.\n *\n * @param {Array} htmlExtensions\n * List of HTML extensions.\n * @returns {HtmlExtension}\n * A single combined HTML extension.\n */\nexport function combineHtmlExtensions(htmlExtensions) {\n /** @type {HtmlExtension} */\n const handlers = {}\n let index = -1\n\n while (++index < htmlExtensions.length) {\n htmlExtension(handlers, htmlExtensions[index])\n }\n\n return handlers\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {HtmlExtension} all\n * Extension to merge into.\n * @param {HtmlExtension} extension\n * Extension to merge.\n * @returns {undefined}\n */\nfunction htmlExtension(all, extension) {\n /** @type {keyof HtmlExtension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n const left = maybe || (all[hook] = {})\n const right = extension[hook]\n /** @type {keyof Handles} */\n let type\n\n if (right) {\n for (type in right) {\n // @ts-expect-error assume document vs regular handler are managed correctly.\n left[type] = right[type]\n }\n }\n }\n}\n","/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [jsx=false]\n * Support JSX identifiers (default: `false`).\n */\n\nconst startRe = /[$_\\p{ID_Start}]/u\nconst contRe = /[$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u\nconst contReJsx = /[-$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u\nconst nameRe = /^[$_\\p{ID_Start}][$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u\nconst nameReJsx = /^[$_\\p{ID_Start}][-$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Checks if the given code point can start an identifier.\n *\n * @param {number | undefined} code\n * Code point to check.\n * @returns {boolean}\n * Whether `code` can start an identifier.\n */\n// Note: `undefined` is supported so you can pass the result from `''.codePointAt`.\nexport function start(code) {\n return code ? startRe.test(String.fromCodePoint(code)) : false\n}\n\n/**\n * Checks if the given code point can continue an identifier.\n *\n * @param {number | undefined} code\n * Code point to check.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {boolean}\n * Whether `code` can continue an identifier.\n */\n// Note: `undefined` is supported so you can pass the result from `''.codePointAt`.\nexport function cont(code, options) {\n const settings = options || emptyOptions\n const re = settings.jsx ? contReJsx : contRe\n return code ? re.test(String.fromCodePoint(code)) : false\n}\n\n/**\n * Checks if the given value is a valid identifier name.\n *\n * @param {string} name\n * Identifier to check.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {boolean}\n * Whether `name` can be an identifier.\n */\nexport function name(name, options) {\n const settings = options || emptyOptions\n const re = settings.jsx ? nameReJsx : nameRe\n return re.test(name)\n}\n","/**\n * @typedef {import('hast').Nodes} Nodes\n */\n\n// HTML whitespace expression.\n// See .\nconst re = /[ \\t\\n\\f\\r]/g\n\n/**\n * Check if the given value is *inter-element whitespace*.\n *\n * @param {Nodes | string} thing\n * Thing to check (`Node` or `string`).\n * @returns {boolean}\n * Whether the `value` is inter-element whitespace (`boolean`): consisting of\n * zero or more of space, tab (`\\t`), line feed (`\\n`), carriage return\n * (`\\r`), or form feed (`\\f`); if a node is passed it must be a `Text` node,\n * whose `value` field is checked.\n */\nexport function whitespace(thing) {\n return typeof thing === 'object'\n ? thing.type === 'text'\n ? empty(thing.value)\n : false\n : empty(thing)\n}\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nfunction empty(value) {\n return value.replace(re, '') === ''\n}\n","/**\n * @typedef {import('./info.js').Info} Info\n * @typedef {Record} Properties\n * @typedef {Record} Normal\n */\n\nexport class Schema {\n /**\n * @constructor\n * @param {Properties} property\n * @param {Normal} normal\n * @param {string} [space]\n */\n constructor(property, normal, space) {\n this.property = property\n this.normal = normal\n if (space) {\n this.space = space\n }\n }\n}\n\n/** @type {Properties} */\nSchema.prototype.property = {}\n/** @type {Normal} */\nSchema.prototype.normal = {}\n/** @type {string|null} */\nSchema.prototype.space = null\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n */\n\nimport {Schema} from './schema.js'\n\n/**\n * @param {Schema[]} definitions\n * @param {string} [space]\n * @returns {Schema}\n */\nexport function merge(definitions, space) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n let index = -1\n\n while (++index < definitions.length) {\n Object.assign(property, definitions[index].property)\n Object.assign(normal, definitions[index].normal)\n }\n\n return new Schema(property, normal, space)\n}\n","/**\n * @param {string} value\n * @returns {string}\n */\nexport function normalize(value) {\n return value.toLowerCase()\n}\n","export class Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n */\n constructor(property, attribute) {\n /** @type {string} */\n this.property = property\n /** @type {string} */\n this.attribute = attribute\n }\n}\n\n/** @type {string|null} */\nInfo.prototype.space = null\nInfo.prototype.boolean = false\nInfo.prototype.booleanish = false\nInfo.prototype.overloadedBoolean = false\nInfo.prototype.number = false\nInfo.prototype.commaSeparated = false\nInfo.prototype.spaceSeparated = false\nInfo.prototype.commaOrSpaceSeparated = false\nInfo.prototype.mustUseProperty = false\nInfo.prototype.defined = false\n","let powers = 0\n\nexport const boolean = increment()\nexport const booleanish = increment()\nexport const overloadedBoolean = increment()\nexport const number = increment()\nexport const spaceSeparated = increment()\nexport const commaSeparated = increment()\nexport const commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return 2 ** ++powers\n}\n","import {Info} from './info.js'\nimport * as types from './types.js'\n\n/** @type {Array} */\n// @ts-expect-error: hush.\nconst checks = Object.keys(types)\n\nexport class DefinedInfo extends Info {\n /**\n * @constructor\n * @param {string} property\n * @param {string} attribute\n * @param {number|null} [mask]\n * @param {string} [space]\n */\n constructor(property, attribute, mask, space) {\n let index = -1\n\n super(property, attribute)\n\n mark(this, 'space', space)\n\n if (typeof mask === 'number') {\n while (++index < checks.length) {\n const check = checks[index]\n mark(this, checks[index], (mask & types[check]) === types[check])\n }\n }\n }\n}\n\nDefinedInfo.prototype.defined = true\n\n/**\n * @param {DefinedInfo} values\n * @param {string} key\n * @param {unknown} value\n */\nfunction mark(values, key, value) {\n if (value) {\n // @ts-expect-error: assume `value` matches the expected value of `key`.\n values[key] = value\n }\n}\n","/**\n * @typedef {import('./schema.js').Properties} Properties\n * @typedef {import('./schema.js').Normal} Normal\n *\n * @typedef {Record} Attributes\n *\n * @typedef {Object} Definition\n * @property {Record} properties\n * @property {(attributes: Attributes, property: string) => string} transform\n * @property {string} [space]\n * @property {Attributes} [attributes]\n * @property {Array} [mustUseProperty]\n */\n\nimport {normalize} from '../normalize.js'\nimport {Schema} from './schema.js'\nimport {DefinedInfo} from './defined-info.js'\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Definition} definition\n * @returns {Schema}\n */\nexport function create(definition) {\n /** @type {Properties} */\n const property = {}\n /** @type {Normal} */\n const normal = {}\n /** @type {string} */\n let prop\n\n for (prop in definition.properties) {\n if (own.call(definition.properties, prop)) {\n const value = definition.properties[prop]\n const info = new DefinedInfo(\n prop,\n definition.transform(definition.attributes || {}, prop),\n value,\n definition.space\n )\n\n if (\n definition.mustUseProperty &&\n definition.mustUseProperty.includes(prop)\n ) {\n info.mustUseProperty = true\n }\n\n property[prop] = info\n\n normal[normalize(prop)] = prop\n normal[normalize(info.attribute)] = prop\n }\n }\n\n return new Schema(property, normal, definition.space)\n}\n","import {create} from './util/create.js'\n\nexport const xlink = create({\n space: 'xlink',\n transform(_, prop) {\n return 'xlink:' + prop.slice(5).toLowerCase()\n },\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n})\n","import {create} from './util/create.js'\n\nexport const xml = create({\n space: 'xml',\n transform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n },\n properties: {xmlLang: null, xmlBase: null, xmlSpace: null}\n})\n","/**\n * @param {Record} attributes\n * @param {string} attribute\n * @returns {string}\n */\nexport function caseSensitiveTransform(attributes, attribute) {\n return attribute in attributes ? attributes[attribute] : attribute\n}\n","import {caseSensitiveTransform} from './case-sensitive-transform.js'\n\n/**\n * @param {Record} attributes\n * @param {string} property\n * @returns {string}\n */\nexport function caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","import {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const xmlns = create({\n space: 'xmlns',\n attributes: {xmlnsxlink: 'xmlns:xlink'},\n transform: caseInsensitiveTransform,\n properties: {xmlns: null, xmlnsXLink: null}\n})\n","import {booleanish, number, spaceSeparated} from './util/types.js'\nimport {create} from './util/create.js'\n\nexport const aria = create({\n transform(_, prop) {\n return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase()\n },\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n }\n})\n","import {\n boolean,\n overloadedBoolean,\n booleanish,\n number,\n spaceSeparated,\n commaSeparated\n} from './util/types.js'\nimport {create} from './util/create.js'\nimport {caseInsensitiveTransform} from './util/case-insensitive-transform.js'\n\nexport const html = create({\n space: 'html',\n attributes: {\n acceptcharset: 'accept-charset',\n classname: 'class',\n htmlfor: 'for',\n httpequiv: 'http-equiv'\n },\n transform: caseInsensitiveTransform,\n mustUseProperty: ['checked', 'multiple', 'muted', 'selected'],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: commaSeparated,\n acceptCharset: spaceSeparated,\n accessKey: spaceSeparated,\n action: null,\n allow: null,\n allowFullScreen: boolean,\n allowPaymentRequest: boolean,\n allowUserMedia: boolean,\n alt: null,\n as: null,\n async: boolean,\n autoCapitalize: null,\n autoComplete: spaceSeparated,\n autoFocus: boolean,\n autoPlay: boolean,\n capture: boolean,\n charSet: null,\n checked: boolean,\n cite: null,\n className: spaceSeparated,\n cols: number,\n colSpan: null,\n content: null,\n contentEditable: booleanish,\n controls: boolean,\n controlsList: spaceSeparated,\n coords: number | commaSeparated,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: boolean,\n defer: boolean,\n dir: null,\n dirName: null,\n disabled: boolean,\n download: overloadedBoolean,\n draggable: booleanish,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: boolean,\n formTarget: null,\n headers: spaceSeparated,\n height: number,\n hidden: boolean,\n high: number,\n href: null,\n hrefLang: null,\n htmlFor: spaceSeparated,\n httpEquiv: spaceSeparated,\n id: null,\n imageSizes: null,\n imageSrcSet: null,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: boolean,\n itemId: null,\n itemProp: spaceSeparated,\n itemRef: spaceSeparated,\n itemScope: boolean,\n itemType: spaceSeparated,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: boolean,\n low: number,\n manifest: null,\n max: null,\n maxLength: number,\n media: null,\n method: null,\n min: null,\n minLength: number,\n multiple: boolean,\n muted: boolean,\n name: null,\n nonce: null,\n noModule: boolean,\n noValidate: boolean,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforeMatch: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextLost: null,\n onContextMenu: null,\n onContextRestored: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onScrollEnd: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: boolean,\n optimum: number,\n pattern: null,\n ping: spaceSeparated,\n placeholder: null,\n playsInline: boolean,\n poster: null,\n preload: null,\n readOnly: boolean,\n referrerPolicy: null,\n rel: spaceSeparated,\n required: boolean,\n reversed: boolean,\n rows: number,\n rowSpan: number,\n sandbox: spaceSeparated,\n scope: null,\n scoped: boolean,\n seamless: boolean,\n selected: boolean,\n shape: null,\n size: number,\n sizes: null,\n slot: null,\n span: number,\n spellCheck: booleanish,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: null,\n start: number,\n step: null,\n style: null,\n tabIndex: number,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: boolean,\n useMap: null,\n value: booleanish,\n width: number,\n wrap: null,\n\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null, // Several. Use CSS `text-align` instead,\n aLink: null, // ``. Use CSS `a:active {color}` instead\n archive: spaceSeparated, // ``. List of URIs to archives\n axis: null, // `` and ``. Use `scope` on ``\n background: null, // ``. Use CSS `background-image` instead\n bgColor: null, // `` and table elements. Use CSS `background-color` instead\n border: number, // ``. Use CSS `border-width` instead,\n borderColor: null, // `
`. Use CSS `border-color` instead,\n bottomMargin: number, // ``\n cellPadding: null, // `
`\n cellSpacing: null, // `
`\n char: null, // Several table elements. When `align=char`, sets the character to align on\n charOff: null, // Several table elements. When `char`, offsets the alignment\n classId: null, // ``\n clear: null, // `
`. Use CSS `clear` instead\n code: null, // ``\n codeBase: null, // ``\n codeType: null, // ``\n color: null, // `` and `
`. Use CSS instead\n compact: boolean, // Lists. Use CSS to reduce space between items instead\n declare: boolean, // ``\n event: null, // `\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationRawTagOpen(code) {\n if (code === 47) {\n effects.consume(code);\n buffer = '';\n return continuationRawEndTag;\n }\n return continuation(code);\n }\n\n /**\n * In raw continuation, after ` | \n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function continuationRawEndTag(code) {\n if (code === 62) {\n const name = buffer.toLowerCase();\n if (htmlRawNames.includes(name)) {\n effects.consume(code);\n return continuationClose;\n }\n return continuation(code);\n }\n if (asciiAlpha(code) && buffer.length < 8) {\n effects.consume(code);\n // @ts-expect-error: not null.\n buffer += String.fromCharCode(code);\n return continuationRawEndTag;\n }\n return continuation(code);\n }\n\n /**\n * In cdata continuation, after `]`, expecting `]>`.\n *\n * ```markdown\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationCdataInside(code) {\n if (code === 93) {\n effects.consume(code);\n return continuationDeclarationInside;\n }\n return continuation(code);\n }\n\n /**\n * In declaration or instruction continuation, at `>`.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationDeclarationInside(code) {\n if (code === 62) {\n effects.consume(code);\n return continuationClose;\n }\n\n // More dashes.\n if (code === 45 && marker === 2) {\n effects.consume(code);\n return continuationDeclarationInside;\n }\n return continuation(code);\n }\n\n /**\n * In closed continuation: everything we get until the eol/eof is part of it.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationClose(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"htmlFlowData\");\n return continuationAfter(code);\n }\n effects.consume(code);\n return continuationClose;\n }\n\n /**\n * Done.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationAfter(code) {\n effects.exit(\"htmlFlow\");\n // // Feel free to interrupt.\n // tokenizer.interrupt = false\n // // No longer concrete.\n // tokenizer.concrete = false\n return ok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuationStart(effects, ok, nok) {\n const self = this;\n return start;\n\n /**\n * At eol, before continuation.\n *\n * ```markdown\n * > | * ```js\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (markdownLineEnding(code)) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return after;\n }\n return nok(code);\n }\n\n /**\n * A continuation.\n *\n * ```markdown\n * | * ```js\n * > | b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLineBefore(effects, ok, nok) {\n return start;\n\n /**\n * Before eol, expecting blank line.\n *\n * ```markdown\n * > |
\n * ^\n * |\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return effects.attempt(blankLine, ok, nok);\n }\n}","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/** @type {Construct} */\nconst nonLazyContinuation = {\n tokenize: tokenizeNonLazyContinuation,\n partial: true\n};\n\n/** @type {Construct} */\nexport const codeFenced = {\n name: 'codeFenced',\n tokenize: tokenizeCodeFenced,\n concrete: true\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeFenced(effects, ok, nok) {\n const self = this;\n /** @type {Construct} */\n const closeStart = {\n tokenize: tokenizeCloseStart,\n partial: true\n };\n let initialPrefix = 0;\n let sizeOpen = 0;\n /** @type {NonNullable} */\n let marker;\n return start;\n\n /**\n * Start of code.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: parse whitespace like `markdown-rs`.\n return beforeSequenceOpen(code);\n }\n\n /**\n * In opening fence, after prefix, at sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeSequenceOpen(code) {\n const tail = self.events[self.events.length - 1];\n initialPrefix = tail && tail[1].type === \"linePrefix\" ? tail[2].sliceSerialize(tail[1], true).length : 0;\n marker = code;\n effects.enter(\"codeFenced\");\n effects.enter(\"codeFencedFence\");\n effects.enter(\"codeFencedFenceSequence\");\n return sequenceOpen(code);\n }\n\n /**\n * In opening fence sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === marker) {\n sizeOpen++;\n effects.consume(code);\n return sequenceOpen;\n }\n if (sizeOpen < 3) {\n return nok(code);\n }\n effects.exit(\"codeFencedFenceSequence\");\n return markdownSpace(code) ? factorySpace(effects, infoBefore, \"whitespace\")(code) : infoBefore(code);\n }\n\n /**\n * In opening fence, after the sequence (and optional whitespace), before info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function infoBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"codeFencedFence\");\n return self.interrupt ? ok(code) : effects.check(nonLazyContinuation, atNonLazyBreak, after)(code);\n }\n effects.enter(\"codeFencedFenceInfo\");\n effects.enter(\"chunkString\", {\n contentType: \"string\"\n });\n return info(code);\n }\n\n /**\n * In info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function info(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"chunkString\");\n effects.exit(\"codeFencedFenceInfo\");\n return infoBefore(code);\n }\n if (markdownSpace(code)) {\n effects.exit(\"chunkString\");\n effects.exit(\"codeFencedFenceInfo\");\n return factorySpace(effects, metaBefore, \"whitespace\")(code);\n }\n if (code === 96 && code === marker) {\n return nok(code);\n }\n effects.consume(code);\n return info;\n }\n\n /**\n * In opening fence, after info and whitespace, before meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function metaBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n return infoBefore(code);\n }\n effects.enter(\"codeFencedFenceMeta\");\n effects.enter(\"chunkString\", {\n contentType: \"string\"\n });\n return meta(code);\n }\n\n /**\n * In meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function meta(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"chunkString\");\n effects.exit(\"codeFencedFenceMeta\");\n return infoBefore(code);\n }\n if (code === 96 && code === marker) {\n return nok(code);\n }\n effects.consume(code);\n return meta;\n }\n\n /**\n * At eol/eof in code, before a non-lazy closing fence or content.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function atNonLazyBreak(code) {\n return effects.attempt(closeStart, after, contentBefore)(code);\n }\n\n /**\n * Before code content, not a closing fence, at eol.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentBefore(code) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return contentStart;\n }\n\n /**\n * Before code content, not a closing fence.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentStart(code) {\n return initialPrefix > 0 && markdownSpace(code) ? factorySpace(effects, beforeContentChunk, \"linePrefix\", initialPrefix + 1)(code) : beforeContentChunk(code);\n }\n\n /**\n * Before code content, after optional prefix.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeContentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n return effects.check(nonLazyContinuation, atNonLazyBreak, after)(code);\n }\n effects.enter(\"codeFlowValue\");\n return contentChunk(code);\n }\n\n /**\n * In code content.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^^^^^^^^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"codeFlowValue\");\n return beforeContentChunk(code);\n }\n effects.consume(code);\n return contentChunk;\n }\n\n /**\n * After code.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n effects.exit(\"codeFenced\");\n return ok(code);\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\n function tokenizeCloseStart(effects, ok, nok) {\n let size = 0;\n return startBefore;\n\n /**\n *\n *\n * @type {State}\n */\n function startBefore(code) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return start;\n }\n\n /**\n * Before closing fence, at optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Always populated by defaults.\n\n // To do: `enter` here or in next state?\n effects.enter(\"codeFencedFence\");\n return markdownSpace(code) ? factorySpace(effects, beforeSequenceClose, \"linePrefix\", self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : beforeSequenceClose(code);\n }\n\n /**\n * In closing fence, after optional whitespace, at sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function beforeSequenceClose(code) {\n if (code === marker) {\n effects.enter(\"codeFencedFenceSequence\");\n return sequenceClose(code);\n }\n return nok(code);\n }\n\n /**\n * In closing fence sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n if (code === marker) {\n size++;\n effects.consume(code);\n return sequenceClose;\n }\n if (size >= sizeOpen) {\n effects.exit(\"codeFencedFenceSequence\");\n return markdownSpace(code) ? factorySpace(effects, sequenceCloseAfter, \"whitespace\")(code) : sequenceCloseAfter(code);\n }\n return nok(code);\n }\n\n /**\n * After closing fence sequence, after optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceCloseAfter(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"codeFencedFence\");\n return ok(code);\n }\n return nok(code);\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuation(effects, ok, nok) {\n const self = this;\n return start;\n\n /**\n *\n *\n * @type {State}\n */\n function start(code) {\n if (code === null) {\n return nok(code);\n }\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return lineStart;\n }\n\n /**\n *\n *\n * @type {State}\n */\n function lineStart(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code);\n }\n}","/// \n\n/* eslint-env browser */\n\nconst element = document.createElement('i')\n\n/**\n * @param {string} value\n * @returns {string|false}\n */\nexport function decodeNamedCharacterReference(value) {\n const characterReference = '&' + value + ';'\n element.innerHTML = characterReference\n const char = element.textContent\n\n // Some named character references do not require the closing semicolon\n // (`¬`, for instance), which leads to situations where parsing the assumed\n // named reference of `¬it;` will result in the string `¬it;`.\n // When we encounter a trailing semicolon after parsing, and the character\n // reference to decode was not a semicolon (`;`), we can assume that the\n // matching was not complete.\n // @ts-expect-error: TypeScript is wrong that `textContent` on elements can\n // yield `null`.\n if (char.charCodeAt(char.length - 1) === 59 /* `;` */ && value !== 'semi') {\n return false\n }\n\n // If the decoded string is equal to the input, the character reference was\n // not valid.\n // @ts-expect-error: TypeScript is wrong that `textContent` on elements can\n // yield `null`.\n return char === characterReference ? false : char\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { decodeNamedCharacterReference } from 'decode-named-character-reference';\nimport { asciiAlphanumeric, asciiDigit, asciiHexDigit } from 'micromark-util-character';\n/** @type {Construct} */\nexport const characterReference = {\n name: 'characterReference',\n tokenize: tokenizeCharacterReference\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterReference(effects, ok, nok) {\n const self = this;\n let size = 0;\n /** @type {number} */\n let max;\n /** @type {(code: Code) => boolean} */\n let test;\n return start;\n\n /**\n * Start of character reference.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"characterReference\");\n effects.enter(\"characterReferenceMarker\");\n effects.consume(code);\n effects.exit(\"characterReferenceMarker\");\n return open;\n }\n\n /**\n * After `&`, at `#` for numeric references or alphanumeric for named\n * references.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 35) {\n effects.enter(\"characterReferenceMarkerNumeric\");\n effects.consume(code);\n effects.exit(\"characterReferenceMarkerNumeric\");\n return numeric;\n }\n effects.enter(\"characterReferenceValue\");\n max = 31;\n test = asciiAlphanumeric;\n return value(code);\n }\n\n /**\n * After `#`, at `x` for hexadecimals or digit for decimals.\n *\n * ```markdown\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function numeric(code) {\n if (code === 88 || code === 120) {\n effects.enter(\"characterReferenceMarkerHexadecimal\");\n effects.consume(code);\n effects.exit(\"characterReferenceMarkerHexadecimal\");\n effects.enter(\"characterReferenceValue\");\n max = 6;\n test = asciiHexDigit;\n return value;\n }\n effects.enter(\"characterReferenceValue\");\n max = 7;\n test = asciiDigit;\n return value(code);\n }\n\n /**\n * After markers (`&#x`, `&#`, or `&`), in value, before `;`.\n *\n * The character reference kind defines what and how many characters are\n * allowed.\n *\n * ```markdown\n * > | a&b\n * ^^^\n * > | a{b\n * ^^^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function value(code) {\n if (code === 59 && size) {\n const token = effects.exit(\"characterReferenceValue\");\n if (test === asciiAlphanumeric && !decodeNamedCharacterReference(self.sliceSerialize(token))) {\n return nok(code);\n }\n\n // To do: `markdown-rs` uses a different name:\n // `CharacterReferenceMarkerSemi`.\n effects.enter(\"characterReferenceMarker\");\n effects.consume(code);\n effects.exit(\"characterReferenceMarker\");\n effects.exit(\"characterReference\");\n return ok;\n }\n if (test(code) && size++ < max) {\n effects.consume(code);\n return value;\n }\n return nok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { asciiPunctuation } from 'micromark-util-character';\n/** @type {Construct} */\nexport const characterEscape = {\n name: 'characterEscape',\n tokenize: tokenizeCharacterEscape\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterEscape(effects, ok, nok) {\n return start;\n\n /**\n * Start of character escape.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"characterEscape\");\n effects.enter(\"escapeMarker\");\n effects.consume(code);\n effects.exit(\"escapeMarker\");\n return inside;\n }\n\n /**\n * After `\\`, at punctuation.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n // ASCII punctuation.\n if (asciiPunctuation(code)) {\n effects.enter(\"characterEscapeValue\");\n effects.consume(code);\n effects.exit(\"characterEscapeValue\");\n effects.exit(\"characterEscape\");\n return ok;\n }\n return nok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding } from 'micromark-util-character';\n/** @type {Construct} */\nexport const lineEnding = {\n name: 'lineEnding',\n tokenize: tokenizeLineEnding\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLineEnding(effects, ok) {\n return start;\n\n /** @type {State} */\n function start(code) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return factorySpace(effects, ok, \"linePrefix\");\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { factoryDestination } from 'micromark-factory-destination';\nimport { factoryLabel } from 'micromark-factory-label';\nimport { factoryTitle } from 'micromark-factory-title';\nimport { factoryWhitespace } from 'micromark-factory-whitespace';\nimport { markdownLineEndingOrSpace } from 'micromark-util-character';\nimport { push, splice } from 'micromark-util-chunked';\nimport { normalizeIdentifier } from 'micromark-util-normalize-identifier';\nimport { resolveAll } from 'micromark-util-resolve-all';\n/** @type {Construct} */\nexport const labelEnd = {\n name: 'labelEnd',\n tokenize: tokenizeLabelEnd,\n resolveTo: resolveToLabelEnd,\n resolveAll: resolveAllLabelEnd\n};\n\n/** @type {Construct} */\nconst resourceConstruct = {\n tokenize: tokenizeResource\n};\n/** @type {Construct} */\nconst referenceFullConstruct = {\n tokenize: tokenizeReferenceFull\n};\n/** @type {Construct} */\nconst referenceCollapsedConstruct = {\n tokenize: tokenizeReferenceCollapsed\n};\n\n/** @type {Resolver} */\nfunction resolveAllLabelEnd(events) {\n let index = -1;\n while (++index < events.length) {\n const token = events[index][1];\n if (token.type === \"labelImage\" || token.type === \"labelLink\" || token.type === \"labelEnd\") {\n // Remove the marker.\n events.splice(index + 1, token.type === \"labelImage\" ? 4 : 2);\n token.type = \"data\";\n index++;\n }\n }\n return events;\n}\n\n/** @type {Resolver} */\nfunction resolveToLabelEnd(events, context) {\n let index = events.length;\n let offset = 0;\n /** @type {Token} */\n let token;\n /** @type {number | undefined} */\n let open;\n /** @type {number | undefined} */\n let close;\n /** @type {Array} */\n let media;\n\n // Find an opening.\n while (index--) {\n token = events[index][1];\n if (open) {\n // If we see another link, or inactive link label, we’ve been here before.\n if (token.type === \"link\" || token.type === \"labelLink\" && token._inactive) {\n break;\n }\n\n // Mark other link openings as inactive, as we can’t have links in\n // links.\n if (events[index][0] === 'enter' && token.type === \"labelLink\") {\n token._inactive = true;\n }\n } else if (close) {\n if (events[index][0] === 'enter' && (token.type === \"labelImage\" || token.type === \"labelLink\") && !token._balanced) {\n open = index;\n if (token.type !== \"labelLink\") {\n offset = 2;\n break;\n }\n }\n } else if (token.type === \"labelEnd\") {\n close = index;\n }\n }\n const group = {\n type: events[open][1].type === \"labelLink\" ? \"link\" : \"image\",\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n };\n const label = {\n type: \"label\",\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[close][1].end)\n };\n const text = {\n type: \"labelText\",\n start: Object.assign({}, events[open + offset + 2][1].end),\n end: Object.assign({}, events[close - 2][1].start)\n };\n media = [['enter', group, context], ['enter', label, context]];\n\n // Opening marker.\n media = push(media, events.slice(open + 1, open + offset + 3));\n\n // Text open.\n media = push(media, [['enter', text, context]]);\n\n // Always populated by defaults.\n\n // Between.\n media = push(media, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + offset + 4, close - 3), context));\n\n // Text close, marker close, label close.\n media = push(media, [['exit', text, context], events[close - 2], events[close - 1], ['exit', label, context]]);\n\n // Reference, resource, or so.\n media = push(media, events.slice(close + 1));\n\n // Media close.\n media = push(media, [['exit', group, context]]);\n splice(events, open, events.length, media);\n return events;\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelEnd(effects, ok, nok) {\n const self = this;\n let index = self.events.length;\n /** @type {Token} */\n let labelStart;\n /** @type {boolean} */\n let defined;\n\n // Find an opening.\n while (index--) {\n if ((self.events[index][1].type === \"labelImage\" || self.events[index][1].type === \"labelLink\") && !self.events[index][1]._balanced) {\n labelStart = self.events[index][1];\n break;\n }\n }\n return start;\n\n /**\n * Start of label end.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // If there is not an okay opening.\n if (!labelStart) {\n return nok(code);\n }\n\n // If the corresponding label (link) start is marked as inactive,\n // it means we’d be wrapping a link, like this:\n //\n // ```markdown\n // > | a [b [c](d) e](f) g.\n // ^\n // ```\n //\n // We can’t have that, so it’s just balanced brackets.\n if (labelStart._inactive) {\n return labelEndNok(code);\n }\n defined = self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })));\n effects.enter(\"labelEnd\");\n effects.enter(\"labelMarker\");\n effects.consume(code);\n effects.exit(\"labelMarker\");\n effects.exit(\"labelEnd\");\n return after;\n }\n\n /**\n * After `]`.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Note: `markdown-rs` also parses GFM footnotes here, which for us is in\n // an extension.\n\n // Resource (`[asd](fgh)`)?\n if (code === 40) {\n return effects.attempt(resourceConstruct, labelEndOk, defined ? labelEndOk : labelEndNok)(code);\n }\n\n // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference?\n if (code === 91) {\n return effects.attempt(referenceFullConstruct, labelEndOk, defined ? referenceNotFull : labelEndNok)(code);\n }\n\n // Shortcut (`[asd]`) reference?\n return defined ? labelEndOk(code) : labelEndNok(code);\n }\n\n /**\n * After `]`, at `[`, but not at a full reference.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceNotFull(code) {\n return effects.attempt(referenceCollapsedConstruct, labelEndOk, labelEndNok)(code);\n }\n\n /**\n * Done, we found something.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndOk(code) {\n // Note: `markdown-rs` does a bunch of stuff here.\n return ok(code);\n }\n\n /**\n * Done, it’s nothing.\n *\n * There was an okay opening, but we didn’t match anything.\n *\n * ```markdown\n * > | [a](b c\n * ^\n * > | [a][b c\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndNok(code) {\n labelStart._balanced = true;\n return nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeResource(effects, ok, nok) {\n return resourceStart;\n\n /**\n * At a resource.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceStart(code) {\n effects.enter(\"resource\");\n effects.enter(\"resourceMarker\");\n effects.consume(code);\n effects.exit(\"resourceMarker\");\n return resourceBefore;\n }\n\n /**\n * In resource, after `(`, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBefore(code) {\n return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceOpen)(code) : resourceOpen(code);\n }\n\n /**\n * In resource, after optional whitespace, at `)` or a destination.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceOpen(code) {\n if (code === 41) {\n return resourceEnd(code);\n }\n return factoryDestination(effects, resourceDestinationAfter, resourceDestinationMissing, \"resourceDestination\", \"resourceDestinationLiteral\", \"resourceDestinationLiteralMarker\", \"resourceDestinationRaw\", \"resourceDestinationString\", 32)(code);\n }\n\n /**\n * In resource, after destination, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationAfter(code) {\n return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceBetween)(code) : resourceEnd(code);\n }\n\n /**\n * At invalid destination.\n *\n * ```markdown\n * > | [a](<<) b\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationMissing(code) {\n return nok(code);\n }\n\n /**\n * In resource, after destination and whitespace, at `(` or title.\n *\n * ```markdown\n * > | [a](b ) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBetween(code) {\n if (code === 34 || code === 39 || code === 40) {\n return factoryTitle(effects, resourceTitleAfter, nok, \"resourceTitle\", \"resourceTitleMarker\", \"resourceTitleString\")(code);\n }\n return resourceEnd(code);\n }\n\n /**\n * In resource, after title, at optional whitespace.\n *\n * ```markdown\n * > | [a](b \"c\") d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceTitleAfter(code) {\n return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceEnd)(code) : resourceEnd(code);\n }\n\n /**\n * In resource, at `)`.\n *\n * ```markdown\n * > | [a](b) d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceEnd(code) {\n if (code === 41) {\n effects.enter(\"resourceMarker\");\n effects.consume(code);\n effects.exit(\"resourceMarker\");\n effects.exit(\"resource\");\n return ok;\n }\n return nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceFull(effects, ok, nok) {\n const self = this;\n return referenceFull;\n\n /**\n * In a reference (full), at the `[`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFull(code) {\n return factoryLabel.call(self, effects, referenceFullAfter, referenceFullMissing, \"reference\", \"referenceMarker\", \"referenceString\")(code);\n }\n\n /**\n * In a reference (full), after `]`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullAfter(code) {\n return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1))) ? ok(code) : nok(code);\n }\n\n /**\n * In reference (full) that was missing.\n *\n * ```markdown\n * > | [a][b d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullMissing(code) {\n return nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceCollapsed(effects, ok, nok) {\n return referenceCollapsedStart;\n\n /**\n * In reference (collapsed), at `[`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedStart(code) {\n // We only attempt a collapsed label if there’s a `[`.\n\n effects.enter(\"reference\");\n effects.enter(\"referenceMarker\");\n effects.consume(code);\n effects.exit(\"referenceMarker\");\n return referenceCollapsedOpen;\n }\n\n /**\n * In reference (collapsed), at `]`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedOpen(code) {\n if (code === 93) {\n effects.enter(\"referenceMarker\");\n effects.consume(code);\n effects.exit(\"referenceMarker\");\n effects.exit(\"reference\");\n return ok;\n }\n return nok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { labelEnd } from './label-end.js';\n\n/** @type {Construct} */\nexport const labelStartImage = {\n name: 'labelStartImage',\n tokenize: tokenizeLabelStartImage,\n resolveAll: labelEnd.resolveAll\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartImage(effects, ok, nok) {\n const self = this;\n return start;\n\n /**\n * Start of label (image) start.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"labelImage\");\n effects.enter(\"labelImageMarker\");\n effects.consume(code);\n effects.exit(\"labelImageMarker\");\n return open;\n }\n\n /**\n * After `!`, at `[`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 91) {\n effects.enter(\"labelMarker\");\n effects.consume(code);\n effects.exit(\"labelMarker\");\n effects.exit(\"labelImage\");\n return after;\n }\n return nok(code);\n }\n\n /**\n * After `![`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * This is needed in because, when GFM footnotes are enabled, images never\n * form when started with a `^`.\n * Instead, links form:\n *\n * ```markdown\n * ![^a](b)\n *\n * ![^a][b]\n *\n * [b]: c\n * ```\n *\n * ```html\n *

!^a

\n *

!^a

\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // To do: use a new field to do this, this is still needed for\n // `micromark-extension-gfm-footnote`, but the `label-start-link`\n // behavior isn’t.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { push, splice } from 'micromark-util-chunked';\nimport { classifyCharacter } from 'micromark-util-classify-character';\nimport { resolveAll } from 'micromark-util-resolve-all';\n/** @type {Construct} */\nexport const attention = {\n name: 'attention',\n tokenize: tokenizeAttention,\n resolveAll: resolveAllAttention\n};\n\n/**\n * Take all events and resolve attention to emphasis or strong.\n *\n * @type {Resolver}\n */\n// eslint-disable-next-line complexity\nfunction resolveAllAttention(events, context) {\n let index = -1;\n /** @type {number} */\n let open;\n /** @type {Token} */\n let group;\n /** @type {Token} */\n let text;\n /** @type {Token} */\n let openingSequence;\n /** @type {Token} */\n let closingSequence;\n /** @type {number} */\n let use;\n /** @type {Array} */\n let nextEvents;\n /** @type {number} */\n let offset;\n\n // Walk through all events.\n //\n // Note: performance of this is fine on an mb of normal markdown, but it’s\n // a bottleneck for malicious stuff.\n while (++index < events.length) {\n // Find a token that can close.\n if (events[index][0] === 'enter' && events[index][1].type === 'attentionSequence' && events[index][1]._close) {\n open = index;\n\n // Now walk back to find an opener.\n while (open--) {\n // Find a token that can open the closer.\n if (events[open][0] === 'exit' && events[open][1].type === 'attentionSequence' && events[open][1]._open &&\n // If the markers are the same:\n context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index][1]).charCodeAt(0)) {\n // If the opening can close or the closing can open,\n // and the close size *is not* a multiple of three,\n // but the sum of the opening and closing size *is* multiple of three,\n // then don’t match.\n if ((events[open][1]._close || events[index][1]._open) && (events[index][1].end.offset - events[index][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index][1].end.offset - events[index][1].start.offset) % 3)) {\n continue;\n }\n\n // Number of markers to use from the sequence.\n use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index][1].end.offset - events[index][1].start.offset > 1 ? 2 : 1;\n const start = Object.assign({}, events[open][1].end);\n const end = Object.assign({}, events[index][1].start);\n movePoint(start, -use);\n movePoint(end, use);\n openingSequence = {\n type: use > 1 ? \"strongSequence\" : \"emphasisSequence\",\n start,\n end: Object.assign({}, events[open][1].end)\n };\n closingSequence = {\n type: use > 1 ? \"strongSequence\" : \"emphasisSequence\",\n start: Object.assign({}, events[index][1].start),\n end\n };\n text = {\n type: use > 1 ? \"strongText\" : \"emphasisText\",\n start: Object.assign({}, events[open][1].end),\n end: Object.assign({}, events[index][1].start)\n };\n group = {\n type: use > 1 ? \"strong\" : \"emphasis\",\n start: Object.assign({}, openingSequence.start),\n end: Object.assign({}, closingSequence.end)\n };\n events[open][1].end = Object.assign({}, openingSequence.start);\n events[index][1].start = Object.assign({}, closingSequence.end);\n nextEvents = [];\n\n // If there are more markers in the opening, add them before.\n if (events[open][1].end.offset - events[open][1].start.offset) {\n nextEvents = push(nextEvents, [['enter', events[open][1], context], ['exit', events[open][1], context]]);\n }\n\n // Opening.\n nextEvents = push(nextEvents, [['enter', group, context], ['enter', openingSequence, context], ['exit', openingSequence, context], ['enter', text, context]]);\n\n // Always populated by defaults.\n\n // Between.\n nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index), context));\n\n // Closing.\n nextEvents = push(nextEvents, [['exit', text, context], ['enter', closingSequence, context], ['exit', closingSequence, context], ['exit', group, context]]);\n\n // If there are more markers in the closing, add them after.\n if (events[index][1].end.offset - events[index][1].start.offset) {\n offset = 2;\n nextEvents = push(nextEvents, [['enter', events[index][1], context], ['exit', events[index][1], context]]);\n } else {\n offset = 0;\n }\n splice(events, open - 1, index - open + 3, nextEvents);\n index = open + nextEvents.length - offset - 2;\n break;\n }\n }\n }\n }\n\n // Remove remaining sequences.\n index = -1;\n while (++index < events.length) {\n if (events[index][1].type === 'attentionSequence') {\n events[index][1].type = 'data';\n }\n }\n return events;\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAttention(effects, ok) {\n const attentionMarkers = this.parser.constructs.attentionMarkers.null;\n const previous = this.previous;\n const before = classifyCharacter(previous);\n\n /** @type {NonNullable} */\n let marker;\n return start;\n\n /**\n * Before a sequence.\n *\n * ```markdown\n * > | **\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n marker = code;\n effects.enter('attentionSequence');\n return inside(code);\n }\n\n /**\n * In a sequence.\n *\n * ```markdown\n * > | **\n * ^^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker) {\n effects.consume(code);\n return inside;\n }\n const token = effects.exit('attentionSequence');\n\n // To do: next major: move this to resolver, just like `markdown-rs`.\n const after = classifyCharacter(code);\n\n // Always populated by defaults.\n\n const open = !after || after === 2 && before || attentionMarkers.includes(code);\n const close = !before || before === 2 && after || attentionMarkers.includes(previous);\n token._open = Boolean(marker === 42 ? open : open && (before || !close));\n token._close = Boolean(marker === 42 ? close : close && (after || !open));\n return ok(code);\n }\n}\n\n/**\n * Move a point a bit.\n *\n * Note: `move` only works inside lines! It’s not possible to move past other\n * chunks (replacement characters, tabs, or line endings).\n *\n * @param {Point} point\n * @param {number} offset\n * @returns {undefined}\n */\nfunction movePoint(point, offset) {\n point.column += offset;\n point.offset += offset;\n point._bufferIndex += offset;\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { asciiAlpha, asciiAlphanumeric, asciiAtext, asciiControl } from 'micromark-util-character';\n/** @type {Construct} */\nexport const autolink = {\n name: 'autolink',\n tokenize: tokenizeAutolink\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAutolink(effects, ok, nok) {\n let size = 0;\n return start;\n\n /**\n * Start of an autolink.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"autolink\");\n effects.enter(\"autolinkMarker\");\n effects.consume(code);\n effects.exit(\"autolinkMarker\");\n effects.enter(\"autolinkProtocol\");\n return open;\n }\n\n /**\n * After `<`, at protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (asciiAlpha(code)) {\n effects.consume(code);\n return schemeOrEmailAtext;\n }\n if (code === 64) {\n return nok(code);\n }\n return emailAtext(code);\n }\n\n /**\n * At second byte of protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeOrEmailAtext(code) {\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) {\n // Count the previous alphabetical from `open` too.\n size = 1;\n return schemeInsideOrEmailAtext(code);\n }\n return emailAtext(code);\n }\n\n /**\n * In ambiguous protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeInsideOrEmailAtext(code) {\n if (code === 58) {\n effects.consume(code);\n size = 0;\n return urlInside;\n }\n\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if ((code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) && size++ < 32) {\n effects.consume(code);\n return schemeInsideOrEmailAtext;\n }\n size = 0;\n return emailAtext(code);\n }\n\n /**\n * After protocol, in URL.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function urlInside(code) {\n if (code === 62) {\n effects.exit(\"autolinkProtocol\");\n effects.enter(\"autolinkMarker\");\n effects.consume(code);\n effects.exit(\"autolinkMarker\");\n effects.exit(\"autolink\");\n return ok;\n }\n\n // ASCII control, space, or `<`.\n if (code === null || code === 32 || code === 60 || asciiControl(code)) {\n return nok(code);\n }\n effects.consume(code);\n return urlInside;\n }\n\n /**\n * In email atext.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailAtext(code) {\n if (code === 64) {\n effects.consume(code);\n return emailAtSignOrDot;\n }\n if (asciiAtext(code)) {\n effects.consume(code);\n return emailAtext;\n }\n return nok(code);\n }\n\n /**\n * In label, after at-sign or dot.\n *\n * ```markdown\n * > | ab\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function emailAtSignOrDot(code) {\n return asciiAlphanumeric(code) ? emailLabel(code) : nok(code);\n }\n\n /**\n * In label, where `.` and `>` are allowed.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailLabel(code) {\n if (code === 46) {\n effects.consume(code);\n size = 0;\n return emailAtSignOrDot;\n }\n if (code === 62) {\n // Exit, then change the token type.\n effects.exit(\"autolinkProtocol\").type = \"autolinkEmail\";\n effects.enter(\"autolinkMarker\");\n effects.consume(code);\n effects.exit(\"autolinkMarker\");\n effects.exit(\"autolink\");\n return ok;\n }\n return emailValue(code);\n }\n\n /**\n * In label, where `.` and `>` are *not* allowed.\n *\n * Though, this is also used in `emailLabel` to parse other values.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailValue(code) {\n // ASCII alphanumeric or `-`.\n if ((code === 45 || asciiAlphanumeric(code)) && size++ < 63) {\n const next = code === 45 ? emailValue : emailLabel;\n effects.consume(code);\n return next;\n }\n return nok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { asciiAlpha, asciiAlphanumeric, markdownLineEnding, markdownLineEndingOrSpace, markdownSpace } from 'micromark-util-character';\n/** @type {Construct} */\nexport const htmlText = {\n name: 'htmlText',\n tokenize: tokenizeHtmlText\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHtmlText(effects, ok, nok) {\n const self = this;\n /** @type {NonNullable | undefined} */\n let marker;\n /** @type {number} */\n let index;\n /** @type {State} */\n let returnState;\n return start;\n\n /**\n * Start of HTML (text).\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"htmlText\");\n effects.enter(\"htmlTextData\");\n effects.consume(code);\n return open;\n }\n\n /**\n * After `<`, at tag name or other stuff.\n *\n * ```markdown\n * > | a c\n * ^\n * > | a c\n * ^\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 33) {\n effects.consume(code);\n return declarationOpen;\n }\n if (code === 47) {\n effects.consume(code);\n return tagCloseStart;\n }\n if (code === 63) {\n effects.consume(code);\n return instruction;\n }\n\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code);\n return tagOpen;\n }\n return nok(code);\n }\n\n /**\n * After ` | a c\n * ^\n * > | a c\n * ^\n * > | a &<]]> c\n * ^\n * ```\n *\n * @type {State}\n */\n function declarationOpen(code) {\n if (code === 45) {\n effects.consume(code);\n return commentOpenInside;\n }\n if (code === 91) {\n effects.consume(code);\n index = 0;\n return cdataOpenInside;\n }\n if (asciiAlpha(code)) {\n effects.consume(code);\n return declaration;\n }\n return nok(code);\n }\n\n /**\n * In a comment, after ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentOpenInside(code) {\n if (code === 45) {\n effects.consume(code);\n return commentEnd;\n }\n return nok(code);\n }\n\n /**\n * In comment.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function comment(code) {\n if (code === null) {\n return nok(code);\n }\n if (code === 45) {\n effects.consume(code);\n return commentClose;\n }\n if (markdownLineEnding(code)) {\n returnState = comment;\n return lineEndingBefore(code);\n }\n effects.consume(code);\n return comment;\n }\n\n /**\n * In comment, after `-`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentClose(code) {\n if (code === 45) {\n effects.consume(code);\n return commentEnd;\n }\n return comment(code);\n }\n\n /**\n * In comment, after `--`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentEnd(code) {\n return code === 62 ? end(code) : code === 45 ? commentClose(code) : comment(code);\n }\n\n /**\n * After ` | a &<]]> b\n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function cdataOpenInside(code) {\n const value = \"CDATA[\";\n if (code === value.charCodeAt(index++)) {\n effects.consume(code);\n return index === value.length ? cdata : cdataOpenInside;\n }\n return nok(code);\n }\n\n /**\n * In CDATA.\n *\n * ```markdown\n * > | a &<]]> b\n * ^^^\n * ```\n *\n * @type {State}\n */\n function cdata(code) {\n if (code === null) {\n return nok(code);\n }\n if (code === 93) {\n effects.consume(code);\n return cdataClose;\n }\n if (markdownLineEnding(code)) {\n returnState = cdata;\n return lineEndingBefore(code);\n }\n effects.consume(code);\n return cdata;\n }\n\n /**\n * In CDATA, after `]`, at another `]`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataClose(code) {\n if (code === 93) {\n effects.consume(code);\n return cdataEnd;\n }\n return cdata(code);\n }\n\n /**\n * In CDATA, after `]]`, at `>`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataEnd(code) {\n if (code === 62) {\n return end(code);\n }\n if (code === 93) {\n effects.consume(code);\n return cdataEnd;\n }\n return cdata(code);\n }\n\n /**\n * In declaration.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function declaration(code) {\n if (code === null || code === 62) {\n return end(code);\n }\n if (markdownLineEnding(code)) {\n returnState = declaration;\n return lineEndingBefore(code);\n }\n effects.consume(code);\n return declaration;\n }\n\n /**\n * In instruction.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instruction(code) {\n if (code === null) {\n return nok(code);\n }\n if (code === 63) {\n effects.consume(code);\n return instructionClose;\n }\n if (markdownLineEnding(code)) {\n returnState = instruction;\n return lineEndingBefore(code);\n }\n effects.consume(code);\n return instruction;\n }\n\n /**\n * In instruction, after `?`, at `>`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instructionClose(code) {\n return code === 62 ? end(code) : instruction(code);\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseStart(code) {\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code);\n return tagClose;\n }\n return nok(code);\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagClose(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code);\n return tagClose;\n }\n return tagCloseBetween(code);\n }\n\n /**\n * In closing tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseBetween(code) {\n if (markdownLineEnding(code)) {\n returnState = tagCloseBetween;\n return lineEndingBefore(code);\n }\n if (markdownSpace(code)) {\n effects.consume(code);\n return tagCloseBetween;\n }\n return end(code);\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpen(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code);\n return tagOpen;\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code);\n }\n return nok(code);\n }\n\n /**\n * In opening tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenBetween(code) {\n if (code === 47) {\n effects.consume(code);\n return end;\n }\n\n // ASCII alphabetical and `:` and `_`.\n if (code === 58 || code === 95 || asciiAlpha(code)) {\n effects.consume(code);\n return tagOpenAttributeName;\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenBetween;\n return lineEndingBefore(code);\n }\n if (markdownSpace(code)) {\n effects.consume(code);\n return tagOpenBetween;\n }\n return end(code);\n }\n\n /**\n * In attribute name.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeName(code) {\n // ASCII alphabetical and `-`, `.`, `:`, and `_`.\n if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) {\n effects.consume(code);\n return tagOpenAttributeName;\n }\n return tagOpenAttributeNameAfter(code);\n }\n\n /**\n * After attribute name, before initializer, the end of the tag, or\n * whitespace.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeNameAfter(code) {\n if (code === 61) {\n effects.consume(code);\n return tagOpenAttributeValueBefore;\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeNameAfter;\n return lineEndingBefore(code);\n }\n if (markdownSpace(code)) {\n effects.consume(code);\n return tagOpenAttributeNameAfter;\n }\n return tagOpenBetween(code);\n }\n\n /**\n * Before unquoted, double quoted, or single quoted attribute value, allowing\n * whitespace.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueBefore(code) {\n if (code === null || code === 60 || code === 61 || code === 62 || code === 96) {\n return nok(code);\n }\n if (code === 34 || code === 39) {\n effects.consume(code);\n marker = code;\n return tagOpenAttributeValueQuoted;\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueBefore;\n return lineEndingBefore(code);\n }\n if (markdownSpace(code)) {\n effects.consume(code);\n return tagOpenAttributeValueBefore;\n }\n effects.consume(code);\n return tagOpenAttributeValueUnquoted;\n }\n\n /**\n * In double or single quoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuoted(code) {\n if (code === marker) {\n effects.consume(code);\n marker = undefined;\n return tagOpenAttributeValueQuotedAfter;\n }\n if (code === null) {\n return nok(code);\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueQuoted;\n return lineEndingBefore(code);\n }\n effects.consume(code);\n return tagOpenAttributeValueQuoted;\n }\n\n /**\n * In unquoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueUnquoted(code) {\n if (code === null || code === 34 || code === 39 || code === 60 || code === 61 || code === 96) {\n return nok(code);\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code);\n }\n effects.consume(code);\n return tagOpenAttributeValueUnquoted;\n }\n\n /**\n * After double or single quoted attribute value, before whitespace or the end\n * of the tag.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuotedAfter(code) {\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code);\n }\n return nok(code);\n }\n\n /**\n * In certain circumstances of a tag where only an `>` is allowed.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function end(code) {\n if (code === 62) {\n effects.consume(code);\n effects.exit(\"htmlTextData\");\n effects.exit(\"htmlText\");\n return ok;\n }\n return nok(code);\n }\n\n /**\n * At eol.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * > | a \n * ```\n *\n * @type {State}\n */\n function lineEndingBefore(code) {\n effects.exit(\"htmlTextData\");\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return lineEndingAfter;\n }\n\n /**\n * After eol, at optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfter(code) {\n // Always populated by defaults.\n\n return markdownSpace(code) ? factorySpace(effects, lineEndingAfterPrefix, \"linePrefix\", self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : lineEndingAfterPrefix(code);\n }\n\n /**\n * After eol, after optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfterPrefix(code) {\n effects.enter(\"htmlTextData\");\n return returnState(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { labelEnd } from './label-end.js';\n\n/** @type {Construct} */\nexport const labelStartLink = {\n name: 'labelStartLink',\n tokenize: tokenizeLabelStartLink,\n resolveAll: labelEnd.resolveAll\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartLink(effects, ok, nok) {\n const self = this;\n return start;\n\n /**\n * Start of label (link) start.\n *\n * ```markdown\n * > | a [b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"labelLink\");\n effects.enter(\"labelMarker\");\n effects.consume(code);\n effects.exit(\"labelMarker\");\n effects.exit(\"labelLink\");\n return after;\n }\n\n /** @type {State} */\n function after(code) {\n // To do: this isn’t needed in `micromark-extension-gfm-footnote`,\n // remove.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { markdownLineEnding } from 'micromark-util-character';\n/** @type {Construct} */\nexport const hardBreakEscape = {\n name: 'hardBreakEscape',\n tokenize: tokenizeHardBreakEscape\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHardBreakEscape(effects, ok, nok) {\n return start;\n\n /**\n * Start of a hard break (escape).\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"hardBreakEscape\");\n effects.consume(code);\n return after;\n }\n\n /**\n * After `\\`, at eol.\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (markdownLineEnding(code)) {\n effects.exit(\"hardBreakEscape\");\n return ok(code);\n }\n return nok(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Previous} Previous\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { markdownLineEnding } from 'micromark-util-character';\n/** @type {Construct} */\nexport const codeText = {\n name: 'codeText',\n tokenize: tokenizeCodeText,\n resolve: resolveCodeText,\n previous\n};\n\n// To do: next major: don’t resolve, like `markdown-rs`.\n/** @type {Resolver} */\nfunction resolveCodeText(events) {\n let tailExitIndex = events.length - 4;\n let headEnterIndex = 3;\n /** @type {number} */\n let index;\n /** @type {number | undefined} */\n let enter;\n\n // If we start and end with an EOL or a space.\n if ((events[headEnterIndex][1].type === \"lineEnding\" || events[headEnterIndex][1].type === 'space') && (events[tailExitIndex][1].type === \"lineEnding\" || events[tailExitIndex][1].type === 'space')) {\n index = headEnterIndex;\n\n // And we have data.\n while (++index < tailExitIndex) {\n if (events[index][1].type === \"codeTextData\") {\n // Then we have padding.\n events[headEnterIndex][1].type = \"codeTextPadding\";\n events[tailExitIndex][1].type = \"codeTextPadding\";\n headEnterIndex += 2;\n tailExitIndex -= 2;\n break;\n }\n }\n }\n\n // Merge adjacent spaces and data.\n index = headEnterIndex - 1;\n tailExitIndex++;\n while (++index <= tailExitIndex) {\n if (enter === undefined) {\n if (index !== tailExitIndex && events[index][1].type !== \"lineEnding\") {\n enter = index;\n }\n } else if (index === tailExitIndex || events[index][1].type === \"lineEnding\") {\n events[enter][1].type = \"codeTextData\";\n if (index !== enter + 2) {\n events[enter][1].end = events[index - 1][1].end;\n events.splice(enter + 2, index - enter - 2);\n tailExitIndex -= index - enter - 2;\n index = enter + 2;\n }\n enter = undefined;\n }\n }\n return events;\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Previous}\n */\nfunction previous(code) {\n // If there is a previous code, there will always be a tail.\n return code !== 96 || this.events[this.events.length - 1][1].type === \"characterEscape\";\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeText(effects, ok, nok) {\n const self = this;\n let sizeOpen = 0;\n /** @type {number} */\n let size;\n /** @type {Token} */\n let token;\n return start;\n\n /**\n * Start of code (text).\n *\n * ```markdown\n * > | `a`\n * ^\n * > | \\`a`\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"codeText\");\n effects.enter(\"codeTextSequence\");\n return sequenceOpen(code);\n }\n\n /**\n * In opening sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === 96) {\n effects.consume(code);\n sizeOpen++;\n return sequenceOpen;\n }\n effects.exit(\"codeTextSequence\");\n return between(code);\n }\n\n /**\n * Between something and something else.\n *\n * ```markdown\n * > | `a`\n * ^^\n * ```\n *\n * @type {State}\n */\n function between(code) {\n // EOF.\n if (code === null) {\n return nok(code);\n }\n\n // To do: next major: don’t do spaces in resolve, but when compiling,\n // like `markdown-rs`.\n // Tabs don’t work, and virtual spaces don’t make sense.\n if (code === 32) {\n effects.enter('space');\n effects.consume(code);\n effects.exit('space');\n return between;\n }\n\n // Closing fence? Could also be data.\n if (code === 96) {\n token = effects.enter(\"codeTextSequence\");\n size = 0;\n return sequenceClose(code);\n }\n if (markdownLineEnding(code)) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return between;\n }\n\n // Data.\n effects.enter(\"codeTextData\");\n return data(code);\n }\n\n /**\n * In data.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function data(code) {\n if (code === null || code === 32 || code === 96 || markdownLineEnding(code)) {\n effects.exit(\"codeTextData\");\n return between(code);\n }\n effects.consume(code);\n return data;\n }\n\n /**\n * In closing sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n // More.\n if (code === 96) {\n effects.consume(code);\n size++;\n return sequenceClose;\n }\n\n // Done!\n if (size === sizeOpen) {\n effects.exit(\"codeTextSequence\");\n effects.exit(\"codeText\");\n return ok(code);\n }\n\n // More or less accents: mark as data.\n token.type = \"codeTextData\";\n return data(code);\n }\n}","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n */\n\nimport {\n attention,\n autolink,\n blockQuote,\n characterEscape,\n characterReference,\n codeFenced,\n codeIndented,\n codeText,\n definition,\n hardBreakEscape,\n headingAtx,\n htmlFlow,\n htmlText,\n labelEnd,\n labelStartImage,\n labelStartLink,\n lineEnding,\n list,\n setextUnderline,\n thematicBreak\n} from 'micromark-core-commonmark'\nimport {resolver as resolveText} from './initialize/text.js'\n\n/** @satisfies {Extension['document']} */\nexport const document = {\n [42]: list,\n [43]: list,\n [45]: list,\n [48]: list,\n [49]: list,\n [50]: list,\n [51]: list,\n [52]: list,\n [53]: list,\n [54]: list,\n [55]: list,\n [56]: list,\n [57]: list,\n [62]: blockQuote\n}\n\n/** @satisfies {Extension['contentInitial']} */\nexport const contentInitial = {\n [91]: definition\n}\n\n/** @satisfies {Extension['flowInitial']} */\nexport const flowInitial = {\n [-2]: codeIndented,\n [-1]: codeIndented,\n [32]: codeIndented\n}\n\n/** @satisfies {Extension['flow']} */\nexport const flow = {\n [35]: headingAtx,\n [42]: thematicBreak,\n [45]: [setextUnderline, thematicBreak],\n [60]: htmlFlow,\n [61]: setextUnderline,\n [95]: thematicBreak,\n [96]: codeFenced,\n [126]: codeFenced\n}\n\n/** @satisfies {Extension['string']} */\nexport const string = {\n [38]: characterReference,\n [92]: characterEscape\n}\n\n/** @satisfies {Extension['text']} */\nexport const text = {\n [-5]: lineEnding,\n [-4]: lineEnding,\n [-3]: lineEnding,\n [33]: labelStartImage,\n [38]: characterReference,\n [42]: attention,\n [60]: [autolink, htmlText],\n [91]: labelStartLink,\n [92]: [hardBreakEscape, characterEscape],\n [93]: labelEnd,\n [95]: attention,\n [96]: codeText\n}\n\n/** @satisfies {Extension['insideSpan']} */\nexport const insideSpan = {\n null: [attention, resolveText]\n}\n\n/** @satisfies {Extension['attentionMarkers']} */\nexport const attentionMarkers = {\n null: [42, 95]\n}\n\n/** @satisfies {Extension['disable']} */\nexport const disable = {\n null: []\n}\n","/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Value} Value\n */\n\n/**\n * @callback Preprocessor\n * @param {Value} value\n * @param {Encoding | null | undefined} [encoding]\n * @param {boolean | null | undefined} [end=false]\n * @returns {Array}\n */\n\nconst search = /[\\0\\t\\n\\r]/g\n\n/**\n * @returns {Preprocessor}\n */\nexport function preprocess() {\n let column = 1\n let buffer = ''\n /** @type {boolean | undefined} */\n let start = true\n /** @type {boolean | undefined} */\n let atCarriageReturn\n return preprocessor\n\n /** @type {Preprocessor} */\n // eslint-disable-next-line complexity\n function preprocessor(value, encoding, end) {\n /** @type {Array} */\n const chunks = []\n /** @type {RegExpMatchArray | null} */\n let match\n /** @type {number} */\n let next\n /** @type {number} */\n let startPosition\n /** @type {number} */\n let endPosition\n /** @type {Code} */\n let code\n value =\n buffer +\n (typeof value === 'string'\n ? value.toString()\n : new TextDecoder(encoding || undefined).decode(value))\n startPosition = 0\n buffer = ''\n if (start) {\n // To do: `markdown-rs` actually parses BOMs (byte order mark).\n if (value.charCodeAt(0) === 65279) {\n startPosition++\n }\n start = undefined\n }\n while (startPosition < value.length) {\n search.lastIndex = startPosition\n match = search.exec(value)\n endPosition =\n match && match.index !== undefined ? match.index : value.length\n code = value.charCodeAt(endPosition)\n if (!match) {\n buffer = value.slice(startPosition)\n break\n }\n if (code === 10 && startPosition === endPosition && atCarriageReturn) {\n chunks.push(-3)\n atCarriageReturn = undefined\n } else {\n if (atCarriageReturn) {\n chunks.push(-5)\n atCarriageReturn = undefined\n }\n if (startPosition < endPosition) {\n chunks.push(value.slice(startPosition, endPosition))\n column += endPosition - startPosition\n }\n switch (code) {\n case 0: {\n chunks.push(65533)\n column++\n break\n }\n case 9: {\n next = Math.ceil(column / 4) * 4\n chunks.push(-2)\n while (column++ < next) chunks.push(-1)\n break\n }\n case 10: {\n chunks.push(-4)\n column = 1\n break\n }\n default: {\n atCarriageReturn = true\n column = 1\n }\n }\n }\n startPosition = endPosition + 1\n }\n if (end) {\n if (atCarriageReturn) chunks.push(-5)\n if (buffer) chunks.push(buffer)\n chunks.push(null)\n }\n return chunks\n }\n}\n","/**\n * Turn the number (in string form as either hexa- or plain decimal) coming from\n * a numeric character reference into a character.\n *\n * Sort of like `String.fromCodePoint(Number.parseInt(value, base))`, but makes\n * non-characters and control characters safe.\n *\n * @param {string} value\n * Value to decode.\n * @param {number} base\n * Numeric base.\n * @returns {string}\n * Character.\n */\nexport function decodeNumericCharacterReference(value, base) {\n const code = Number.parseInt(value, base);\n if (\n // C0 except for HT, LF, FF, CR, space.\n code < 9 || code === 11 || code > 13 && code < 32 ||\n // Control character (DEL) of C0, and C1 controls.\n code > 126 && code < 160 ||\n // Lone high surrogates and low surrogates.\n code > 55_295 && code < 57_344 ||\n // Noncharacters.\n code > 64_975 && code < 65_008 || /* eslint-disable no-bitwise */\n (code & 65_535) === 65_535 || (code & 65_535) === 65_534 || /* eslint-enable no-bitwise */\n // Out of range\n code > 1_114_111) {\n return \"\\uFFFD\";\n }\n return String.fromCodePoint(code);\n}","import {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nconst characterEscapeOrReference =\n /\\\\([!-/:-@[-`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi\n\n/**\n * Decode markdown strings (which occur in places such as fenced code info\n * strings, destinations, labels, and titles).\n *\n * The “string” content type allows character escapes and -references.\n * This decodes those.\n *\n * @param {string} value\n * Value to decode.\n * @returns {string}\n * Decoded value.\n */\nexport function decodeString(value) {\n return value.replace(characterEscapeOrReference, decode)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @param {string} $2\n * @returns {string}\n */\nfunction decode($0, $1, $2) {\n if ($1) {\n // Escape.\n return $1\n }\n\n // Reference.\n const head = $2.charCodeAt(0)\n if (head === 35) {\n const head = $2.charCodeAt(1)\n const hex = head === 120 || head === 88\n return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10)\n }\n return decodeNamedCharacterReference($2) || $0\n}\n","/**\n * @typedef {import('mdast').Break} Break\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('mdast').Code} Code\n * @typedef {import('mdast').Definition} Definition\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('mdast').Html} Html\n * @typedef {import('mdast').Image} Image\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').List} List\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n * @typedef {import('mdast').ReferenceType} ReferenceType\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('mdast').Text} Text\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n *\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Value} Value\n *\n * @typedef {import('unist').Point} Point\n *\n * @typedef {import('../index.js').CompileData} CompileData\n */\n\n/**\n * @typedef {Omit & {type: 'fragment', children: Array}} Fragment\n */\n\n/**\n * @callback Transform\n * Extra transform, to change the AST afterwards.\n * @param {Root} tree\n * Tree to transform.\n * @returns {Root | null | undefined | void}\n * New tree or nothing (in which case the current tree is used).\n *\n * @callback Handle\n * Handle a token.\n * @param {CompileContext} this\n * Context.\n * @param {Token} token\n * Current token.\n * @returns {undefined | void}\n * Nothing.\n *\n * @typedef {Record} Handles\n * Token types mapping to handles\n *\n * @callback OnEnterError\n * Handle the case where the `right` token is open, but it is closed (by the\n * `left` token) or because we reached the end of the document.\n * @param {Omit} this\n * Context.\n * @param {Token | undefined} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {undefined}\n * Nothing.\n *\n * @callback OnExitError\n * Handle the case where the `right` token is open but it is closed by\n * exiting the `left` token.\n * @param {Omit} this\n * Context.\n * @param {Token} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {undefined}\n * Nothing.\n *\n * @typedef {[Token, OnEnterError | undefined]} TokenTuple\n * Open token on the stack, with an optional error handler for when\n * that token isn’t closed properly.\n */\n\n/**\n * @typedef Config\n * Configuration.\n *\n * We have our defaults, but extensions will add more.\n * @property {Array} canContainEols\n * Token types where line endings are used.\n * @property {Handles} enter\n * Opening handles.\n * @property {Handles} exit\n * Closing handles.\n * @property {Array} transforms\n * Tree transforms.\n *\n * @typedef {Partial} Extension\n * Change how markdown tokens from micromark are turned into mdast.\n *\n * @typedef CompileContext\n * mdast compiler context.\n * @property {Array} stack\n * Stack of nodes.\n * @property {Array} tokenStack\n * Stack of tokens.\n * @property {(this: CompileContext) => undefined} buffer\n * Capture some of the output data.\n * @property {(this: CompileContext) => string} resume\n * Stop capturing and access the output data.\n * @property {(this: CompileContext, node: Nodes, token: Token, onError?: OnEnterError) => undefined} enter\n * Enter a node.\n * @property {(this: CompileContext, token: Token, onError?: OnExitError) => undefined} exit\n * Exit a node.\n * @property {TokenizeContext['sliceSerialize']} sliceSerialize\n * Get the string value of a token.\n * @property {Config} config\n * Configuration.\n * @property {CompileData} data\n * Info passed around; key/value store.\n *\n * @typedef FromMarkdownOptions\n * Configuration for how to build mdast.\n * @property {Array> | null | undefined} [mdastExtensions]\n * Extensions for this utility to change how tokens are turned into a tree.\n *\n * @typedef {ParseOptions & FromMarkdownOptions} Options\n * Configuration.\n */\n\nimport { toString } from 'mdast-util-to-string';\nimport { parse, postprocess, preprocess } from 'micromark';\nimport { decodeNumericCharacterReference } from 'micromark-util-decode-numeric-character-reference';\nimport { decodeString } from 'micromark-util-decode-string';\nimport { normalizeIdentifier } from 'micromark-util-normalize-identifier';\nimport { decodeNamedCharacterReference } from 'decode-named-character-reference';\nimport { stringifyPosition } from 'unist-util-stringify-position';\nconst own = {}.hasOwnProperty;\n\n/**\n * Turn markdown into a syntax tree.\n *\n * @overload\n * @param {Value} value\n * @param {Encoding | null | undefined} [encoding]\n * @param {Options | null | undefined} [options]\n * @returns {Root}\n *\n * @overload\n * @param {Value} value\n * @param {Options | null | undefined} [options]\n * @returns {Root}\n *\n * @param {Value} value\n * Markdown to parse.\n * @param {Encoding | Options | null | undefined} [encoding]\n * Character encoding for when `value` is `Buffer`.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {Root}\n * mdast tree.\n */\nexport function fromMarkdown(value, encoding, options) {\n if (typeof encoding !== 'string') {\n options = encoding;\n encoding = undefined;\n }\n return compiler(options)(postprocess(parse(options).document().write(preprocess()(value, encoding, true))));\n}\n\n/**\n * Note this compiler only understand complete buffering, not streaming.\n *\n * @param {Options | null | undefined} [options]\n */\nfunction compiler(options) {\n /** @type {Config} */\n const config = {\n transforms: [],\n canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'],\n enter: {\n autolink: opener(link),\n autolinkProtocol: onenterdata,\n autolinkEmail: onenterdata,\n atxHeading: opener(heading),\n blockQuote: opener(blockQuote),\n characterEscape: onenterdata,\n characterReference: onenterdata,\n codeFenced: opener(codeFlow),\n codeFencedFenceInfo: buffer,\n codeFencedFenceMeta: buffer,\n codeIndented: opener(codeFlow, buffer),\n codeText: opener(codeText, buffer),\n codeTextData: onenterdata,\n data: onenterdata,\n codeFlowValue: onenterdata,\n definition: opener(definition),\n definitionDestinationString: buffer,\n definitionLabelString: buffer,\n definitionTitleString: buffer,\n emphasis: opener(emphasis),\n hardBreakEscape: opener(hardBreak),\n hardBreakTrailing: opener(hardBreak),\n htmlFlow: opener(html, buffer),\n htmlFlowData: onenterdata,\n htmlText: opener(html, buffer),\n htmlTextData: onenterdata,\n image: opener(image),\n label: buffer,\n link: opener(link),\n listItem: opener(listItem),\n listItemValue: onenterlistitemvalue,\n listOrdered: opener(list, onenterlistordered),\n listUnordered: opener(list),\n paragraph: opener(paragraph),\n reference: onenterreference,\n referenceString: buffer,\n resourceDestinationString: buffer,\n resourceTitleString: buffer,\n setextHeading: opener(heading),\n strong: opener(strong),\n thematicBreak: opener(thematicBreak)\n },\n exit: {\n atxHeading: closer(),\n atxHeadingSequence: onexitatxheadingsequence,\n autolink: closer(),\n autolinkEmail: onexitautolinkemail,\n autolinkProtocol: onexitautolinkprotocol,\n blockQuote: closer(),\n characterEscapeValue: onexitdata,\n characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,\n characterReferenceMarkerNumeric: onexitcharacterreferencemarker,\n characterReferenceValue: onexitcharacterreferencevalue,\n characterReference: onexitcharacterreference,\n codeFenced: closer(onexitcodefenced),\n codeFencedFence: onexitcodefencedfence,\n codeFencedFenceInfo: onexitcodefencedfenceinfo,\n codeFencedFenceMeta: onexitcodefencedfencemeta,\n codeFlowValue: onexitdata,\n codeIndented: closer(onexitcodeindented),\n codeText: closer(onexitcodetext),\n codeTextData: onexitdata,\n data: onexitdata,\n definition: closer(),\n definitionDestinationString: onexitdefinitiondestinationstring,\n definitionLabelString: onexitdefinitionlabelstring,\n definitionTitleString: onexitdefinitiontitlestring,\n emphasis: closer(),\n hardBreakEscape: closer(onexithardbreak),\n hardBreakTrailing: closer(onexithardbreak),\n htmlFlow: closer(onexithtmlflow),\n htmlFlowData: onexitdata,\n htmlText: closer(onexithtmltext),\n htmlTextData: onexitdata,\n image: closer(onexitimage),\n label: onexitlabel,\n labelText: onexitlabeltext,\n lineEnding: onexitlineending,\n link: closer(onexitlink),\n listItem: closer(),\n listOrdered: closer(),\n listUnordered: closer(),\n paragraph: closer(),\n referenceString: onexitreferencestring,\n resourceDestinationString: onexitresourcedestinationstring,\n resourceTitleString: onexitresourcetitlestring,\n resource: onexitresource,\n setextHeading: closer(onexitsetextheading),\n setextHeadingLineSequence: onexitsetextheadinglinesequence,\n setextHeadingText: onexitsetextheadingtext,\n strong: closer(),\n thematicBreak: closer()\n }\n };\n configure(config, (options || {}).mdastExtensions || []);\n\n /** @type {CompileData} */\n const data = {};\n return compile;\n\n /**\n * Turn micromark events into an mdast tree.\n *\n * @param {Array} events\n * Events.\n * @returns {Root}\n * mdast tree.\n */\n function compile(events) {\n /** @type {Root} */\n let tree = {\n type: 'root',\n children: []\n };\n /** @type {Omit} */\n const context = {\n stack: [tree],\n tokenStack: [],\n config,\n enter,\n exit,\n buffer,\n resume,\n data\n };\n /** @type {Array} */\n const listStack = [];\n let index = -1;\n while (++index < events.length) {\n // We preprocess lists to add `listItem` tokens, and to infer whether\n // items the list itself are spread out.\n if (events[index][1].type === \"listOrdered\" || events[index][1].type === \"listUnordered\") {\n if (events[index][0] === 'enter') {\n listStack.push(index);\n } else {\n const tail = listStack.pop();\n index = prepareList(events, tail, index);\n }\n }\n }\n index = -1;\n while (++index < events.length) {\n const handler = config[events[index][0]];\n if (own.call(handler, events[index][1].type)) {\n handler[events[index][1].type].call(Object.assign({\n sliceSerialize: events[index][2].sliceSerialize\n }, context), events[index][1]);\n }\n }\n\n // Handle tokens still being open.\n if (context.tokenStack.length > 0) {\n const tail = context.tokenStack[context.tokenStack.length - 1];\n const handler = tail[1] || defaultOnError;\n handler.call(context, undefined, tail[0]);\n }\n\n // Figure out `root` position.\n tree.position = {\n start: point(events.length > 0 ? events[0][1].start : {\n line: 1,\n column: 1,\n offset: 0\n }),\n end: point(events.length > 0 ? events[events.length - 2][1].end : {\n line: 1,\n column: 1,\n offset: 0\n })\n };\n\n // Call transforms.\n index = -1;\n while (++index < config.transforms.length) {\n tree = config.transforms[index](tree) || tree;\n }\n return tree;\n }\n\n /**\n * @param {Array} events\n * @param {number} start\n * @param {number} length\n * @returns {number}\n */\n function prepareList(events, start, length) {\n let index = start - 1;\n let containerBalance = -1;\n let listSpread = false;\n /** @type {Token | undefined} */\n let listItem;\n /** @type {number | undefined} */\n let lineIndex;\n /** @type {number | undefined} */\n let firstBlankLineIndex;\n /** @type {boolean | undefined} */\n let atMarker;\n while (++index <= length) {\n const event = events[index];\n switch (event[1].type) {\n case \"listUnordered\":\n case \"listOrdered\":\n case \"blockQuote\":\n {\n if (event[0] === 'enter') {\n containerBalance++;\n } else {\n containerBalance--;\n }\n atMarker = undefined;\n break;\n }\n case \"lineEndingBlank\":\n {\n if (event[0] === 'enter') {\n if (listItem && !atMarker && !containerBalance && !firstBlankLineIndex) {\n firstBlankLineIndex = index;\n }\n atMarker = undefined;\n }\n break;\n }\n case \"linePrefix\":\n case \"listItemValue\":\n case \"listItemMarker\":\n case \"listItemPrefix\":\n case \"listItemPrefixWhitespace\":\n {\n // Empty.\n\n break;\n }\n default:\n {\n atMarker = undefined;\n }\n }\n if (!containerBalance && event[0] === 'enter' && event[1].type === \"listItemPrefix\" || containerBalance === -1 && event[0] === 'exit' && (event[1].type === \"listUnordered\" || event[1].type === \"listOrdered\")) {\n if (listItem) {\n let tailIndex = index;\n lineIndex = undefined;\n while (tailIndex--) {\n const tailEvent = events[tailIndex];\n if (tailEvent[1].type === \"lineEnding\" || tailEvent[1].type === \"lineEndingBlank\") {\n if (tailEvent[0] === 'exit') continue;\n if (lineIndex) {\n events[lineIndex][1].type = \"lineEndingBlank\";\n listSpread = true;\n }\n tailEvent[1].type = \"lineEnding\";\n lineIndex = tailIndex;\n } else if (tailEvent[1].type === \"linePrefix\" || tailEvent[1].type === \"blockQuotePrefix\" || tailEvent[1].type === \"blockQuotePrefixWhitespace\" || tailEvent[1].type === \"blockQuoteMarker\" || tailEvent[1].type === \"listItemIndent\") {\n // Empty\n } else {\n break;\n }\n }\n if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {\n listItem._spread = true;\n }\n\n // Fix position.\n listItem.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);\n events.splice(lineIndex || index, 0, ['exit', listItem, event[2]]);\n index++;\n length++;\n }\n\n // Create a new list item.\n if (event[1].type === \"listItemPrefix\") {\n /** @type {Token} */\n const item = {\n type: 'listItem',\n _spread: false,\n start: Object.assign({}, event[1].start),\n // @ts-expect-error: we’ll add `end` in a second.\n end: undefined\n };\n listItem = item;\n events.splice(index, 0, ['enter', item, event[2]]);\n index++;\n length++;\n firstBlankLineIndex = undefined;\n atMarker = true;\n }\n }\n }\n events[start][1]._spread = listSpread;\n return length;\n }\n\n /**\n * Create an opener handle.\n *\n * @param {(token: Token) => Nodes} create\n * Create a node.\n * @param {Handle | undefined} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function opener(create, and) {\n return open;\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {undefined}\n */\n function open(token) {\n enter.call(this, create(token), token);\n if (and) and.call(this, token);\n }\n }\n\n /**\n * @this {CompileContext}\n * @returns {undefined}\n */\n function buffer() {\n this.stack.push({\n type: 'fragment',\n children: []\n });\n }\n\n /**\n * @this {CompileContext}\n * Context.\n * @param {Nodes} node\n * Node to enter.\n * @param {Token} token\n * Corresponding token.\n * @param {OnEnterError | undefined} [errorHandler]\n * Handle the case where this token is open, but it is closed by something else.\n * @returns {undefined}\n * Nothing.\n */\n function enter(node, token, errorHandler) {\n const parent = this.stack[this.stack.length - 1];\n /** @type {Array} */\n const siblings = parent.children;\n siblings.push(node);\n this.stack.push(node);\n this.tokenStack.push([token, errorHandler]);\n node.position = {\n start: point(token.start),\n // @ts-expect-error: `end` will be patched later.\n end: undefined\n };\n }\n\n /**\n * Create a closer handle.\n *\n * @param {Handle | undefined} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function closer(and) {\n return close;\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {undefined}\n */\n function close(token) {\n if (and) and.call(this, token);\n exit.call(this, token);\n }\n }\n\n /**\n * @this {CompileContext}\n * Context.\n * @param {Token} token\n * Corresponding token.\n * @param {OnExitError | undefined} [onExitError]\n * Handle the case where another token is open.\n * @returns {undefined}\n * Nothing.\n */\n function exit(token, onExitError) {\n const node = this.stack.pop();\n const open = this.tokenStack.pop();\n if (!open) {\n throw new Error('Cannot close `' + token.type + '` (' + stringifyPosition({\n start: token.start,\n end: token.end\n }) + '): it’s not open');\n } else if (open[0].type !== token.type) {\n if (onExitError) {\n onExitError.call(this, token, open[0]);\n } else {\n const handler = open[1] || defaultOnError;\n handler.call(this, token, open[0]);\n }\n }\n node.position.end = point(token.end);\n }\n\n /**\n * @this {CompileContext}\n * @returns {string}\n */\n function resume() {\n return toString(this.stack.pop());\n }\n\n //\n // Handlers.\n //\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistordered() {\n this.data.expectingFirstListItemValue = true;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistitemvalue(token) {\n if (this.data.expectingFirstListItemValue) {\n const ancestor = this.stack[this.stack.length - 2];\n ancestor.start = Number.parseInt(this.sliceSerialize(token), 10);\n this.data.expectingFirstListItemValue = undefined;\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfenceinfo() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.lang = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfencemeta() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.meta = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfence() {\n // Exit if this is the closing fence.\n if (this.data.flowCodeInside) return;\n this.buffer();\n this.data.flowCodeInside = true;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefenced() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.value = data.replace(/^(\\r?\\n|\\r)|(\\r?\\n|\\r)$/g, '');\n this.data.flowCodeInside = undefined;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodeindented() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.value = data.replace(/(\\r?\\n|\\r)$/g, '');\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitionlabelstring(token) {\n const label = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.label = label;\n node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiontitlestring() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.title = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiondestinationstring() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.url = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitatxheadingsequence(token) {\n const node = this.stack[this.stack.length - 1];\n if (!node.depth) {\n const depth = this.sliceSerialize(token).length;\n node.depth = depth;\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadingtext() {\n this.data.setextHeadingSlurpLineEnding = true;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadinglinesequence(token) {\n const node = this.stack[this.stack.length - 1];\n node.depth = this.sliceSerialize(token).codePointAt(0) === 61 ? 1 : 2;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheading() {\n this.data.setextHeadingSlurpLineEnding = undefined;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterdata(token) {\n const node = this.stack[this.stack.length - 1];\n /** @type {Array} */\n const siblings = node.children;\n let tail = siblings[siblings.length - 1];\n if (!tail || tail.type !== 'text') {\n // Add a new text node.\n tail = text();\n tail.position = {\n start: point(token.start),\n // @ts-expect-error: we’ll add `end` later.\n end: undefined\n };\n siblings.push(tail);\n }\n this.stack.push(tail);\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitdata(token) {\n const tail = this.stack.pop();\n tail.value += this.sliceSerialize(token);\n tail.position.end = point(token.end);\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlineending(token) {\n const context = this.stack[this.stack.length - 1];\n // If we’re at a hard break, include the line ending in there.\n if (this.data.atHardBreak) {\n const tail = context.children[context.children.length - 1];\n tail.position.end = point(token.end);\n this.data.atHardBreak = undefined;\n return;\n }\n if (!this.data.setextHeadingSlurpLineEnding && config.canContainEols.includes(context.type)) {\n onenterdata.call(this, token);\n onexitdata.call(this, token);\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithardbreak() {\n this.data.atHardBreak = true;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmlflow() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.value = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmltext() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.value = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcodetext() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.value = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlink() {\n const node = this.stack[this.stack.length - 1];\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n\n // To do: clean.\n if (this.data.inReference) {\n /** @type {ReferenceType} */\n const referenceType = this.data.referenceType || 'shortcut';\n node.type += 'Reference';\n // @ts-expect-error: mutate.\n node.referenceType = referenceType;\n // @ts-expect-error: mutate.\n delete node.url;\n delete node.title;\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier;\n // @ts-expect-error: mutate.\n delete node.label;\n }\n this.data.referenceType = undefined;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitimage() {\n const node = this.stack[this.stack.length - 1];\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n\n // To do: clean.\n if (this.data.inReference) {\n /** @type {ReferenceType} */\n const referenceType = this.data.referenceType || 'shortcut';\n node.type += 'Reference';\n // @ts-expect-error: mutate.\n node.referenceType = referenceType;\n // @ts-expect-error: mutate.\n delete node.url;\n delete node.title;\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier;\n // @ts-expect-error: mutate.\n delete node.label;\n }\n this.data.referenceType = undefined;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabeltext(token) {\n const string = this.sliceSerialize(token);\n const ancestor = this.stack[this.stack.length - 2];\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n ancestor.label = decodeString(string);\n // @ts-expect-error: same as above.\n ancestor.identifier = normalizeIdentifier(string).toLowerCase();\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabel() {\n const fragment = this.stack[this.stack.length - 1];\n const value = this.resume();\n const node = this.stack[this.stack.length - 1];\n // Assume a reference.\n this.data.inReference = true;\n if (node.type === 'link') {\n /** @type {Array} */\n const children = fragment.children;\n node.children = children;\n } else {\n node.alt = value;\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcedestinationstring() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.url = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcetitlestring() {\n const data = this.resume();\n const node = this.stack[this.stack.length - 1];\n node.title = data;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresource() {\n this.data.inReference = undefined;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterreference() {\n this.data.referenceType = 'collapsed';\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitreferencestring(token) {\n const label = this.resume();\n const node = this.stack[this.stack.length - 1];\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n node.label = label;\n // @ts-expect-error: same as above.\n node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();\n this.data.referenceType = 'full';\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcharacterreferencemarker(token) {\n this.data.characterReferenceType = token.type;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcharacterreferencevalue(token) {\n const data = this.sliceSerialize(token);\n const type = this.data.characterReferenceType;\n /** @type {string} */\n let value;\n if (type) {\n value = decodeNumericCharacterReference(data, type === \"characterReferenceMarkerNumeric\" ? 10 : 16);\n this.data.characterReferenceType = undefined;\n } else {\n const result = decodeNamedCharacterReference(data);\n value = result;\n }\n const tail = this.stack[this.stack.length - 1];\n tail.value += value;\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcharacterreference(token) {\n const tail = this.stack.pop();\n tail.position.end = point(token.end);\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkprotocol(token) {\n onexitdata.call(this, token);\n const node = this.stack[this.stack.length - 1];\n node.url = this.sliceSerialize(token);\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkemail(token) {\n onexitdata.call(this, token);\n const node = this.stack[this.stack.length - 1];\n node.url = 'mailto:' + this.sliceSerialize(token);\n }\n\n //\n // Creaters.\n //\n\n /** @returns {Blockquote} */\n function blockQuote() {\n return {\n type: 'blockquote',\n children: []\n };\n }\n\n /** @returns {Code} */\n function codeFlow() {\n return {\n type: 'code',\n lang: null,\n meta: null,\n value: ''\n };\n }\n\n /** @returns {InlineCode} */\n function codeText() {\n return {\n type: 'inlineCode',\n value: ''\n };\n }\n\n /** @returns {Definition} */\n function definition() {\n return {\n type: 'definition',\n identifier: '',\n label: null,\n title: null,\n url: ''\n };\n }\n\n /** @returns {Emphasis} */\n function emphasis() {\n return {\n type: 'emphasis',\n children: []\n };\n }\n\n /** @returns {Heading} */\n function heading() {\n return {\n type: 'heading',\n // @ts-expect-error `depth` will be set later.\n depth: 0,\n children: []\n };\n }\n\n /** @returns {Break} */\n function hardBreak() {\n return {\n type: 'break'\n };\n }\n\n /** @returns {Html} */\n function html() {\n return {\n type: 'html',\n value: ''\n };\n }\n\n /** @returns {Image} */\n function image() {\n return {\n type: 'image',\n title: null,\n url: '',\n alt: null\n };\n }\n\n /** @returns {Link} */\n function link() {\n return {\n type: 'link',\n title: null,\n url: '',\n children: []\n };\n }\n\n /**\n * @param {Token} token\n * @returns {List}\n */\n function list(token) {\n return {\n type: 'list',\n ordered: token.type === 'listOrdered',\n start: null,\n spread: token._spread,\n children: []\n };\n }\n\n /**\n * @param {Token} token\n * @returns {ListItem}\n */\n function listItem(token) {\n return {\n type: 'listItem',\n spread: token._spread,\n checked: null,\n children: []\n };\n }\n\n /** @returns {Paragraph} */\n function paragraph() {\n return {\n type: 'paragraph',\n children: []\n };\n }\n\n /** @returns {Strong} */\n function strong() {\n return {\n type: 'strong',\n children: []\n };\n }\n\n /** @returns {Text} */\n function text() {\n return {\n type: 'text',\n value: ''\n };\n }\n\n /** @returns {ThematicBreak} */\n function thematicBreak() {\n return {\n type: 'thematicBreak'\n };\n }\n}\n\n/**\n * Copy a point-like value.\n *\n * @param {Point} d\n * Point-like value.\n * @returns {Point}\n * unist point.\n */\nfunction point(d) {\n return {\n line: d.line,\n column: d.column,\n offset: d.offset\n };\n}\n\n/**\n * @param {Config} combined\n * @param {Array | Extension>} extensions\n * @returns {undefined}\n */\nfunction configure(combined, extensions) {\n let index = -1;\n while (++index < extensions.length) {\n const value = extensions[index];\n if (Array.isArray(value)) {\n configure(combined, value);\n } else {\n extension(combined, value);\n }\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Extension} extension\n * @returns {undefined}\n */\nfunction extension(combined, extension) {\n /** @type {keyof Extension} */\n let key;\n for (key in extension) {\n if (own.call(extension, key)) {\n switch (key) {\n case 'canContainEols':\n {\n const right = extension[key];\n if (right) {\n combined[key].push(...right);\n }\n break;\n }\n case 'transforms':\n {\n const right = extension[key];\n if (right) {\n combined[key].push(...right);\n }\n break;\n }\n case 'enter':\n case 'exit':\n {\n const right = extension[key];\n if (right) {\n Object.assign(combined[key], right);\n }\n break;\n }\n // No default\n }\n }\n }\n}\n\n/** @type {OnEnterError} */\nfunction defaultOnError(left, right) {\n if (left) {\n throw new Error('Cannot close `' + left.type + '` (' + stringifyPosition({\n start: left.start,\n end: left.end\n }) + '): a different token (`' + right.type + '`, ' + stringifyPosition({\n start: right.start,\n end: right.end\n }) + ') is open');\n } else {\n throw new Error('Cannot close document, a token (`' + right.type + '`, ' + stringifyPosition({\n start: right.start,\n end: right.end\n }) + ') is still open');\n }\n}","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\nimport {subtokenize} from 'micromark-util-subtokenize'\n\n/**\n * @param {Array} events\n * @returns {Array}\n */\nexport function postprocess(events) {\n while (!subtokenize(events)) {\n // Empty\n }\n return events\n}\n","/**\n * @typedef {import('micromark-util-types').Create} Create\n * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').ParseContext} ParseContext\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n */\n\nimport {combineExtensions} from 'micromark-util-combine-extensions'\nimport {content} from './initialize/content.js'\nimport {document} from './initialize/document.js'\nimport {flow} from './initialize/flow.js'\nimport {string, text} from './initialize/text.js'\nimport {createTokenizer} from './create-tokenizer.js'\nimport * as defaultConstructs from './constructs.js'\n\n/**\n * @param {ParseOptions | null | undefined} [options]\n * @returns {ParseContext}\n */\nexport function parse(options) {\n const settings = options || {}\n const constructs =\n /** @type {FullNormalizedExtension} */\n combineExtensions([defaultConstructs, ...(settings.extensions || [])])\n\n /** @type {ParseContext} */\n const parser = {\n defined: [],\n lazy: {},\n constructs,\n content: create(content),\n document: create(document),\n flow: create(flow),\n string: create(string),\n text: create(text)\n }\n return parser\n\n /**\n * @param {InitialConstruct} initial\n */\n function create(initial) {\n return creator\n /** @type {Create} */\n function creator(from) {\n return createTokenizer(parser, initial, from)\n }\n }\n}\n","/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions\n * @typedef {import('unified').Parser} Parser\n * @typedef {import('unified').Processor} Processor\n */\n\n/**\n * @typedef {Omit} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * Aadd support for parsing from markdown.\n *\n * @param {Readonly | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function remarkParse(options) {\n /** @type {Processor} */\n // @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.\n const self = this\n\n self.parser = parser\n\n /**\n * @type {Parser}\n */\n function parser(doc) {\n return fromMarkdown(doc, {\n ...self.data('settings'),\n ...options,\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: self.data('micromarkExtensions') || [],\n mdastExtensions: self.data('fromMarkdownExtensions') || []\n })\n }\n}\n","export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(new env[name](message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n }\n return as(new env[type](value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n","import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n","import {asciiAlphanumeric} from 'micromark-util-character'\nimport {encode} from 'micromark-util-encode'\n/**\n * Make a value safe for injection as a URL.\n *\n * This encodes unsafe characters with percent-encoding and skips already\n * encoded sequences (see `normalizeUri`).\n * Further unsafe characters are encoded as character references (see\n * `micromark-util-encode`).\n *\n * A regex of allowed protocols can be given, in which case the URL is\n * sanitized.\n * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or\n * `/^https?$/i` for `img[src]` (this is what `github.com` allows).\n * If the URL includes an unknown protocol (one not matched by `protocol`, such\n * as a dangerous example, `javascript:`), the value is ignored.\n *\n * @param {string | null | undefined} url\n * URI to sanitize.\n * @param {RegExp | null | undefined} [protocol]\n * Allowed protocols.\n * @returns {string}\n * Sanitized URI.\n */\nexport function sanitizeUri(url, protocol) {\n const value = encode(normalizeUri(url || ''))\n if (!protocol) {\n return value\n }\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n if (\n // If there is no protocol, it’s relative.\n colon < 0 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash > -1 && colon > slash) ||\n (questionMark > -1 && colon > questionMark) ||\n (numberSign > -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n protocol.test(value.slice(0, colon))\n ) {\n return value\n }\n return ''\n}\n\n/**\n * Normalize a URL.\n *\n * Encode unsafe characters with percent-encoding, skipping already encoded\n * sequences.\n *\n * @param {string} value\n * URI to normalize.\n * @returns {string}\n * Normalized URI.\n */\nexport function normalizeUri(value) {\n /** @type {Array} */\n const result = []\n let index = -1\n let start = 0\n let skip = 0\n while (++index < value.length) {\n const code = value.charCodeAt(index)\n /** @type {string} */\n let replace = ''\n\n // A correct percent encoded value.\n if (\n code === 37 &&\n asciiAlphanumeric(value.charCodeAt(index + 1)) &&\n asciiAlphanumeric(value.charCodeAt(index + 2))\n ) {\n skip = 2\n }\n // ASCII.\n else if (code < 128) {\n if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {\n replace = String.fromCharCode(code)\n }\n }\n // Astral.\n else if (code > 55_295 && code < 57_344) {\n const next = value.charCodeAt(index + 1)\n\n // A correct surrogate pair.\n if (code < 56_320 && next > 56_319 && next < 57_344) {\n replace = String.fromCharCode(code, next)\n skip = 1\n }\n // Lone surrogate.\n else {\n replace = '\\uFFFD'\n }\n }\n // Unicode.\n else {\n replace = String.fromCharCode(code)\n }\n if (replace) {\n result.push(value.slice(start, index), encodeURIComponent(replace))\n start = index + skip + 1\n replace = ''\n }\n if (skip) {\n index += skip\n skip = 0\n }\n }\n return result.join('') + value.slice(start)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('./state.js').State} State\n */\n\n/**\n * @callback FootnoteBackContentTemplate\n * Generate content for the backreference dynamically.\n *\n * For the following markdown:\n *\n * ```markdown\n * Alpha[^micromark], bravo[^micromark], and charlie[^remark].\n *\n * [^remark]: things about remark\n * [^micromark]: things about micromark\n * ```\n *\n * This function will be called with:\n *\n * * `0` and `0` for the backreference from `things about micromark` to\n * `alpha`, as it is the first used definition, and the first call to it\n * * `0` and `1` for the backreference from `things about micromark` to\n * `bravo`, as it is the first used definition, and the second call to it\n * * `1` and `0` for the backreference from `things about remark` to\n * `charlie`, as it is the second used definition\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {Array | ElementContent | string}\n * Content for the backreference when linking back from definitions to their\n * reference.\n *\n * @callback FootnoteBackLabelTemplate\n * Generate a back label dynamically.\n *\n * For the following markdown:\n *\n * ```markdown\n * Alpha[^micromark], bravo[^micromark], and charlie[^remark].\n *\n * [^remark]: things about remark\n * [^micromark]: things about micromark\n * ```\n *\n * This function will be called with:\n *\n * * `0` and `0` for the backreference from `things about micromark` to\n * `alpha`, as it is the first used definition, and the first call to it\n * * `0` and `1` for the backreference from `things about micromark` to\n * `bravo`, as it is the first used definition, and the second call to it\n * * `1` and `0` for the backreference from `things about remark` to\n * `charlie`, as it is the second used definition\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {string}\n * Back label to use when linking back from definitions to their reference.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Generate the default content that GitHub uses on backreferences.\n *\n * @param {number} _\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {Array}\n * Content.\n */\nexport function defaultFootnoteBackContent(_, rereferenceIndex) {\n /** @type {Array} */\n const result = [{type: 'text', value: '↩'}]\n\n if (rereferenceIndex > 1) {\n result.push({\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [{type: 'text', value: String(rereferenceIndex)}]\n })\n }\n\n return result\n}\n\n/**\n * Generate the default label that GitHub uses on backreferences.\n *\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {string}\n * Label.\n */\nexport function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n return (\n 'Back to reference ' +\n (referenceIndex + 1) +\n (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n )\n}\n\n/**\n * Generate a hast footer for called footnote definitions.\n *\n * @param {State} state\n * Info passed around.\n * @returns {Element | undefined}\n * `section` element or `undefined`.\n */\n// eslint-disable-next-line complexity\nexport function footer(state) {\n const clobberPrefix =\n typeof state.options.clobberPrefix === 'string'\n ? state.options.clobberPrefix\n : 'user-content-'\n const footnoteBackContent =\n state.options.footnoteBackContent || defaultFootnoteBackContent\n const footnoteBackLabel =\n state.options.footnoteBackLabel || defaultFootnoteBackLabel\n const footnoteLabel = state.options.footnoteLabel || 'Footnotes'\n const footnoteLabelTagName = state.options.footnoteLabelTagName || 'h2'\n const footnoteLabelProperties = state.options.footnoteLabelProperties || {\n className: ['sr-only']\n }\n /** @type {Array} */\n const listItems = []\n let referenceIndex = -1\n\n while (++referenceIndex < state.footnoteOrder.length) {\n const def = state.footnoteById.get(state.footnoteOrder[referenceIndex])\n\n if (!def) {\n continue\n }\n\n const content = state.all(def)\n const id = String(def.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n let rereferenceIndex = 0\n /** @type {Array} */\n const backReferences = []\n const counts = state.footnoteCounts.get(id)\n\n // eslint-disable-next-line no-unmodified-loop-condition\n while (counts !== undefined && ++rereferenceIndex <= counts) {\n if (backReferences.length > 0) {\n backReferences.push({type: 'text', value: ' '})\n }\n\n let children =\n typeof footnoteBackContent === 'string'\n ? footnoteBackContent\n : footnoteBackContent(referenceIndex, rereferenceIndex)\n\n if (typeof children === 'string') {\n children = {type: 'text', value: children}\n }\n\n backReferences.push({\n type: 'element',\n tagName: 'a',\n properties: {\n href:\n '#' +\n clobberPrefix +\n 'fnref-' +\n safeId +\n (rereferenceIndex > 1 ? '-' + rereferenceIndex : ''),\n dataFootnoteBackref: '',\n ariaLabel:\n typeof footnoteBackLabel === 'string'\n ? footnoteBackLabel\n : footnoteBackLabel(referenceIndex, rereferenceIndex),\n className: ['data-footnote-backref']\n },\n children: Array.isArray(children) ? children : [children]\n })\n }\n\n const tail = content[content.length - 1]\n\n if (tail && tail.type === 'element' && tail.tagName === 'p') {\n const tailTail = tail.children[tail.children.length - 1]\n if (tailTail && tailTail.type === 'text') {\n tailTail.value += ' '\n } else {\n tail.children.push({type: 'text', value: ' '})\n }\n\n tail.children.push(...backReferences)\n } else {\n content.push(...backReferences)\n }\n\n /** @type {Element} */\n const listItem = {\n type: 'element',\n tagName: 'li',\n properties: {id: clobberPrefix + 'fn-' + safeId},\n children: state.wrap(content, true)\n }\n\n state.patch(def, listItem)\n\n listItems.push(listItem)\n }\n\n if (listItems.length === 0) {\n return\n }\n\n return {\n type: 'element',\n tagName: 'section',\n properties: {dataFootnotes: true, className: ['footnotes']},\n children: [\n {\n type: 'element',\n tagName: footnoteLabelTagName,\n properties: {\n ...structuredClone(footnoteLabelProperties),\n id: 'footnote-label'\n },\n children: [{type: 'text', value: footnoteLabel}]\n },\n {type: 'text', value: '\\n'},\n {\n type: 'element',\n tagName: 'ol',\n properties: {},\n children: state.wrap(listItems, true)\n },\n {type: 'text', value: '\\n'}\n ]\n }\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Get the ending point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointEnd = point('end')\n\n/**\n * Get the starting point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointStart = point('start')\n\n/**\n * Get the positional info of `node`.\n *\n * @param {'end' | 'start'} type\n * Side.\n * @returns\n * Getter.\n */\nfunction point(type) {\n return point\n\n /**\n * Get the point info of `node` at a bound side.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * @returns {Point | undefined}\n */\n function point(node) {\n const point = (node && node.position && node.position[type]) || {}\n\n if (\n typeof point.line === 'number' &&\n point.line > 0 &&\n typeof point.column === 'number' &&\n point.column > 0\n ) {\n return {\n line: point.line,\n column: point.column,\n offset:\n typeof point.offset === 'number' && point.offset > -1\n ? point.offset\n : undefined\n }\n }\n }\n}\n\n/**\n * Get the positional info of `node`.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * Node.\n * @returns {Position | undefined}\n * Position.\n */\nexport function position(node) {\n const start = pointStart(node)\n const end = pointEnd(node)\n\n if (start && end) {\n return {start, end}\n }\n}\n","/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Reference} Reference\n *\n * @typedef {import('./state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {Extract} node\n * Reference node (image, link).\n * @returns {Array}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return [{type: 'text', value: '![' + node.alt + suffix}]\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: .\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === null || spread === undefined\n ? node.children.length > 1\n : spread\n}\n","const tab = 9 /* `\\t` */\nconst space = 32 /* ` ` */\n\n/**\n * Remove initial and final spaces and tabs at the line breaks in `value`.\n * Does not trim initial and final spaces and tabs of the value itself.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Trimmed value.\n */\nexport function trimLines(value) {\n const source = String(value)\n const search = /\\r?\\n|\\r/g\n let match = search.exec(source)\n let last = 0\n /** @type {Array} */\n const lines = []\n\n while (match) {\n lines.push(\n trimLine(source.slice(last, match.index), last > 0, true),\n match[0]\n )\n\n last = match.index + match[0].length\n match = search.exec(source)\n }\n\n lines.push(trimLine(source.slice(last), last > 0, false))\n\n return lines.join('')\n}\n\n/**\n * @param {string} value\n * Line to trim.\n * @param {boolean} start\n * Whether to trim the start of the line.\n * @param {boolean} end\n * Whether to trim the end of the line.\n * @returns {string}\n * Trimmed line.\n */\nfunction trimLine(value, start, end) {\n let startIndex = 0\n let endIndex = value.length\n\n if (start) {\n let code = value.codePointAt(startIndex)\n\n while (code === tab || code === space) {\n startIndex++\n code = value.codePointAt(startIndex)\n }\n }\n\n if (end) {\n let code = value.codePointAt(endIndex - 1)\n\n while (code === tab || code === space) {\n endIndex--\n code = value.codePointAt(endIndex - 1)\n }\n }\n\n return endIndex > startIndex ? value.slice(startIndex, endIndex) : ''\n}\n","import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {strikethrough} from './delete.js'\nimport {emphasis} from './emphasis.js'\nimport {footnoteReference} from './footnote-reference.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {imageReference} from './image-reference.js'\nimport {image} from './image.js'\nimport {inlineCode} from './inline-code.js'\nimport {linkReference} from './link-reference.js'\nimport {link} from './link.js'\nimport {listItem} from './list-item.js'\nimport {list} from './list.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {table} from './table.js'\nimport {tableRow} from './table-row.js'\nimport {tableCell} from './table-cell.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default handlers for nodes.\n *\n * @satisfies {import('../state.js').Handlers}\n */\nexport const handlers = {\n blockquote,\n break: hardBreak,\n code,\n delete: strikethrough,\n emphasis,\n footnoteReference,\n heading,\n html,\n imageReference,\n image,\n inlineCode,\n linkReference,\n link,\n listItem,\n list,\n paragraph,\n // @ts-expect-error: root is different, but hard to type.\n root,\n strong,\n table,\n tableCell,\n tableRow,\n text,\n thematicBreak,\n toml: ignore,\n yaml: ignore,\n definition: ignore,\n footnoteDefinition: ignore\n}\n\n// Return nothing for nodes that are ignored.\nfunction ignore() {\n return undefined\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `blockquote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Blockquote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function blockquote(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'blockquote',\n properties: {},\n children: state.wrap(state.all(node), true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').Break} Break\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `break` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Break} node\n * mdast node.\n * @returns {Array}\n * hast element content.\n */\nexport function hardBreak(state, node) {\n /** @type {Element} */\n const result = {type: 'element', tagName: 'br', properties: {}, children: []}\n state.patch(node, result)\n return [state.applyData(node, result), {type: 'text', value: '\\n'}]\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `code` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Code} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function code(state, node) {\n const value = node.value ? node.value + '\\n' : ''\n /** @type {Properties} */\n const properties = {}\n\n if (node.lang) {\n properties.className = ['language-' + node.lang]\n }\n\n // Create ``.\n /** @type {Element} */\n let result = {\n type: 'element',\n tagName: 'code',\n properties,\n children: [{type: 'text', value}]\n }\n\n if (node.meta) {\n result.data = {meta: node.meta}\n }\n\n state.patch(node, result)\n result = state.applyData(node, result)\n\n // Create `
`.\n  result = {type: 'element', tagName: 'pre', properties: {}, children: [result]}\n  state.patch(node, result)\n  return result\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Delete} Delete\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `delete` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Delete} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strikethrough(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'del',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `emphasis` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Emphasis} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function emphasis(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'em',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `footnoteReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {FootnoteReference} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function footnoteReference(state, node) {\n  const clobberPrefix =\n    typeof state.options.clobberPrefix === 'string'\n      ? state.options.clobberPrefix\n      : 'user-content-'\n  const id = String(node.identifier).toUpperCase()\n  const safeId = normalizeUri(id.toLowerCase())\n  const index = state.footnoteOrder.indexOf(id)\n  /** @type {number} */\n  let counter\n\n  let reuseCounter = state.footnoteCounts.get(id)\n\n  if (reuseCounter === undefined) {\n    reuseCounter = 0\n    state.footnoteOrder.push(id)\n    counter = state.footnoteOrder.length\n  } else {\n    counter = index + 1\n  }\n\n  reuseCounter += 1\n  state.footnoteCounts.set(id, reuseCounter)\n\n  /** @type {Element} */\n  const link = {\n    type: 'element',\n    tagName: 'a',\n    properties: {\n      href: '#' + clobberPrefix + 'fn-' + safeId,\n      id:\n        clobberPrefix +\n        'fnref-' +\n        safeId +\n        (reuseCounter > 1 ? '-' + reuseCounter : ''),\n      dataFootnoteRef: true,\n      ariaDescribedBy: ['footnote-label']\n    },\n    children: [{type: 'text', value: String(counter)}]\n  }\n  state.patch(node, link)\n\n  /** @type {Element} */\n  const sup = {\n    type: 'element',\n    tagName: 'sup',\n    properties: {},\n    children: [link]\n  }\n  state.patch(node, sup)\n  return state.applyData(node, sup)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `heading` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Heading} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function heading(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'h' + node.depth,\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Html} Html\n * @typedef {import('../state.js').State} State\n * @typedef {import('../../index.js').Raw} Raw\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise\n * nothing).\n *\n * @param {State} state\n *   Info passed around.\n * @param {Html} node\n *   mdast node.\n * @returns {Element | Raw | undefined}\n *   hast node.\n */\nexport function html(state, node) {\n  if (state.options.allowDangerousHtml) {\n    /** @type {Raw} */\n    const result = {type: 'raw', value: node.value}\n    state.patch(node, result)\n    return state.applyData(node, result)\n  }\n\n  return undefined\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `imageReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ImageReference} node\n *   mdast node.\n * @returns {Array | ElementContent}\n *   hast node.\n */\nexport function imageReference(state, node) {\n  const id = String(node.identifier).toUpperCase()\n  const def = state.definitionById.get(id)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(def.url || ''), alt: node.alt}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Image} Image\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `image` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Image} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function image(state, node) {\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(node.url)}\n\n  if (node.alt !== null && node.alt !== undefined) {\n    properties.alt = node.alt\n  }\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `inlineCode` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {InlineCode} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function inlineCode(state, node) {\n  /** @type {Text} */\n  const text = {type: 'text', value: node.value.replace(/\\r?\\n|\\r/g, ' ')}\n  state.patch(node, text)\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'code',\n    properties: {},\n    children: [text]\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `linkReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {LinkReference} node\n *   mdast node.\n * @returns {Array | ElementContent}\n *   hast node.\n */\nexport function linkReference(state, node) {\n  const id = String(node.identifier).toUpperCase()\n  const def = state.definitionById.get(id)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(def.url || '')}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `link` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Link} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function link(state, node) {\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(node.url)}\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').List} List\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {List} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function list(state, node) {\n  /** @type {Properties} */\n  const properties = {}\n  const results = state.all(node)\n  let index = -1\n\n  if (typeof node.start === 'number' && node.start !== 1) {\n    properties.start = node.start\n  }\n\n  // Like GitHub, add a class for custom styling.\n  while (++index < results.length) {\n    const child = results[index]\n\n    if (\n      child.type === 'element' &&\n      child.tagName === 'li' &&\n      child.properties &&\n      Array.isArray(child.properties.className) &&\n      child.properties.className.includes('task-list-item')\n    ) {\n      properties.className = ['contains-task-list']\n      break\n    }\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: node.ordered ? 'ol' : 'ul',\n    properties,\n    children: state.wrap(results, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `paragraph` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Paragraph} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function paragraph(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'p',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Parents} HastParents\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `root` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastRoot} node\n *   mdast node.\n * @returns {HastParents}\n *   hast node.\n */\nexport function root(state, node) {\n  /** @type {HastRoot} */\n  const result = {type: 'root', children: state.wrap(state.all(node))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `strong` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Strong} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strong(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'strong',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Table} Table\n * @typedef {import('../state.js').State} State\n */\n\nimport {pointEnd, pointStart} from 'unist-util-position'\n\n/**\n * Turn an mdast `table` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Table} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function table(state, node) {\n  const rows = state.all(node)\n  const firstRow = rows.shift()\n  /** @type {Array} */\n  const tableContent = []\n\n  if (firstRow) {\n    /** @type {Element} */\n    const head = {\n      type: 'element',\n      tagName: 'thead',\n      properties: {},\n      children: state.wrap([firstRow], true)\n    }\n    state.patch(node.children[0], head)\n    tableContent.push(head)\n  }\n\n  if (rows.length > 0) {\n    /** @type {Element} */\n    const body = {\n      type: 'element',\n      tagName: 'tbody',\n      properties: {},\n      children: state.wrap(rows, true)\n    }\n\n    const start = pointStart(node.children[1])\n    const end = pointEnd(node.children[node.children.length - 1])\n    if (start && end) body.position = {start, end}\n    tableContent.push(body)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'table',\n    properties: {},\n    children: state.wrap(tableContent, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `tableCell` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableCell} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function tableCell(state, node) {\n  // Note: this function is normally not called: see `table-row` for how rows\n  // and their cells are compiled.\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'td', // Assume body cell.\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').TableRow} TableRow\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `tableRow` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableRow} node\n *   mdast node.\n * @param {Parents | undefined} parent\n *   Parent of `node`.\n * @returns {Element}\n *   hast node.\n */\nexport function tableRow(state, node, parent) {\n  const siblings = parent ? parent.children : undefined\n  // Generate a body row when without parent.\n  const rowIndex = siblings ? siblings.indexOf(node) : 1\n  const tagName = rowIndex === 0 ? 'th' : 'td'\n  // To do: option to use `style`?\n  const align = parent && parent.type === 'table' ? parent.align : undefined\n  const length = align ? align.length : node.children.length\n  let cellIndex = -1\n  /** @type {Array} */\n  const cells = []\n\n  while (++cellIndex < length) {\n    // Note: can also be undefined.\n    const cell = node.children[cellIndex]\n    /** @type {Properties} */\n    const properties = {}\n    const alignValue = align ? align[cellIndex] : undefined\n\n    if (alignValue) {\n      properties.align = alignValue\n    }\n\n    /** @type {Element} */\n    let result = {type: 'element', tagName, properties, children: []}\n\n    if (cell) {\n      result.children = state.all(cell)\n      state.patch(cell, result)\n      result = state.applyData(cell, result)\n    }\n\n    cells.push(result)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'tr',\n    properties: {},\n    children: state.wrap(cells, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').Text} HastText\n * @typedef {import('mdast').Text} MdastText\n * @typedef {import('../state.js').State} State\n */\n\nimport {trimLines} from 'trim-lines'\n\n/**\n * Turn an mdast `text` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastText} node\n *   mdast node.\n * @returns {HastElement | HastText}\n *   hast node.\n */\nexport function text(state, node) {\n  /** @type {HastText} */\n  const result = {type: 'text', value: trimLines(String(node.value))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ThematicBreak} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function thematicBreak(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'hr',\n    properties: {},\n    children: []\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').RootContent} HastRootContent\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('mdast').Parents} MdastParents\n *\n * @typedef {import('vfile').VFile} VFile\n *\n * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate\n * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate\n */\n\n/**\n * @callback Handler\n *   Handle a node.\n * @param {State} state\n *   Info passed around.\n * @param {any} node\n *   mdast node to handle.\n * @param {MdastParents | undefined} parent\n *   Parent of `node`.\n * @returns {Array | HastElementContent | undefined}\n *   hast node.\n *\n * @typedef {Partial>} Handlers\n *   Handle nodes.\n *\n * @typedef Options\n *   Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n *   Whether to persist raw HTML in markdown in the hast tree (default:\n *   `false`).\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n *   Prefix to use before the `id` property on footnotes to prevent them from\n *   *clobbering* (default: `'user-content-'`).\n *\n *   Pass `''` for trusted markdown and when you are careful with\n *   polyfilling.\n *   You could pass a different prefix.\n *\n *   DOM clobbering is this:\n *\n *   ```html\n *   

\n * \n * ```\n *\n * The above example shows that elements are made available by browsers, by\n * their ID, on the `window` object.\n * This is a security risk because you might be expecting some other variable\n * at that place.\n * It can also break polyfills.\n * Using a prefix solves these problems.\n * @property {VFile | null | undefined} [file]\n * Corresponding virtual file representing the input document (optional).\n * @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]\n * Content of the backreference back to references (default: `defaultFootnoteBackContent`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackContent(_, rereferenceIndex) {\n * const result = [{type: 'text', value: '↩'}]\n *\n * if (rereferenceIndex > 1) {\n * result.push({\n * type: 'element',\n * tagName: 'sup',\n * properties: {},\n * children: [{type: 'text', value: String(rereferenceIndex)}]\n * })\n * }\n *\n * return result\n * }\n * ```\n *\n * This content is used in the `a` element of each backreference (the `↩`\n * links).\n * @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]\n * Label to describe the backreference back to references (default:\n * `defaultFootnoteBackLabel`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n * return (\n * 'Back to reference ' +\n * (referenceIndex + 1) +\n * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n * )\n * }\n * ```\n *\n * Change it when the markdown is not in English.\n *\n * This label is used in the `ariaLabel` property on each backreference\n * (the `↩` links).\n * It affects users of assistive technology.\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n * Textual label to use for the footnotes section (default: `'Footnotes'`).\n *\n * Change it when the markdown is not in English.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n * Properties to use on the footnote label (default: `{className:\n * ['sr-only']}`).\n *\n * Change it to show the label and add other properties.\n *\n * This label is typically hidden visually (assuming an `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass an empty string.\n * You can also add different properties.\n *\n * > 👉 **Note**: `id: 'footnote-label'` is always added, because footnote\n * > calls use it with `aria-describedby` to provide an accessible label.\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n * HTML tag name to use for the footnote label element (default: `'h2'`).\n *\n * Change it to match your document structure.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {Handlers | null | undefined} [handlers]\n * Extra handlers for nodes (optional).\n * @property {Array | null | undefined} [passThrough]\n * List of custom mdast node types to pass through (keep) in hast (note that\n * the node itself is passed, but eventual children are transformed)\n * (optional).\n * @property {Handler | null | undefined} [unknownHandler]\n * Handler for all unknown nodes (optional).\n *\n * @typedef State\n * Info passed around.\n * @property {(node: MdastNodes) => Array} all\n * Transform the children of an mdast parent to hast.\n * @property {(from: MdastNodes, to: Type) => HastElement | Type} applyData\n * Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {Map} definitionById\n * Definitions by their identifier.\n * @property {Map} footnoteById\n * Footnote definitions by their identifier.\n * @property {Map} footnoteCounts\n * Counts for how often the same footnote was called.\n * @property {Array} footnoteOrder\n * Identifiers of order when footnote calls first appear in tree order.\n * @property {Handlers} handlers\n * Applied handlers.\n * @property {(node: MdastNodes, parent: MdastParents | undefined) => Array | HastElementContent | undefined} one\n * Transform an mdast node to hast.\n * @property {Options} options\n * Configuration.\n * @property {(from: MdastNodes, node: HastNodes) => undefined} patch\n * Copy a node’s positional info.\n * @property {(nodes: Array, loose?: boolean | undefined) => Array} wrap\n * Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {visit} from 'unist-util-visit'\nimport {position} from 'unist-util-position'\nimport {handlers as defaultHandlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n * mdast node to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {State}\n * `state` function.\n */\nexport function createState(tree, options) {\n const settings = options || emptyOptions\n /** @type {Map} */\n const definitionById = new Map()\n /** @type {Map} */\n const footnoteById = new Map()\n /** @type {Map} */\n const footnoteCounts = new Map()\n /** @type {Handlers} */\n // @ts-expect-error: the root handler returns a root.\n // Hard to type.\n const handlers = {...defaultHandlers, ...settings.handlers}\n\n /** @type {State} */\n const state = {\n all,\n applyData,\n definitionById,\n footnoteById,\n footnoteCounts,\n footnoteOrder: [],\n handlers,\n one,\n options: settings,\n patch,\n wrap\n }\n\n visit(tree, function (node) {\n if (node.type === 'definition' || node.type === 'footnoteDefinition') {\n const map = node.type === 'definition' ? definitionById : footnoteById\n const id = String(node.identifier).toUpperCase()\n\n // Mimick CM behavior of link definitions.\n // See: .\n if (!map.has(id)) {\n // @ts-expect-error: node type matches map.\n map.set(id, node)\n }\n }\n })\n\n return state\n\n /**\n * Transform an mdast node into a hast node.\n *\n * @param {MdastNodes} node\n * mdast node.\n * @param {MdastParents | undefined} [parent]\n * Parent of `node`.\n * @returns {Array | HastElementContent | undefined}\n * Resulting hast node.\n */\n function one(node, parent) {\n const type = node.type\n const handle = state.handlers[type]\n\n if (own.call(state.handlers, type) && handle) {\n return handle(state, node, parent)\n }\n\n if (state.options.passThrough && state.options.passThrough.includes(type)) {\n if ('children' in node) {\n const {children, ...shallow} = node\n const result = structuredClone(shallow)\n // @ts-expect-error: TS doesn’t understand…\n result.children = state.all(node)\n // @ts-expect-error: TS doesn’t understand…\n return result\n }\n\n // @ts-expect-error: it’s custom.\n return structuredClone(node)\n }\n\n const unknown = state.options.unknownHandler || defaultUnknownHandler\n\n return unknown(state, node, parent)\n }\n\n /**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {MdastNodes} parent\n * mdast node to compile\n * @returns {Array}\n * Resulting hast nodes.\n */\n function all(parent) {\n /** @type {Array} */\n const values = []\n\n if ('children' in parent) {\n const nodes = parent.children\n let index = -1\n while (++index < nodes.length) {\n const result = state.one(nodes[index], parent)\n\n // To do: see if we van clean this? Can we merge texts?\n if (result) {\n if (index && nodes[index - 1].type === 'break') {\n if (!Array.isArray(result) && result.type === 'text') {\n result.value = trimMarkdownSpaceStart(result.value)\n }\n\n if (!Array.isArray(result) && result.type === 'element') {\n const head = result.children[0]\n\n if (head && head.type === 'text') {\n head.value = trimMarkdownSpaceStart(head.value)\n }\n }\n }\n\n if (Array.isArray(result)) {\n values.push(...result)\n } else {\n values.push(result)\n }\n }\n }\n }\n\n return values\n }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n * mdast node to copy from.\n * @param {HastNodes} to\n * hast node to copy into.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n * Node type.\n * @param {MdastNodes} from\n * mdast node to use data from.\n * @param {Type} to\n * hast node to change.\n * @returns {HastElement | Type}\n * Nothing.\n */\nfunction applyData(from, to) {\n /** @type {HastElement | Type} */\n let result = to\n\n // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n if (from && from.data) {\n const hName = from.data.hName\n const hChildren = from.data.hChildren\n const hProperties = from.data.hProperties\n\n if (typeof hName === 'string') {\n // Transforming the node resulted in an element with a different name\n // than wanted:\n if (result.type === 'element') {\n result.tagName = hName\n }\n // Transforming the node resulted in a non-element, which happens for\n // raw, text, and root nodes (unless custom handlers are passed).\n // The intent of `hName` is to create an element, but likely also to keep\n // the content around (otherwise: pass `hChildren`).\n else {\n /** @type {Array} */\n // @ts-expect-error: assume no doctypes in `root`.\n const children = 'children' in result ? result.children : [result]\n result = {type: 'element', tagName: hName, properties: {}, children}\n }\n }\n\n if (result.type === 'element' && hProperties) {\n Object.assign(result.properties, structuredClone(hProperties))\n }\n\n if (\n 'children' in result &&\n result.children &&\n hChildren !== null &&\n hChildren !== undefined\n ) {\n result.children = hChildren\n }\n }\n\n return result\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastNodes} node\n * Unknown mdast node.\n * @returns {HastElement | HastText}\n * Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n const data = node.data || {}\n /** @type {HastElement | HastText} */\n const result =\n 'value' in node &&\n !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n ? {type: 'text', value: node.value}\n : {\n type: 'element',\n tagName: 'div',\n properties: {},\n children: state.all(node)\n }\n\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastRootContent} Type\n * Node type.\n * @param {Array} nodes\n * List of nodes to wrap.\n * @param {boolean | undefined} [loose=false]\n * Whether to add line endings at start and end (default: `false`).\n * @returns {Array}\n * Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n /** @type {Array} */\n const result = []\n let index = -1\n\n if (loose) {\n result.push({type: 'text', value: '\\n'})\n }\n\n while (++index < nodes.length) {\n if (index) result.push({type: 'text', value: '\\n'})\n result.push(nodes[index])\n }\n\n if (loose && nodes.length > 0) {\n result.push({type: 'text', value: '\\n'})\n }\n\n return result\n}\n\n/**\n * Trim spaces and tabs at the start of `value`.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Result.\n */\nfunction trimMarkdownSpaceStart(value) {\n let index = 0\n let code = value.charCodeAt(index)\n\n while (code === 9 || code === 32) {\n index++\n code = value.charCodeAt(index)\n }\n\n return value.slice(index)\n}\n","/**\n * @typedef {import('unist').Node} UnistNode\n * @typedef {import('unist').Parent} UnistParent\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * @typedef {Exclude | undefined} Test\n * Test from `unist-util-is`.\n *\n * Note: we have remove and add `undefined`, because otherwise when generating\n * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,\n * which doesn’t work when publishing on npm.\n */\n\n// To do: use types from `unist-util-visit-parents` when it’s released.\n\n/**\n * @typedef {(\n * Fn extends (value: any) => value is infer Thing\n * ? Thing\n * : Fallback\n * )} Predicate\n * Get the value of a type guard `Fn`.\n * @template Fn\n * Value; typically function that is a type guard (such as `(x): x is Y`).\n * @template Fallback\n * Value to yield if `Fn` is not a type guard.\n */\n\n/**\n * @typedef {(\n * Check extends null | undefined // No test.\n * ? Value\n * : Value extends {type: Check} // String (type) test.\n * ? Value\n * : Value extends Check // Partial test.\n * ? Value\n * : Check extends Function // Function test.\n * ? Predicate extends Value\n * ? Predicate\n * : never\n * : never // Some other test?\n * )} MatchesOne\n * Check whether a node matches a primitive check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test, but not arrays.\n */\n\n/**\n * @typedef {(\n * Check extends Array\n * ? MatchesOne\n * : MatchesOne\n * )} Matches\n * Check whether a node matches a check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test.\n */\n\n/**\n * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint\n * Number; capped reasonably.\n */\n\n/**\n * @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment\n * Increment a number in the type system.\n * @template {Uint} [I=0]\n * Index.\n */\n\n/**\n * @typedef {(\n * Node extends UnistParent\n * ? Node extends {children: Array}\n * ? Child extends Children ? Node : never\n * : never\n * : never\n * )} InternalParent\n * Collect nodes that can be parents of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {InternalParent, Child>} Parent\n * Collect nodes in `Tree` that can be parents of `Child`.\n * @template {UnistNode} Tree\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {(\n * Depth extends Max\n * ? never\n * :\n * | InternalParent\n * | InternalAncestor, Max, Increment>\n * )} InternalAncestor\n * Collect nodes in `Tree` that can be ancestors of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @typedef {(\n * Tree extends UnistParent\n * ? Depth extends Max\n * ? Tree\n * : Tree | InclusiveDescendant>\n * : Tree\n * )} InclusiveDescendant\n * Collect all (inclusive) descendants of `Tree`.\n *\n * > 👉 **Note**: for performance reasons, this seems to be the fastest way to\n * > recurse without actually running into an infinite loop, which the\n * > previous version did.\n * >\n * > Practically, a max of `2` is typically enough assuming a `Root` is\n * > passed, but it doesn’t improve performance.\n * > It gets higher with `List > ListItem > Table > TableRow > TableCell`.\n * > Using up to `10` doesn’t hurt or help either.\n * @template {UnistNode} Tree\n * Tree type.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform `parent`.\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of `parent` still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Visited extends UnistNode ? number | undefined : never} index\n * Index of `node` in `parent`.\n * @param {Ancestor extends UnistParent ? Ancestor | undefined : never} parent\n * Parent of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n * @template {UnistNode} [Visited=UnistNode]\n * Visited node type.\n * @template {UnistParent} [Ancestor=UnistParent]\n * Ancestor type.\n */\n\n/**\n * @typedef {Visitor>} BuildVisitorFromMatch\n * Build a typed `Visitor` function from a node and all possible parents.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} Visited\n * Node type.\n * @template {UnistParent} Ancestor\n * Parent type.\n */\n\n/**\n * @typedef {(\n * BuildVisitorFromMatch<\n * Matches,\n * Extract\n * >\n * )} BuildVisitorFromDescendants\n * Build a typed `Visitor` function from a list of descendants and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} Descendant\n * Node type.\n * @template {Test} Check\n * Test type.\n */\n\n/**\n * @typedef {(\n * BuildVisitorFromDescendants<\n * InclusiveDescendant,\n * Check\n * >\n * )} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} [Tree=UnistNode]\n * Node type.\n * @template {Test} [Check=Test]\n * Test type.\n */\n\nimport {visitParents} from 'unist-util-visit-parents'\n\nexport {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'\n\n/**\n * Visit nodes.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @overload\n * @param {Tree} tree\n * @param {Check} check\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @overload\n * @param {Tree} tree\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @param {UnistNode} tree\n * Tree to traverse.\n * @param {Visitor | Test} testOrVisitor\n * `unist-util-is`-compatible test (optional, omit to pass a visitor).\n * @param {Visitor | boolean | null | undefined} [visitorOrReverse]\n * Handle each node (when test is omitted, pass `reverse`).\n * @param {boolean | null | undefined} [maybeReverse=false]\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns {undefined}\n * Nothing.\n *\n * @template {UnistNode} Tree\n * Node type.\n * @template {Test} Check\n * `unist-util-is`-compatible test.\n */\nexport function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {\n /** @type {boolean | null | undefined} */\n let reverse\n /** @type {Test} */\n let test\n /** @type {Visitor} */\n let visitor\n\n if (\n typeof testOrVisitor === 'function' &&\n typeof visitorOrReverse !== 'function'\n ) {\n test = undefined\n visitor = testOrVisitor\n reverse = visitorOrReverse\n } else {\n // @ts-expect-error: assume the overload with test was given.\n test = testOrVisitor\n // @ts-expect-error: assume the overload with test was given.\n visitor = visitorOrReverse\n reverse = maybeReverse\n }\n\n visitParents(tree, test, overload, reverse)\n\n /**\n * @param {UnistNode} node\n * @param {Array} parents\n */\n function overload(node, parents) {\n const parent = parents[parents.length - 1]\n const index = parent ? parent.children.indexOf(node) : undefined\n return visitor(node, index, parent)\n }\n}\n","/**\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('./state.js').Options} Options\n */\n\nimport {ok as assert} from 'devlop'\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * * `hast-util-to-html` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful\n * if you completely trust authors\n * * `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only\n * way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n *

\n * \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {HastNodes}\n * hast tree.\n */\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, undefined)\n const foot = footer(state)\n /** @type {HastNodes} */\n const result = Array.isArray(node)\n ? {type: 'root', children: node}\n : node || {type: 'root', children: []}\n\n if (foot) {\n // If there’s a footer, there were definitions, meaning block\n // content.\n // So `result` is a parent node.\n assert('children' in result)\n result.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n return result\n}\n","// Include `data` fields in mdast and `raw` nodes in hast.\n/// \n\n/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} ToHastOptions\n * @typedef {import('unified').Processor} Processor\n * @typedef {import('vfile').VFile} VFile\n */\n\n/**\n * @typedef {Omit} Options\n *\n * @callback TransformBridge\n * Bridge-mode.\n *\n * Runs the destination with the new hast tree.\n * Discards result.\n * @param {MdastRoot} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {Promise}\n * Nothing.\n *\n * @callback TransformMutate\n * Mutate-mode.\n *\n * Further transformers run on the hast tree.\n * @param {MdastRoot} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {HastRoot}\n * Tree (hast).\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n/**\n * Turn markdown into HTML.\n *\n * ##### Notes\n *\n * ###### Signature\n *\n * * if a processor is given, runs the (rehype) plugins used on it with a\n * hast tree, then discards the result (*bridge mode*)\n * * otherwise, returns a hast tree, the plugins used after `remarkRehype`\n * are rehype plugins (*mutate mode*)\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass a `processor`.\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most plugins ignore `raw` nodes but two notable ones don’t:\n *\n * * `rehype-stringify` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful if\n * you completely trust authors\n * * `rehype-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only way\n * to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `remark-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n *

\n * \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * *Example: headings (DOM clobbering)* in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @overload\n * @param {Processor} processor\n * @param {Readonly | null | undefined} [options]\n * @returns {TransformBridge}\n *\n * @overload\n * @param {Readonly | null | undefined} [options]\n * @returns {TransformMutate}\n *\n * @param {Readonly | Processor | null | undefined} [destination]\n * Processor or configuration (optional).\n * @param {Readonly | null | undefined} [options]\n * When a processor was given, configuration (optional).\n * @returns {TransformBridge | TransformMutate}\n * Transform.\n */\nexport default function remarkRehype(destination, options) {\n if (destination && 'run' in destination) {\n /**\n * @type {TransformBridge}\n */\n return async function (tree, file) {\n // Cast because root in -> root out.\n const hastTree = /** @type {HastRoot} */ (\n toHast(tree, {file, ...options})\n )\n await destination.run(hastTree, file)\n }\n }\n\n /**\n * @type {TransformMutate}\n */\n return function (tree, file) {\n // Cast because root in -> root out.\n return /** @type {HastRoot} */ (\n toHast(tree, {file, ...(options || destination)})\n )\n }\n}\n","/**\n * Throw a given error.\n *\n * @param {Error|null|undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n","export default function isPlainObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);\n}\n","/**\n * @typedef {(error?: Error|null|undefined, ...output: Array) => void} Callback\n * @typedef {(...input: Array) => any} Middleware\n *\n * @typedef {(...input: Array) => void} Run\n * Call all middleware.\n * @typedef {(fn: Middleware) => Pipeline} Use\n * Add `fn` (middleware) to the list.\n * @typedef {{run: Run, use: Use}} Pipeline\n * Middleware.\n */\n\n/**\n * Create new middleware.\n *\n * @returns {Pipeline}\n */\nexport function trough() {\n /** @type {Array} */\n const fns = []\n /** @type {Pipeline} */\n const pipeline = {run, use}\n\n return pipeline\n\n /** @type {Run} */\n function run(...values) {\n let middlewareIndex = -1\n /** @type {Callback} */\n const callback = values.pop()\n\n if (typeof callback !== 'function') {\n throw new TypeError('Expected function as last argument, not ' + callback)\n }\n\n next(null, ...values)\n\n /**\n * Run the next `fn`, or we’re done.\n *\n * @param {Error|null|undefined} error\n * @param {Array} output\n */\n function next(error, ...output) {\n const fn = fns[++middlewareIndex]\n let index = -1\n\n if (error) {\n callback(error)\n return\n }\n\n // Copy non-nullish input into values.\n while (++index < values.length) {\n if (output[index] === null || output[index] === undefined) {\n output[index] = values[index]\n }\n }\n\n // Save the newly created `output` for the next call.\n values = output\n\n // Next or done.\n if (fn) {\n wrap(fn, next)(...output)\n } else {\n callback(null, ...output)\n }\n }\n }\n\n /** @type {Use} */\n function use(middelware) {\n if (typeof middelware !== 'function') {\n throw new TypeError(\n 'Expected `middelware` to be a function, not ' + middelware\n )\n }\n\n fns.push(middelware)\n return pipeline\n }\n}\n\n/**\n * Wrap `middleware`.\n * Can be sync or async; return a promise, receive a callback, or return new\n * values and errors.\n *\n * @param {Middleware} middleware\n * @param {Callback} callback\n */\nexport function wrap(middleware, callback) {\n /** @type {boolean} */\n let called\n\n return wrapped\n\n /**\n * Call `middleware`.\n * @this {any}\n * @param {Array} parameters\n * @returns {void}\n */\n function wrapped(...parameters) {\n const fnExpectsCallback = middleware.length > parameters.length\n /** @type {any} */\n let result\n\n if (fnExpectsCallback) {\n parameters.push(done)\n }\n\n try {\n result = middleware.apply(this, parameters)\n } catch (error) {\n const exception = /** @type {Error} */ (error)\n\n // Well, this is quite the pickle.\n // `middleware` received a callback and called it synchronously, but that\n // threw an error.\n // The only thing left to do is to throw the thing instead.\n if (fnExpectsCallback && called) {\n throw exception\n }\n\n return done(exception)\n }\n\n if (!fnExpectsCallback) {\n if (result instanceof Promise) {\n result.then(then, done)\n } else if (result instanceof Error) {\n done(result)\n } else {\n then(result)\n }\n }\n }\n\n /**\n * Call `callback`, only once.\n * @type {Callback}\n */\n function done(error, ...output) {\n if (!called) {\n called = true\n callback(error, ...output)\n }\n }\n\n /**\n * Call `done` with one value.\n *\n * @param {any} [value]\n */\n function then(value) {\n done(null, value)\n }\n}\n","// A derivative work based on:\n// .\n// Which is licensed:\n//\n// MIT License\n//\n// Copyright (c) 2013 James Halliday\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A derivative work based on:\n//\n// Parts of that are extracted from Node’s internal `path` module:\n// .\n// Which is licensed:\n//\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nexport const path = {basename, dirname, extname, join, sep: '/'}\n\n/* eslint-disable max-depth, complexity */\n\n/**\n * Get the basename from a path.\n *\n * @param {string} path\n * File path.\n * @param {string | null | undefined} [ext]\n * Extension to strip.\n * @returns {string}\n * Stem or basename.\n */\nfunction basename(path, ext) {\n if (ext !== undefined && typeof ext !== 'string') {\n throw new TypeError('\"ext\" argument must be a string')\n }\n\n assertPath(path)\n let start = 0\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let seenNonSlash\n\n if (ext === undefined || ext.length === 0 || ext.length > path.length) {\n while (index--) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // path component.\n seenNonSlash = true\n end = index + 1\n }\n }\n\n return end < 0 ? '' : path.slice(start, end)\n }\n\n if (ext === path) {\n return ''\n }\n\n let firstNonSlashEnd = -1\n let extIndex = ext.length - 1\n\n while (index--) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else {\n if (firstNonSlashEnd < 0) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching.\n seenNonSlash = true\n firstNonSlashEnd = index + 1\n }\n\n if (extIndex > -1) {\n // Try to match the explicit extension.\n if (path.codePointAt(index) === ext.codePointAt(extIndex--)) {\n if (extIndex < 0) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = index\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extIndex = -1\n end = firstNonSlashEnd\n }\n }\n }\n }\n\n if (start === end) {\n end = firstNonSlashEnd\n } else if (end < 0) {\n end = path.length\n }\n\n return path.slice(start, end)\n}\n\n/**\n * Get the dirname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\nfunction dirname(path) {\n assertPath(path)\n\n if (path.length === 0) {\n return '.'\n }\n\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n // Prefix `--` is important to not run on `0`.\n while (--index) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n if (unmatchedSlash) {\n end = index\n break\n }\n } else if (!unmatchedSlash) {\n // We saw the first non-path separator\n unmatchedSlash = true\n }\n }\n\n return end < 0\n ? path.codePointAt(0) === 47 /* `/` */\n ? '/'\n : '.'\n : end === 1 && path.codePointAt(0) === 47 /* `/` */\n ? '//'\n : path.slice(0, end)\n}\n\n/**\n * Get an extname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * Extname.\n */\nfunction extname(path) {\n assertPath(path)\n\n let index = path.length\n\n let end = -1\n let startPart = 0\n let startDot = -1\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find.\n let preDotState = 0\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n while (index--) {\n const code = path.codePointAt(index)\n\n if (code === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (unmatchedSlash) {\n startPart = index + 1\n break\n }\n\n continue\n }\n\n if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // extension.\n unmatchedSlash = true\n end = index + 1\n }\n\n if (code === 46 /* `.` */) {\n // If this is our first dot, mark it as the start of our extension.\n if (startDot < 0) {\n startDot = index\n } else if (preDotState !== 1) {\n preDotState = 1\n }\n } else if (startDot > -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension.\n preDotState = -1\n }\n }\n\n if (\n startDot < 0 ||\n end < 0 ||\n // We saw a non-dot character immediately before the dot.\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly `..`.\n (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)\n ) {\n return ''\n }\n\n return path.slice(startDot, end)\n}\n\n/**\n * Join segments from a path.\n *\n * @param {Array} segments\n * Path segments.\n * @returns {string}\n * File path.\n */\nfunction join(...segments) {\n let index = -1\n /** @type {string | undefined} */\n let joined\n\n while (++index < segments.length) {\n assertPath(segments[index])\n\n if (segments[index]) {\n joined =\n joined === undefined ? segments[index] : joined + '/' + segments[index]\n }\n }\n\n return joined === undefined ? '.' : normalize(joined)\n}\n\n/**\n * Normalize a basic file path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\n// Note: `normalize` is not exposed as `path.normalize`, so some code is\n// manually removed from it.\nfunction normalize(path) {\n assertPath(path)\n\n const absolute = path.codePointAt(0) === 47 /* `/` */\n\n // Normalize the path according to POSIX rules.\n let value = normalizeString(path, !absolute)\n\n if (value.length === 0 && !absolute) {\n value = '.'\n }\n\n if (value.length > 0 && path.codePointAt(path.length - 1) === 47 /* / */) {\n value += '/'\n }\n\n return absolute ? '/' + value : value\n}\n\n/**\n * Resolve `.` and `..` elements in a path with directory names.\n *\n * @param {string} path\n * File path.\n * @param {boolean} allowAboveRoot\n * Whether `..` can move above root.\n * @returns {string}\n * File path.\n */\nfunction normalizeString(path, allowAboveRoot) {\n let result = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let index = -1\n /** @type {number | undefined} */\n let code\n /** @type {number} */\n let lastSlashIndex\n\n while (++index <= path.length) {\n if (index < path.length) {\n code = path.codePointAt(index)\n } else if (code === 47 /* `/` */) {\n break\n } else {\n code = 47 /* `/` */\n }\n\n if (code === 47 /* `/` */) {\n if (lastSlash === index - 1 || dots === 1) {\n // Empty.\n } else if (lastSlash !== index - 1 && dots === 2) {\n if (\n result.length < 2 ||\n lastSegmentLength !== 2 ||\n result.codePointAt(result.length - 1) !== 46 /* `.` */ ||\n result.codePointAt(result.length - 2) !== 46 /* `.` */\n ) {\n if (result.length > 2) {\n lastSlashIndex = result.lastIndexOf('/')\n\n if (lastSlashIndex !== result.length - 1) {\n if (lastSlashIndex < 0) {\n result = ''\n lastSegmentLength = 0\n } else {\n result = result.slice(0, lastSlashIndex)\n lastSegmentLength = result.length - 1 - result.lastIndexOf('/')\n }\n\n lastSlash = index\n dots = 0\n continue\n }\n } else if (result.length > 0) {\n result = ''\n lastSegmentLength = 0\n lastSlash = index\n dots = 0\n continue\n }\n }\n\n if (allowAboveRoot) {\n result = result.length > 0 ? result + '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (result.length > 0) {\n result += '/' + path.slice(lastSlash + 1, index)\n } else {\n result = path.slice(lastSlash + 1, index)\n }\n\n lastSegmentLength = index - lastSlash - 1\n }\n\n lastSlash = index\n dots = 0\n } else if (code === 46 /* `.` */ && dots > -1) {\n dots++\n } else {\n dots = -1\n }\n }\n\n return result\n}\n\n/**\n * Make sure `path` is a string.\n *\n * @param {string} path\n * File path.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError(\n 'Path must be a string. Received ' + JSON.stringify(path)\n )\n }\n}\n\n/* eslint-enable max-depth, complexity */\n","// Somewhat based on:\n// .\n// But I don’t think one tiny line of code can be copyrighted. 😅\nexport const proc = {cwd}\n\nfunction cwd() {\n return '/'\n}\n","/**\n * Checks if a value has the shape of a WHATWG URL object.\n *\n * Using a symbol or instanceof would not be able to recognize URL objects\n * coming from other implementations (e.g. in Electron), so instead we are\n * checking some well known properties for a lack of a better test.\n *\n * We use `href` and `protocol` as they are the only properties that are\n * easy to retrieve and calculate due to the lazy nature of the getters.\n *\n * We check for auth attribute to distinguish legacy url instance with\n * WHATWG URL instance.\n *\n * @param {unknown} fileUrlOrPath\n * File path or URL.\n * @returns {fileUrlOrPath is URL}\n * Whether it’s a URL.\n */\n// From: \nexport function isUrl(fileUrlOrPath) {\n return Boolean(\n fileUrlOrPath !== null &&\n typeof fileUrlOrPath === 'object' &&\n 'href' in fileUrlOrPath &&\n fileUrlOrPath.href &&\n 'protocol' in fileUrlOrPath &&\n fileUrlOrPath.protocol &&\n // @ts-expect-error: indexing is fine.\n fileUrlOrPath.auth === undefined\n )\n}\n","import {isUrl} from './minurl.shared.js'\n\nexport {isUrl} from './minurl.shared.js'\n\n// See: \n\n/**\n * @param {URL | string} path\n * File URL.\n * @returns {string}\n * File URL.\n */\nexport function urlToPath(path) {\n if (typeof path === 'string') {\n path = new URL(path)\n } else if (!isUrl(path)) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'The \"path\" argument must be of type string or an instance of URL. Received `' +\n path +\n '`'\n )\n error.code = 'ERR_INVALID_ARG_TYPE'\n throw error\n }\n\n if (path.protocol !== 'file:') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError('The URL must be of scheme file')\n error.code = 'ERR_INVALID_URL_SCHEME'\n throw error\n }\n\n return getPathFromURLPosix(path)\n}\n\n/**\n * Get a path from a POSIX URL.\n *\n * @param {URL} url\n * URL.\n * @returns {string}\n * File path.\n */\nfunction getPathFromURLPosix(url) {\n if (url.hostname !== '') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL host must be \"localhost\" or empty on darwin'\n )\n error.code = 'ERR_INVALID_FILE_URL_HOST'\n throw error\n }\n\n const pathname = url.pathname\n let index = -1\n\n while (++index < pathname.length) {\n if (\n pathname.codePointAt(index) === 37 /* `%` */ &&\n pathname.codePointAt(index + 1) === 50 /* `2` */\n ) {\n const third = pathname.codePointAt(index + 2)\n if (third === 70 /* `F` */ || third === 102 /* `f` */) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL path must not include encoded / characters'\n )\n error.code = 'ERR_INVALID_FILE_URL_PATH'\n throw error\n }\n }\n }\n\n return decodeURIComponent(pathname)\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n * @typedef {import('vfile-message').Options} MessageOptions\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {object & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {Options | URL | VFile | Value} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {string | null | undefined} [basename]\n * Set `basename` (name).\n * @property {string | null | undefined} [cwd]\n * Set `cwd` (working directory).\n * @property {Data | null | undefined} [data]\n * Set `data` (associated info).\n * @property {string | null | undefined} [dirname]\n * Set `dirname` (path w/o basename).\n * @property {string | null | undefined} [extname]\n * Set `extname` (extension with dot).\n * @property {Array | null | undefined} [history]\n * Set `history` (paths the file moved between).\n * @property {URL | string | null | undefined} [path]\n * Set `path` (current path).\n * @property {string | null | undefined} [stem]\n * Set `stem` (name without extension).\n * @property {Value | null | undefined} [value]\n * Set `value` (the contents of the file).\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * .\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array} sources\n * An array of URLs to the original source files.\n * @property {Array} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {Record & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template [Settings=ReporterSettings]\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport {VFileMessage} from 'vfile-message'\nimport {path} from 'vfile/do-not-use-conditional-minpath'\nimport {proc} from 'vfile/do-not-use-conditional-minproc'\nimport {urlToPath, isUrl} from 'vfile/do-not-use-conditional-minurl'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n */\nconst order = /** @type {const} */ ([\n 'history',\n 'path',\n 'basename',\n 'stem',\n 'extname',\n 'dirname'\n])\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Uint8Array` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (isUrl(value)) {\n options = {path: value}\n } else if (typeof value === 'string' || isUint8Array(value)) {\n options = {value}\n } else {\n options = value\n }\n\n /* eslint-disable no-unused-expressions */\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /**\n * Place to store custom info (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of file paths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array}\n */\n this.history = []\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array}\n */\n this.messages = []\n\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n *\n * @returns {string | undefined}\n * Basename.\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n *\n * @param {string} basename\n * Basename.\n * @returns {undefined}\n * Nothing.\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the parent path (example: `'~'`).\n *\n * @returns {string | undefined}\n * Dirname.\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n *\n * @param {string | undefined} dirname\n * Dirname.\n * @returns {undefined}\n * Nothing.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n *\n * @returns {string | undefined}\n * Extname.\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n *\n * @param {string | undefined} extname\n * Extname.\n * @returns {undefined}\n * Nothing.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.codePointAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n * Path.\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {URL | string} path\n * Path.\n * @returns {undefined}\n * Nothing.\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n *\n * @returns {string | undefined}\n * Stem.\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n *\n * @param {string} stem\n * Stem.\n * @returns {undefined}\n * Nothing.\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n // Normal prototypal methods.\n /**\n * Create a fatal message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `true` (error; file not usable)\n * and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Never.\n * @throws {VFileMessage}\n * Message.\n */\n fail(causeOrReason, optionsOrParentOrPlace, origin) {\n // @ts-expect-error: the overloads are fine.\n const message = this.message(causeOrReason, optionsOrParentOrPlace, origin)\n\n message.fatal = true\n\n throw message\n }\n\n /**\n * Create an info message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `undefined` (info; change\n * likely not needed) and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(causeOrReason, optionsOrParentOrPlace, origin) {\n // @ts-expect-error: the overloads are fine.\n const message = this.message(causeOrReason, optionsOrParentOrPlace, origin)\n\n message.fatal = undefined\n\n return message\n }\n\n /**\n * Create a message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `false` (warning; change may be\n * needed) and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(causeOrReason, optionsOrParentOrPlace, origin) {\n const message = new VFileMessage(\n // @ts-expect-error: the overloads are fine.\n causeOrReason,\n optionsOrParentOrPlace,\n origin\n )\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Serialize the file.\n *\n * > **Note**: which encodings are supported depends on the engine.\n * > For info on Node.js, see:\n * > .\n *\n * @param {string | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Uint8Array`\n * (default: `'utf-8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n if (this.value === undefined) {\n return ''\n }\n\n if (typeof this.value === 'string') {\n return this.value\n }\n\n const decoder = new TextDecoder(encoding || undefined)\n return decoder.decode(this.value)\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {undefined}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is an `Uint8Array`.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Uint8Array}\n * Whether `value` is an `Uint8Array`.\n */\nfunction isUint8Array(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'byteLength' in value &&\n 'byteOffset' in value\n )\n}\n","export const CallableInstance =\n /**\n * @type {new , Result>(property: string | symbol) => (...parameters: Parameters) => Result}\n */\n (\n /** @type {unknown} */\n (\n /**\n * @this {Function}\n * @param {string | symbol} property\n * @returns {(...parameters: Array) => unknown}\n */\n function (property) {\n const self = this\n const constr = self.constructor\n const proto = /** @type {Record} */ (\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n constr.prototype\n )\n const func = proto[property]\n /** @type {(...parameters: Array) => unknown} */\n const apply = function () {\n return func.apply(apply, arguments)\n }\n\n Object.setPrototypeOf(apply, proto)\n\n const names = Object.getOwnPropertyNames(func)\n\n for (const p of names) {\n const descriptor = Object.getOwnPropertyDescriptor(func, p)\n if (descriptor) Object.defineProperty(apply, p, descriptor)\n }\n\n return apply\n }\n )\n )\n","/**\n * @typedef {import('trough').Pipeline} Pipeline\n *\n * @typedef {import('unist').Node} Node\n *\n * @typedef {import('vfile').Compatible} Compatible\n * @typedef {import('vfile').Value} Value\n *\n * @typedef {import('../index.js').CompileResultMap} CompileResultMap\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Settings} Settings\n */\n\n/**\n * @typedef {CompileResultMap[keyof CompileResultMap]} CompileResults\n * Acceptable results from compilers.\n *\n * To register custom results, add them to\n * {@link CompileResultMap `CompileResultMap`}.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * The node that the compiler receives (default: `Node`).\n * @template {CompileResults} [Result=CompileResults]\n * The thing that the compiler yields (default: `CompileResults`).\n * @callback Compiler\n * A **compiler** handles the compiling of a syntax tree to something else\n * (in most cases, text) (TypeScript type).\n *\n * It is used in the stringify phase and called with a {@link Node `Node`}\n * and {@link VFile `VFile`} representation of the document to compile.\n * It should return the textual representation of the given tree (typically\n * `string`).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most compilers\n * > return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n * @param {Tree} tree\n * Tree to compile.\n * @param {VFile} file\n * File associated with `tree`.\n * @returns {Result}\n * New content: compiled text (`string` or `Uint8Array`, for `file.value`) or\n * something else (for `file.result`).\n */\n\n/**\n * @template {Node} [Tree=Node]\n * The node that the parser yields (default: `Node`)\n * @callback Parser\n * A **parser** handles the parsing of text to a syntax tree.\n *\n * It is used in the parse phase and is called with a `string` and\n * {@link VFile `VFile`} of the document to parse.\n * It must return the syntax tree representation of the given file\n * ({@link Node `Node`}).\n * @param {string} document\n * Document to parse.\n * @param {VFile} file\n * File associated with `document`.\n * @returns {Tree}\n * Node representing the given file.\n */\n\n/**\n * @typedef {(\n * Plugin, any, any> |\n * PluginTuple, any, any> |\n * Preset\n * )} Pluggable\n * Union of the different ways to add plugins and settings.\n */\n\n/**\n * @typedef {Array} PluggableList\n * List of plugins and presets.\n */\n\n// Note: we can’t use `callback` yet as it messes up `this`:\n// .\n/**\n * @template {Array} [PluginParameters=[]]\n * Arguments passed to the plugin (default: `[]`, the empty tuple).\n * @template {Node | string | undefined} [Input=Node]\n * Value that is expected as input (default: `Node`).\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node it expects.\n * * If the plugin sets a {@link Parser `Parser`}, this should be\n * `string`.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be the\n * node it expects.\n * @template [Output=Input]\n * Value that is yielded as output (default: `Input`).\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node that that yields.\n * * If the plugin sets a {@link Parser `Parser`}, this should be the\n * node that it yields.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be\n * result it yields.\n * @typedef {(\n * (this: Processor, ...parameters: PluginParameters) =>\n * Input extends string ? // Parser.\n * Output extends Node | undefined ? undefined | void : never :\n * Output extends CompileResults ? // Compiler.\n * Input extends Node | undefined ? undefined | void : never :\n * Transformer<\n * Input extends Node ? Input : Node,\n * Output extends Node ? Output : Node\n * > | undefined | void\n * )} Plugin\n * Single plugin.\n *\n * Plugins configure the processors they are applied on in the following\n * ways:\n *\n * * they change the processor, such as the parser, the compiler, or by\n * configuring data\n * * they specify how to handle trees and files\n *\n * In practice, they are functions that can receive options and configure the\n * processor (`this`).\n *\n * > 👉 **Note**: plugins are called when the processor is *frozen*, not when\n * > they are applied.\n */\n\n/**\n * Tuple of a plugin and its configuration.\n *\n * The first item is a plugin, the rest are its parameters.\n *\n * @template {Array} [TupleParameters=[]]\n * Arguments passed to the plugin (default: `[]`, the empty tuple).\n * @template {Node | string | undefined} [Input=undefined]\n * Value that is expected as input (optional).\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node it expects.\n * * If the plugin sets a {@link Parser `Parser`}, this should be\n * `string`.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be the\n * node it expects.\n * @template [Output=undefined] (optional).\n * Value that is yielded as output.\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node that that yields.\n * * If the plugin sets a {@link Parser `Parser`}, this should be the\n * node that it yields.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be\n * result it yields.\n * @typedef {(\n * [\n * plugin: Plugin,\n * ...parameters: TupleParameters\n * ]\n * )} PluginTuple\n */\n\n/**\n * @typedef Preset\n * Sharable configuration.\n *\n * They can contain plugins and settings.\n * @property {PluggableList | undefined} [plugins]\n * List of plugins and presets (optional).\n * @property {Settings | undefined} [settings]\n * Shared settings for parsers and compilers (optional).\n */\n\n/**\n * @template {VFile} [File=VFile]\n * The file that the callback receives (default: `VFile`).\n * @callback ProcessCallback\n * Callback called when the process is done.\n *\n * Called with either an error or a result.\n * @param {Error | undefined} [error]\n * Fatal error (optional).\n * @param {File | undefined} [file]\n * Processed file (optional).\n * @returns {undefined}\n * Nothing.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * The tree that the callback receives (default: `Node`).\n * @callback RunCallback\n * Callback called when transformers are done.\n *\n * Called with either an error or results.\n * @param {Error | undefined} [error]\n * Fatal error (optional).\n * @param {Tree | undefined} [tree]\n * Transformed tree (optional).\n * @param {VFile | undefined} [file]\n * File (optional).\n * @returns {undefined}\n * Nothing.\n */\n\n/**\n * @template {Node} [Output=Node]\n * Node type that the transformer yields (default: `Node`).\n * @callback TransformCallback\n * Callback passed to transforms.\n *\n * If the signature of a `transformer` accepts a third argument, the\n * transformer may perform asynchronous operations, and must call it.\n * @param {Error | undefined} [error]\n * Fatal error to stop the process (optional).\n * @param {Output | undefined} [tree]\n * New, changed, tree (optional).\n * @param {VFile | undefined} [file]\n * New, changed, file (optional).\n * @returns {undefined}\n * Nothing.\n */\n\n/**\n * @template {Node} [Input=Node]\n * Node type that the transformer expects (default: `Node`).\n * @template {Node} [Output=Input]\n * Node type that the transformer yields (default: `Input`).\n * @callback Transformer\n * Transformers handle syntax trees and files.\n *\n * They are functions that are called each time a syntax tree and file are\n * passed through the run phase.\n * When an error occurs in them (either because it’s thrown, returned,\n * rejected, or passed to `next`), the process stops.\n *\n * The run phase is handled by [`trough`][trough], see its documentation for\n * the exact semantics of these functions.\n *\n * > 👉 **Note**: you should likely ignore `next`: don’t accept it.\n * > it supports callback-style async work.\n * > But promises are likely easier to reason about.\n *\n * [trough]: https://github.com/wooorm/trough#function-fninput-next\n * @param {Input} tree\n * Tree to handle.\n * @param {VFile} file\n * File to handle.\n * @param {TransformCallback} next\n * Callback.\n * @returns {(\n * Promise |\n * Promise | // For some reason this is needed separately.\n * Output |\n * Error |\n * undefined |\n * void\n * )}\n * If you accept `next`, nothing.\n * Otherwise:\n *\n * * `Error` — fatal error to stop the process\n * * `Promise` or `undefined` — the next transformer keeps using\n * same tree\n * * `Promise` or `Node` — new, changed, tree\n */\n\n/**\n * @template {Node | undefined} ParseTree\n * Output of `parse`.\n * @template {Node | undefined} HeadTree\n * Input for `run`.\n * @template {Node | undefined} TailTree\n * Output for `run`.\n * @template {Node | undefined} CompileTree\n * Input of `stringify`.\n * @template {CompileResults | undefined} CompileResult\n * Output of `stringify`.\n * @template {Node | string | undefined} Input\n * Input of plugin.\n * @template Output\n * Output of plugin (optional).\n * @typedef {(\n * Input extends string\n * ? Output extends Node | undefined\n * ? // Parser.\n * Processor<\n * Output extends undefined ? ParseTree : Output,\n * HeadTree,\n * TailTree,\n * CompileTree,\n * CompileResult\n * >\n * : // Unknown.\n * Processor\n * : Output extends CompileResults\n * ? Input extends Node | undefined\n * ? // Compiler.\n * Processor<\n * ParseTree,\n * HeadTree,\n * TailTree,\n * Input extends undefined ? CompileTree : Input,\n * Output extends undefined ? CompileResult : Output\n * >\n * : // Unknown.\n * Processor\n * : Input extends Node | undefined\n * ? Output extends Node | undefined\n * ? // Transform.\n * Processor<\n * ParseTree,\n * HeadTree extends undefined ? Input : HeadTree,\n * Output extends undefined ? TailTree : Output,\n * CompileTree,\n * CompileResult\n * >\n * : // Unknown.\n * Processor\n * : // Unknown.\n * Processor\n * )} UsePlugin\n * Create a processor based on the input/output of a {@link Plugin plugin}.\n */\n\n/**\n * @template {CompileResults | undefined} Result\n * Node type that the transformer yields.\n * @typedef {(\n * Result extends Value | undefined ?\n * VFile :\n * VFile & {result: Result}\n * )} VFileWithOutput\n * Type to generate a {@link VFile `VFile`} corresponding to a compiler result.\n *\n * If a result that is not acceptable on a `VFile` is used, that will\n * be stored on the `result` field of {@link VFile `VFile`}.\n */\n\nimport {bail} from 'bail'\nimport extend from 'extend'\nimport {ok as assert} from 'devlop'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\nimport {CallableInstance} from './callable-instance.js'\n\n// To do: next major: drop `Compiler`, `Parser`: prefer lowercase.\n\n// To do: we could start yielding `never` in TS when a parser is missing and\n// `parse` is called.\n// Currently, we allow directly setting `processor.parser`, which is untyped.\n\nconst own = {}.hasOwnProperty\n\n/**\n * @template {Node | undefined} [ParseTree=undefined]\n * Output of `parse` (optional).\n * @template {Node | undefined} [HeadTree=undefined]\n * Input for `run` (optional).\n * @template {Node | undefined} [TailTree=undefined]\n * Output for `run` (optional).\n * @template {Node | undefined} [CompileTree=undefined]\n * Input of `stringify` (optional).\n * @template {CompileResults | undefined} [CompileResult=undefined]\n * Output of `stringify` (optional).\n * @extends {CallableInstance<[], Processor>}\n */\nexport class Processor extends CallableInstance {\n /**\n * Create a processor.\n */\n constructor() {\n // If `Processor()` is called (w/o new), `copy` is called instead.\n super('copy')\n\n /**\n * Compiler to use (deprecated).\n *\n * @deprecated\n * Use `compiler` instead.\n * @type {(\n * Compiler<\n * CompileTree extends undefined ? Node : CompileTree,\n * CompileResult extends undefined ? CompileResults : CompileResult\n * > |\n * undefined\n * )}\n */\n this.Compiler = undefined\n\n /**\n * Parser to use (deprecated).\n *\n * @deprecated\n * Use `parser` instead.\n * @type {(\n * Parser |\n * undefined\n * )}\n */\n this.Parser = undefined\n\n // Note: the following fields are considered private.\n // However, they are needed for tests, and TSC generates an untyped\n // `private freezeIndex` field for, which trips `type-coverage` up.\n // Instead, we use `@deprecated` to visualize that they shouldn’t be used.\n /**\n * Internal list of configured plugins.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {Array>>}\n */\n this.attachers = []\n\n /**\n * Compiler to use.\n *\n * @type {(\n * Compiler<\n * CompileTree extends undefined ? Node : CompileTree,\n * CompileResult extends undefined ? CompileResults : CompileResult\n * > |\n * undefined\n * )}\n */\n this.compiler = undefined\n\n /**\n * Internal state to track where we are while freezing.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {number}\n */\n this.freezeIndex = -1\n\n /**\n * Internal state to track whether we’re frozen.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {boolean | undefined}\n */\n this.frozen = undefined\n\n /**\n * Internal state.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {Data}\n */\n this.namespace = {}\n\n /**\n * Parser to use.\n *\n * @type {(\n * Parser |\n * undefined\n * )}\n */\n this.parser = undefined\n\n /**\n * Internal list of configured transformers.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {Pipeline}\n */\n this.transformers = trough()\n }\n\n /**\n * Copy a processor.\n *\n * @deprecated\n * This is a private internal method and should not be used.\n * @returns {Processor}\n * New *unfrozen* processor ({@link Processor `Processor`}) that is\n * configured to work the same as its ancestor.\n * When the descendant processor is configured in the future it does not\n * affect the ancestral processor.\n */\n copy() {\n // Cast as the type parameters will be the same after attaching.\n const destination =\n /** @type {Processor} */ (\n new Processor()\n )\n let index = -1\n\n while (++index < this.attachers.length) {\n const attacher = this.attachers[index]\n destination.use(...attacher)\n }\n\n destination.data(extend(true, {}, this.namespace))\n\n return destination\n }\n\n /**\n * Configure the processor with info available to all plugins.\n * Information is stored in an object.\n *\n * Typically, options can be given to a specific plugin, but sometimes it\n * makes sense to have information shared with several plugins.\n * For example, a list of HTML elements that are self-closing, which is\n * needed during all phases.\n *\n * > 👉 **Note**: setting information cannot occur on *frozen* processors.\n * > Call the processor first to create a new unfrozen processor.\n *\n * > 👉 **Note**: to register custom data in TypeScript, augment the\n * > {@link Data `Data`} interface.\n *\n * @example\n * This example show how to get and set info:\n *\n * ```js\n * import {unified} from 'unified'\n *\n * const processor = unified().data('alpha', 'bravo')\n *\n * processor.data('alpha') // => 'bravo'\n *\n * processor.data() // => {alpha: 'bravo'}\n *\n * processor.data({charlie: 'delta'})\n *\n * processor.data() // => {charlie: 'delta'}\n * ```\n *\n * @template {keyof Data} Key\n *\n * @overload\n * @returns {Data}\n *\n * @overload\n * @param {Data} dataset\n * @returns {Processor}\n *\n * @overload\n * @param {Key} key\n * @returns {Data[Key]}\n *\n * @overload\n * @param {Key} key\n * @param {Data[Key]} value\n * @returns {Processor}\n *\n * @param {Data | Key} [key]\n * Key to get or set, or entire dataset to set, or nothing to get the\n * entire dataset (optional).\n * @param {Data[Key]} [value]\n * Value to set (optional).\n * @returns {unknown}\n * The current processor when setting, the value at `key` when getting, or\n * the entire dataset when getting without key.\n */\n data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', this.frozen)\n this.namespace[key] = value\n return this\n }\n\n // Get `key`.\n return (own.call(this.namespace, key) && this.namespace[key]) || undefined\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', this.frozen)\n this.namespace = key\n return this\n }\n\n // Get space.\n return this.namespace\n }\n\n /**\n * Freeze a processor.\n *\n * Frozen processors are meant to be extended and not to be configured\n * directly.\n *\n * When a processor is frozen it cannot be unfrozen.\n * New processors working the same way can be created by calling the\n * processor.\n *\n * It’s possible to freeze processors explicitly by calling `.freeze()`.\n * Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`,\n * `.stringify()`, `.process()`, or `.processSync()` are called.\n *\n * @returns {Processor}\n * The current processor.\n */\n freeze() {\n if (this.frozen) {\n return this\n }\n\n // Cast so that we can type plugins easier.\n // Plugins are supposed to be usable on different processors, not just on\n // this exact processor.\n const self = /** @type {Processor} */ (/** @type {unknown} */ (this))\n\n while (++this.freezeIndex < this.attachers.length) {\n const [attacher, ...options] = this.attachers[this.freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n const transformer = attacher.call(self, ...options)\n\n if (typeof transformer === 'function') {\n this.transformers.use(transformer)\n }\n }\n\n this.frozen = true\n this.freezeIndex = Number.POSITIVE_INFINITY\n\n return this\n }\n\n /**\n * Parse text to a syntax tree.\n *\n * > 👉 **Note**: `parse` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `parse` performs the parse phase, not the run phase or other\n * > phases.\n *\n * @param {Compatible | undefined} [file]\n * file to parse (optional); typically `string` or `VFile`; any value\n * accepted as `x` in `new VFile(x)`.\n * @returns {ParseTree extends undefined ? Node : ParseTree}\n * Syntax tree representing `file`.\n */\n parse(file) {\n this.freeze()\n const realFile = vfile(file)\n const parser = this.parser || this.Parser\n assertParser('parse', parser)\n return parser(String(realFile), realFile)\n }\n\n /**\n * Process the given file as configured on the processor.\n *\n * > 👉 **Note**: `process` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `process` performs the parse, run, and stringify phases.\n *\n * @overload\n * @param {Compatible | undefined} file\n * @param {ProcessCallback>} done\n * @returns {undefined}\n *\n * @overload\n * @param {Compatible | undefined} [file]\n * @returns {Promise>}\n *\n * @param {Compatible | undefined} [file]\n * File (optional); typically `string` or `VFile`]; any value accepted as\n * `x` in `new VFile(x)`.\n * @param {ProcessCallback> | undefined} [done]\n * Callback (optional).\n * @returns {Promise | undefined}\n * Nothing if `done` is given.\n * Otherwise a promise, rejected with a fatal error or resolved with the\n * processed file.\n *\n * The parsed, transformed, and compiled value is available at\n * `file.value` (see note).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most\n * > compilers return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n */\n process(file, done) {\n const self = this\n\n this.freeze()\n assertParser('process', this.parser || this.Parser)\n assertCompiler('process', this.compiler || this.Compiler)\n\n return done ? executor(undefined, done) : new Promise(executor)\n\n // Note: `void`s needed for TS.\n /**\n * @param {((file: VFileWithOutput) => undefined | void) | undefined} resolve\n * @param {(error: Error | undefined) => undefined | void} reject\n * @returns {undefined}\n */\n function executor(resolve, reject) {\n const realFile = vfile(file)\n // Assume `ParseTree` (the result of the parser) matches `HeadTree` (the\n // input of the first transform).\n const parseTree =\n /** @type {HeadTree extends undefined ? Node : HeadTree} */ (\n /** @type {unknown} */ (self.parse(realFile))\n )\n\n self.run(parseTree, realFile, function (error, tree, file) {\n if (error || !tree || !file) {\n return realDone(error)\n }\n\n // Assume `TailTree` (the output of the last transform) matches\n // `CompileTree` (the input of the compiler).\n const compileTree =\n /** @type {CompileTree extends undefined ? Node : CompileTree} */ (\n /** @type {unknown} */ (tree)\n )\n\n const compileResult = self.stringify(compileTree, file)\n\n if (looksLikeAValue(compileResult)) {\n file.value = compileResult\n } else {\n file.result = compileResult\n }\n\n realDone(error, /** @type {VFileWithOutput} */ (file))\n })\n\n /**\n * @param {Error | undefined} error\n * @param {VFileWithOutput | undefined} [file]\n * @returns {undefined}\n */\n function realDone(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n assert(done, '`done` is defined if `resolve` is not')\n done(undefined, file)\n }\n }\n }\n }\n\n /**\n * Process the given file as configured on the processor.\n *\n * An error is thrown if asynchronous transforms are configured.\n *\n * > 👉 **Note**: `processSync` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `processSync` performs the parse, run, and stringify phases.\n *\n * @param {Compatible | undefined} [file]\n * File (optional); typically `string` or `VFile`; any value accepted as\n * `x` in `new VFile(x)`.\n * @returns {VFileWithOutput}\n * The processed file.\n *\n * The parsed, transformed, and compiled value is available at\n * `file.value` (see note).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most\n * > compilers return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n */\n processSync(file) {\n /** @type {boolean} */\n let complete = false\n /** @type {VFileWithOutput | undefined} */\n let result\n\n this.freeze()\n assertParser('processSync', this.parser || this.Parser)\n assertCompiler('processSync', this.compiler || this.Compiler)\n\n this.process(file, realDone)\n assertDone('processSync', 'process', complete)\n assert(result, 'we either bailed on an error or have a tree')\n\n return result\n\n /**\n * @type {ProcessCallback>}\n */\n function realDone(error, file) {\n complete = true\n bail(error)\n result = file\n }\n }\n\n /**\n * Run *transformers* on a syntax tree.\n *\n * > 👉 **Note**: `run` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `run` performs the run phase, not other phases.\n *\n * @overload\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * @param {RunCallback} done\n * @returns {undefined}\n *\n * @overload\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * @param {Compatible | undefined} file\n * @param {RunCallback} done\n * @returns {undefined}\n *\n * @overload\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * @param {Compatible | undefined} [file]\n * @returns {Promise}\n *\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * Tree to transform and inspect.\n * @param {(\n * RunCallback |\n * Compatible\n * )} [file]\n * File associated with `node` (optional); any value accepted as `x` in\n * `new VFile(x)`.\n * @param {RunCallback} [done]\n * Callback (optional).\n * @returns {Promise | undefined}\n * Nothing if `done` is given.\n * Otherwise, a promise rejected with a fatal error or resolved with the\n * transformed tree.\n */\n run(tree, file, done) {\n assertNode(tree)\n this.freeze()\n\n const transformers = this.transformers\n\n if (!done && typeof file === 'function') {\n done = file\n file = undefined\n }\n\n return done ? executor(undefined, done) : new Promise(executor)\n\n // Note: `void`s needed for TS.\n /**\n * @param {(\n * ((tree: TailTree extends undefined ? Node : TailTree) => undefined | void) |\n * undefined\n * )} resolve\n * @param {(error: Error) => undefined | void} reject\n * @returns {undefined}\n */\n function executor(resolve, reject) {\n assert(\n typeof file !== 'function',\n '`file` can’t be a `done` anymore, we checked'\n )\n const realFile = vfile(file)\n transformers.run(tree, realFile, realDone)\n\n /**\n * @param {Error | undefined} error\n * @param {Node} outputTree\n * @param {VFile} file\n * @returns {undefined}\n */\n function realDone(error, outputTree, file) {\n const resultingTree =\n /** @type {TailTree extends undefined ? Node : TailTree} */ (\n outputTree || tree\n )\n\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(resultingTree)\n } else {\n assert(done, '`done` is defined if `resolve` is not')\n done(undefined, resultingTree, file)\n }\n }\n }\n }\n\n /**\n * Run *transformers* on a syntax tree.\n *\n * An error is thrown if asynchronous transforms are configured.\n *\n * > 👉 **Note**: `runSync` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `runSync` performs the run phase, not other phases.\n *\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * Tree to transform and inspect.\n * @param {Compatible | undefined} [file]\n * File associated with `node` (optional); any value accepted as `x` in\n * `new VFile(x)`.\n * @returns {TailTree extends undefined ? Node : TailTree}\n * Transformed tree.\n */\n runSync(tree, file) {\n /** @type {boolean} */\n let complete = false\n /** @type {(TailTree extends undefined ? Node : TailTree) | undefined} */\n let result\n\n this.run(tree, file, realDone)\n\n assertDone('runSync', 'run', complete)\n assert(result, 'we either bailed on an error or have a tree')\n return result\n\n /**\n * @type {RunCallback}\n */\n function realDone(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * Compile a syntax tree.\n *\n * > 👉 **Note**: `stringify` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `stringify` performs the stringify phase, not the run phase\n * > or other phases.\n *\n * @param {CompileTree extends undefined ? Node : CompileTree} tree\n * Tree to compile.\n * @param {Compatible | undefined} [file]\n * File associated with `node` (optional); any value accepted as `x` in\n * `new VFile(x)`.\n * @returns {CompileResult extends undefined ? Value : CompileResult}\n * Textual representation of the tree (see note).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most compilers\n * > return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n */\n stringify(tree, file) {\n this.freeze()\n const realFile = vfile(file)\n const compiler = this.compiler || this.Compiler\n assertCompiler('stringify', compiler)\n assertNode(tree)\n\n return compiler(tree, realFile)\n }\n\n /**\n * Configure the processor to use a plugin, a list of usable values, or a\n * preset.\n *\n * If the processor is already using a plugin, the previous plugin\n * configuration is changed based on the options that are passed in.\n * In other words, the plugin is not added a second time.\n *\n * > 👉 **Note**: `use` cannot be called on *frozen* processors.\n * > Call the processor first to create a new unfrozen processor.\n *\n * @example\n * There are many ways to pass plugins to `.use()`.\n * This example gives an overview:\n *\n * ```js\n * import {unified} from 'unified'\n *\n * unified()\n * // Plugin with options:\n * .use(pluginA, {x: true, y: true})\n * // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`):\n * .use(pluginA, {y: false, z: true})\n * // Plugins:\n * .use([pluginB, pluginC])\n * // Two plugins, the second with options:\n * .use([pluginD, [pluginE, {}]])\n * // Preset with plugins and settings:\n * .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}})\n * // Settings only:\n * .use({settings: {position: false}})\n * ```\n *\n * @template {Array} [Parameters=[]]\n * @template {Node | string | undefined} [Input=undefined]\n * @template [Output=Input]\n *\n * @overload\n * @param {Preset | null | undefined} [preset]\n * @returns {Processor}\n *\n * @overload\n * @param {PluggableList} list\n * @returns {Processor}\n *\n * @overload\n * @param {Plugin} plugin\n * @param {...(Parameters | [boolean])} parameters\n * @returns {UsePlugin}\n *\n * @param {PluggableList | Plugin | Preset | null | undefined} value\n * Usable value.\n * @param {...unknown} parameters\n * Parameters, when a plugin is given as a usable value.\n * @returns {Processor}\n * Current processor.\n */\n use(value, ...parameters) {\n const attachers = this.attachers\n const namespace = this.namespace\n\n assertUnfrozen('use', this.frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, parameters)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n return this\n\n /**\n * @param {Pluggable} value\n * @returns {undefined}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value, [])\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...parameters] =\n /** @type {PluginTuple>} */ (value)\n addPlugin(plugin, parameters)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {undefined}\n */\n function addPreset(result) {\n if (!('plugins' in result) && !('settings' in result)) {\n throw new Error(\n 'Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither'\n )\n }\n\n addList(result.plugins)\n\n if (result.settings) {\n namespace.settings = extend(true, namespace.settings, result.settings)\n }\n }\n\n /**\n * @param {PluggableList | null | undefined} plugins\n * @returns {undefined}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {Array} parameters\n * @returns {undefined}\n */\n function addPlugin(plugin, parameters) {\n let index = -1\n let entryIndex = -1\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entryIndex = index\n break\n }\n }\n\n if (entryIndex === -1) {\n attachers.push([plugin, ...parameters])\n }\n // Only set if there was at least a `primary` value, otherwise we’d change\n // `arguments.length`.\n else if (parameters.length > 0) {\n let [primary, ...rest] = parameters\n const currentPrimary = attachers[entryIndex][1]\n if (isPlainObj(currentPrimary) && isPlainObj(primary)) {\n primary = extend(true, currentPrimary, primary)\n }\n\n attachers[entryIndex] = [plugin, primary, ...rest]\n }\n }\n }\n}\n\n// Note: this returns a *callable* instance.\n// That’s why it’s documented as a function.\n/**\n * Create a new processor.\n *\n * @example\n * This example shows how a new processor can be created (from `remark`) and linked\n * to **stdin**(4) and **stdout**(4).\n *\n * ```js\n * import process from 'node:process'\n * import concatStream from 'concat-stream'\n * import {remark} from 'remark'\n *\n * process.stdin.pipe(\n * concatStream(function (buf) {\n * process.stdout.write(String(remark().processSync(buf)))\n * })\n * )\n * ```\n *\n * @returns\n * New *unfrozen* processor (`processor`).\n *\n * This processor is configured to work the same as its ancestor.\n * When the descendant processor is configured in the future it does not\n * affect the ancestral processor.\n */\nexport const unified = new Processor().freeze()\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {Compatible | undefined} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {Compatible | undefined} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is Value}\n */\nfunction looksLikeAValue(value) {\n return typeof value === 'string' || isUint8Array(value)\n}\n\n/**\n * Assert `value` is an `Uint8Array`.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Uint8Array}\n * Whether `value` is an `Uint8Array`.\n */\nfunction isUint8Array(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'byteLength' in value &&\n 'byteOffset' in value\n )\n}\n","/**\n * @import {Element, Nodes, Parents, Root} from 'hast'\n * @import {Root as MdastRoot} from 'mdast'\n * @import {ComponentType, JSX, ReactElement, ReactNode} from 'react'\n * @import {Options as RemarkRehypeOptions} from 'remark-rehype'\n * @import {BuildVisitor} from 'unist-util-visit'\n * @import {PluggableList, Processor} from 'unified'\n */\n\n/**\n * @callback AllowElement\n * Filter elements.\n * @param {Readonly} element\n * Element to check.\n * @param {number} index\n * Index of `element` in `parent`.\n * @param {Readonly | undefined} parent\n * Parent of `element`.\n * @returns {boolean | null | undefined}\n * Whether to allow `element` (default: `false`).\n */\n\n/**\n * @typedef ExtraProps\n * Extra fields we pass.\n * @property {Element | undefined} [node]\n * passed when `passNode` is on.\n */\n\n/**\n * @typedef {{\n * [Key in keyof JSX.IntrinsicElements]?: ComponentType | keyof JSX.IntrinsicElements\n * }} Components\n * Map tag names to components.\n */\n\n/**\n * @typedef Deprecation\n * Deprecation.\n * @property {string} from\n * Old field.\n * @property {string} id\n * ID in readme.\n * @property {keyof Options} [to]\n * New field.\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {AllowElement | null | undefined} [allowElement]\n * Filter elements (optional);\n * `allowedElements` / `disallowedElements` is used first.\n * @property {ReadonlyArray | null | undefined} [allowedElements]\n * Tag names to allow (default: all tag names);\n * cannot combine w/ `disallowedElements`.\n * @property {string | null | undefined} [children]\n * Markdown.\n * @property {Components | null | undefined} [components]\n * Map tag names to components.\n * @property {ReadonlyArray | null | undefined} [disallowedElements]\n * Tag names to disallow (default: `[]`);\n * cannot combine w/ `allowedElements`.\n * @property {PluggableList | null | undefined} [rehypePlugins]\n * List of rehype plugins to use.\n * @property {PluggableList | null | undefined} [remarkPlugins]\n * List of remark plugins to use.\n * @property {Readonly | null | undefined} [remarkRehypeOptions]\n * Options to pass through to `remark-rehype`.\n * @property {boolean | null | undefined} [skipHtml=false]\n * Ignore HTML in markdown completely (default: `false`).\n * @property {boolean | null | undefined} [unwrapDisallowed=false]\n * Extract (unwrap) what’s in disallowed elements (default: `false`);\n * normally when say `strong` is not allowed, it and it’s children are dropped,\n * with `unwrapDisallowed` the element itself is replaced by its children.\n * @property {UrlTransform | null | undefined} [urlTransform]\n * Change URLs (default: `defaultUrlTransform`)\n */\n\n/**\n * @typedef HooksOptionsOnly\n * Configuration specifically for {@linkcode MarkdownHooks}.\n * @property {ReactNode | null | undefined} [fallback]\n * Content to render while the processor processing the markdown (optional).\n */\n\n/**\n * @typedef {Options & HooksOptionsOnly} HooksOptions\n * Configuration for {@linkcode MarkdownHooks};\n * extends the regular {@linkcode Options} with a `fallback` prop.\n */\n\n/**\n * @callback UrlTransform\n * Transform all URLs.\n * @param {string} url\n * URL.\n * @param {string} key\n * Property name (example: `'href'`).\n * @param {Readonly} node\n * Node.\n * @returns {string | null | undefined}\n * Transformed URL (optional).\n */\n\nimport {unreachable} from 'devlop'\nimport {toJsxRuntime} from 'hast-util-to-jsx-runtime'\nimport {urlAttributes} from 'html-url-attributes'\nimport {Fragment, jsx, jsxs} from 'react/jsx-runtime'\nimport {useEffect, useState} from 'react'\nimport remarkParse from 'remark-parse'\nimport remarkRehype from 'remark-rehype'\nimport {unified} from 'unified'\nimport {visit} from 'unist-util-visit'\nimport {VFile} from 'vfile'\n\nconst changelog =\n 'https://github.com/remarkjs/react-markdown/blob/main/changelog.md'\n\n/** @type {PluggableList} */\nconst emptyPlugins = []\n/** @type {Readonly} */\nconst emptyRemarkRehypeOptions = {allowDangerousHtml: true}\nconst safeProtocol = /^(https?|ircs?|mailto|xmpp)$/i\n\n// Mutable because we `delete` any time it’s used and a message is sent.\n/** @type {ReadonlyArray>} */\nconst deprecations = [\n {from: 'astPlugins', id: 'remove-buggy-html-in-markdown-parser'},\n {from: 'allowDangerousHtml', id: 'remove-buggy-html-in-markdown-parser'},\n {\n from: 'allowNode',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'allowElement'\n },\n {\n from: 'allowedTypes',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'allowedElements'\n },\n {from: 'className', id: 'remove-classname'},\n {\n from: 'disallowedTypes',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'disallowedElements'\n },\n {from: 'escapeHtml', id: 'remove-buggy-html-in-markdown-parser'},\n {from: 'includeElementIndex', id: '#remove-includeelementindex'},\n {\n from: 'includeNodeIndex',\n id: 'change-includenodeindex-to-includeelementindex'\n },\n {from: 'linkTarget', id: 'remove-linktarget'},\n {from: 'plugins', id: 'change-plugins-to-remarkplugins', to: 'remarkPlugins'},\n {from: 'rawSourcePos', id: '#remove-rawsourcepos'},\n {from: 'renderers', id: 'change-renderers-to-components', to: 'components'},\n {from: 'source', id: 'change-source-to-children', to: 'children'},\n {from: 'sourcePos', id: '#remove-sourcepos'},\n {from: 'transformImageUri', id: '#add-urltransform', to: 'urlTransform'},\n {from: 'transformLinkUri', id: '#add-urltransform', to: 'urlTransform'}\n]\n\n/**\n * Component to render markdown.\n *\n * This is a synchronous component.\n * When using async plugins,\n * see {@linkcode MarkdownAsync} or {@linkcode MarkdownHooks}.\n *\n * @param {Readonly} options\n * Props.\n * @returns {ReactElement}\n * React element.\n */\nexport function Markdown(options) {\n const processor = createProcessor(options)\n const file = createFile(options)\n return post(processor.runSync(processor.parse(file), file), options)\n}\n\n/**\n * Component to render markdown with support for async plugins\n * through async/await.\n *\n * Components returning promises are supported on the server.\n * For async support on the client,\n * see {@linkcode MarkdownHooks}.\n *\n * @param {Readonly} options\n * Props.\n * @returns {Promise}\n * Promise to a React element.\n */\nexport async function MarkdownAsync(options) {\n const processor = createProcessor(options)\n const file = createFile(options)\n const tree = await processor.run(processor.parse(file), file)\n return post(tree, options)\n}\n\n/**\n * Component to render markdown with support for async plugins through hooks.\n *\n * This uses `useEffect` and `useState` hooks.\n * Hooks run on the client and do not immediately render something.\n * For async support on the server,\n * see {@linkcode MarkdownAsync}.\n *\n * @param {Readonly} options\n * Props.\n * @returns {ReactNode}\n * React node.\n */\nexport function MarkdownHooks(options) {\n const processor = createProcessor(options)\n const [error, setError] = useState(\n /** @type {Error | undefined} */ (undefined)\n )\n const [tree, setTree] = useState(/** @type {Root | undefined} */ (undefined))\n\n useEffect(\n function () {\n let cancelled = false\n const file = createFile(options)\n\n processor.run(processor.parse(file), file, function (error, tree) {\n if (!cancelled) {\n setError(error)\n setTree(tree)\n }\n })\n\n /**\n * @returns {undefined}\n * Nothing.\n */\n return function () {\n cancelled = true\n }\n },\n [\n options.children,\n options.rehypePlugins,\n options.remarkPlugins,\n options.remarkRehypeOptions\n ]\n )\n\n if (error) throw error\n\n return tree ? post(tree, options) : options.fallback\n}\n\n/**\n * Set up the `unified` processor.\n *\n * @param {Readonly} options\n * Props.\n * @returns {Processor}\n * Result.\n */\nfunction createProcessor(options) {\n const rehypePlugins = options.rehypePlugins || emptyPlugins\n const remarkPlugins = options.remarkPlugins || emptyPlugins\n const remarkRehypeOptions = options.remarkRehypeOptions\n ? {...options.remarkRehypeOptions, ...emptyRemarkRehypeOptions}\n : emptyRemarkRehypeOptions\n\n const processor = unified()\n .use(remarkParse)\n .use(remarkPlugins)\n .use(remarkRehype, remarkRehypeOptions)\n .use(rehypePlugins)\n\n return processor\n}\n\n/**\n * Set up the virtual file.\n *\n * @param {Readonly} options\n * Props.\n * @returns {VFile}\n * Result.\n */\nfunction createFile(options) {\n const children = options.children || ''\n const file = new VFile()\n\n if (typeof children === 'string') {\n file.value = children\n } else {\n unreachable(\n 'Unexpected value `' +\n children +\n '` for `children` prop, expected `string`'\n )\n }\n\n return file\n}\n\n/**\n * Process the result from unified some more.\n *\n * @param {Nodes} tree\n * Tree.\n * @param {Readonly} options\n * Props.\n * @returns {ReactElement}\n * React element.\n */\nfunction post(tree, options) {\n const allowedElements = options.allowedElements\n const allowElement = options.allowElement\n const components = options.components\n const disallowedElements = options.disallowedElements\n const skipHtml = options.skipHtml\n const unwrapDisallowed = options.unwrapDisallowed\n const urlTransform = options.urlTransform || defaultUrlTransform\n\n for (const deprecation of deprecations) {\n if (Object.hasOwn(options, deprecation.from)) {\n unreachable(\n 'Unexpected `' +\n deprecation.from +\n '` prop, ' +\n (deprecation.to\n ? 'use `' + deprecation.to + '` instead'\n : 'remove it') +\n ' (see <' +\n changelog +\n '#' +\n deprecation.id +\n '> for more info)'\n )\n }\n }\n\n if (allowedElements && disallowedElements) {\n unreachable(\n 'Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other'\n )\n }\n\n visit(tree, transform)\n\n return toJsxRuntime(tree, {\n Fragment,\n components,\n ignoreInvalidStyle: true,\n jsx,\n jsxs,\n passKeys: true,\n passNode: true\n })\n\n /** @type {BuildVisitor} */\n function transform(node, index, parent) {\n if (node.type === 'raw' && parent && typeof index === 'number') {\n if (skipHtml) {\n parent.children.splice(index, 1)\n } else {\n parent.children[index] = {type: 'text', value: node.value}\n }\n\n return index\n }\n\n if (node.type === 'element') {\n /** @type {string} */\n let key\n\n for (key in urlAttributes) {\n if (\n Object.hasOwn(urlAttributes, key) &&\n Object.hasOwn(node.properties, key)\n ) {\n const value = node.properties[key]\n const test = urlAttributes[key]\n if (test === null || test.includes(node.tagName)) {\n node.properties[key] = urlTransform(String(value || ''), key, node)\n }\n }\n }\n }\n\n if (node.type === 'element') {\n let remove = allowedElements\n ? !allowedElements.includes(node.tagName)\n : disallowedElements\n ? disallowedElements.includes(node.tagName)\n : false\n\n if (!remove && allowElement && typeof index === 'number') {\n remove = !allowElement(node, index, parent)\n }\n\n if (remove && parent && typeof index === 'number') {\n if (unwrapDisallowed && node.children) {\n parent.children.splice(index, 1, ...node.children)\n } else {\n parent.children.splice(index, 1)\n }\n\n return index\n }\n }\n }\n}\n\n/**\n * Make a URL safe.\n *\n * @satisfies {UrlTransform}\n * @param {string} value\n * URL.\n * @returns {string}\n * Safe URL.\n */\nexport function defaultUrlTransform(value) {\n // Same as:\n // \n // But without the `encode` part.\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n\n if (\n // If there is no protocol, it’s relative.\n colon === -1 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash !== -1 && colon > slash) ||\n (questionMark !== -1 && colon > questionMark) ||\n (numberSign !== -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n safeProtocol.test(value.slice(0, colon))\n ) {\n return value\n }\n\n return ''\n}\n","/**\n * @typedef {import('unist').Node} UnistNode\n * @typedef {import('unist').Parent} UnistParent\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * @typedef {Exclude | undefined} Test\n * Test from `unist-util-is`.\n *\n * Note: we have remove and add `undefined`, because otherwise when generating\n * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,\n * which doesn’t work when publishing on npm.\n */\n\n// To do: use types from `unist-util-visit-parents` when it’s released.\n\n/**\n * @typedef {(\n * Fn extends (value: any) => value is infer Thing\n * ? Thing\n * : Fallback\n * )} Predicate\n * Get the value of a type guard `Fn`.\n * @template Fn\n * Value; typically function that is a type guard (such as `(x): x is Y`).\n * @template Fallback\n * Value to yield if `Fn` is not a type guard.\n */\n\n/**\n * @typedef {(\n * Check extends null | undefined // No test.\n * ? Value\n * : Value extends {type: Check} // String (type) test.\n * ? Value\n * : Value extends Check // Partial test.\n * ? Value\n * : Check extends Function // Function test.\n * ? Predicate extends Value\n * ? Predicate\n * : never\n * : never // Some other test?\n * )} MatchesOne\n * Check whether a node matches a primitive check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test, but not arrays.\n */\n\n/**\n * @typedef {(\n * Check extends Array\n * ? MatchesOne\n * : MatchesOne\n * )} Matches\n * Check whether a node matches a check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test.\n */\n\n/**\n * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint\n * Number; capped reasonably.\n */\n\n/**\n * @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment\n * Increment a number in the type system.\n * @template {Uint} [I=0]\n * Index.\n */\n\n/**\n * @typedef {(\n * Node extends UnistParent\n * ? Node extends {children: Array}\n * ? Child extends Children ? Node : never\n * : never\n * : never\n * )} InternalParent\n * Collect nodes that can be parents of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {InternalParent, Child>} Parent\n * Collect nodes in `Tree` that can be parents of `Child`.\n * @template {UnistNode} Tree\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {(\n * Depth extends Max\n * ? never\n * :\n * | InternalParent\n * | InternalAncestor, Max, Increment>\n * )} InternalAncestor\n * Collect nodes in `Tree` that can be ancestors of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @typedef {(\n * Tree extends UnistParent\n * ? Depth extends Max\n * ? Tree\n * : Tree | InclusiveDescendant>\n * : Tree\n * )} InclusiveDescendant\n * Collect all (inclusive) descendants of `Tree`.\n *\n * > 👉 **Note**: for performance reasons, this seems to be the fastest way to\n * > recurse without actually running into an infinite loop, which the\n * > previous version did.\n * >\n * > Practically, a max of `2` is typically enough assuming a `Root` is\n * > passed, but it doesn’t improve performance.\n * > It gets higher with `List > ListItem > Table > TableRow > TableCell`.\n * > Using up to `10` doesn’t hurt or help either.\n * @template {UnistNode} Tree\n * Tree type.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform `parent`.\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of `parent` still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Visited extends UnistNode ? number | undefined : never} index\n * Index of `node` in `parent`.\n * @param {Ancestor extends UnistParent ? Ancestor | undefined : never} parent\n * Parent of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n * @template {UnistNode} [Visited=UnistNode]\n * Visited node type.\n * @template {UnistParent} [Ancestor=UnistParent]\n * Ancestor type.\n */\n\n/**\n * @typedef {Visitor>} BuildVisitorFromMatch\n * Build a typed `Visitor` function from a node and all possible parents.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} Visited\n * Node type.\n * @template {UnistParent} Ancestor\n * Parent type.\n */\n\n/**\n * @typedef {(\n * BuildVisitorFromMatch<\n * Matches,\n * Extract\n * >\n * )} BuildVisitorFromDescendants\n * Build a typed `Visitor` function from a list of descendants and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} Descendant\n * Node type.\n * @template {Test} Check\n * Test type.\n */\n\n/**\n * @typedef {(\n * BuildVisitorFromDescendants<\n * InclusiveDescendant,\n * Check\n * >\n * )} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parent`.\n * @template {UnistNode} [Tree=UnistNode]\n * Node type.\n * @template {Test} [Check=Test]\n * Test type.\n */\n\nimport {visitParents} from 'unist-util-visit-parents'\n\nexport {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'\n\n/**\n * Visit nodes.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @overload\n * @param {Tree} tree\n * @param {Check} check\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @overload\n * @param {Tree} tree\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @param {UnistNode} tree\n * Tree to traverse.\n * @param {Visitor | Test} testOrVisitor\n * `unist-util-is`-compatible test (optional, omit to pass a visitor).\n * @param {Visitor | boolean | null | undefined} [visitorOrReverse]\n * Handle each node (when test is omitted, pass `reverse`).\n * @param {boolean | null | undefined} [maybeReverse=false]\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns {undefined}\n * Nothing.\n *\n * @template {UnistNode} Tree\n * Node type.\n * @template {Test} Check\n * `unist-util-is`-compatible test.\n */\nexport function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {\n /** @type {boolean | null | undefined} */\n let reverse\n /** @type {Test} */\n let test\n /** @type {Visitor} */\n let visitor\n\n if (\n typeof testOrVisitor === 'function' &&\n typeof visitorOrReverse !== 'function'\n ) {\n test = undefined\n visitor = testOrVisitor\n reverse = visitorOrReverse\n } else {\n // @ts-expect-error: assume the overload with test was given.\n test = testOrVisitor\n // @ts-expect-error: assume the overload with test was given.\n visitor = visitorOrReverse\n reverse = maybeReverse\n }\n\n visitParents(tree, test, overload, reverse)\n\n /**\n * @param {UnistNode} node\n * @param {Array} parents\n */\n function overload(node, parents) {\n const parent = parents[parents.length - 1]\n const index = parent ? parent.children.indexOf(node) : undefined\n return visitor(node, index, parent)\n }\n}\n","/**\n * Normalize an identifier (as found in references, definitions).\n *\n * Collapses markdown whitespace, trim, and then lower- and uppercase.\n *\n * Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their\n * lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different\n * uppercase character (U+0398 (`Θ`)).\n * So, to get a canonical form, we perform both lower- and uppercase.\n *\n * Using uppercase last makes sure keys will never interact with default\n * prototypal values (such as `constructor`): nothing in the prototype of\n * `Object` is uppercase.\n *\n * @param {string} value\n * Identifier to normalize.\n * @returns {string}\n * Normalized identifier.\n */\nexport function normalizeIdentifier(value) {\n return (\n value\n // Collapse markdown whitespace.\n .replace(/[\\t\\n\\r ]+/g, ' ')\n // Trim.\n .replace(/^ | $/g, '')\n // Some characters are considered “uppercase”, but if their lowercase\n // counterpart is uppercased will result in a different uppercase\n // character.\n // Hence, to get that form, we perform both lower- and uppercase.\n // Upper case makes sure keys will not interact with default prototypal\n // methods: no method is uppercase.\n .toLowerCase()\n .toUpperCase()\n )\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Parent} Parent\n */\n\n/**\n * @template Fn\n * @template Fallback\n * @typedef {Fn extends (value: any) => value is infer Thing ? Thing : Fallback} Predicate\n */\n\n/**\n * @callback Check\n * Check that an arbitrary value is a node.\n * @param {unknown} this\n * The given context.\n * @param {unknown} [node]\n * Anything (typically a node).\n * @param {number | null | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | null | undefined} [parent]\n * The node’s parent.\n * @returns {boolean}\n * Whether this is a node and passes a test.\n *\n * @typedef {Record | Node} Props\n * Object to check for equivalence.\n *\n * Note: `Node` is included as it is common but is not indexable.\n *\n * @typedef {Array | Props | TestFunction | string | null | undefined} Test\n * Check for an arbitrary node.\n *\n * @callback TestFunction\n * Check if a node passes a test.\n * @param {unknown} this\n * The given context.\n * @param {Node} node\n * A node.\n * @param {number | undefined} [index]\n * The node’s position in its parent.\n * @param {Parent | undefined} [parent]\n * The node’s parent.\n * @returns {boolean | undefined | void}\n * Whether this node passes the test.\n *\n * Note: `void` is included until TS sees no return as `undefined`.\n */\n\n/**\n * Check if `node` is a `Node` and whether it passes the given test.\n *\n * @param {unknown} node\n * Thing to check, typically `Node`.\n * @param {Test} test\n * A check for a specific node.\n * @param {number | null | undefined} index\n * The node’s position in its parent.\n * @param {Parent | null | undefined} parent\n * The node’s parent.\n * @param {unknown} context\n * Context object (`this`) to pass to `test` functions.\n * @returns {boolean}\n * Whether `node` is a node and passes a test.\n */\nexport const is =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &\n * ((node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate) &\n * ((node?: null | undefined) => false) &\n * ((node: unknown, test?: null | undefined, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &\n * ((node: unknown, test?: Test, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => boolean)\n * )}\n */\n (\n /**\n * @param {unknown} [node]\n * @param {Test} [test]\n * @param {number | null | undefined} [index]\n * @param {Parent | null | undefined} [parent]\n * @param {unknown} [context]\n * @returns {boolean}\n */\n // eslint-disable-next-line max-params\n function (node, test, index, parent, context) {\n const check = convert(test)\n\n if (\n index !== undefined &&\n index !== null &&\n (typeof index !== 'number' ||\n index < 0 ||\n index === Number.POSITIVE_INFINITY)\n ) {\n throw new Error('Expected positive finite index')\n }\n\n if (\n parent !== undefined &&\n parent !== null &&\n (!is(parent) || !parent.children)\n ) {\n throw new Error('Expected parent node')\n }\n\n if (\n (parent === undefined || parent === null) !==\n (index === undefined || index === null)\n ) {\n throw new Error('Expected both parent and index')\n }\n\n return looksLikeANode(node)\n ? check.call(context, node, index, parent)\n : false\n }\n )\n\n/**\n * Generate an assertion from a test.\n *\n * Useful if you’re going to test many nodes, for example when creating a\n * utility where something else passes a compatible test.\n *\n * The created function is a bit faster because it expects valid input only:\n * a `node`, `index`, and `parent`.\n *\n * @param {Test} test\n * * when nullish, checks if `node` is a `Node`.\n * * when `string`, works like passing `(node) => node.type === test`.\n * * when `function` checks if function passed the node is true.\n * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.\n * * when `array`, checks if any one of the subtests pass.\n * @returns {Check}\n * An assertion.\n */\nexport const convert =\n // Note: overloads in JSDoc can’t yet use different `@template`s.\n /**\n * @type {(\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &\n * ((test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate) &\n * ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &\n * ((test?: Test) => Check)\n * )}\n */\n (\n /**\n * @param {Test} [test]\n * @returns {Check}\n */\n function (test) {\n if (test === null || test === undefined) {\n return ok\n }\n\n if (typeof test === 'function') {\n return castFactory(test)\n }\n\n if (typeof test === 'object') {\n return Array.isArray(test) ? anyFactory(test) : propsFactory(test)\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n throw new Error('Expected function, string, or object as test')\n }\n )\n\n/**\n * @param {Array} tests\n * @returns {Check}\n */\nfunction anyFactory(tests) {\n /** @type {Array} */\n const checks = []\n let index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return castFactory(any)\n\n /**\n * @this {unknown}\n * @type {TestFunction}\n */\n function any(...parameters) {\n let index = -1\n\n while (++index < checks.length) {\n if (checks[index].apply(this, parameters)) return true\n }\n\n return false\n }\n}\n\n/**\n * Turn an object into a test for a node with a certain fields.\n *\n * @param {Props} check\n * @returns {Check}\n */\nfunction propsFactory(check) {\n const checkAsRecord = /** @type {Record} */ (check)\n\n return castFactory(all)\n\n /**\n * @param {Node} node\n * @returns {boolean}\n */\n function all(node) {\n const nodeAsRecord = /** @type {Record} */ (\n /** @type {unknown} */ (node)\n )\n\n /** @type {string} */\n let key\n\n for (key in check) {\n if (nodeAsRecord[key] !== checkAsRecord[key]) return false\n }\n\n return true\n }\n}\n\n/**\n * Turn a string into a test for a node with a certain type.\n *\n * @param {string} check\n * @returns {Check}\n */\nfunction typeFactory(check) {\n return castFactory(type)\n\n /**\n * @param {Node} node\n */\n function type(node) {\n return node && node.type === check\n }\n}\n\n/**\n * Turn a custom test into a test for a node that passes that test.\n *\n * @param {TestFunction} testFunction\n * @returns {Check}\n */\nfunction castFactory(testFunction) {\n return check\n\n /**\n * @this {unknown}\n * @type {Check}\n */\n function check(value, index, parent) {\n return Boolean(\n looksLikeANode(value) &&\n testFunction.call(\n this,\n value,\n typeof index === 'number' ? index : undefined,\n parent || undefined\n )\n )\n }\n}\n\nfunction ok() {\n return true\n}\n\n/**\n * @param {unknown} value\n * @returns {value is Node}\n */\nfunction looksLikeANode(value) {\n return value !== null && typeof value === 'object' && 'type' in value\n}\n","/**\n * @typedef {import('unist').Node} UnistNode\n * @typedef {import('unist').Parent} UnistParent\n */\n\n/**\n * @typedef {Exclude | undefined} Test\n * Test from `unist-util-is`.\n *\n * Note: we have remove and add `undefined`, because otherwise when generating\n * automatic `.d.ts` files, TS tries to flatten paths from a local perspective,\n * which doesn’t work when publishing on npm.\n */\n\n/**\n * @typedef {(\n * Fn extends (value: any) => value is infer Thing\n * ? Thing\n * : Fallback\n * )} Predicate\n * Get the value of a type guard `Fn`.\n * @template Fn\n * Value; typically function that is a type guard (such as `(x): x is Y`).\n * @template Fallback\n * Value to yield if `Fn` is not a type guard.\n */\n\n/**\n * @typedef {(\n * Check extends null | undefined // No test.\n * ? Value\n * : Value extends {type: Check} // String (type) test.\n * ? Value\n * : Value extends Check // Partial test.\n * ? Value\n * : Check extends Function // Function test.\n * ? Predicate extends Value\n * ? Predicate\n * : never\n * : never // Some other test?\n * )} MatchesOne\n * Check whether a node matches a primitive check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test, but not arrays.\n */\n\n/**\n * @typedef {(\n * Check extends Array\n * ? MatchesOne\n * : MatchesOne\n * )} Matches\n * Check whether a node matches a check in the type system.\n * @template Value\n * Value; typically unist `Node`.\n * @template Check\n * Value; typically `unist-util-is`-compatible test.\n */\n\n/**\n * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint\n * Number; capped reasonably.\n */\n\n/**\n * @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment\n * Increment a number in the type system.\n * @template {Uint} [I=0]\n * Index.\n */\n\n/**\n * @typedef {(\n * Node extends UnistParent\n * ? Node extends {children: Array}\n * ? Child extends Children ? Node : never\n * : never\n * : never\n * )} InternalParent\n * Collect nodes that can be parents of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {InternalParent, Child>} Parent\n * Collect nodes in `Tree` that can be parents of `Child`.\n * @template {UnistNode} Tree\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {(\n * Depth extends Max\n * ? never\n * :\n * | InternalParent\n * | InternalAncestor, Max, Increment>\n * )} InternalAncestor\n * Collect nodes in `Tree` that can be ancestors of `Child`.\n * @template {UnistNode} Node\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @typedef {InternalAncestor, Child>} Ancestor\n * Collect nodes in `Tree` that can be ancestors of `Child`.\n * @template {UnistNode} Tree\n * All node types in a tree.\n * @template {UnistNode} Child\n * Node to search for.\n */\n\n/**\n * @typedef {(\n * Tree extends UnistParent\n * ? Depth extends Max\n * ? Tree\n * : Tree | InclusiveDescendant>\n * : Tree\n * )} InclusiveDescendant\n * Collect all (inclusive) descendants of `Tree`.\n *\n * > 👉 **Note**: for performance reasons, this seems to be the fastest way to\n * > recurse without actually running into an infinite loop, which the\n * > previous version did.\n * >\n * > Practically, a max of `2` is typically enough assuming a `Root` is\n * > passed, but it doesn’t improve performance.\n * > It gets higher with `List > ListItem > Table > TableRow > TableCell`.\n * > Using up to `10` doesn’t hurt or help either.\n * @template {UnistNode} Tree\n * Tree type.\n * @template {Uint} [Max=10]\n * Max; searches up to this depth.\n * @template {Uint} [Depth=0]\n * Current depth.\n */\n\n/**\n * @typedef {'skip' | boolean} Action\n * Union of the action types.\n *\n * @typedef {number} Index\n * Move to the sibling at `index` next (after node itself is completely\n * traversed).\n *\n * Useful if mutating the tree, such as removing the node the visitor is\n * currently on, or any of its previous siblings.\n * Results less than 0 or greater than or equal to `children.length` stop\n * traversing the parent.\n *\n * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple\n * List with one or two values, the first an action, the second an index.\n *\n * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult\n * Any value that can be returned from a visitor.\n */\n\n/**\n * @callback Visitor\n * Handle a node (matching `test`, if given).\n *\n * Visitors are free to transform `node`.\n * They can also transform the parent of node (the last of `ancestors`).\n *\n * Replacing `node` itself, if `SKIP` is not returned, still causes its\n * descendants to be walked (which is a bug).\n *\n * When adding or removing previous siblings of `node` (or next siblings, in\n * case of reverse), the `Visitor` should return a new `Index` to specify the\n * sibling to traverse after `node` is traversed.\n * Adding or removing next siblings of `node` (or previous siblings, in case\n * of reverse) is handled as expected without needing to return a new `Index`.\n *\n * Removing the children property of an ancestor still results in them being\n * traversed.\n * @param {Visited} node\n * Found node.\n * @param {Array} ancestors\n * Ancestors of `node`.\n * @returns {VisitorResult}\n * What to do next.\n *\n * An `Index` is treated as a tuple of `[CONTINUE, Index]`.\n * An `Action` is treated as a tuple of `[Action]`.\n *\n * Passing a tuple back only makes sense if the `Action` is `SKIP`.\n * When the `Action` is `EXIT`, that action can be returned.\n * When the `Action` is `CONTINUE`, `Index` can be returned.\n * @template {UnistNode} [Visited=UnistNode]\n * Visited node type.\n * @template {UnistParent} [VisitedParents=UnistParent]\n * Ancestor type.\n */\n\n/**\n * @typedef {Visitor, Check>, Ancestor, Check>>>} BuildVisitor\n * Build a typed `Visitor` function from a tree and a test.\n *\n * It will infer which values are passed as `node` and which as `parents`.\n * @template {UnistNode} [Tree=UnistNode]\n * Tree type.\n * @template {Test} [Check=Test]\n * Test type.\n */\n\nimport {convert} from 'unist-util-is'\nimport {color} from 'unist-util-visit-parents/do-not-use-color'\n\n/** @type {Readonly} */\nconst empty = []\n\n/**\n * Continue traversing as normal.\n */\nexport const CONTINUE = true\n\n/**\n * Stop traversing immediately.\n */\nexport const EXIT = false\n\n/**\n * Do not traverse this node’s children.\n */\nexport const SKIP = 'skip'\n\n/**\n * Visit nodes, with ancestral information.\n *\n * This algorithm performs *depth-first* *tree traversal* in *preorder*\n * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).\n *\n * You can choose for which nodes `visitor` is called by passing a `test`.\n * For complex tests, you should test yourself in `visitor`, as it will be\n * faster and will have improved type information.\n *\n * Walking the tree is an intensive task.\n * Make use of the return values of the visitor when possible.\n * Instead of walking a tree multiple times, walk it once, use `unist-util-is`\n * to check if a node matches, and then perform different operations.\n *\n * You can change the tree.\n * See `Visitor` for more info.\n *\n * @overload\n * @param {Tree} tree\n * @param {Check} check\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @overload\n * @param {Tree} tree\n * @param {BuildVisitor} visitor\n * @param {boolean | null | undefined} [reverse]\n * @returns {undefined}\n *\n * @param {UnistNode} tree\n * Tree to traverse.\n * @param {Visitor | Test} test\n * `unist-util-is`-compatible test\n * @param {Visitor | boolean | null | undefined} [visitor]\n * Handle each node.\n * @param {boolean | null | undefined} [reverse]\n * Traverse in reverse preorder (NRL) instead of the default preorder (NLR).\n * @returns {undefined}\n * Nothing.\n *\n * @template {UnistNode} Tree\n * Node type.\n * @template {Test} Check\n * `unist-util-is`-compatible test.\n */\nexport function visitParents(tree, test, visitor, reverse) {\n /** @type {Test} */\n let check\n\n if (typeof test === 'function' && typeof visitor !== 'function') {\n reverse = visitor\n // @ts-expect-error no visitor given, so `visitor` is test.\n visitor = test\n } else {\n // @ts-expect-error visitor given, so `test` isn’t a visitor.\n check = test\n }\n\n const is = convert(check)\n const step = reverse ? -1 : 1\n\n factory(tree, undefined, [])()\n\n /**\n * @param {UnistNode} node\n * @param {number | undefined} index\n * @param {Array} parents\n */\n function factory(node, index, parents) {\n const value = /** @type {Record} */ (\n node && typeof node === 'object' ? node : {}\n )\n\n if (typeof value.type === 'string') {\n const name =\n // `hast`\n typeof value.tagName === 'string'\n ? value.tagName\n : // `xast`\n typeof value.name === 'string'\n ? value.name\n : undefined\n\n Object.defineProperty(visit, 'name', {\n value:\n 'node (' + color(node.type + (name ? '<' + name + '>' : '')) + ')'\n })\n }\n\n return visit\n\n function visit() {\n /** @type {Readonly} */\n let result = empty\n /** @type {Readonly} */\n let subresult\n /** @type {number} */\n let offset\n /** @type {Array} */\n let grandparents\n\n if (!test || is(node, index, parents[parents.length - 1] || undefined)) {\n // @ts-expect-error: `visitor` is now a visitor.\n result = toResult(visitor(node, parents))\n\n if (result[0] === EXIT) {\n return result\n }\n }\n\n if ('children' in node && node.children) {\n const nodeAsParent = /** @type {UnistParent} */ (node)\n\n if (nodeAsParent.children && result[0] !== SKIP) {\n offset = (reverse ? nodeAsParent.children.length : -1) + step\n grandparents = parents.concat(nodeAsParent)\n\n while (offset > -1 && offset < nodeAsParent.children.length) {\n const child = nodeAsParent.children[offset]\n\n subresult = factory(child, offset, grandparents)()\n\n if (subresult[0] === EXIT) {\n return subresult\n }\n\n offset =\n typeof subresult[1] === 'number' ? subresult[1] : offset + step\n }\n }\n }\n\n return result\n }\n }\n}\n\n/**\n * Turn a return value into a clean result.\n *\n * @param {VisitorResult} value\n * Valid return values from visitors.\n * @returns {Readonly}\n * Clean result.\n */\nfunction toResult(value) {\n if (Array.isArray(value)) {\n return value\n }\n\n if (typeof value === 'number') {\n return [CONTINUE, value]\n }\n\n return value === null || value === undefined ? empty : [value]\n}\n","'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\nvar defineProperty = Object.defineProperty;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) { /**/ }\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\n// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target\nvar setProperty = function setProperty(target, options) {\n\tif (defineProperty && options.name === '__proto__') {\n\t\tdefineProperty(target, options.name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: options.newValue,\n\t\t\twritable: true\n\t\t});\n\t} else {\n\t\ttarget[options.name] = options.newValue;\n\t}\n};\n\n// Return undefined instead of __proto__ if '__proto__' is not an own property\nvar getProperty = function getProperty(obj, name) {\n\tif (name === '__proto__') {\n\t\tif (!hasOwn.call(obj, name)) {\n\t\t\treturn void 0;\n\t\t} else if (gOPD) {\n\t\t\t// In early versions of node, obj['__proto__'] is buggy when obj has\n\t\t\t// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\n\t\t\treturn gOPD(obj, name).value;\n\t\t}\n\t}\n\n\treturn obj[name];\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone;\n\tvar target = arguments[0];\n\tvar i = 1;\n\tvar length = arguments.length;\n\tvar deep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\tif (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = getProperty(target, name);\n\t\t\t\tcopy = getProperty(options, name);\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: extend(deep, clone, copy) });\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: copy });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n","// http://www.w3.org/TR/CSS21/grammar.html\n// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027\nvar COMMENT_REGEX = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\n\nvar NEWLINE_REGEX = /\\n/g;\nvar WHITESPACE_REGEX = /^\\s*/;\n\n// declaration\nvar PROPERTY_REGEX = /^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/;\nvar COLON_REGEX = /^:\\s*/;\nvar VALUE_REGEX = /^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/;\nvar SEMICOLON_REGEX = /^[;\\s]*/;\n\n// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill\nvar TRIM_REGEX = /^\\s+|\\s+$/g;\n\n// strings\nvar NEWLINE = '\\n';\nvar FORWARD_SLASH = '/';\nvar ASTERISK = '*';\nvar EMPTY_STRING = '';\n\n// types\nvar TYPE_COMMENT = 'comment';\nvar TYPE_DECLARATION = 'declaration';\n\n/**\n * @param {String} style\n * @param {Object} [options]\n * @return {Object[]}\n * @throws {TypeError}\n * @throws {Error}\n */\nmodule.exports = function (style, options) {\n if (typeof style !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (!style) return [];\n\n options = options || {};\n\n /**\n * Positional.\n */\n var lineno = 1;\n var column = 1;\n\n /**\n * Update lineno and column based on `str`.\n *\n * @param {String} str\n */\n function updatePosition(str) {\n var lines = str.match(NEWLINE_REGEX);\n if (lines) lineno += lines.length;\n var i = str.lastIndexOf(NEWLINE);\n column = ~i ? str.length - i : column + str.length;\n }\n\n /**\n * Mark position and patch `node.position`.\n *\n * @return {Function}\n */\n function position() {\n var start = { line: lineno, column: column };\n return function (node) {\n node.position = new Position(start);\n whitespace();\n return node;\n };\n }\n\n /**\n * Store position information for a node.\n *\n * @constructor\n * @property {Object} start\n * @property {Object} end\n * @property {undefined|String} source\n */\n function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }\n\n /**\n * Non-enumerable source string.\n */\n Position.prototype.content = style;\n\n var errorsList = [];\n\n /**\n * Error `msg`.\n *\n * @param {String} msg\n * @throws {Error}\n */\n function error(msg) {\n var err = new Error(\n options.source + ':' + lineno + ':' + column + ': ' + msg\n );\n err.reason = msg;\n err.filename = options.source;\n err.line = lineno;\n err.column = column;\n err.source = style;\n\n if (options.silent) {\n errorsList.push(err);\n } else {\n throw err;\n }\n }\n\n /**\n * Match `re` and return captures.\n *\n * @param {RegExp} re\n * @return {undefined|Array}\n */\n function match(re) {\n var m = re.exec(style);\n if (!m) return;\n var str = m[0];\n updatePosition(str);\n style = style.slice(str.length);\n return m;\n }\n\n /**\n * Parse whitespace.\n */\n function whitespace() {\n match(WHITESPACE_REGEX);\n }\n\n /**\n * Parse comments.\n *\n * @param {Object[]} [rules]\n * @return {Object[]}\n */\n function comments(rules) {\n var c;\n rules = rules || [];\n while ((c = comment())) {\n if (c !== false) {\n rules.push(c);\n }\n }\n return rules;\n }\n\n /**\n * Parse comment.\n *\n * @return {Object}\n * @throws {Error}\n */\n function comment() {\n var pos = position();\n if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;\n\n var i = 2;\n while (\n EMPTY_STRING != style.charAt(i) &&\n (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))\n ) {\n ++i;\n }\n i += 2;\n\n if (EMPTY_STRING === style.charAt(i - 1)) {\n return error('End of comment missing');\n }\n\n var str = style.slice(2, i - 2);\n column += 2;\n updatePosition(str);\n style = style.slice(i);\n column += 2;\n\n return pos({\n type: TYPE_COMMENT,\n comment: str\n });\n }\n\n /**\n * Parse declaration.\n *\n * @return {Object}\n * @throws {Error}\n */\n function declaration() {\n var pos = position();\n\n // prop\n var prop = match(PROPERTY_REGEX);\n if (!prop) return;\n comment();\n\n // :\n if (!match(COLON_REGEX)) return error(\"property missing ':'\");\n\n // val\n var val = match(VALUE_REGEX);\n\n var ret = pos({\n type: TYPE_DECLARATION,\n property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),\n value: val\n ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))\n : EMPTY_STRING\n });\n\n // ;\n match(SEMICOLON_REGEX);\n\n return ret;\n }\n\n /**\n * Parse declarations.\n *\n * @return {Object[]}\n */\n function declarations() {\n var decls = [];\n\n comments(decls);\n\n // declarations\n var decl;\n while ((decl = declaration())) {\n if (decl !== false) {\n decls.push(decl);\n comments(decls);\n }\n }\n\n return decls;\n }\n\n whitespace();\n return declarations();\n};\n\n/**\n * Trim `str`.\n *\n * @param {String} str\n * @return {String}\n */\nfunction trim(str) {\n return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/** @type {Construct} */\nexport const blankLine = {\n tokenize: tokenizeBlankLine,\n partial: true\n};\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLine(effects, ok, nok) {\n return start;\n\n /**\n * Start of blank line.\n *\n * > 👉 **Note**: `␠` represents a space character.\n *\n * ```markdown\n * > | ␠␠␊\n * ^\n * > | ␊\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n return markdownSpace(code) ? factorySpace(effects, after, \"linePrefix\")(code) : after(code);\n }\n\n /**\n * At eof/eol, after optional whitespace.\n *\n * > 👉 **Note**: `␠` represents a space character.\n *\n * ```markdown\n * > | ␠␠␊\n * ^\n * > | ␊\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return code === null || markdownLineEnding(code) ? ok(code) : nok(code);\n }\n}"],"names":["classifyCharacter","code","markdownLineEndingOrSpace","unicodeWhitespace","unicodePunctuation","rafId","props","observedNodes","Map","run","changedStates","forEach","state","node","a","b","newRect","getBoundingClientRect","rect","some","prop","push","callbacks","cb","window","requestAnimationFrame","useIsomorphicLayoutEffect","React","useRect","nodeRef","initialRect","width","height","_React$useState","current","element","setElement","_React$useReducer","rectReducer","dispatch","initialRectSet","_rect","observer","observe","wasEmpty","size","has","get","set","undefined","hasRectChanged","unobserve","index","indexOf","splice","length","cancelAnimationFrame","action","defaultEstimateSize","defaultKeyExtractor","defaultMeasureSize","el","horizontal","defaultRangeExtractor","range","start","Math","max","overscan","end","min","arr","i","useVirtual","_ref","_measurements","_ref$size","_ref$estimateSize","estimateSize","_ref$overscan","_ref$paddingStart","paddingStart","_ref$paddingEnd","paddingEnd","parentRef","scrollToFn","useObserver","onScrollElement","scrollOffsetFn","_ref$keyExtractor","keyExtractor","_ref$measureSize","measureSize","_ref$rangeExtractor","rangeExtractor","sizeKey","scrollKey","latestRef","scrollOffset","measurements","setScrollOffset","outerSize","defaultScrollToFn","offset","resolvedScrollToFn","_React$useState2","measuredCache","setMeasuredCache","measure","pendingMeasuredCacheIndexesRef","apply","slice","key","measuredSize","_start","_size","_end","totalSize","scrollOffsetFnRef","onScroll","event","addEventListener","capture","passive","removeEventListener","_calculateRange","_ref4","getOffset","findNearestBinarySearch","calculateRange","indexes","measureSizeRef","virtualItems","_loop","k","len","item","_extends","measureRef","_scrollOffset","old","_extends2","mountedRef","scrollToOffset","toOffset","_temp","_ref2$align","align","_latestRef$current","tryScrollToIndex","_temp2","_ref3","_ref3$align","rest","_objectWithoutPropertiesLoose","_latestRef$current2","measurement","scrollToIndex","_len","arguments","args","Array","_key","low","high","getCurrentValue","value","middle","currentValue","factorySpace","effects","ok","type","limit","Number","POSITIVE_INFINITY","markdownSpace","enter","prefix","consume","exit","asciiAlpha","regexCheck","asciiAlphanumeric","asciiAtext","asciiControl","asciiDigit","asciiHexDigit","asciiPunctuation","markdownLineEnding","regex","test","String","fromCharCode","list","remove","items","parameters","chunkStart","from","unshift","resolveAll","constructs","events","context","called","resolve","includes","ccount","character","source","TypeError","count","convert","castFactory","isArray","tests","checks","any","this","anyFactory","check","checkAsRecord","all","nodeAsRecord","propsFactory","typeFactory","Error","testFunction","parent","Boolean","looksLikeANode","call","findAndReplace","tree","options","ignored","ignore","pairs","tupleOrList","result","tuple","toExpression","toFunction","toPairs","pairIndex","visitParents","visitor","parents","grandparent","siblings","children","find","replace","change","nodes","lastIndex","match","exec","position","matchObject","input","stack","global","handler","RegExp","string","escape","inConstruct","notInConstruct","enterLiteralAutolink","token","title","url","enterLiteralAutolinkValue","config","autolinkProtocol","exitLiteralAutolinkHttp","exitLiteralAutolinkWww","data","assert","sliceSerialize","exitLiteralAutolinkEmail","autolinkEmail","exitLiteralAutolink","transformGfmAutolinkLiterals","findUrl","findEmail","_","protocol","domain","path","previous","parts","split","isCorrectDomain","trailExec","trail","closingParenIndex","openingParens","closingParens","splitUrl","atext","label","email","charCodeAt","enterFootnoteDefinition","identifier","enterFootnoteDefinitionLabelString","buffer","exitFootnoteDefinitionLabelString","resume","normalizeIdentifier","toLowerCase","exitFootnoteDefinition","enterFootnoteCall","enterFootnoteCallString","exitFootnoteCallString","exitFootnoteCall","footnoteReference","info","tracker","createTracker","move","subexit","safe","associationId","before","after","footnoteDefinition","shift","indentLines","containerFlow","map","line","blank","peek","constructsWithoutStrikethrough","enterStrikethrough","exitStrikethrough","handleDelete","containerPhrasing","defaultStringLength","toAlignment","codePointAt","listInScope","none","hardBreak","_1","unsafe","pattern","checkQuote","marker","quote","emphasis","checkEmphasis","formatHeadingAsSetext","literalWithBreak","testOrVisitor","visitorOrReverse","maybeReverse","reverse","visit","EXIT","depth","toString","setext","html","image","suffix","alt","imageReference","referenceType","reference","inlineCode","sequence","expression","compilePattern","atBreak","formatLinkAsAutolink","raw","resourceLink","link","linkReference","text","checkBullet","bullet","checkRule","rule","phrasing","strong","checkStrong","handle","blockquote","break","fence","checkFence","fences","lang","formatCodeAsIndented","repeat","substring","expected","longestStreak","encode","meta","definition","heading","rank","lastIndexOf","toUpperCase","closeAtx","bulletCurrent","ordered","bulletOrdered","checkBulletOrdered","bulletOther","checkBulletOther","useDifferentMarker","bulletLastUsed","firstListItem","indexStack","listItem","listItemIndent","style","checkListItemIndent","incrementListMarker","spread","ceil","paragraph","root","d","thematicBreak","ruleSpaces","repetition","ruleRepetition","checkRuleRepetition","enterTable","_align","inTable","exitTable","enterRow","enterCell","exitCodeText","$0","$1","gfmTableToMarkdown","settings","padding","tableCellPadding","alignDelimiters","tablePipeAlign","stringLength","around","handlers","defaultHandlers","table","serializeData","handleTableRowAsData","handleTableAsData","tableCell","handleTableCell","tableRow","matrix","concat","alignments","cellMatrix","sizeMatrix","longestCellByColumn","mostCellsPerRow","rowIndex","row","sizes","columnIndex","cell","lines","delimiterStart","delimiterEnd","join","markdownTable","exitCheck","checked","exitParagraphWithTaskListItem","head","firstParaghraph","sibling","column","Object","assign","listItemWithTaskListItem","checkable","checkbox","wwwPrefix","tokenize","nok","wwwPrefixInside","wwwPrefixAfter","partial","underscoreInLastSegment","underscoreInLastLastSegment","seen","domainInside","domainAfter","domainAtPunctuation","sizeOpen","sizeClose","pathInside","pathAtPunctuation","trailCharRefStart","trailBracketAfter","trailCharRefInside","emailDomainDotTrail","wwwAutolink","self","previousWww","previousUnbalanced","attempt","wwwAfter","protocolAutolink","previousProtocol","fromCodePoint","protocolPrefixInside","protocolSlashesInside","afterProtocol","protocolAfter","emailAutolink","dot","gfmAtext","previousEmail","emailDomain","emailDomainAfter","emailDomainDot","_balanced","_gfmAutolinkLiteralWalkedInto","indent","tail","tokenizePotentialGfmFootnoteCall","defined","parser","gfmFootnotes","labelStart","id","now","resolveToPotentialGfmFootnoteCall","_bufferIndex","chunk","contentType","replacement","tokenizeGfmFootnoteCall","callStart","callData","callEscape","tokenizeDefinitionStart","_container","labelAtMarker","labelInside","labelAfter","labelEscape","whitespaceAfter","tokenizeDefinitionContinuation","blankLine","gfmFootnoteDefinitionEnd","gfmStrikethrough","single","singleTilde","tokenizer","more","_open","_close","open","strikethrough","nextEvents","insideSpan","null","attentionMarkers","EditMap","constructor","add","editMap","at","addImpl","sort","vecs","pop","gfmTableAlign","inDelimiterRow","alignIndex","tokenizeTable","sizeB","next","bodyRowStart","headRowBefore","lazy","headRowBreak","headRowStart","interrupt","headDelimiterStart","headRowData","headRowEscape","headDelimiterBefore","disable","headDelimiterValueBefore","headDelimiterCellBefore","headDelimiterNok","headDelimiterLeftAlignmentAfter","headDelimiterCellAfter","headDelimiterFiller","headDelimiterRightAlignmentAfter","bodyRowBreak","bodyRowData","bodyRowEscape","resolveTable","currentTable","currentBody","currentCell","inFirstCellAwaitingPipe","rowKind","lastCell","afterHeadAwaitingFirstBodyRow","lastTableEnd","flushTableEnd","flushCell","rowEnd","previousCell","groupName","getPoint","relatedStart","relatedEnd","valueToken","tableBody","exits","related","side","tasklistCheck","_gfmTasklistFirstContentOfListItem","inside","close","spaceThenNonSpace","emptyOptions","remarkGfm","micromarkExtensions","fromMarkdownExtensions","toMarkdownExtensions","combineExtensions","document","continuation","resolveTo","flow","gfm","transforms","literalAutolink","literalAutolinkEmail","literalAutolinkHttp","literalAutolinkWww","gfmFootnoteDefinition","gfmFootnoteDefinitionLabelString","gfmFootnoteCall","gfmFootnoteCallString","canContainEols","tableData","tableHeader","codeText","taskListCheckValueChecked","taskListCheckValueUnchecked","extensions","delete","gfmToMarkdown","exports","iterator","styleObject","declarations","inline_style_parser_1","default","hasIterator","declaration","property","__importDefault","require","one","includeImageAlt","includeHtml","values","unreachable","hasOwnProperty","syntaxExtension","extension","hook","left","right","existing","nameRe","nameReJsx","name","jsx","re","empty","Schema","normal","space","merge","definitions","normalize","prototype","Info","attribute","boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated","mustUseProperty","powers","increment","keys","types","DefinedInfo","mask","super","mark","own","create","properties","transform","attributes","xlink","xLinkActuate","xLinkArcRole","xLinkHref","xLinkRole","xLinkShow","xLinkTitle","xLinkType","xml","xmlLang","xmlBase","xmlSpace","caseSensitiveTransform","caseInsensitiveTransform","xmlns","xmlnsxlink","xmlnsXLink","aria","ariaActiveDescendant","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaControls","ariaCurrent","ariaDescribedBy","ariaDetails","ariaDisabled","ariaDropEffect","ariaErrorMessage","ariaExpanded","ariaFlowTo","ariaGrabbed","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLabelledBy","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaOwns","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role","acceptcharset","classname","htmlfor","httpequiv","abbr","accept","acceptCharset","accessKey","allow","allowFullScreen","allowPaymentRequest","allowUserMedia","as","async","autoCapitalize","autoComplete","autoFocus","autoPlay","charSet","cite","className","cols","colSpan","content","contentEditable","controls","controlsList","coords","crossOrigin","dateTime","decoding","defer","dir","dirName","disabled","download","draggable","encType","enterKeyHint","form","formAction","formEncType","formMethod","formNoValidate","formTarget","headers","hidden","href","hrefLang","htmlFor","httpEquiv","imageSizes","imageSrcSet","inputMode","integrity","is","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","language","loading","loop","manifest","maxLength","media","method","minLength","multiple","muted","nonce","noModule","noValidate","onAbort","onAfterPrint","onAuxClick","onBeforeMatch","onBeforePrint","onBeforeUnload","onBlur","onCancel","onCanPlay","onCanPlayThrough","onChange","onClick","onClose","onContextLost","onContextMenu","onContextRestored","onCopy","onCueChange","onCut","onDblClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onDurationChange","onEmptied","onEnded","onError","onFocus","onFormData","onHashChange","onInput","onInvalid","onKeyDown","onKeyPress","onKeyUp","onLanguageChange","onLoad","onLoadedData","onLoadedMetadata","onLoadEnd","onLoadStart","onMessage","onMessageError","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onOffline","onOnline","onPageHide","onPageShow","onPaste","onPause","onPlay","onPlaying","onPopState","onProgress","onRateChange","onRejectionHandled","onReset","onResize","onScrollEnd","onSecurityPolicyViolation","onSeeked","onSeeking","onSelect","onSlotChange","onStalled","onStorage","onSubmit","onSuspend","onTimeUpdate","onToggle","onUnhandledRejection","onUnload","onVolumeChange","onWaiting","onWheel","optimum","ping","placeholder","playsInline","poster","preload","readOnly","referrerPolicy","rel","required","reversed","rows","rowSpan","sandbox","scope","scoped","seamless","selected","shape","slot","span","spellCheck","src","srcDoc","srcLang","srcSet","step","tabIndex","target","translate","typeMustMatch","useMap","wrap","aLink","archive","axis","background","bgColor","border","borderColor","bottomMargin","cellPadding","cellSpacing","char","charOff","classId","clear","codeBase","codeType","color","compact","declare","face","frame","frameBorder","hSpace","leftMargin","longDesc","lowSrc","marginHeight","marginWidth","noResize","noHref","noShade","noWrap","object","profile","prompt","rev","rightMargin","rules","scheme","scrolling","standby","summary","topMargin","valueType","version","vAlign","vLink","vSpace","allowTransparency","autoCorrect","autoSave","disablePictureInPicture","disableRemotePlayback","results","security","unselectable","svg","accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dataType","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","horizOriginY","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","navDown","navDownLeft","navDownRight","navLeft","navNext","navPrev","navRight","navUp","navUpLeft","navUpRight","onActivate","onBegin","onEnd","onFocusIn","onFocusOut","onMouseWheel","onRepeat","onShow","onZoom","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDashArray","strokeDashOffset","strokeLineCap","strokeLineJoin","strokeMiterLimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","typeOf","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xHeight","playbackOrder","timelineBegin","about","accumulate","additive","alphabetic","amplitude","ascent","attributeName","attributeType","azimuth","bandwidth","baseFrequency","baseProfile","bbox","begin","bias","by","calcMode","clip","clipPathUnits","contentScriptType","contentStyleType","cursor","cx","cy","defaultAction","descent","diffuseConstant","direction","display","dur","divisor","dx","dy","edgeMode","editable","elevation","exponent","externalResourcesRequired","fill","filter","filterRes","filterUnits","focusable","focusHighlight","format","fr","fx","fy","g1","g2","glyphRef","gradientTransform","gradientUnits","hanging","hatchContentUnits","hatchUnits","ideographic","initialVisibility","in","in2","intercept","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","kerning","lengthAdjust","limitingConeAngle","local","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","mathematical","mediaCharacterEncoding","mediaContentEncodings","mediaSize","mediaTime","mode","numOctaves","opacity","operator","order","orient","orientation","origin","overflow","overlay","pathLength","patternContentUnits","patternTransform","patternUnits","phase","pitch","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","propagate","r","radius","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","requiredFonts","requiredFormats","resource","restart","rotate","rx","ry","scale","seed","slope","snapshotTime","specularConstant","specularExponent","spreadMethod","spacing","startOffset","stdDeviation","stemh","stemv","stitchTiles","stroke","surfaceScale","syncBehavior","syncBehaviorDefault","syncMaster","syncTolerance","syncToleranceDefault","systemLanguage","tableValues","targetX","targetY","textLength","transformBehavior","to","u1","u2","unicode","viewBox","viewTarget","visibility","widths","x","x1","x2","xChannelSelector","y","y1","y2","yChannelSelector","z","zoomAndPan","htmlBase","svgBase","valid","dash","cap","kebab","camelcase","charAt","hastToReact","StyleToObject","point","pointStart","stringifyPosition","pos","VFileMessage","causeOrReason","optionsOrParentOrPlace","reason","legacyCause","place","ancestors","cause","message","ruleId","fatal","file","actual","note","emptyMap","dashSomething","tableElements","Set","tableCellElement","docs","toJsxRuntime","Fragment","filePath","development","jsxDEV","isStaticChildren","columnNumber","fileName","lineNumber","developmentCreate","jsxs","fn","productionCreate","components","elementAttributeNameCase","evaluater","createEvaluater","ignoreInvalidStyle","passKeys","passNode","schema","stylePropertyNameCase","tableCellAlignToStyle","parentSchema","tagName","findComponentFromName","alignValue","createProperty","createElementProps","createChildren","child","thing","addNode","addChildren","estree","body","evaluateExpression","crashEstree","mdxExpression","objectExpression","argument","createJsxElementProps","mdxJsxElement","evaluateProgram","mdxEsm","countsByName","Type","dashes","isNaN","padRight","padLeft","trim","commas","styleToObject","replacer","error","toCamel","parseStyle","domCasing","cssCasing","transformStyleToCssCasing","transformStylesToCssCasing","allowExpression","identifiers","isIdentifierName","computed","optional","toDash","urlAttributes","icon","SpliceBuffer","initial","RangeError","setCursor","stop","deleteCount","trunc","removed","chunkedPush","pushMany","unshiftMany","n","subtokenize","eventsArray","jumps","lineIndex","otherIndex","otherEvent","subevents","_tokenizer","_isInFirstContentOfListItem","subcontent","eventIndex","startPosition","startPositions","childEvents","gaps","stream","adjust","breaks","sliceStream","defineSkip","write","contentStart","contentInitial","lineStart","childFlow","childToken","lineStartOffset","continued","containerState","documentContinue","checkNewContainers","_closeFlow","closeFlow","indexBeforeExits","indexBeforeFlow","exitContainers","documentContinued","currentConstruct","concrete","flowStart","_gfmTableDynamicInterruptHack","containerConstruct","thereIsANewContainer","thereIsNoNewContainer","containerContinue","flowContinue","writeToChild","eof","entry","chunkInside","contentEnd","continuationConstruct","contentContinue","prefixed","flowInitial","afterConstruct","resolver","createResolver","initializeFactory","field","notText","resolveAllLineSuffixes","extraResolver","chunks","tabs","bufferIndex","_index","createTokenizer","initialize","columnStart","resolveAllConstructs","consumed","accountForPotentialSkip","fields","constructFactory","construct","addResult","onsuccessfulcheck","expandTabs","atTab","serializeChunks","main","expectedCode","startIndex","startBufferIndex","endIndex","endBufferIndex","view","sliceChunks","chunkIndex","go","restore","onreturn","returnState","bogusState","listOfConstructs","constructIndex","handleListOfConstructs","def","handleMapOfConstructs","handleConstruct","startPoint","startPrevious","startCurrentConstruct","startEventsIndex","startStack","store","initialSize","atMarker","onBlank","listItemPrefixWhitespaceConstruct","endOfPrefix","otherPrefix","initialBlankLine","furtherBlankLines","notInCurrentItem","indentConstruct","blockQuote","contBefore","factoryDestination","literalType","literalMarkerType","rawType","stringType","balance","enclosedBefore","enclosed","enclosedEscape","rawEscape","factoryLabel","markerType","factoryTitle","factoryWhitespace","markerAfter","destinationBefore","destinationAfter","titleBefore","afterWhitespace","beforeMarker","titleAfter","titleAfterOptionalWhitespace","codeIndented","afterPrefix","furtherStart","headingAtx","sequenceOpen","sequenceFurther","setextUnderline","htmlBlockNames","htmlRawNames","htmlFlow","closingTag","markerB","declarationOpen","tagCloseStart","continuationDeclarationInside","commentOpenInside","cdataOpenInside","slash","basicSelfClosing","completeClosingTagAfter","completeAttributeNameBefore","completeEnd","completeAttributeName","completeAttributeNameAfter","completeAttributeValueBefore","completeAttributeValueQuoted","completeAttributeValueUnquoted","completeAttributeValueQuotedAfter","completeAfter","continuationCommentInside","continuationRawTagOpen","continuationClose","continuationCdataInside","continuationStart","blankLineBefore","continuationAfter","nonLazyContinuationStart","continuationStartNonLazy","continuationBefore","continuationRawEndTag","nonLazyContinuation","codeFenced","closeStart","startBefore","beforeSequenceClose","sequenceClose","sequenceCloseAfter","initialPrefix","beforeSequenceOpen","infoBefore","atNonLazyBreak","metaBefore","contentBefore","beforeContentChunk","contentChunk","createElement","decodeNamedCharacterReference","characterReference","innerHTML","textContent","numeric","characterEscape","lineEnding","labelEnd","_inactive","labelEndNok","resourceConstruct","labelEndOk","referenceFullConstruct","referenceNotFull","referenceCollapsedConstruct","group","resourceBefore","resourceOpen","resourceEnd","resourceDestinationAfter","resourceDestinationMissing","resourceBetween","resourceTitleAfter","referenceFullAfter","referenceFullMissing","referenceCollapsedOpen","labelStartImage","attention","openingSequence","closingSequence","use","movePoint","autolink","schemeOrEmailAtext","emailAtext","schemeInsideOrEmailAtext","urlInside","emailAtSignOrDot","emailLabel","emailValue","htmlText","instruction","tagOpen","commentEnd","comment","commentClose","lineEndingBefore","cdata","cdataClose","cdataEnd","instructionClose","tagClose","tagCloseBetween","tagOpenBetween","tagOpenAttributeName","tagOpenAttributeNameAfter","tagOpenAttributeValueBefore","tagOpenAttributeValueQuoted","tagOpenAttributeValueUnquoted","tagOpenAttributeValueQuotedAfter","lineEndingAfter","lineEndingAfterPrefix","labelStartLink","hardBreakEscape","between","tailExitIndex","headEnterIndex","resolveText","search","decodeNumericCharacterReference","base","parseInt","characterEscapeOrReference","decode","$2","hex","fromMarkdown","encoding","opener","onenterdata","atxHeading","codeFlow","codeFencedFenceInfo","codeFencedFenceMeta","codeTextData","codeFlowValue","definitionDestinationString","definitionLabelString","definitionTitleString","hardBreakTrailing","htmlFlowData","htmlTextData","listItemValue","onenterlistitemvalue","listOrdered","onenterlistordered","listUnordered","onenterreference","referenceString","resourceDestinationString","resourceTitleString","setextHeading","closer","atxHeadingSequence","onexitatxheadingsequence","onexitautolinkemail","onexitautolinkprotocol","characterEscapeValue","onexitdata","characterReferenceMarkerHexadecimal","onexitcharacterreferencemarker","characterReferenceMarkerNumeric","characterReferenceValue","onexitcharacterreferencevalue","onexitcharacterreference","onexitcodefenced","codeFencedFence","onexitcodefencedfence","onexitcodefencedfenceinfo","onexitcodefencedfencemeta","onexitcodeindented","onexitcodetext","onexitdefinitiondestinationstring","onexitdefinitionlabelstring","onexitdefinitiontitlestring","onexithardbreak","onexithtmlflow","onexithtmltext","onexitimage","onexitlabel","labelText","onexitlabeltext","onexitlineending","onexitlink","onexitreferencestring","onexitresourcedestinationstring","onexitresourcetitlestring","onexitresource","onexitsetextheading","setextHeadingLineSequence","onexitsetextheadinglinesequence","setextHeadingText","onexitsetextheadingtext","configure","mdastExtensions","compile","tokenStack","listStack","prepareList","defaultOnError","firstBlankLineIndex","containerBalance","listSpread","tailIndex","tailEvent","_spread","and","errorHandler","onExitError","expectingFirstListItemValue","flowCodeInside","setextHeadingSlurpLineEnding","atHardBreak","inReference","ancestor","decodeString","fragment","characterReferenceType","compiler","postprocess","defaultConstructs","parse","atCarriageReturn","endPosition","TextDecoder","preprocess","combined","remarkParse","doc","env","globalThis","deserialize","serialized","deserializer","$","out","unpair","Date","flags","BigInt","EMPTY","asString","shouldSkip","TYPE","serialize","json","lossy","serializer","strict","pair","valueOf","toJSON","entries","toISOString","structuredClone","normalizeUri","skip","encodeURIComponent","defaultFootnoteBackContent","rereferenceIndex","defaultFootnoteBackLabel","referenceIndex","pointEnd","revert","subtype","contents","listItemLoose","trimLines","last","trimLine","patch","applyData","clobberPrefix","safeId","footnoteOrder","counter","reuseCounter","footnoteCounts","dataFootnoteRef","sup","allowDangerousHtml","definitionById","loose","listLoose","firstRow","tableContent","cellIndex","cells","toml","yaml","createState","footnoteById","trimMarkdownSpaceStart","passThrough","shallow","unknownHandler","defaultUnknownHandler","hName","hChildren","hProperties","toHast","foot","footnoteBackContent","footnoteBackLabel","footnoteLabel","footnoteLabelTagName","footnoteLabelProperties","listItems","backReferences","counts","dataFootnoteBackref","tailTail","dataFootnotes","footer","remarkRehype","destination","hastTree","bail","isPlainObject","getPrototypeOf","Symbol","toStringTag","trough","fns","pipeline","middlewareIndex","callback","output","middleware","wrapped","fnExpectsCallback","done","Promise","then","middelware","basename","ext","assertPath","seenNonSlash","firstNonSlashEnd","extIndex","dirname","unmatchedSlash","extname","startPart","startDot","preDotState","segments","joined","absolute","allowAboveRoot","lastSlashIndex","lastSegmentLength","lastSlash","dots","normalizeString","sep","JSON","stringify","proc","cwd","isUrl","fileUrlOrPath","auth","urlToPath","URL","hostname","pathname","third","decodeURIComponent","getPathFromURLPosix","VFile","isUint8Array","history","messages","stored","assertNonEmpty","assertPart","stem","fail","part","CallableInstance","proto","func","setPrototypeOf","names","getOwnPropertyNames","p","descriptor","getOwnPropertyDescriptor","defineProperty","Processor","Compiler","Parser","attachers","freezeIndex","frozen","namespace","transformers","copy","attacher","extend","assertUnfrozen","freeze","transformer","realFile","vfile","assertParser","process","assertCompiler","executor","reject","parseTree","realDone","compileTree","compileResult","processSync","complete","assertDone","assertNode","outputTree","resultingTree","runSync","addPlugin","addList","addPreset","plugin","plugins","entryIndex","primary","currentPrimary","isPlainObj","unified","asyncName","looksLikeAVFile","changelog","emptyPlugins","emptyRemarkRehypeOptions","safeProtocol","deprecations","Markdown","processor","createProcessor","createFile","post","rehypePlugins","remarkPlugins","remarkRehypeOptions","allowedElements","allowElement","disallowedElements","skipHtml","unwrapDisallowed","urlTransform","defaultUrlTransform","deprecation","hasOwn","colon","questionMark","numberSign","CONTINUE","SKIP","factory","subresult","grandparents","toResult","nodeAsParent","toStr","gOPD","obj","hasOwnConstructor","hasIsPrototypeOf","setProperty","enumerable","configurable","newValue","writable","getProperty","module","copyIsArray","clone","deep","COMMENT_REGEX","NEWLINE_REGEX","WHITESPACE_REGEX","PROPERTY_REGEX","COLON_REGEX","VALUE_REGEX","SEMICOLON_REGEX","TRIM_REGEX","EMPTY_STRING","str","lineno","updatePosition","Position","whitespace","errorsList","msg","err","filename","silent","m","comments","c","val","ret","decl","decls"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4588.d69c50d6.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4588.d69c50d6.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..04a82b88a3359a9d1c0a8da1ed22ac5ff4479df5 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/4588.d69c50d6.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[4588],{3679:function(e,t,o){o.d(t,{M:function(){return b}});var r=o(89555),n=o(59403),a=o(68048),i=o(23823),s=o(70169),l=o(88464),d=o(31014),c=o(96070),u=o(6604),m=o(88443),p=o(9133),g=o(28380),h=o(50111);const f="tooltipLastPopup";var v={name:"c61v0h",styles:".du-bois-light-select-item-option-active:not(.du-bois-light-select-item-option-disabled){background-color:#e6f1f5;}"},y={name:"9gxvqt",styles:"display:flex;gap:4px;align-items:center"};const b=({baseOptions:e,searchFilter:t,requestError:o=null,onSearchFilterChange:b,onClear:C,tooltipContent:S,placeholder:w,useQuickFilter:D,defaultActiveFirstOption:M=!0,className:Y})=>{const{theme:_,getPrefixedClassName:x}=(0,n.u)(),A=(0,d.useRef)(null),R=(0,l.A)(),[I,B]=(0,d.useState)(""),[k,F]=(0,d.useState)(void 0),[E,T]=(0,d.useState)(!1),[L,N]=(0,d.useState)(!1),[z,H]=(0,d.useState)({Metrics:10,Parameters:10,Tags:10}),K=(0,d.useRef)([]),[O,$]=(0,d.useState)(void 0);(0,d.useEffect)((()=>{B(t)}),[t]),(0,d.useEffect)((()=>{const e=K.current,t=(0,c.jP)(I);if(K.current=t,L)return void N(!1);const o=t.map((e=>e.name)),r=e.map((e=>e.name));if(!(0,p.isEqual)(o,r)&&t.length>=e.length){let o=0;for(;o=e.length||t[o].name.trim()!==e[o].name.trim())return F(!0),void $(t[o]);o++}}F(!1)}),[I]);const q=(0,d.useMemo)((()=>O?(0,c.M8)(e,O,z):[]),[e,O,z]),P=(0,d.useCallback)(((e,t)=>{if(O)if(e.startsWith("...")){F(!0);const e=t.value.split("_")[1];H((t=>({...t,[e]:t[e]+10})))}else{const t=I.substring(0,O.startIndex),o=I.substring(O.endIndex);B(t+e+" "+o),N(!0),F(!1)}}),[I,B,O,F]),U=(0,g.S)(f),[V,W]=(0,d.useState)((()=>{const e=Math.floor(Date.now()/1e3),t=U.getItem(f);return!t||parseInt(t,10){if(D&&I.length>0&&!(0,u.cK)(I))return(0,u.jA)(I)}),[I,D]);(0,d.useEffect)((()=>{if(o&&V){var e;const t=Math.floor(Date.now()/1e3);U.setItem(f,t),W(!1),null===(e=Q.current)||void 0===e||e.click()}}),[o]);const j=0===q.flatMap((e=>e.options)).length,X=k&&E&&!j,J=(0,d.useCallback)((e=>{var t;const o=x("select-item-option-active"),r=Boolean(null===(t=A.current)||void 0===t?void 0:t.querySelector(`.${o}`));"Enter"===e.key&&(X&&F(!1),X&&r||b(I)),"Escape"===e.key&&(e.preventDefault(),X&&F(!1))}),[X,I,b,x]);return(0,h.Y)("div",{css:(0,r.AH)({display:"flex",gap:_.spacing.sm,width:430,[_.responsive.mediaQueries.xs]:{width:"auto"}},""),className:Y,children:(0,h.Y)(a.AutoComplete,{dropdownMatchSelectWidth:560,css:(0,r.AH)({width:560,[_.responsive.mediaQueries.xs]:{width:"auto"}},""),defaultOpen:!1,defaultActiveFirstOption:M&&!D,open:X,options:q,onSelect:P,value:I,"data-testid":"runs-search-autocomplete",dropdownRender:e=>(0,h.Y)("div",{css:v,ref:A,children:e}),children:(0,h.Y)(s.I,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_runssearchautocomplete.tsx_236",value:I,prefix:(0,h.Y)(s.S,{css:(0,r.AH)({svg:{width:_.general.iconFontSize,height:_.general.iconFontSize,color:_.colors.textSecondary}},"")}),onKeyDown:J,onClick:()=>T(!0),onBlur:()=>T(!1),onChange:e=>B(e.target.value),placeholder:w,"data-testid":"search-box",suffix:(0,h.FD)("div",{css:y,children:[I&&(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_runssearchautocomplete.tsx_212",onClick:()=>{C(),B("")},type:"link","data-testid":"clear-button",children:(0,h.Y)(n.C,{})}),G?(0,h.Y)(i.T,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_runssearchautocomplete.tsx_310",content:(0,h.Y)(m.A,{id:"ESmLOR",defaultMessage:"Using regular expression quick filter. The following query will be used: {filterSample}",values:{filterSample:(0,h.Y)("div",{children:(0,h.Y)("code",{children:G})})}}),delayDuration:0,children:(0,h.Y)(a.InfoFillIcon,{"aria-label":R.formatMessage({id:"ESmLOR",defaultMessage:"Using regular expression quick filter. The following query will be used: {filterSample}"},{filterSample:G}),css:(0,r.AH)({svg:{width:_.general.iconFontSize,height:_.general.iconFontSize,color:_.colors.actionPrimaryBackgroundDefault}},"")})}):(0,h.Y)(a.LegacyTooltip,{title:S,placement:"right",dangerouslySetAntdProps:{overlayInnerStyle:{width:"150%"},trigger:["focus","click"]},children:(0,h.Y)(n.B,{size:"small",ref:Q,componentId:"mlflow.experiment_page.search_filter.tooltip",type:"link",css:(0,r.AH)({marginLeft:-_.spacing.xs,marginRight:-_.spacing.xs},""),icon:(0,h.Y)(i.I,{css:(0,r.AH)({svg:{width:_.general.iconFontSize,height:_.general.iconFontSize,color:_.colors.textSecondary}},"")})})})]})})})})}},28380:function(e,t,o){o.d(t,{S:function(){return a}});var r=o(31014),n=o(32614);const a=e=>(0,r.useMemo)((()=>n.A.getStoreForComponent("ExperimentView",e)),[e])},39771:function(e,t,o){o.d(t,{b:function(){return n}});var r=o(31014);function n(e){const t=(0,r.useRef)(null),[o,n]=(0,r.useState)(void 0),a=(0,r.useCallback)((()=>{t.current&&n(t.current.clientWidth)}),[]);(0,r.useLayoutEffect)((()=>(a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a))),[a]);return{resizableMaxWidth:void 0===o?void 0:o-e,ref:(0,r.useCallback)((e=>{t.current=e,a()}),[a])}}},42550:function(e,t,o){o.d(t,{t:function(){return u}});var r=o(89555),n=o(59403),a=o(31014),i=o(15230),s=o(21879),l=o(50111);var d={name:"1h0bf8r",styles:"body, :host{user-select:none;}"},c={name:"5ob2ly",styles:"display:flex;position:relative"};const u=({runListHidden:e,width:t,onResize:o,children:n,onHiddenChange:u,maxWidth:p})=>{const g=(0,s.e)(),[h,f]=(0,a.useState)(!1);return(0,l.FD)(l.FK,{children:[(0,l.Y)(i.ResizableBox,{css:c,style:{flex:`0 0 ${e?0:t}px`},width:t,axis:"x",resizeHandles:["e"],minConstraints:[250,0],maxConstraints:void 0===p?void 0:[p,0],handle:(0,l.Y)(m,{runListHidden:e,updateRunListHidden:e=>{u?u(e):g((t=>({...t,runListHidden:e})))}}),onResize:(t,{size:r})=>{e||o(r.width)},onResizeStart:()=>!e&&f(!0),onResizeStop:()=>f(!1),children:n}),h&&(0,l.Y)(r.mL,{styles:d})]})},m=a.forwardRef((({updateRunListHidden:e,runListHidden:t,...o},a)=>{const{theme:i}=(0,n.u)();return(0,l.FD)("div",{ref:a,...o,css:(0,r.AH)({transition:"opacity 0.2s",width:0,overflow:"visible",height:"100%",position:"relative",zIndex:10,display:"flex",opacity:t?1:0,"&:hover":{opacity:1,".bar":{opacity:1},".button":{border:`2px solid ${i.colors.actionDefaultBorderHover}`}}},""),children:[(0,l.Y)("div",{css:(0,r.AH)({position:"absolute",left:-i.general.iconSize/2,width:i.general.iconSize,cursor:t?void 0:"ew-resize",height:"100%",top:0,bottom:0},""),children:(0,l.Y)("div",{className:"button",css:(0,r.AH)({top:"50%",transition:"border-color 0.2s",position:"absolute",width:i.general.iconSize,height:i.general.iconSize,backgroundColor:i.colors.backgroundPrimary,borderRadius:i.general.iconSize,overflow:"hidden",border:`1px solid ${i.colors.border}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11},""),children:(0,l.Y)(n.B,{componentId:"mlflow.experiment_page.table_resizer.collapse",onClick:()=>e(!t),icon:t?(0,l.Y)(n.q,{}):(0,l.Y)(n.o,{}),size:"small"})})}),(0,l.Y)("div",{className:"bar",css:(0,r.AH)({position:"absolute",opacity:0,left:-1.5,width:3,height:"100%",top:0,bottom:0,backgroundColor:i.colors.actionPrimaryBackgroundDefault},"")})]})}))},54588:function(e,t,o){o.r(t),o.d(t,{default:function(){return fe}});var r=o(89555),n=o(59403),a=o(23823),i=o(68048),s=o(4877),l=o.n(s),d=o(48624),c=o(92246),u=o(91144),m=o(31014),p=o(38654),g=o(63609),h=o(88464),f=o(88443),v=o(30706),y=o(81313);let b=function(e){return e.TABLE="TABLE",e.CHART="CHART",e}({});const C="viewMode";var S=o(3679),w=o(96070),D=o(98590),M=o(50111);const Y=["model_id","model_name","status","artifact_uri","creation_time","last_updated_time"],_=({searchQuery:e,onChangeSearchQuery:t,loggedModelsData:o})=>{const r=(0,m.useMemo)((()=>{const e=(e=>{const t=new Set,o=new Set,r=new Set;for(const c of e){var n,a,i,s,l,d;null===(n=c.data)||void 0===n||null===(a=n.metrics)||void 0===a||a.forEach((e=>e.key&&t.add(e.key))),null===(i=c.data)||void 0===i||null===(s=i.params)||void 0===s||s.forEach((e=>e.key&&o.add(e.key))),null===(l=c.info)||void 0===l||null===(d=l.tags)||void 0===d||d.forEach((e=>e.key&&r.add(e.key)))}return{metricNames:Array.from(t),paramNames:Array.from(o),tagNames:Array.from(r).filter(D.oD)}})(o),t=Y.map((e=>({value:`attributes.${e}`})));return(0,w.$K)(e,t)}),[o]);return(0,M.Y)(S.M,{searchFilter:null!==e&&void 0!==e?e:"",onSearchFilterChange:t,defaultActiveFirstOption:!1,baseOptions:r,onClear:()=>t(""),placeholder:"metrics.rmse >= 0.8",tooltipContent:(0,M.FD)("div",{children:[(0,M.Y)(f.A,{id:"8f4/Zi",defaultMessage:"Search logged models using a simplified version of the SQL {whereBold} clause.",values:{whereBold:(0,M.Y)("b",{children:"WHERE"})}})," ",(0,M.Y)("br",{}),(0,M.Y)(f.A,{id:"fyVs2o",defaultMessage:"Examples:"}),(0,M.Y)("br",{}),"\u2022 metrics.rmse >= 0.8",(0,M.Y)("br",{}),"\u2022 metrics.`f1 score` < 1",(0,M.Y)("br",{}),"\u2022 params.type = 'tree'",(0,M.Y)("br",{}),"\u2022 tags.my_tag = 'foobar'",(0,M.Y)("br",{}),"\u2022 attributes.name = 'elasticnet'",(0,M.Y)("br",{})]})})};var x=o(70169);const A=e=>JSON.stringify([e.dataset_name,e.dataset_digest]);var R={name:"158icaa",styles:"margin-left:4px"};const I=({loggedModelsData:e,selectedFilterDatasets:t,onToggleDataset:o,onClearSelectedDatasets:a})=>{const{theme:s}=(0,n.u)(),l=(0,h.A)(),d=(0,m.useRef)(new Map),c=(0,m.useMemo)((()=>{for(const o of e)for(const e of(null===(t=o.data)||void 0===t?void 0:t.metrics)||[]){var t;if(!e.dataset_name||!e.dataset_digest)continue;const o=A(e);d.current.has(o)||d.current.set(o,{hash:o,dataset_name:e.dataset_name,dataset_digest:e.dataset_digest})}return Array.from(d.current.values())}),[e]),u=(0,m.useMemo)((()=>(null===t||void 0===t?void 0:t.map(A))||[]),[t]);return(0,M.FD)(i.DialogCombobox,{componentId:"mlflow.logged_model.list_page.datasets_filter",id:"mlflow.logged_model.list_page.datasets_filter",value:u,label:l.formatMessage({id:"K8JcAN",defaultMessage:"Datasets"}),stayOpenOnSelection:!0,children:[(0,M.Y)(i.DialogComboboxCustomButtonTriggerWrapper,{children:(0,M.FD)(n.B,{endIcon:(0,M.Y)(i.ChevronDownIcon,{}),componentId:"mlflow.logged_model.list_page.datasets_filter.toggle",icon:(0,M.Y)(i.TableIcon,{}),children:["Datasets",u.length>0?(0,M.FD)(M.FK,{children:[(0,M.Y)(i.DialogComboboxCountBadge,{css:R,children:u.length}),(0,M.Y)(x.X,{"aria-hidden":"false",role:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),null===a||void 0===a||a()},css:(0,r.AH)({color:s.colors.textPlaceholder,fontSize:s.typography.fontSizeSm,marginLeft:s.spacing.xs,":hover":{color:s.colors.actionTertiaryTextHover}},"")})]}):null]})}),(0,M.Y)(i.DialogComboboxContent,{children:(0,M.Y)(i.DialogComboboxOptionList,{children:c.map((({hash:e,dataset_digest:t,dataset_name:r})=>(0,M.FD)(i.DialogComboboxOptionListCheckboxItem,{value:e,checked:u.includes(e),onChange:()=>null===o||void 0===o?void 0:o({dataset_digest:t,dataset_name:r}),children:[r," (#",t,")"]},e)))})})]})};var B=o(69526),k=o(14343),F=o(12017);const E=(e,t)=>{const o={[F.I7.CreationTime]:(0,B.zR)({id:"ltqNpe",defaultMessage:"Creation time"})}[e];if(o)return t.formatMessage(o);const r=(0,F.TQ)(e);return r?r.metricKey:e};var T={name:"bsla3r",styles:"max-height:300px;overflow:auto"};const L=({orderByColumn:e,orderByAsc:t,onChangeOrderBy:o,columnDefs:a=[]})=>{const s=(0,h.A)(),[l,d]=(0,m.useState)(""),{theme:c}=(0,n.u)(),u=(0,m.useMemo)((()=>{const t=l.toLowerCase(),o=[{groupId:"attributes",headerName:s.formatMessage({id:"Tpj2su",defaultMessage:"Attributes"}),children:[{colId:F.I7.CreationTime,headerName:E(F.I7.CreationTime,s)}].filter((({headerName:e})=>null===e||void 0===e?void 0:e.toLowerCase().includes(t)))},...a.filter((e=>{var t;return null===(t=e.groupId)||void 0===t?void 0:t.startsWith(F.D2)})).map((e=>{var o;return{...e,children:null===(o=e.children)||void 0===o?void 0:o.filter((({colId:e})=>null===e||void 0===e?void 0:e.includes(t))),headerName:e.headerName?`Metrics (${e.headerName})`:s.formatMessage({id:"EcjcgN",defaultMessage:"Metrics"})}}))].filter((e=>e.children&&e.children.length>0));if(!o.some((t=>t.children&&t.children.some((t=>t.colId===e))))){const{metricKey:t}=(0,F.TQ)(e);t&&o.push({groupId:"current",headerName:s.formatMessage({id:"1wfVV5",defaultMessage:"Currently sorted by"}),children:[{colId:e,headerName:t}]})}return o}),[a,s,l,e]);return(0,M.FD)(i.DropdownMenu.Root,{modal:!1,children:[(0,M.Y)(i.DropdownMenu.Trigger,{asChild:!0,children:(0,M.Y)(n.B,{componentId:"mlflow.logged_model.list.order_by",icon:t?(0,M.Y)(i.SortAscendingIcon,{}):(0,M.Y)(i.SortDescendingIcon,{}),children:(0,M.Y)(f.A,{id:"YRBURU",defaultMessage:"Sort: {sortBy}",values:{sortBy:E(e,s)}})})}),(0,M.FD)(i.DropdownMenu.Content,{css:T,children:[(0,M.FD)("div",{css:(0,r.AH)({padding:`${c.spacing.sm}px ${c.spacing.lg/2}px ${c.spacing.sm}px`,width:"100%",display:"flex",gap:c.spacing.xs},""),children:[(0,M.Y)(x.I,{componentId:"mlflow.logged_model.list.order_by.filter",prefix:(0,M.Y)(x.S,{}),value:l,type:"search",onChange:e=>d(e.target.value),placeholder:s.formatMessage({id:"PRwcGm",defaultMessage:"Search"}),autoFocus:!0,allowClear:!0}),(0,M.FD)("div",{css:(0,r.AH)({display:"flex",gap:c.spacing.xs},""),children:[(0,M.Y)(k.k,{pressed:!t,icon:(0,M.Y)(i.ArrowDownIcon,{}),componentId:"mlflow.logged_model.list.order_by.button_desc",onClick:()=>o(e,!1),"aria-label":s.formatMessage({id:"w/sljb",defaultMessage:"Sort descending"})}),(0,M.Y)(k.k,{pressed:t,icon:(0,M.Y)(i.ArrowUpIcon,{}),componentId:"mlflow.logged_model.list.order_by.button_asc",onClick:()=>o(e,!0),"aria-label":s.formatMessage({id:"E4eALP",defaultMessage:"Sort ascending"})})]})]}),u.map((({headerName:r,children:n,groupId:a})=>(0,M.FD)(i.DropdownMenu.Group,{"aria-label":r,children:[(0,M.Y)(i.DropdownMenu.Label,{children:r}),null===n||void 0===n?void 0:n.map((({headerName:r,colId:n})=>(0,M.FD)(i.DropdownMenu.CheckboxItem,{componentId:"mlflow.logged_model.list.order_by.column_toggle",checked:e===n,onClick:()=>{n&&o(n,Boolean(t))},children:[(0,M.Y)(i.DropdownMenu.ItemIndicator,{}),r]},n)))]},a)))]})]})};var N=o(31926);const z={[N.q_.RUNS]:(0,B.zR)({id:"zfpA2q",defaultMessage:"Source run"})},H=({groupBy:e,onChangeGroupBy:t})=>{const o=e?z[e]:null;return(0,M.FD)(i.DropdownMenu.Root,{children:[(0,M.Y)(i.DropdownMenu.Trigger,{asChild:!0,children:(0,M.Y)(n.B,{componentId:"mlflow.logged_model.list.group_by",icon:(0,M.Y)(i.ListBorderIcon,{}),endIcon:(0,M.Y)(i.ChevronDownIcon,{}),children:o?(0,M.Y)(f.A,{id:"bSpjqT",defaultMessage:"Group by: {currentModeSelected}",values:{currentModeSelected:(0,M.Y)(f.A,{...o})}}):(0,M.Y)(f.A,{id:"g+YDB/",defaultMessage:"Group by"})})}),(0,M.FD)(i.DropdownMenu.Content,{children:[(0,M.FD)(i.DropdownMenu.CheckboxItem,{checked:!e,componentId:"mlflow.logged_model.list.group_by.none",onClick:()=>null===t||void 0===t?void 0:t(void 0),children:[(0,M.Y)(i.DropdownMenu.ItemIndicator,{}),(0,M.Y)(f.A,{id:"sOQcFW",defaultMessage:"None"})]}),(0,M.FD)(i.DropdownMenu.CheckboxItem,{checked:e===N.q_.RUNS,componentId:"mlflow.logged_model.list.group_by.runs",onClick:()=>null===t||void 0===t?void 0:t(N.q_.RUNS),children:[(0,M.Y)(i.DropdownMenu.ItemIndicator,{}),(0,M.Y)(f.A,{...z[N.q_.RUNS]})]})]})]})},K=({orderByColumn:e,orderByAsc:t,sortingAndFilteringEnabled:o,onChangeOrderBy:s,onUpdateColumns:l,columnDefs:d,columnVisibility:c={},viewMode:m,setViewMode:p,searchQuery:g="",onChangeSearchQuery:C,loggedModelsData:S,selectedFilterDatasets:w,onToggleDataset:D,onClearSelectedDatasets:Y,groupBy:x,onChangeGroupBy:A})=>{const R=(0,h.A)(),{theme:B}=(0,n.u)();return(0,M.FD)("div",{css:(0,r.AH)({display:"flex",flexWrap:"wrap",gap:B.spacing.sm},""),children:[(0,M.FD)(i.SegmentedControlGroup,{componentId:"mlflow.logged_model.list.view-mode",name:"view-mode",value:m,onChange:e=>{p((0,y.SK)(b,e.target.value,b.TABLE))},children:[(0,M.FD)(i.SegmentedControlButton,{value:"TABLE",children:[(0,M.Y)(a.T,{componentId:"mlflow.logged_model.list.view-mode-table-tooltip",content:R.formatMessage({id:"F9Aau+",defaultMessage:"Table view"}),children:(0,M.Y)(a.L,{})}),(0,M.Y)("span",{css:n.O,children:R.formatMessage({id:"F9Aau+",defaultMessage:"Table view"})})]}),(0,M.FD)(i.SegmentedControlButton,{value:"CHART",children:[(0,M.Y)(a.T,{componentId:"mlflow.logged_model.list.view-mode-chart-tooltip",content:R.formatMessage({id:"44XPr5",defaultMessage:"Chart view"}),children:(0,M.Y)(i.ChartLineIcon,{})}),(0,M.Y)("span",{css:n.O,children:R.formatMessage({id:"44XPr5",defaultMessage:"Chart view"})})]})]}),o?(0,M.FD)(M.FK,{children:[(0,M.Y)(_,{searchQuery:g,onChangeSearchQuery:C,loggedModelsData:S}),(0,M.Y)(I,{loggedModelsData:S,onToggleDataset:D,onClearSelectedDatasets:Y,selectedFilterDatasets:w}),(0,M.Y)(L,{orderByColumn:null!==e&&void 0!==e?e:"",orderByAsc:t,onChangeOrderBy:s,columnDefs:d})]}):(0,M.Y)(n.B,{componentId:"mlflow.logged_model.list.sort",icon:t?(0,M.Y)(i.SortAscendingIcon,{}):(0,M.Y)(i.SortDescendingIcon,{}),onClick:()=>{e&&s(e,!t)},children:(0,M.Y)(f.A,{id:"eDoQXM",defaultMessage:"Sort: Created"})}),(0,M.Y)(v.$,{columnDefs:d,columnVisibility:c,onUpdateColumns:l,disabled:m===b.CHART}),(0,u.O6)()&&(0,M.Y)(H,{groupBy:x,onChangeGroupBy:A})]})};var O=o(36506),$=o(31798),q=o(88311),P=o(42550),U=o(9133),V=o(71932),W=o(63617),Q=o(73150),G=o(39045),j=o(75627),X=o(62758),J=o(30152),Z=o(54346),ee=o(88421);const te=(e,t)=>t?JSON.stringify([t,e]):null!==e&&void 0!==e?e:"",oe=(e,t=1)=>`experiment-logged-models-charts-ui-state-v${t}-${e}`,re=()=>({compareRunCharts:void 0,compareRunSections:void 0,autoRefreshEnabled:!1,isAccordionReordered:!1,chartsSearchFilter:"",globalLineChartConfig:void 0,isDirty:!1}),ne=(e,t)=>{if("UPDATE"===t.type)return{...t.stateSetter(e),isDirty:!0};if("METRICS_UPDATED"===t.type){const{compareRunCharts:o,compareRunSections:r}=(e=>{const t=e.map((({dataAccessKey:e,metricKey:t,datasetName:o})=>({deleted:!1,type:J.zL.BAR,uuid:`autogen-${e}`,metricSectionId:o?`autogen-${o}`:"default",isGenerated:!0,metricKey:t,dataAccessKey:e,datasetName:o,displayName:o?`(${o}) ${t}`:void 0}))),o=(0,U.uniq)(e.map((({datasetName:e})=>e))).map((e=>({display:!0,name:null!==e&&void 0!==e?e:"Metrics",uuid:e?`autogen-${e}`:"default",isReordered:!1})));return(0,U.isEmpty)(o)&&o.push({display:!0,name:"Metrics",uuid:"default",isReordered:!1}),{compareRunCharts:t,compareRunSections:o}})(t.metricsByDatasets);return((e,t)=>{var o,r;if((!e.compareRunCharts||!e.compareRunSections||!e.isDirty)&&(t.compareRunCharts.length>0||t.compareRunSections.length>0))return{...e,compareRunCharts:null!==(o=t.compareRunCharts)&&void 0!==o?o:[],compareRunSections:null!==(r=t.compareRunSections)&&void 0!==r?r:[]};const n=t.compareRunCharts.filter((t=>{var o;return!(null!==(o=e.compareRunCharts)&&void 0!==o&&o.find((e=>e.uuid===t.uuid)))})),a=t.compareRunSections.filter((t=>{var o;return n.find((e=>e.metricSectionId===t.uuid))&&!(null!==(o=e.compareRunSections)&&void 0!==o&&o.find((e=>e.uuid===t.uuid)))}));return a.length>0||n.length>0?{...e,compareRunCharts:e.compareRunCharts?[...e.compareRunCharts,...n]:t.compareRunCharts,compareRunSections:e.compareRunSections?[...e.compareRunSections,...a]:t.compareRunSections}:e})(e,{compareRunCharts:o,compareRunSections:r})}return"INITIALIZE"===t.type&&t.initialConfig?t.initialConfig:e},ae=(e,t)=>{const[o,r]=(0,m.useReducer)(ne,void 0,re),[n,a]=(0,m.useState)(!0);(0,m.useEffect)((()=>{a(!0),(async e=>{const t=localStorage.getItem(oe(e));if(t)try{return JSON.parse(t)}catch{return}})(t).then((e=>{r({type:"INITIALIZE",initialConfig:e}),a(!1)}))}),[t]),(0,m.useEffect)((()=>{n||r({type:"METRICS_UPDATED",metricsByDatasets:e})}),[e,n]),(0,m.useEffect)((()=>{o.isDirty&&(async(e,t)=>{localStorage.setItem(oe(e),JSON.stringify(t))})(t,o)}),[t,o]);const i=(0,m.useCallback)((e=>r({type:"UPDATE",stateSetter:e})),[]);return{chartUIState:o,updateUIState:i,loading:n}};var ie=o(19415),se=o(58481);var le={name:"1qmr6ab",styles:"overflow:auto"};const de=(0,m.memo)((({chartData:e,uiState:t,metricKeysByDataset:o,minWidth:a})=>{var s,l;const{theme:d}=(0,n.u)(),{formatMessage:c}=(0,h.A)(),u=(0,m.useMemo)((()=>(0,U.uniq)(e.flatMap((e=>Object.keys(e.metrics))))),[e]),p=(0,m.useMemo)((()=>(0,U.uniq)(e.flatMap((e=>Object.keys(e.params))))),[e]),g=(0,X.g_)(),v=(0,m.useCallback)((e=>{g((t=>({...t,chartsSearchFilter:e})))}),[g]),[y,b]=(0,m.useState)(null),C=(0,m.useCallback)((e=>t=>b(J.i$.getEmptyChartCardByType(t,!1,void 0,e))),[]),S=(0,X.Ez)(),w=(0,X.KP)(),[D,Y]=(0,m.useState)(void 0),_=(0,m.useMemo)((()=>({runs:e})),[e]),A=(0,m.useMemo)((()=>({runs:e,getDataTraceLink:se.Ay.getExperimentLoggedModelDetailsPageRoute})),[e]),R=(0,M.Y)("div",{css:(0,r.AH)({marginTop:d.spacing.lg},""),children:(0,M.Y)(i.Empty,{description:(0,M.Y)(f.A,{id:"oKgZFA",defaultMessage:"No models found in experiment or all models are hidden. Select at least one model to view charts."})})});return(0,M.Y)("div",{css:(0,r.AH)({backgroundColor:d.colors.backgroundPrimary,paddingLeft:d.spacing.md,paddingRight:d.spacing.md,paddingBottom:d.spacing.md,borderTop:`1px solid ${d.colors.border}`,borderLeft:`1px solid ${d.colors.border}`,flex:1,overflow:"hidden",display:"flex",minWidth:a},""),children:(0,M.FD)("div",{css:(0,r.AH)({display:"flex",flexDirection:"column",gap:d.spacing.sm,paddingTop:d.spacing.sm,overflow:"hidden",flex:1},""),children:[(0,M.Y)(x.I,{componentId:"mlflow.logged_model.list.charts.search",role:"searchbox",prefix:(0,M.Y)(x.S,{}),value:null!==(s=t.chartsSearchFilter)&&void 0!==s?s:"",allowClear:!0,onChange:({target:e})=>v(e.value),placeholder:c({id:"7teFL4",defaultMessage:"Search metric charts"})}),(0,M.FD)("div",{css:le,children:[(0,M.Y)(j.W,{contextData:A,component:Q.X,children:(0,M.Y)(V.c_,{visibleChartCards:t.compareRunCharts,children:(0,M.Y)(G.J,{compareRunSections:t.compareRunSections,compareRunCharts:t.compareRunCharts,reorderCharts:U.noop,insertCharts:U.noop,chartData:e,startEditChart:b,removeChart:w,addNewChartCard:C,search:null!==(l=t.chartsSearchFilter)&&void 0!==l?l:"",groupBy:null,setFullScreenChart:Y,autoRefreshEnabled:!1,hideEmptyCharts:!1,globalLineChartConfig:void 0,supportedChartTypes:[J.zL.BAR,J.zL.SCATTER],noRunsSelectedEmptyState:R})})}),(0,M.Y)(W._,{fullScreenChart:D,onCancel:()=>Y(void 0),chartData:e,groupBy:null,tooltipContextValue:_,tooltipComponent:Q.X,autoRefreshEnabled:!1,globalLineChartConfig:void 0}),y&&(0,M.Y)(ie.z,{chartRunData:e,metricKeyList:u,metricKeysByDataset:o,paramKeyList:p,config:y,onSubmit:e=>{S({...e,displayName:void 0}),b(null)},onCancel:()=>b(null),groupBy:null,supportedChartTypes:[J.zL.BAR,J.zL.SCATTER]})]})]})})})),ce=(0,m.memo)((({loggedModels:e,experimentId:t,minWidth:o})=>{const{theme:a}=(0,n.u)(),i=((e,t)=>{const o=(0,m.useRef)();return o.current&&(0,U.isEqual)(t,o.current.deps)||(o.current={deps:t,value:e()}),o.current.value})((()=>e),[e]),s=(e=>(0,m.useMemo)((()=>{const t=[];return e.forEach((e=>{var o,r;null===(o=e.data)||void 0===o||null===(r=o.metrics)||void 0===r||r.forEach((({key:e,dataset_name:o})=>{if(e&&!t.find((t=>t.metricKey===e&&t.datasetName===o))){const r=te(e,o);t.push({metricKey:e,datasetName:o,dataAccessKey:r})}}))})),(0,U.orderBy)(t,(({datasetName:e})=>!e))}),[e]))(i),{chartUIState:l,updateUIState:d,loading:c}=ae(s,t),u=(e=>{const{isRowHidden:t}=(0,ee.GP)();return(0,m.useMemo)((()=>(0,U.compact)(e.map(((e,o)=>{var r,n,a,i,s,l,d,c,u,m;return null!==(r=e.info)&&void 0!==r&&r.model_id?{displayName:null!==(n=null!==(a=null===(i=e.info)||void 0===i?void 0:i.name)&&void 0!==a?a:null===(s=e.info)||void 0===s?void 0:s.model_id)&&void 0!==n?n:"Unknown",images:{},metrics:(0,U.keyBy)(null===(l=e.data)||void 0===l||null===(d=l.metrics)||void 0===d?void 0:d.map((({dataset_name:e,key:t,value:o,timestamp:r,step:n})=>({dataKey:te(t,e),key:null!==t&&void 0!==t?t:"",value:null!==o&&void 0!==o?o:0,timestamp:null!==r&&void 0!==r?r:0,step:null!==n&&void 0!==n?n:0}))),"dataKey"),params:(0,U.keyBy)(null!==(c=null===(u=e.data)||void 0===u||null===(m=u.params)||void 0===m?void 0:m.map((({key:e,value:t})=>({key:null!==e&&void 0!==e?e:"",value:null!==t&&void 0!==t?t:""}))).filter((({key:e})=>e)))&&void 0!==c?c:[],"key"),tags:{},uuid:e.info.model_id,hidden:t(e.info.model_id,o),color:(0,Z.T6)(e.info.model_id)}:null})))),[e,t])})(i);return c?(0,M.Y)("div",{css:(0,r.AH)({backgroundColor:a.colors.backgroundPrimary,paddingTop:a.spacing.lg,borderTop:`1px solid ${a.colors.border}`,borderLeft:`1px solid ${a.colors.border}`,flex:1,justifyContent:"center",alignItems:"center",display:"flex"},""),children:(0,M.Y)(n.S,{})}):(0,M.Y)(X.oB,{updateChartsUIState:d,children:(0,M.Y)(de,{chartData:u,uiState:l,metricKeysByDataset:s,minWidth:o})})}));var ue=o(25790),me=o(39416),pe=o(39771);var ge={name:"oww3ap",styles:"display:flex;flex:1;overflow:hidden;position:relative"};const he=()=>{const{experimentId:e}=(0,d.g)(),{theme:t}=(0,n.u)(),o=(0,u.fS)(),{state:{orderByColumn:s,orderByAsc:c,columnVisibility:h,rowVisibilityMap:f,rowVisibilityMode:v,selectedFilterDatasets:S,groupBy:w},searchQuery:D,isFilteringActive:Y,setOrderBy:_,setColumnVisibility:x,setRowVisibilityMode:A,toggleRowVisibility:R,updateSearchQuery:I,toggleDataset:B,clearSelectedDatasets:k,setGroupBy:E}=(0,$.k)();l()(e,"Experiment ID must be defined");const{viewMode:T,setViewMode:L}=(()=>{const[e,t]=(0,d.ok)();return{viewMode:(0,y.SK)(b,e.get(C),b.TABLE),setViewMode:e=>{t({[C]:e})}}})(),{data:N,isFetching:z,isLoading:H,error:U,nextPageToken:V,loadMoreResults:W}=(0,g.e)({experimentIds:[e],orderByAsc:c,searchQuery:D,selectedFilterDatasets:S,...(()=>{if(!s)return{orderByField:void 0};const e=(0,F.TQ)(s);return e.datasetDigest&&e.datasetName?{orderByField:`metrics.${e.metricKey}`,orderByDatasetName:e.datasetName,orderByDatasetDigest:e.datasetDigest}:{orderByField:s}})()}),Q=U instanceof me.v7?U:void 0,{data:G}=(0,q.s)({loggedModels:N}),{columnDefs:j,compactColumnDefs:X}=(0,F.ih)({loggedModels:N,columnVisibility:h,isLoading:H,orderByColumn:s,orderByAsc:c,enableSortingByMetrics:o}),[J,Z]=(0,m.useState)(295),[te,oe]=(0,m.useState)(!1),re=T!==b.TABLE,ne=re&&te?(0,M.Y)("div",{css:(0,r.AH)({width:t.spacing.md},"")}):(0,M.Y)(p._,{columnDefs:re?X:j,loggedModels:null!==N&&void 0!==N?N:[],isLoading:H,isLoadingMore:z,badRequestError:Q,moreResultsAvailable:Boolean(V),onLoadMore:W,onOrderByChange:_,orderByAsc:c,orderByColumn:s,columnVisibility:h,relatedRunsData:G,isFilteringActive:Y,groupModelsBy:w}),{resizableMaxWidth:ae,ref:ie}=(0,pe.b)(350);return(0,M.Y)(O.Xs,{children:(0,M.FD)(ee.Ap,{visibilityMap:f,visibilityMode:v,setRowVisibilityMode:A,toggleRowVisibility:R,children:[(0,M.Y)(K,{columnDefs:j,columnVisibility:h,onChangeOrderBy:_,onUpdateColumns:x,orderByColumn:s,orderByAsc:c,viewMode:T,setViewMode:L,searchQuery:D,onChangeSearchQuery:I,loggedModelsData:null!==N&&void 0!==N?N:[],sortingAndFilteringEnabled:o,selectedFilterDatasets:S,onToggleDataset:B,onClearSelectedDatasets:k,groupBy:w,onChangeGroupBy:E}),(0,M.Y)(a.S,{size:"sm",shrinks:!1}),(null===U||void 0===U?void 0:U.message)&&!Q&&(0,M.FD)(M.FK,{children:[(0,M.Y)(i.Alert,{componentId:"mlflow.logged_models.list.error",message:U.message,type:"error",closable:!1}),(0,M.Y)(a.S,{size:"sm",shrinks:!1})]}),re?(0,M.Y)(ue.Co,{children:(0,M.FD)("div",{ref:ie,css:ge,children:[(0,M.Y)(P.t,{onResize:Z,runListHidden:te,width:J,onHiddenChange:oe,maxWidth:ae,children:ne}),T===b.CHART&&(0,M.Y)(ce,{loggedModels:null!==N&&void 0!==N?N:[],experimentId:e,minWidth:350})]})}):ne]})})};var fe=()=>(0,M.Y)(c.X,{children:(0,M.Y)(he,{})})},88311:function(e,t,o){o.d(t,{s:function(){return d}});var r=o(31014),n=o(9133),a=o(77735),i=o(63528);const s=e=>["USE_RELATED_RUNS_DATA_FOR_LOGGED_MODELS",{runUuid:e}],l=async({queryKey:[,{runUuid:e}]})=>{try{const t=await i.x.getRun({run_id:e});return null===t||void 0===t?void 0:t.run}catch(t){return null}},d=({loggedModels:e=[]})=>{var t;const o=(0,r.useMemo)((()=>{const t=(0,n.compact)(null===e||void 0===e?void 0:e.flatMap((e=>{var t,o;return null===e||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.metrics)||void 0===o?void 0:o.map((e=>e.run_id))}))),o=(0,n.compact)(null===e||void 0===e?void 0:e.map((e=>{var t;return null===e||void 0===e||null===(t=e.info)||void 0===t?void 0:t.source_run_id})));return(0,n.sortBy)((0,n.uniq)([...t,...o]))}),[e]),i=(0,a.E)({queries:o.map((e=>({queryKey:s(e),queryFn:l,cacheTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,retry:!1})))}),d=i.some((({isLoading:e})=>e)),c=null===(t=i.find((({error:e})=>e)))||void 0===t?void 0:t.error,u=function(e){const t=(0,r.useRef)(),o=!(!t.current||e.length!==t.current.length)&&e.every(((e,o)=>{var r;return e===(null===(r=t.current)||void 0===r?void 0:r[o])}));return o||(t.current=e),o&&t.current?t.current:e}(i.map((({data:e})=>e)));return{data:(0,r.useMemo)((()=>u.map((e=>e)).filter(Boolean)),[u]),loading:d,error:c}}},92246:function(e,t,o){o.d(t,{X:function(){return u}});var r=o(37368),n=o(28486),a=o(68048),i=o(59403),s=o(88443),l=o(50111);var d={name:"1vfb318",styles:"flex:1;display:flex;align-items:center;justify-content:center"};const c=({error:e})=>{var t;return(0,l.Y)(a.PageWrapper,{css:d,children:(0,l.Y)(a.Empty,{"data-testid":"fallback",title:(0,l.Y)(s.A,{id:"AOoWxS",defaultMessage:"Error"}),description:null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:(0,l.Y)(s.A,{id:"zmMR5p",defaultMessage:"An error occurred while rendering this component."}),image:(0,l.Y)(i.l,{})})})},u=({children:e,resetKey:t})=>(0,l.Y)(n.tH,{FallbackComponent:c,resetKeys:[t],children:(0,l.Y)(r.Au,{children:e})})},96070:function(e,t,o){o.d(t,{$K:function(){return s},M8:function(){return u},jP:function(){return c},tY:function(){return i}});var r=o(31014),n=o(98590),a=o(50111);const i=e=>e.filter((e=>!e.startsWith(n.nt))).map((e=>e.includes('"')||e.includes(" ")||e.includes(".")?`\`${e}\``:e.includes("`")?`"${e}"`:e)),s=(e,t)=>[{label:"Metrics",options:e.metricNames.map((e=>({value:`metrics.${e}`})))},{label:"Parameters",options:e.paramNames.map((e=>({value:`params.${e}`})))},{label:"Tags",options:e.tagNames.map((e=>({value:`tags.${e}`})))},{label:"Attributes",options:t}];var l={name:"lugakg",styles:"font-weight:normal"};const d=(e,t)=>{const o=e.split(RegExp(t.replace(".","\\."),"ig")),n=e.match(RegExp(t.replace(".","\\."),"ig"));return(0,a.Y)("span",{css:l,"data-testid":e,children:o.map(((e,t)=>(0,a.FD)(r.Fragment,{children:[e,t!==o.length-1&&n&&(0,a.Y)("b",{children:n[t]})]},t)))})},c=e=>{const t=/>|<|>=|<=|=|!=|like|ilike/gi,o=(e=>{const t=/and[\s]+/gi,o=[];let r,n;for(;n=t.lastIndex,r=t.exec(e);)o.push({clause:e.substring(n,r.index),startIndex:n});return o.push({clause:e.substring(n),startIndex:n}),o})(e),r=[];return o.forEach((e=>{const o=e.clause.split(t)[0],{startIndex:n}=e;r.push({name:o,startIndex:0+n,endIndex:o.length+n})})),r},u=(e,t,o)=>e.map((e=>{const r=e.options.filter((e=>e.value.toLowerCase().includes(t.name.toLowerCase().trim()))).map((e=>({value:e.value,label:d(e.value,t.name.trim())}))),n=o[e.label],a=[...r.slice(0,n),...r.length>n?[{label:"...",value:`..._${e.label}`}]:[]];return{label:e.label,options:a}})).filter((e=>e.options.length>0))}}]); +//# sourceMappingURL=4588.d69c50d6.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/47.fbc06a47.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/47.fbc06a47.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..839a3d654934e9bc8d8c34e05fe41981d4345f95 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/47.fbc06a47.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[47,2402],{12017:function(e,t,n){n.d(t,{t7:function(){return U},I7:function(){return P},R3:function(){return Q},D2:function(){return q},TQ:function(){return j},ih:function(){return K}});var o=n(31014),l=n(88464),i=n(89555),a=n(59403),r=n(68048),s=n(23823),d=n(48624),u=n(58481),c=n(54346),m=n(79432),g=n(34042),p=n(31926),f=n(88443),v=n(50111);const A=({data:e})=>{var t;const{theme:n}=(0,a.u)(),{expandedGroups:o,onGroupToggle:l}=(0,g.C)(),s=e.groupUuid,c=null===o||void 0===o?void 0:o.includes(s);return(0,v.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:n.spacing.sm},""),children:[(0,v.Y)(a.B,{icon:c?(0,v.Y)(r.ChevronDownIcon,{}):(0,v.Y)(a.q,{}),componentId:"mlflow.logged_model_table.group_toggle",onClick:()=>null===l||void 0===l?void 0:l(s),size:"small"}),null!==(t=e.groupData)&&void 0!==t&&t.sourceRun?(0,v.Y)(d.N_,{to:u.Ay.getRunPageRoute(e.groupData.sourceRun.info.experimentId,e.groupData.sourceRun.info.runUuid),target:"_blank",children:e.groupData.sourceRun.info.runName||e.groupData.sourceRun.info.runUuid}):null,s===p.x$.REMAINING_MODELS_GROUP?(0,v.Y)(a.T.Text,{children:(0,v.Y)(f.A,{id:"bZdMSj",defaultMessage:"Ungrouped"})}):null]})};var h=n(9133),y=n(31179),M=n(91144);var w={name:"pnv6it",styles:"color:inherit;text-decoration:underline"},b={name:"1p2zdak",styles:"margin-right:0;vertical-align:middle"},I={name:"1p2zdak",styles:"margin-right:0;vertical-align:middle"};const _=e=>{var t,n,l,g;const{theme:_}=(0,a.u)(),{data:D}=e,Y=(0,p.o1)(D)?D:null,R=(0,o.useMemo)((()=>Y?[Y]:[]),[Y]),x=(0,M.UJ)(),{modelVersions:k,isLoading:N}=(0,y.b)({loggedModels:R,checkAcl:Boolean(Y)&&x});if((0,h.isSymbol)(D))return null;if((0,p.r3)(D))return(0,v.Y)(A,{data:D});const O=x&&k?k.filter((e=>e.hasAccess)):[],T=null===(t=D.info)||void 0===t?void 0:t.name,L=(()=>{var e,t;if(!x||0===O.length)return null;const n=null!==(e=D.info)&&void 0!==e&&e.experiment_id&&null!==(t=D.info)&&void 0!==t&&t.model_id?u.Ay.getExperimentLoggedModelDetailsPageRoute(D.info.experiment_id,D.info.model_id):null;return n?(0,v.Y)("div",{children:(0,v.Y)(f.A,{id:"BY1k4W",defaultMessage:"Original logged model: {originalModelLink}",values:{originalModelLink:(0,v.Y)(d.N_,{to:n,css:w,children:T})}})}):(0,v.Y)(f.A,{id:"yHbOpe",defaultMessage:"Original logged model: {originalName}",values:{originalName:T}})})();var S;if(N&&x)return(0,v.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:_.spacing.sm,width:"100%",[`.${p.Ne} &`]:{paddingLeft:_.spacing.lg}},""),children:[(0,v.Y)(m.E,{color:(0,c.T6)((null===(S=D.info)||void 0===S?void 0:S.model_id)||"")}),(0,v.Y)(r.ParagraphSkeleton,{label:"Loading..."})]});if(O.length>0){var C;if(1===O.length){var E;const e=O[0],t=(0,v.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:_.spacing.sm,[`.${p.Ne} &`]:{paddingLeft:_.spacing.lg}},""),children:[(0,v.Y)(m.E,{color:(0,c.T6)((null===(E=D.info)||void 0===E?void 0:E.model_id)||"")}),(0,v.FD)(d.N_,{to:e.link,css:(0,i.AH)({display:"flex",alignItems:"center",gap:_.spacing.xs},""),children:[e.displayedName,(0,v.FD)(r.Tag,{componentId:"mlflow.logged_model.name_cell_version_tag",css:b,children:["v",e.version]})]})]});return L?(0,v.Y)(s.T,{content:L,componentId:"mlflow.logged_model.name_cell_tooltip",children:t}):t}const e=(0,v.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:_.spacing.sm,[`.${p.Ne} &`]:{paddingLeft:_.spacing.lg}},""),children:[(0,v.Y)(m.E,{color:(0,c.T6)((null===(C=D.info)||void 0===C?void 0:C.model_id)||"")}),(0,v.Y)(r.Overflow,{children:O.map((e=>(0,v.Y)(o.Fragment,{children:(0,v.FD)(d.N_,{to:e.link,css:(0,i.AH)({display:"flex",alignItems:"center",gap:_.spacing.xs},""),children:[e.displayedName,(0,v.FD)(r.Tag,{componentId:"mlflow.logged_model.name_cell_version_tag",css:I,children:["v",e.version]})]})},e.link)))})]});return L?(0,v.Y)(s.T,{content:L,componentId:"mlflow.logged_model.name_cell_tooltip",children:e}):e}const B=null!==(n=D.info)&&void 0!==n&&n.experiment_id&&null!==(l=D.info)&&void 0!==l&&l.model_id?u.Ay.getExperimentLoggedModelDetailsPageRoute(D.info.experiment_id,D.info.model_id):null;return B?(0,v.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:_.spacing.sm,[`.${p.Ne} &`]:{paddingLeft:_.spacing.lg}},""),children:[(0,v.Y)(m.E,{color:(0,c.T6)((null===(g=D.info)||void 0===g?void 0:g.model_id)||"")}),(0,v.Y)(d.N_,{to:B,children:T})]}):(0,v.Y)(v.FK,{children:T})};var D=n(58710),Y=n(61477),R=n(28684);const x=({data:e})=>{const t=(0,o.useMemo)((()=>{var t,n;return(null!==(t=null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.metrics)&&void 0!==t?t:[]).reduce(((e,{dataset_digest:t,dataset_name:n,run_id:o})=>(n&&t&&!e.find((e=>e.dataset_name===n&&e.dataset_digest===t))&&e.push({dataset_name:n,dataset_digest:t,run_id:o}),e)),[])}),[e]);return t.length?(0,v.Y)(r.Overflow,{children:t.map((({dataset_digest:e,dataset_name:t,run_id:n})=>(0,v.Y)(R.f,{datasetName:t,datasetDigest:e,runId:null!==n&&void 0!==n?n:null},[t,e].join("."))))}):(0,v.Y)(v.FK,{children:"-"})},k=({data:e})=>{var t,n,o,l,i,a,r,s,c;return null!==(t=e.info)&&void 0!==t&&t.experiment_id&&null!==(n=e.info)&&void 0!==n&&n.source_run_id?(0,v.Y)(d.N_,{to:u.Ay.getRunPageRoute(null===(l=e.info)||void 0===l?void 0:l.experiment_id,null===(i=e.info)||void 0===i?void 0:i.source_run_id),target:"_blank",children:null!==(a=null===(r=e.sourceRun)||void 0===r||null===(s=r.info)||void 0===s?void 0:s.runName)&&void 0!==a?a:null===(c=e.info)||void 0===c?void 0:c.source_run_id}):(null===(o=e.info)||void 0===o?void 0:o.source_run_id)||(0,v.Y)(v.FK,{children:"-"})};var N=n(88421),O=n(1670),T=n(58898),L=n(81313);const S=({data:e,rowIndex:t})=>{var n,o;const{isRowHidden:l,toggleRowVisibility:s}=(0,N.GP)(),d=l(null!==(n=null===(o=e.info)||void 0===o?void 0:o.model_id)&&void 0!==n?n:"",t),{theme:u}=(0,a.u)();return(0,v.Y)(a.B,{componentId:"mlflow.logged_model.list_page.row_visibility_toggle",type:"link",onClick:()=>{var n,o;return s(null!==(n=null===(o=e.info)||void 0===o?void 0:o.model_id)&&void 0!==n?n:"",t)},icon:d?(0,v.Y)(r.VisibleOffIcon,{css:(0,i.AH)({color:u.colors.textSecondary},"")}):(0,v.Y)(O.h,{css:(0,i.AH)({color:u.colors.textSecondary},"")})})},C=()=>{const e=(0,l.A)(),{visibilityMode:t,usingCustomVisibility:n,setRowVisibilityMode:o}=(0,N.GP)(),{theme:s}=(0,a.u)();return(0,v.FD)(r.DropdownMenu.Root,{modal:!1,children:[(0,v.Y)(r.DropdownMenu.Trigger,{asChild:!0,children:(0,v.Y)(a.B,{componentId:"mlflow.logged_model.list_page.global_row_visibility_toggle",type:"link","data-testid":"experiment-view-runs-visibility-column-header","aria-label":e.formatMessage({id:"BTAzqb",defaultMessage:"Toggle visibility of rows"}),children:t===T.oy.HIDEALL?(0,v.Y)(r.VisibleOffIcon,{css:(0,i.AH)({color:s.colors.textSecondary},"")}):(0,v.Y)(O.h,{css:(0,i.AH)({color:s.colors.textSecondary},"")})})}),(0,v.Y)(r.DropdownMenu.Content,{children:(0,v.FD)(r.DropdownMenu.RadioGroup,{componentId:"mlflow.logged_model.list_page.global_row_visibility_toggle.options",value:t,onValueChange:e=>o((0,L.SK)(T.oy,e,T.oy.FIRST_10_RUNS)),children:[(0,v.FD)(r.DropdownMenu.RadioItem,{value:T.oy.FIRST_10_RUNS,children:[(0,v.Y)(r.DropdownMenu.ItemIndicator,{children:n?(0,v.Y)(r.DashIcon,{}):null}),(0,v.Y)(f.A,{id:"w39cZ4",defaultMessage:"Show first 10"})]}),(0,v.FD)(r.DropdownMenu.RadioItem,{value:T.oy.FIRST_20_RUNS,children:[(0,v.Y)(r.DropdownMenu.ItemIndicator,{children:n?(0,v.Y)(r.DashIcon,{}):null}),(0,v.Y)(f.A,{id:"ONIiUE",defaultMessage:"Show first 20"})]}),(0,v.FD)(r.DropdownMenu.RadioItem,{value:T.oy.SHOWALL,children:[(0,v.Y)(r.DropdownMenu.ItemIndicator,{children:n?(0,v.Y)(r.DashIcon,{}):null}),(0,v.Y)(f.A,{id:"4yjF8O",defaultMessage:"Show all runs"})]}),(0,v.FD)(r.DropdownMenu.RadioItem,{value:T.oy.HIDEALL,children:[(0,v.Y)(r.DropdownMenu.ItemIndicator,{children:n?(0,v.Y)(r.DashIcon,{}):null}),(0,v.Y)(f.A,{id:"Qi6Etm",defaultMessage:"Hide all runs"})]})]})})]})};var E=n(21317);var B={name:"1p2zdak",styles:"margin-right:0;vertical-align:middle"};const F=({data:e})=>{const{theme:t}=(0,a.u)(),n=(0,o.useMemo)((()=>[e]),[e]),{modelVersions:l}=(0,y.b)({loggedModels:n});return(0,h.isEmpty)(l)?"-":(0,v.Y)(r.Overflow,{children:l.map((e=>(0,v.Y)(o.Fragment,{children:(0,v.FD)(d.N_,{to:e.link,css:(0,i.AH)({display:"flex",alignItems:"center",gap:t.spacing.xs},""),children:[(0,v.Y)(E.h,{}),e.displayedName,(0,v.FD)(r.Tag,{componentId:"mlflow.logged_model.list.registered_model_cell_version_tag",css:B,children:["v",e.version]})]})},e.link)))})};var z=n(36506);const G=(e,t,n)=>`metrics.${JSON.stringify([e,t,n])}`,H=({columnGroup:e})=>{const{onDatasetClicked:t}=(0,z.s7)(),{theme:n}=(0,a.u)(),[l,s]=(0,o.useState)(!1),d=(0,o.useMemo)((()=>{try{const t=e.getGroupId();return t?(e=>{try{const t=e.match(/metrics\.(.+)/);if(!t)return null;const n=t[1],[o,l,i]=JSON.parse(n);return o&&l?{datasetName:o,datasetDigest:l,runId:i}:null}catch{return null}})(t):null}catch{return null}}),[e]);return d?(0,v.FD)("span",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:n.spacing.xs,overflow:"hidden"},""),children:["Dataset:"," ",(0,v.FD)(a.T.Link,{css:(0,i.AH)({".anticon":{fontSize:n.general.iconFontSize},fontSize:n.typography.fontSizeBase,fontWeight:"normal",display:"flex",alignItems:"center",gap:n.spacing.xs},""),role:"button",componentId:"mlflow.logged_model.list.metric_by_dataset_column_header",onClick:async()=>{s(!0);try{await t({datasetName:d.datasetName,datasetDigest:d.datasetDigest,runId:d.runId})}finally{s(!1)}},children:[l?(0,v.Y)(a.S,{size:"small"}):(0,v.Y)(r.TableIcon,{}),d.datasetName," (#",d.datasetDigest,")"]})]}):(0,v.Y)(f.A,{id:"tkc+sv",defaultMessage:"No dataset"})};var W=n(43102);const V=({data:e})=>(0,v.Y)(W.J,{loggedModel:e});let U=function(e){return e.Attributes="attributes",e.Params="params",e}({}),P=function(e){return e.RelationshipType="relationship_type",e.Step="step",e.Select="select",e.Name="name",e.Status="status",e.CreationTime="creation_time",e.Source="source",e.SourceRun="source_run_id",e.RegisteredModels="registered_models",e.Dataset="dataset",e}({});const q="metrics.",Q=[P.Select,P.Name,P.CreationTime],Z=(e,t)=>e&&t?JSON.stringify([e,t]):"",j=e=>{const t=e.match(/metrics\.(.*?)(?:\.(.*))?$/);try{if(t){const[,e,n]=t;if(!n)return{datasetName:void 0,datasetDigest:void 0,metricKey:e};const[o,l]=JSON.parse(e);return{datasetName:o,datasetDigest:l,metricKey:n}}}catch(n){console.error("Failed to parse metric column ID",n)}return{datasetName:void 0,datasetDigest:void 0,metricKey:e}},J=[P.Name,P.Status,P.CreationTime,P.Source,P.SourceRun,P.RegisteredModels,P.Dataset],K=({columnVisibility:e={},supportedAttributeColumnKeys:t=J,loggedModels:n=[],disablePinnedColumns:i=!1,disableOrderBy:a=!1,enableSortingByMetrics:r,orderByColumn:s,orderByAsc:d,isLoading:u})=>{const c=(0,o.useMemo)((()=>(e=>{const t={};for(const l of(0,h.orderBy)(e,(e=>{var t;return null===(t=e.info)||void 0===t?void 0:t.model_id})))for(const e of null!==(n=null===l||void 0===l||null===(o=l.data)||void 0===o?void 0:o.metrics)&&void 0!==n?n:[]){var n,o;if(!e.key)continue;const l=e.dataset_name&&e.dataset_digest?Z(e.dataset_name,e.dataset_digest):"";t[l]||(t[l]={datasetName:e.dataset_name,datasetDigest:e.dataset_digest,runId:e.run_id,metrics:[]}),t[l]&&!t[l].metrics.includes(e.key)&&t[l].metrics.push(e.key)}return t})(n)),[n]),m=(0,o.useMemo)((()=>(0,h.compact)((0,h.uniq)(n.map((e=>{var t,n;return null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.params)||void 0===n?void 0:n.map((e=>e.key))})).flat()))),[n]),g=(0,l.A)();return((e,t,n)=>{const l=(0,o.useRef)();return l.current&&((0,h.isEqual)(t,l.current.deps)||n)||(l.current={deps:t,value:e()}),l.current.value})((()=>{const n=(0,M.UJ)(),o=[{colId:P.RelationshipType,headerName:"Type",sortable:!1,valueGetter:({data:e})=>"input"===e.direction?g.formatMessage({id:"wusz4l",defaultMessage:"Input"}):g.formatMessage({id:"jULSKd",defaultMessage:"Output"}),pinned:i?void 0:"left",resizable:!1,width:100},{colId:P.Step,headerName:g.formatMessage({id:"jOyo3+",defaultMessage:"Step"}),field:"step",valueGetter:({data:e})=>{var t;return null!==(t=e.step)&&void 0!==t?t:"-"},pinned:i?void 0:"left",resizable:!1,width:60},{headerName:g.formatMessage({id:"y2oQyU",defaultMessage:"Model name"}),colId:P.Name,cellRenderer:_,cellClass:({data:e})=>(0,h.isObject)(e)&&"isGroup"in e?p.jW:"",resizable:!0,pinned:i?void 0:"left",minWidth:140,flex:1},{headerName:g.formatMessage({id:"atcZM5",defaultMessage:"Status"}),cellRenderer:Y.a,colId:P.Status,pinned:i?void 0:"left",width:140,resizable:!1},{headerName:g.formatMessage({id:"xIcbik",defaultMessage:"Created"}),field:"info.creation_timestamp_ms",colId:P.CreationTime,cellRenderer:D.P,resizable:!0,pinned:i?void 0:"left",sortable:!a,sortingOrder:["desc","asc"],comparator:()=>0},{headerName:g.formatMessage({id:"bOGBCO",defaultMessage:"Logged from"}),colId:P.Source,cellRenderer:V,resizable:!0},{headerName:g.formatMessage({id:"5xPlEu",defaultMessage:"Source run"}),colId:P.SourceRun,cellRenderer:k,resizable:!0},{headerName:g.formatMessage({id:"UtUq/x",defaultMessage:"Registered models"}),colId:P.RegisteredModels,cellRenderer:F,resizable:!0},{headerName:g.formatMessage({id:"rpqN8U",defaultMessage:"Dataset"}),colId:P.Dataset,cellRenderer:x,resizable:!0}],l=[{groupId:"attributes",headerName:g.formatMessage({id:"ZoBXpz",defaultMessage:"Model attributes"}),children:o.filter((e=>(!n||e.colId!==P.RegisteredModels)&&(!e.colId||t.includes(e.colId))))}];(0,h.orderBy)((0,h.values)(c),(e=>null===e||void 0===e?void 0:e.datasetName)).forEach((({datasetDigest:t,datasetName:n,runId:o,metrics:i})=>{var u;const c=!n||!t?"":`${n} (#${t})`;l.push({headerName:c,groupId:G(n,t,o),headerGroupComponent:H,children:null!==(u=null===i||void 0===i?void 0:i.map((o=>{const l=((e,t,n)=>t&&n?`${q}${Z(t,n)}.${e}`:`${q}${e}`)(o,n,t);return{headerName:o,hide:!1===e[l],colId:l,valueGetter:({data:e})=>{for(const i of null!==(t=null===(l=e.data)||void 0===l?void 0:l.metrics)&&void 0!==t?t:[]){var t,l;if(i.key===o&&(i.dataset_name===n||!n&&!i.dataset_name))return i.value}},resizable:!0,sortable:r&&!a,sortingOrder:["desc","asc"],comparator:()=>0,sort:r&&l===s?d?"asc":"desc":null}})))&&void 0!==u?u:[]})})),m.length>0&&l.push({headerName:g.formatMessage({id:"mmiHAX",defaultMessage:"Parameters"}),groupId:"params",children:m.map((t=>({headerName:t,colId:`params.${t}`,hide:!1===e[`params.${t}`],valueGetter:({data:e})=>{for(const l of null!==(n=null===(o=e.data)||void 0===o?void 0:o.params)&&void 0!==n?n:[]){var n,o;if(l.key===t)return l.value}},resizable:!0})))});const u=[{headerCheckboxSelection:!1,checkboxSelection:!1,width:40,maxWidth:40,resizable:!1,colId:P.Select,cellRenderer:S,headerComponent:C,flex:void 0},{headerName:g.formatMessage({id:"y2oQyU",defaultMessage:"Model name"}),colId:P.Name,cellRenderer:_,resizable:!0,flex:1}];return{columnDefs:l,compactColumnDefs:u}}),[c,m,t],u)}},22402:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}});var o=n(45605),l=n(14943),i=(n(44181),n(80672),n(31014)),a=n(50111);const r=()=>{const e=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(e.current&&e.current.getRootNode()!==document){const e=document.createElement("style");return e.className="ag-grid-snapshot-base-css",e.appendChild(document.createTextNode('@font-face { font-family: "agGridBalham"; src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABgoAAsAAAAALEgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAmMAAAR2YfRkQU9TLzIAAANsAAAAQQAAAFZWUFLwY21hcAAAA7AAAAIMAAAFnGSNxkJnbHlmAAAFvAAADpIAABo4y6JNTGhlYWQAABRQAAAANAAAADZ2zcSBaGhlYQAAFIQAAAAaAAAAJAfQBDFobXR4AAAUoAAAABoAAAEgs7L//WxvY2EAABS8AAAAawAAAJJHu0GKbWF4cAAAFSgAAAAfAAAAIAFeAKpuYW1lAAAVSAAAATUAAAJG0OP3eXBvc3QAABaAAAABqAAAAm9qOX49eJx9lM1SE1EQhc8wAYFEoDQqRkRQ/IvKMD8Zk/CTkJBoWS5cWJYLN1hWWVZRrngOH8AnYOkT+AAufAIfwIVL15ZfdwaDLMitTO50n+4+fW7fKJA0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Ra8SS13pA5VUyjS96HvNjDVqYGzIRFnahcrTOjZQ7VqbtNZzG4YufrfZpAnBmsxOp9vHBZM6XcxC4sVc9X0Vu2S5XZjeGkZDIW5gFJxSx1fWa8zaIIIChyKgsRgWeCQlM/aZsIwnzqloqFkxZ8pBq/UXq/Gj5g==") format("woff"); font-weight: normal; font-style: normal; }')),document.head.appendChild(e),()=>e.remove()}return()=>{}}),[]),(0,a.Y)("span",{ref:e})};var s=e=>(0,a.FD)(a.FK,{children:[(0,a.Y)(r,{}),(0,a.Y)(l.AgGridReact,{modules:[o.Q],...e})]})},30706:function(e,t,n){n.d(t,{$:function(){return p}});var o=n(68048),l=n(59403),i=n(88464),a=n(88443),r=n(9133),s=n(31014),d=n(12017),u=n(50111);const c="all_metrics",m=[d.t7.Attributes,c];var g={name:"1a6l0ym",styles:"max-height:500px;padding-right:32px"};const p=({onUpdateColumns:e,columnVisibility:t={},columnDefs:n,disabled:p,customTrigger:f})=>{const v=(0,i.A)(),{leafColumnIds:A=[],treeData:h=[]}=(0,s.useMemo)((()=>{var e;if(!n)return{};const t=[],o=n.find((e=>e.groupId===d.t7.Attributes));var l;o&&t.push({...o,children:null===(l=o.children)||void 0===l?void 0:l.filter((({colId:e})=>e&&!d.R3.includes(e)))});const i=n.filter((e=>{var t;return null===(t=e.groupId)||void 0===t?void 0:t.startsWith(d.D2)})).map((e=>({...e,headerName:e.headerName?`Dataset: ${e.headerName}`:v.formatMessage({id:"1b3c+B",defaultMessage:"No dataset"})})));i.length>0&&t.push({groupId:c,headerName:v.formatMessage({id:"h3GmoO",defaultMessage:"Metrics"}),children:i});const a=n.find((e=>e.groupId===d.t7.Params));a&&t.push(a);const s=[],u=e=>{var t,n,o,l,i;return e.colId&&s.push(e.colId),{key:null!==(t=null!==(n=e.groupId)&&void 0!==n?n:e.colId)&&void 0!==t?t:"",title:null!==(o=e.headerName)&&void 0!==o?o:"",children:(0,r.compact)(null!==(l=null===(i=e.children)||void 0===i?void 0:i.map(u))&&void 0!==l?l:[])}},m=(0,r.compact)(null!==(e=null===t||void 0===t?void 0:t.map((e=>u(e))))&&void 0!==e?e:[]);return{leafColumnIds:s,treeData:m}}),[n,v]);return(0,u.FD)(o.DropdownMenu.Root,{children:[(0,u.Y)(o.DropdownMenu.Trigger,{asChild:!0,disabled:p,children:null!==f&&void 0!==f?f:(0,u.Y)(l.B,{componentId:"mlflow.logged_model.list.columns",icon:(0,u.Y)(o.ColumnsIcon,{}),disabled:p,children:(0,u.Y)(a.A,{id:"EN0lUA",defaultMessage:"Columns"})})}),(0,u.Y)(o.DropdownMenu.Content,{css:g,children:(0,u.Y)(o.Tree,{treeData:h,mode:"checkable",showLine:!0,defaultExpandedKeys:m,defaultCheckedKeys:A.filter((e=>!1!==t[e])),onCheck:t=>{const n="checked"in t?t.checked:t,o={};for(const e of A)n.includes(e)||(o[e]=!1);e(o)}})})]})}},31798:function(e,t,n){n.d(t,{P:function(){return d},k:function(){return u}});var o=n(9133),l=n(31014),i=n(58898),a=n(88421),r=n(12017),s=n(82638);const d=[r.I7.CreationTime],u=()=>{const[e,t]=(0,l.useReducer)(((e,t)=>{if("SET_ORDER_BY"===t.type)return{...e,orderByColumn:t.orderByColumn,orderByAsc:t.orderByAsc};if("SET_GROUP_BY"===t.type)return{...e,groupBy:t.groupBy};if("SET_COLUMN_VISIBILITY"===t.type)return{...e,columnVisibility:t.columnVisibility};if("CLEAR_DATASETS"===t.type)return{...e,selectedFilterDatasets:[]};var n,l,i;if("TOGGLE_DATASET"===t.type)return{...e,selectedFilterDatasets:null!==(n=e.selectedFilterDatasets)&&void 0!==n&&n.some((e=>(0,o.isEqual)(e,t.dataset)))?null===(l=e.selectedFilterDatasets)||void 0===l?void 0:l.filter((e=>!(0,o.isEqual)(e,t.dataset))):[...null!==(i=e.selectedFilterDatasets)&&void 0!==i?i:[],t.dataset]};if("SET_RUN_VISIBILITY"===t.type){if(t.visibilityMode)return{...e,rowVisibilityMode:t.visibilityMode,rowVisibilityMap:{}};if(t.rowUuid&&void 0!==t.rowIndex){var r;const n=(0,a.cP)(e.rowVisibilityMode,t.rowUuid,t.rowIndex,null!==(r=e.rowVisibilityMap)&&void 0!==r?r:{});return{...e,rowVisibilityMap:{...e.rowVisibilityMap,[t.rowUuid]:n}}}}return e}),{orderByColumn:(0,o.first)(d),orderByAsc:!1,columnVisibility:{},rowVisibilityMode:i.oy.FIRST_10_RUNS}),n=(0,l.useCallback)(((e,n)=>t({type:"SET_ORDER_BY",orderByColumn:e,orderByAsc:n})),[]),r=(0,l.useCallback)((e=>t({type:"SET_COLUMN_VISIBILITY",columnVisibility:e})),[]),u=(0,l.useCallback)((e=>t({type:"SET_RUN_VISIBILITY",visibilityMode:e})),[]),c=(0,l.useCallback)(((e,n)=>t({type:"SET_RUN_VISIBILITY",rowUuid:e,rowIndex:n})),[]),m=(0,l.useCallback)((e=>t({type:"TOGGLE_DATASET",dataset:e})),[]),g=(0,l.useCallback)((e=>t({type:"SET_GROUP_BY",groupBy:e})),[]),p=(0,l.useCallback)((()=>t({type:"CLEAR_DATASETS"})),[]),f=(0,s.t)(e),[v,A]=(0,l.useState)("");return{state:f,isFilteringActive:Boolean(v||!(0,o.isEmpty)(e.selectedFilterDatasets)),searchQuery:v,setOrderBy:n,setColumnVisibility:r,setRowVisibilityMode:u,toggleRowVisibility:c,updateSearchQuery:A,toggleDataset:m,clearSelectedDatasets:p,setGroupBy:g}}},31926:function(e,t,n){n.d(t,{Gv:function(){return d},Ne:function(){return u},Ow:function(){return p},QQ:function(){return g},jW:function(){return c},o1:function(){return s},q_:function(){return a},r3:function(){return r},x$:function(){return m}});var o=n(9133),l=n(31014),i=n(91144);let a=function(e){return e.RUNS="runs",e}({});const r=e=>(0,o.isObject)(e)&&"isGroup"in e&&!0===e.isGroup,s=e=>(0,o.isObject)(e)&&!r(e),d=Symbol("LoadMoreRow"),u="mlflow-logged-models-table-grouped",c="mlflow-logged-models-table-group-cell";let m=function(e){return e.LOAD_MORE="LOAD_MORE",e.REMAINING_MODELS_GROUP="REMAINING_MODELS_GROUP",e}({});const g=({data:e})=>{var t,n;return(0,o.isObject)(e)?"isGroup"in e?e.groupUuid:null!==(t=null===e||void 0===e||null===(n=e.info)||void 0===n?void 0:n.model_id)&&void 0!==t?t:"":m.LOAD_MORE},p=({groupModelsBy:e,loggedModelsWithSourceRuns:t,expandedGroups:n})=>(0,l.useMemo)((()=>{if(!(0,i.O6)()||!e||(0,o.isEmpty)(t))return t;const l=(0,o.groupBy)(t,(e=>{var t,n;return null!==(t=null===(n=e.info)||void 0===n?void 0:n.source_run_id)&&void 0!==t?t:m.REMAINING_MODELS_GROUP})),a=(0,o.orderBy)(Object.entries(l),(([e])=>e!==m.REMAINING_MODELS_GROUP),"desc"),r=[];return a.forEach((([e,t])=>{var l;r.push({isGroup:!0,groupUuid:e,groupData:{sourceRun:null===(l=(0,o.first)(t))||void 0===l?void 0:l.sourceRun}}),n.includes(e)&&r.push(...t)})),r}),[t,n,e])},34042:function(e,t,n){n.d(t,{C:function(){return r},E:function(){return a}});var o=n(31014),l=n(50111);const i=(0,o.createContext)({}),a=({loadMoreResults:e,moreResultsAvailable:t,isLoadingMore:n,children:a,expandedGroups:r,onGroupToggle:s})=>{const d=(0,o.useMemo)((()=>({moreResultsAvailable:t,loadMoreResults:e,isLoadingMore:n,expandedGroups:r,onGroupToggle:s})),[t,e,n,r,s]);return(0,l.Y)(i.Provider,{value:d,children:a})},r=()=>(0,o.useContext)(i)},38654:function(e,t,n){n.d(t,{_:function(){return C}});var o=n(89555),l=n(59403),i=n(68048),a=n(22402),r=n(28940),s=n(31014),d=n(34042),u=n(31798),c=n(88443),m=n(28239),g=n(23823);var p=n.p+"static/media/versions-empty.3e2d8bb8c5b8ddd0a19a34890b36ad41.svg",f=n(20897),v=n(25866),A=n(83667),h=n(72314),y=n(48624),M=n(4877),w=n.n(M),b=n(50111);const I=(e,t)=>e?D(t):_(t),_=e=>`\nimport pandas as pd\nfrom sklearn.linear_model import ElasticNet\nfrom sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score\nfrom sklearn.datasets import load_iris\nfrom sklearn.model_selection import train_test_split\n\nimport mlflow\nimport mlflow.sklearn\nfrom mlflow.entities import Dataset\n\nmlflow.set_experiment(experimentid="${e}")\n\n# Helper function to compute metrics\ndef compute_metrics(actual, predicted):\n rmse = mean_squared_error(actual, predicted) \n mae = mean_absolute_error(actual, predicted)\n r2 = r2_score(actual, predicted)\n return rmse, mae, r2\n\n# Load Iris dataset and prepare the DataFrame\niris = load_iris()\niris_df = pd.DataFrame(data=iris.data, columns=iris.feature_names)\niris_df['quality'] = (iris.target == 2).astype(int) # Create a binary target for simplicity\n\n# Split into training and testing datasets\ntrain_df, test_df = train_test_split(iris_df, test_size=0.2, random_state=42)\n\n# Start a run to represent the training job\nwith mlflow.start_run() as training_run:\n # Load the training dataset with MLflow. We will link training metrics to this dataset.\n train_dataset: Dataset = mlflow.data.from_pandas(train_df, name="train")\n train_x = train_dataset.df.drop(["quality"], axis=1)\n train_y = train_dataset.df[["quality"]]\n\n # Fit a model to the training dataset\n lr = ElasticNet(alpha=0.5, l1_ratio=0.5, random_state=42)\n lr.fit(train_x, train_y)\n\n # Log the model, specifying its ElasticNet parameters (alpha, l1_ratio)\n # As a new feature, the LoggedModel entity is linked to its name and params\n model_info = mlflow.sklearn.log_model(\n sk_model=lr,\n name="elasticnet",\n params={\n "alpha": 0.5,\n "l1_ratio": 0.5,\n },\n input_example = train_x\n )\n\n # Inspect the LoggedModel and its properties\n logged_model = mlflow.get_logged_model(model_info.model_id)\n print(logged_model.model_id, logged_model.params)\n\n # Evaluate the model on the training dataset and log metrics\n # These metrics are now linked to the LoggedModel entity\n predictions = lr.predict(train_x)\n (rmse, mae, r2) = compute_metrics(train_y, predictions)\n mlflow.log_metrics(\n metrics={\n "rmse": rmse,\n "r2": r2,\n "mae": mae,\n },\n model_id=logged_model.model_id,\n dataset=train_dataset\n )\n\n # Inspect the LoggedModel, now with metrics\n logged_model = mlflow.get_logged_model(model_info.model_id)\n print(logged_model.model_id, logged_model.metrics)`.trim(),D=e=>`\nimport mlflow\n\nmlflow.set_experiment(experiment_id="${e}")\n\n# Define a new GenAI app version, represented as an MLflow LoggedModel\nmlflow.set_active_model(name="my-app-v1")\n\n# Log LLM hyperparameters, prompts, and more\nmlflow.log_model_params({\n "prompt_template": "My prompt template",\n "llm": "databricks-llama-4-maverick",\n "temperature": 0.2,\n})\n\n# Define application code and add MLflow tracing to capture requests and responses.\n# (Replace this with your GenAI application or agent code)\n@mlflow.trace\ndef predict(query):\n return f"Response to query: {query}"\n\n# Run your application code. Resulting traces are automatically linked to\n# your GenAI app version.\npredict("What is MLflow?")\n`.trim();var Y={name:"1azakc",styles:"text-align:center"},R={name:"1bmnxg7",styles:"white-space:nowrap"},x={name:"1bmnxg7",styles:"white-space:nowrap"},k={name:"174hulx",styles:"max-width:min(100%, 600px)"};const N=({displayShowExampleButton:e=!0,isFilteringActive:t=!1,badRequestError:n})=>{const{theme:a}=(0,l.u)(),{experimentId:r}=(0,y.g)();w()(r,"Experiment ID must be defined");const[d,u]=(0,s.useState)(!1),{data:m,loading:M}=(0,h.L)({experimentId:r}),_=m,D=(0,A.BH)(null===_||void 0===_?void 0:_.tags),N=D===v.Gk.GENAI_DEVELOPMENT||D===v.Gk.GENAI_DEVELOPMENT_INFERRED,O=!n&&!t;return(0,b.FD)("div",{css:(0,o.AH)({inset:0,top:a.general.heightBase+a.spacing.lg,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",minHeight:160},""),children:[O?(0,b.FD)("div",{css:(0,o.AH)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",maxWidth:"min(100%, 600px)",padding:`0px ${a.spacing.md}px`},""),children:[(0,b.Y)(l.T.Title,{level:3,color:"secondary",children:N?(0,b.Y)(c.A,{id:"qNtagt",defaultMessage:"Track and compare versions of your GenAI app"}):(0,b.Y)(c.A,{id:"sAtY9h",defaultMessage:"Track and compare versions of your models"})}),(0,b.Y)(l.T.Paragraph,{color:"secondary",css:Y,children:N?(0,b.Y)(c.A,{id:"KB62p3",defaultMessage:"Track every version of your app's code and prompts to understand how quality changes over time. {learnMoreLink}",values:{learnMoreLink:(0,b.Y)(l.T.Link,{componentId:"mlflow.logged_models.list.genai_no_results_learn_more",openInNewTab:!0,href:"https://mlflow.org/docs/latest/genai/prompt-version-mgmt/version-tracking/",css:R,children:(0,b.Y)(c.A,{id:"izS5yQ",defaultMessage:"Learn more"})})}}):(0,b.Y)(c.A,{id:"PbhoUk",defaultMessage:"Track every version of your model to understand how quality changes over time. {learnMoreLink}",values:{learnMoreLink:(0,b.Y)(l.T.Link,{componentId:"mlflow.logged_models.list.ml_no_results_learn_more",openInNewTab:!0,href:"https://mlflow.org/docs/latest/ml/mlflow-3/deep-learning/",css:x,children:(0,b.Y)(c.A,{id:"izS5yQ",defaultMessage:"Learn more"})})}})}),(0,b.Y)("img",{css:k,src:p,alt:"No models found"}),(0,b.Y)("div",{css:(0,o.AH)({display:"flex",gap:a.spacing.sm,marginTop:a.spacing.md},""),children:(0,b.Y)(l.B,{componentId:"mlflow.logged_models.list.show_example_code",onClick:()=>u(!d),children:N?(0,b.Y)(c.A,{id:"quxZB8",defaultMessage:"Create version"}):(0,b.Y)(c.A,{id:"fMepK0",defaultMessage:"Create model version"})})})]}):(0,b.Y)(i.Empty,{title:n?(0,b.Y)(c.A,{id:"Xm5xxu",defaultMessage:"Request error"}):(0,b.Y)(c.A,{id:"X6P8tX",defaultMessage:"No models found"}),description:n?n.message:t?(0,b.Y)(c.A,{id:"2deqxk",defaultMessage:"We couldn't find any models matching your search criteria. Try changing your search filters."}):(0,b.Y)(c.A,{id:"SzapEm",defaultMessage:"Your models will appear here once you log them using newest version of MLflow. Learn more.",values:{link:e=>(0,b.Y)(l.T.Link,{componentId:"mlflow.logged_models.list.no_results_learn_more",openInNewTab:!0,href:(0,v.Gg)(),children:e})}}),image:n?(0,b.Y)(l.l,{}):void 0,button:!e||t||n?null:(0,b.Y)(l.B,{type:"primary",componentId:"mlflow.logged_models.list.show_example_code",loading:M,onClick:()=>u(!d),children:N?(0,b.Y)(c.A,{id:"quxZB8",defaultMessage:"Create version"}):(0,b.Y)(c.A,{id:"fMepK0",defaultMessage:"Create model version"})})}),(0,b.FD)(g.d,{size:"wide",visible:d,onCancel:()=>u(!1),title:(0,b.Y)(c.A,{id:"plSWbC",defaultMessage:"Example code"}),componentId:"mlflow.logged_models.list.example_code_modal",okText:(0,b.Y)(c.A,{id:"n24ICT",defaultMessage:"Close"}),onOk:()=>u(!1),children:[(0,b.Y)(l.T.Text,{children:(0,b.Y)(c.A,{id:"ZRUzaz",defaultMessage:"Install MLflow 3:"})}),(0,b.Y)(f.z7,{language:"text",children:"pip install -U 'mlflow>=3.1'"}),(0,b.Y)(g.S,{size:"sm"}),N?(0,b.Y)(c.A,{id:"pDK3Ha",defaultMessage:"Run example code:"}):(0,b.Y)(c.A,{id:"80LQWB",defaultMessage:"Run example training code:"}),(0,b.Y)(f.z7,{language:"python",children:I(N,r)})]})]})};var O=n(12017),T=n(31926);const L=({loggedModels:e,isLoading:t,isLoadingMore:n,badRequestError:g,onLoadMore:p,orderByColumn:f,orderByAsc:v,moreResultsAvailable:A,onOrderByChange:h,columnDefs:y=[],columnVisibility:M,relatedRunsData:w,className:I,disableLoadMore:_,displayShowExampleButton:D=!0,isFilteringActive:Y=!0,groupModelsBy:R})=>{const{theme:x}=(0,l.u)(),k=(0,r.T)({usingCustomHeaderComponent:!1}),[L,C]=s.useState([]),B=(0,s.useRef)(null),F=(0,s.useMemo)((()=>e&&w?e.map((e=>{const t=w.find((t=>{var n,o;return(null===t||void 0===t||null===(n=t.info)||void 0===n?void 0:n.runUuid)===(null===e||void 0===e||null===(o=e.info)||void 0===o?void 0:o.source_run_id)}));return{...e,sourceRun:t}})):e),[e,w]),z=(0,s.useCallback)((e=>{C((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))}),[]),G=(0,T.Ow)({loggedModelsWithSourceRuns:F,groupModelsBy:R,expandedGroups:L}),H=(0,s.useMemo)((()=>{if(!t)return _||!G||0===G.length?G:[...G,T.Gv]}),[G,t,_]),W=(0,s.useCallback)((e=>{const t=e.columnApi.getColumnState().find((e=>e.sort));null!==t&&void 0!==t&&t.colId&&(u.P.includes(t.colId)||t.colId.startsWith(O.D2))&&(null===h||void 0===h||h(null===t||void 0===t?void 0:t.colId,"asc"===t.sort))}),[h]),V=(0,s.useCallback)(((e,t)=>{var n;const o=null===(n=B.current)||void 0===n?void 0:n.getColumn(e);if(o){var l,i;const e=null===(l=B.current)||void 0===l||null===(i=l.getColumnState().find((e=>e.sort)))||void 0===i?void 0:i.colId;var a,r;if(e!==o.getColId())null===(a=B.current)||void 0===a||null===(r=a.getColumn(e))||void 0===r||r.setSort(null);o.setSort(t?"asc":"desc")}}),[]),U=(0,s.useCallback)((e=>{for(const l of null!==(t=null===B||void 0===B||null===(n=B.current)||void 0===n?void 0:n.getAllColumns())&&void 0!==t?t:[]){var t,n,o;null===(o=B.current)||void 0===o||o.setColumnVisible(l,!1!==(null===e||void 0===e?void 0:e[l.getColId()]))}}),[]);(0,s.useEffect)((()=>V(f,v)),[V,f,v]),(0,s.useEffect)((()=>U(M)),[U,M]);const P=(0,s.useMemo)((()=>y.some((e=>"children"in e))),[y]),q=(0,s.useRef)(null),{cellMouseOverHandler:Q,cellMouseOutHandler:Z}=(0,m._)(q,void 0,!0,T.QQ);return(0,b.Y)(d.E,{loadMoreResults:p,moreResultsAvailable:A,isLoadingMore:n,expandedGroups:L,onGroupToggle:z,children:(0,b.FD)("div",{css:(0,o.AH)({overflow:"hidden",flex:1,...k,".ag-cell":{alignItems:"center",[`&.${T.jW}`]:{overflow:"visible"}},borderTop:`1px solid ${x.colors.border}`,".ag-header-cell.is-checkbox-header-cell":{paddingLeft:x.spacing.sm},"&& .ag-root-wrapper":{border:0}},""),className:["ag-theme-balham",I,R?T.Ne:""].join(" "),ref:q,children:[(0,b.Y)(a.default,{columnDefs:y,rowData:H,rowHeight:36,rowSelection:"multiple",suppressRowClickSelection:!0,suppressMovableColumns:!0,getRowId:T.QQ,suppressLoadingOverlay:!0,suppressNoRowsOverlay:!0,suppressColumnMoveAnimation:!0,isFullWidthRow:E,fullWidthCellRenderer:S,onSortChanged:W,onGridReady:({columnApi:e})=>{B.current=e,V(f,v),U(M)},onCellMouseOver:Q,onCellMouseOut:Z}),t&&(0,b.Y)("div",{css:(0,o.AH)({inset:0,top:(P?x.general.heightBase:0)+x.spacing.lg,position:"absolute",paddingTop:x.spacing.md,paddingRight:x.spacing.md},""),children:(0,b.Y)(i.TableSkeleton,{lines:8,label:(0,b.Y)(c.A,{id:"/hP8AG",defaultMessage:"Models loading"})})}),!t&&0===(null===e||void 0===e?void 0:e.length)&&(0,b.Y)(N,{displayShowExampleButton:D,badRequestError:g,isFilteringActive:Y})]})})},S=()=>{const{theme:e}=(0,l.u)(),{moreResultsAvailable:t,loadMoreResults:n,isLoadingMore:i}=(0,d.C)();return t?(0,b.Y)("div",{css:(0,o.AH)({pointerEvents:"all",userSelect:"all",padding:e.spacing.sm,display:"flex",justifyContent:"center"},""),children:(0,b.Y)(l.B,{componentId:"mlflow.logged_models.list.load_more",type:"primary",size:"small",onClick:n,loading:i,children:(0,b.Y)(c.A,{id:"FWtUH2",defaultMessage:"Load more"})})}):null},C=s.memo(L),E=({rowNode:e})=>e.data===T.Gv},88421:function(e,t,n){n.d(t,{Ap:function(){return d},GP:function(){return u},cP:function(){return s}});var o=n(31014),l=n(58898),i=n(9133),a=n(50111);const r=(0,o.createContext)({isRowHidden:()=>!1,setRowVisibilityMode:()=>{},toggleRowVisibility:()=>{},visibilityMode:l.oy.FIRST_10_RUNS,usingCustomVisibility:!1}),s=(e,t,n,o)=>(0,i.isUndefined)(o[t])?e===l.oy.HIDEALL||(e===l.oy.FIRST_10_RUNS?n>=10:e===l.oy.FIRST_20_RUNS&&n>=20):!o[t],d=({children:e,visibilityMap:t={},visibilityMode:n,setRowVisibilityMode:l,toggleRowVisibility:i})=>{const d=(0,o.useCallback)(((e,o)=>s(n,e,o,t)),[t,n]),u=(0,o.useMemo)((()=>Object.keys(t).length>0),[t]),c=(0,o.useMemo)((()=>({isRowHidden:d,setRowVisibilityMode:l,toggleRowVisibility:i,visibilityMode:n,usingCustomVisibility:u})),[d,l,i,n,u]);return(0,a.Y)(r.Provider,{value:c,children:e})},u=()=>(0,o.useContext)(r)}}]); +//# sourceMappingURL=47.fbc06a47.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6336.8153bc1c.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6336.8153bc1c.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..118cd838c1da554d43227333cee1a101df135069 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6336.8153bc1c.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6336],{26723:function(e,t,r){r.r(t),r.d(t,{SKELETON_TYPE:function(){return h},TYPE:function(){return n},createLiteralElement:function(){return g},createNumberElement:function(){return _},isArgumentElement:function(){return a},isDateElement:function(){return c},isDateTimeSkeleton:function(){return m},isLiteralElement:function(){return o},isNumberElement:function(){return u},isNumberSkeleton:function(){return H},isPluralElement:function(){return p},isPoundElement:function(){return f},isSelectElement:function(){return E},isTagElement:function(){return b},isTimeElement:function(){return l},parse:function(){return oe}});var i,n,h,s=r(97779);function o(e){return e.type===n.literal}function a(e){return e.type===n.argument}function u(e){return e.type===n.number}function c(e){return e.type===n.date}function l(e){return e.type===n.time}function E(e){return e.type===n.select}function p(e){return e.type===n.plural}function f(e){return e.type===n.pound}function b(e){return e.type===n.tag}function H(e){return!(!e||"object"!==typeof e||e.type!==h.number)}function m(e){return!(!e||"object"!==typeof e||e.type!==h.dateTime)}function g(e){return{type:n.literal,value:e}}function _(e,t){return{type:n.number,value:e,style:t}}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(i||(i={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(n||(n={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(h||(h={}));var B=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,T=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function A(e){var t={};return e.replace(T,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var P=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var S=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,v=/^(@+)?(\+|#+)?[rs]?$/g,L=/(\*)(0+)|(#+)(0+)|(0+)/g,N=/^(0+)$/;function y(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(v,(function(e,r,i){return"string"!==typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"===typeof i?i.length:0)),""})),t}function C(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function R(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!N.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function d(e){var t=C(e);return t||{}}function I(e){for(var t={},r=0,i=e;r1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(L,(function(e,r,i,n,h,s){if(r)t.minimumIntegerDigits=i.length;else{if(n&&h)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(N.test(n.stem))t.minimumIntegerDigits=n.stem.length;else if(S.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(S,(function(e,r,i,n,h,s){return"*"===i?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:h&&s?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var h=n.options[0];"w"===h?t=(0,s.__assign)((0,s.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):h&&(t=(0,s.__assign)((0,s.__assign)({},t),y(h)))}else if(v.test(n.stem))t=(0,s.__assign)((0,s.__assign)({},t),y(n.stem));else{var o=C(n.stem);o&&(t=(0,s.__assign)((0,s.__assign)({},t),o));var a=R(n.stem);a&&(t=(0,s.__assign)((0,s.__assign)({},t),a))}}return t}var M,U={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function O(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,i=e.language;return"root"!==i&&(r=e.maximize().region),(U[r||""]||U[i||""]||U["".concat(i,"-001")]||U["001"])[0]}var G=new RegExp("^".concat(B.source,"*")),D=new RegExp("".concat(B.source,"*$"));function w(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith,k=!!String.fromCodePoint,X=!!Object.fromEntries,V=!!String.prototype.codePointAt,K=!!String.prototype.trimStart,x=!!String.prototype.trimEnd,Y=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Z=!0;try{Z="a"===(null===(M=ee("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===M?void 0:M[0])}catch(ae){Z=!1}var W,Q=F?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},q=k?String.fromCodePoint:function(){for(var e=[],t=0;th;){if((r=e[h++])>1114111)throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return i},J=X?Object.fromEntries:function(e){for(var t={},r=0,i=e;r=r)){var i,n=e.charCodeAt(t);return n<55296||n>56319||t+1===r||(i=e.charCodeAt(t+1))<56320||i>57343?n:i-56320+(n-55296<<10)+65536}},z=K?function(e){return e.trimStart()}:function(e){return e.replace(G,"")},$=x?function(e){return e.trimEnd()}:function(e){return e.replace(D,"")};function ee(e,t){return new RegExp(e,t)}if(Z){var te=ee("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=function(e,t){var r;return te.lastIndex=t,null!==(r=te.exec(e)[1])&&void 0!==r?r:""}}else W=function(e,t){for(var r=[];;){var i=j(e,t);if(void 0===i||ne(i)||he(i))break;r.push(i),t+=i>=65536?2:1}return q.apply(void 0,r)};var re=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var h=[];!this.isEOF();){var s=this.char();if(123===s){if((o=this.parseArgument(e,r)).err)return o;h.push(o.val)}else{if(125===s&&e>0)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(i.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&ie(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;h.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;h.push(o.val)}}else{var a=this.clonePosition();this.bump(),h.push({type:n.pound,location:w(a,this.clonePosition())})}}}return{val:h,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var h=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:n.literal,value:"<".concat(h,"/>"),location:w(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:n.tag,value:h,children:o,location:w(r,this.clonePosition())},err:null}:this.error(i.INVALID_TAG,w(a,this.clonePosition())))}return this.error(i.UNCLOSED_TAG,w(r,this.clonePosition()))}return this.error(i.INVALID_TAG,w(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var h=this.tryParseQuote(t);if(h)i+=h;else{var s=this.tryParseUnquoted(e,t);if(s)i+=s;else{var o=this.tryParseLeftAngleBracket();if(!o)break;i+=o}}}var a=w(r,this.clonePosition());return{val:{type:n.literal,value:i,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),q(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(i.EMPTY_ARGUMENT,w(r,this.clonePosition()));var h=this.parseIdentifierIfPossible().value;if(!h)return this.error(i.MALFORMED_ARGUMENT,w(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:n.argument,value:h,location:w(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition())):this.parseArgumentOptions(e,t,h,r);default:return this.error(i.MALFORMED_ARGUMENT,w(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=W(this.message,t),i=t+r.length;return this.bumpTo(i),{value:r,location:w(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,o){var a,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(c){case"":return this.error(i.EXPECT_ARGUMENT_TYPE,w(u,l));case"number":case"date":case"time":this.bumpSpace();var E=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(m=$(T.val)).length)return this.error(i.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));E={style:m,styleLocation:w(p,this.clonePosition())}}if((P=this.tryParseArgumentClose(o)).err)return P;var f=w(o,this.clonePosition());if(E&&Q(null===E||void 0===E?void 0:E.style,"::",0)){var b=z(E.style.slice(2));if("number"===c)return(T=this.parseNumberSkeletonFromString(b,E.styleLocation)).err?T:{val:{type:n.number,value:r,location:f,style:T.val},err:null};if(0===b.length)return this.error(i.EXPECT_DATE_TIME_SKELETON,f);var H=b;this.locale&&(H=function(e,t){for(var r="",i=0;i>1),a=O(t);for("H"!=a&&"k"!=a||(o=0);o-- >0;)r+="a";for(;s-- >0;)r=a+r}else r+="J"===n?"H":n}return r}(b,this.locale));var m={type:h.dateTime,pattern:H,location:E.styleLocation,parsedOptions:this.shouldParseSkeletons?A(H):{}};return{val:{type:"date"===c?n.date:n.time,value:r,location:f,style:m},err:null}}return{val:{type:"number"===c?n.number:"date"===c?n.date:n.time,value:r,location:f,style:null!==(a=null===E||void 0===E?void 0:E.style)&&void 0!==a?a:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(i.EXPECT_SELECT_ARGUMENT_OPTIONS,w(g,(0,s.__assign)({},g)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),B=0;if("select"!==c&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),_=this.parseIdentifierIfPossible(),B=T.val}var P,S=this.tryParsePluralOrSelectOptions(e,c,t,_);if(S.err)return S;if((P=this.tryParseArgumentClose(o)).err)return P;var v=w(o,this.clonePosition());return"select"===c?{val:{type:n.select,value:r,options:J(S.val),location:v},err:null}:{val:{type:n.plural,value:r,options:J(S.val),offset:B,pluralType:"plural"===c?"cardinal":"ordinal",location:v},err:null};default:return this.error(i.INVALID_ARGUMENT_TYPE,w(u,l))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,i=e.split(P).filter((function(e){return e.length>0}));r=48&&s<=57))break;n=!0,h=10*h+(s-48),this.bump()}var o=w(i,this.clonePosition());return n?Y(h*=r)?{val:h,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=j(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Q(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!==r&&void 0!==r?r:null},e}();function ie(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function he(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function se(e){e.forEach((function(e){if(delete e.location,E(e)||p(e))for(var t in e.options)delete e.options[t].location,se(e.options[t].value);else u(e)&&H(e.style)||(c(e)||l(e))&&m(e.style)?delete e.style.location:b(e)&&se(e.children)}))}function oe(e,t){void 0===t&&(t={}),t=(0,s.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new re(e,t).parse();if(r.err){var n=SyntaxError(i[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null===t||void 0===t?void 0:t.captureLocation)||se(r.val),r.val}},36336:function(e,t,r){t.generateENXA=void 0;var i=r(97779),n=r(26723);var h="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s="\xe2\u1e03\u0107\u1e0b\xe8\u1e1f\u011d\u1e2b\xed\u0135\u01e9\u013a\u1e41\u0144\u014f\u1e57\u024b\u0155\u015b\u1e6d\u016f\u1e7f\u1e98\u1e8b\u1e8f\u1e93\u1e00\u1e02\u1e08\u1e0a\u1e14\u1e1e\u1e20\u1e22\u1e2c\u0134\u1e34\u013b\u1e3e\u014a\xd5\u1e54\u024a\u0154\u1e60\u1e6e\u0168\u1e7c\u1e84\u1e8c\u0178\u01b5";t.generateENXA=function e(t){var r="string"===typeof t?(0,n.parse)(t):t;return r.forEach((function(t){if((0,n.isLiteralElement)(t))t.value=t.value.split("").map((function(e){var t=h.indexOf(e);return t<0?e:s[t]})).join("");else if((0,n.isPluralElement)(t)||(0,n.isSelectElement)(t))for(var r=0,i=Object.values(t.options);rfoo) */\n ErrorKind[ErrorKind[\"INVALID_TAG\"] = 23] = \"INVALID_TAG\";\n /** The tag name is invalid. (e.g. `<123>foo`) */\n ErrorKind[ErrorKind[\"INVALID_TAG_NAME\"] = 25] = \"INVALID_TAG_NAME\";\n /** The closing tag does not match the opening tag. (e.g. `foo`) */\n ErrorKind[ErrorKind[\"UNMATCHED_CLOSING_TAG\"] = 26] = \"UNMATCHED_CLOSING_TAG\";\n /** The opening tag has unmatched closing tag. (e.g. `foo`) */\n ErrorKind[ErrorKind[\"UNCLOSED_TAG\"] = 27] = \"UNCLOSED_TAG\";\n})(ErrorKind || (ErrorKind = {}));\n","export var TYPE;\n(function (TYPE) {\n /**\n * Raw text\n */\n TYPE[TYPE[\"literal\"] = 0] = \"literal\";\n /**\n * Variable w/o any format, e.g `var` in `this is a {var}`\n */\n TYPE[TYPE[\"argument\"] = 1] = \"argument\";\n /**\n * Variable w/ number format\n */\n TYPE[TYPE[\"number\"] = 2] = \"number\";\n /**\n * Variable w/ date format\n */\n TYPE[TYPE[\"date\"] = 3] = \"date\";\n /**\n * Variable w/ time format\n */\n TYPE[TYPE[\"time\"] = 4] = \"time\";\n /**\n * Variable w/ select format\n */\n TYPE[TYPE[\"select\"] = 5] = \"select\";\n /**\n * Variable w/ plural format\n */\n TYPE[TYPE[\"plural\"] = 6] = \"plural\";\n /**\n * Only possible within plural argument.\n * This is the `#` symbol that will be substituted with the count.\n */\n TYPE[TYPE[\"pound\"] = 7] = \"pound\";\n /**\n * XML-like tag\n */\n TYPE[TYPE[\"tag\"] = 8] = \"tag\";\n})(TYPE || (TYPE = {}));\nexport var SKELETON_TYPE;\n(function (SKELETON_TYPE) {\n SKELETON_TYPE[SKELETON_TYPE[\"number\"] = 0] = \"number\";\n SKELETON_TYPE[SKELETON_TYPE[\"dateTime\"] = 1] = \"dateTime\";\n})(SKELETON_TYPE || (SKELETON_TYPE = {}));\n/**\n * Type Guards\n */\nexport function isLiteralElement(el) {\n return el.type === TYPE.literal;\n}\nexport function isArgumentElement(el) {\n return el.type === TYPE.argument;\n}\nexport function isNumberElement(el) {\n return el.type === TYPE.number;\n}\nexport function isDateElement(el) {\n return el.type === TYPE.date;\n}\nexport function isTimeElement(el) {\n return el.type === TYPE.time;\n}\nexport function isSelectElement(el) {\n return el.type === TYPE.select;\n}\nexport function isPluralElement(el) {\n return el.type === TYPE.plural;\n}\nexport function isPoundElement(el) {\n return el.type === TYPE.pound;\n}\nexport function isTagElement(el) {\n return el.type === TYPE.tag;\n}\nexport function isNumberSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.number);\n}\nexport function isDateTimeSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.dateTime);\n}\nexport function createLiteralElement(value) {\n return {\n type: TYPE.literal,\n value: value,\n };\n}\nexport function createNumberElement(value, style) {\n return {\n type: TYPE.number,\n value: value,\n style: style,\n };\n}\n","// @generated from regex-gen.ts\nexport var SPACE_SEPARATOR_REGEX = /[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/;\nexport var WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/;\n","/**\n * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js\n * with some tweaks\n */\nvar DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n/**\n * Parse Date time skeleton into Intl.DateTimeFormatOptions\n * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * @public\n * @param skeleton skeleton string\n */\nexport function parseDateTimeSkeleton(skeleton) {\n var result = {};\n skeleton.replace(DATE_TIME_REGEX, function (match) {\n var len = match.length;\n switch (match[0]) {\n // Era\n case 'G':\n result.era = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';\n break;\n // Year\n case 'y':\n result.year = len === 2 ? '2-digit' : 'numeric';\n break;\n case 'Y':\n case 'u':\n case 'U':\n case 'r':\n throw new RangeError('`Y/u/U/r` (year) patterns are not supported, use `y` instead');\n // Quarter\n case 'q':\n case 'Q':\n throw new RangeError('`q/Q` (quarter) patterns are not supported');\n // Month\n case 'M':\n case 'L':\n result.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][len - 1];\n break;\n // Week\n case 'w':\n case 'W':\n throw new RangeError('`w/W` (week) patterns are not supported');\n case 'd':\n result.day = ['numeric', '2-digit'][len - 1];\n break;\n case 'D':\n case 'F':\n case 'g':\n throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');\n // Weekday\n case 'E':\n result.weekday = len === 4 ? 'short' : len === 5 ? 'narrow' : 'short';\n break;\n case 'e':\n if (len < 4) {\n throw new RangeError('`e..eee` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n case 'c':\n if (len < 4) {\n throw new RangeError('`c..ccc` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n // Period\n case 'a': // AM, PM\n result.hour12 = true;\n break;\n case 'b': // am, pm, noon, midnight\n case 'B': // flexible day periods\n throw new RangeError('`b/B` (period) patterns are not supported, use `a` instead');\n // Hour\n case 'h':\n result.hourCycle = 'h12';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'H':\n result.hourCycle = 'h23';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'K':\n result.hourCycle = 'h11';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'k':\n result.hourCycle = 'h24';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'j':\n case 'J':\n case 'C':\n throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');\n // Minute\n case 'm':\n result.minute = ['numeric', '2-digit'][len - 1];\n break;\n // Second\n case 's':\n result.second = ['numeric', '2-digit'][len - 1];\n break;\n case 'S':\n case 'A':\n throw new RangeError('`S/A` (second) patterns are not supported, use `s` instead');\n // Zone\n case 'z': // 1..3, 4: specific non-location format\n result.timeZoneName = len < 4 ? 'short' : 'long';\n break;\n case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n case 'O': // 1, 4: miliseconds in day short, long\n case 'v': // 1, 4: generic non-location format\n case 'V': // 1, 2, 3, 4: time zone ID or city\n case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n case 'x': // 1, 2, 3, 4: The ISO8601 varios formats\n throw new RangeError('`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead');\n }\n return '';\n });\n return result;\n}\n","// @generated from regex-gen.ts\nexport var WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;\n","import { __assign } from \"tslib\";\nimport { WHITE_SPACE_REGEX } from './regex.generated';\nexport function parseNumberSkeletonFromString(skeleton) {\n if (skeleton.length === 0) {\n throw new Error('Number skeleton cannot be empty');\n }\n // Parse the skeleton\n var stringTokens = skeleton\n .split(WHITE_SPACE_REGEX)\n .filter(function (x) { return x.length > 0; });\n var tokens = [];\n for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {\n var stringToken = stringTokens_1[_i];\n var stemAndOptions = stringToken.split('/');\n if (stemAndOptions.length === 0) {\n throw new Error('Invalid number skeleton');\n }\n var stem = stemAndOptions[0], options = stemAndOptions.slice(1);\n for (var _a = 0, options_1 = options; _a < options_1.length; _a++) {\n var option = options_1[_a];\n if (option.length === 0) {\n throw new Error('Invalid number skeleton');\n }\n }\n tokens.push({ stem: stem, options: options });\n }\n return tokens;\n}\nfunction icuUnitToEcma(unit) {\n return unit.replace(/^(.*?)-/, '');\n}\nvar FRACTION_PRECISION_REGEX = /^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g;\nvar SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\\+|#+)?[rs]?$/g;\nvar INTEGER_WIDTH_REGEX = /(\\*)(0+)|(#+)(0+)|(0+)/g;\nvar CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;\nfunction parseSignificantPrecision(str) {\n var result = {};\n if (str[str.length - 1] === 'r') {\n result.roundingPriority = 'morePrecision';\n }\n else if (str[str.length - 1] === 's') {\n result.roundingPriority = 'lessPrecision';\n }\n str.replace(SIGNIFICANT_PRECISION_REGEX, function (_, g1, g2) {\n // @@@ case\n if (typeof g2 !== 'string') {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits = g1.length;\n }\n // @@@+ case\n else if (g2 === '+') {\n result.minimumSignificantDigits = g1.length;\n }\n // .### case\n else if (g1[0] === '#') {\n result.maximumSignificantDigits = g1.length;\n }\n // .@@## or .@@@ case\n else {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits =\n g1.length + (typeof g2 === 'string' ? g2.length : 0);\n }\n return '';\n });\n return result;\n}\nfunction parseSign(str) {\n switch (str) {\n case 'sign-auto':\n return {\n signDisplay: 'auto',\n };\n case 'sign-accounting':\n case '()':\n return {\n currencySign: 'accounting',\n };\n case 'sign-always':\n case '+!':\n return {\n signDisplay: 'always',\n };\n case 'sign-accounting-always':\n case '()!':\n return {\n signDisplay: 'always',\n currencySign: 'accounting',\n };\n case 'sign-except-zero':\n case '+?':\n return {\n signDisplay: 'exceptZero',\n };\n case 'sign-accounting-except-zero':\n case '()?':\n return {\n signDisplay: 'exceptZero',\n currencySign: 'accounting',\n };\n case 'sign-never':\n case '+_':\n return {\n signDisplay: 'never',\n };\n }\n}\nfunction parseConciseScientificAndEngineeringStem(stem) {\n // Engineering\n var result;\n if (stem[0] === 'E' && stem[1] === 'E') {\n result = {\n notation: 'engineering',\n };\n stem = stem.slice(2);\n }\n else if (stem[0] === 'E') {\n result = {\n notation: 'scientific',\n };\n stem = stem.slice(1);\n }\n if (result) {\n var signDisplay = stem.slice(0, 2);\n if (signDisplay === '+!') {\n result.signDisplay = 'always';\n stem = stem.slice(2);\n }\n else if (signDisplay === '+?') {\n result.signDisplay = 'exceptZero';\n stem = stem.slice(2);\n }\n if (!CONCISE_INTEGER_WIDTH_REGEX.test(stem)) {\n throw new Error('Malformed concise eng/scientific notation');\n }\n result.minimumIntegerDigits = stem.length;\n }\n return result;\n}\nfunction parseNotationOptions(opt) {\n var result = {};\n var signOpts = parseSign(opt);\n if (signOpts) {\n return signOpts;\n }\n return result;\n}\n/**\n * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options\n */\nexport function parseNumberSkeleton(tokens) {\n var result = {};\n for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {\n var token = tokens_1[_i];\n switch (token.stem) {\n case 'percent':\n case '%':\n result.style = 'percent';\n continue;\n case '%x100':\n result.style = 'percent';\n result.scale = 100;\n continue;\n case 'currency':\n result.style = 'currency';\n result.currency = token.options[0];\n continue;\n case 'group-off':\n case ',_':\n result.useGrouping = false;\n continue;\n case 'precision-integer':\n case '.':\n result.maximumFractionDigits = 0;\n continue;\n case 'measure-unit':\n case 'unit':\n result.style = 'unit';\n result.unit = icuUnitToEcma(token.options[0]);\n continue;\n case 'compact-short':\n case 'K':\n result.notation = 'compact';\n result.compactDisplay = 'short';\n continue;\n case 'compact-long':\n case 'KK':\n result.notation = 'compact';\n result.compactDisplay = 'long';\n continue;\n case 'scientific':\n result = __assign(__assign(__assign({}, result), { notation: 'scientific' }), token.options.reduce(function (all, opt) { return (__assign(__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'engineering':\n result = __assign(__assign(__assign({}, result), { notation: 'engineering' }), token.options.reduce(function (all, opt) { return (__assign(__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'notation-simple':\n result.notation = 'standard';\n continue;\n // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h\n case 'unit-width-narrow':\n result.currencyDisplay = 'narrowSymbol';\n result.unitDisplay = 'narrow';\n continue;\n case 'unit-width-short':\n result.currencyDisplay = 'code';\n result.unitDisplay = 'short';\n continue;\n case 'unit-width-full-name':\n result.currencyDisplay = 'name';\n result.unitDisplay = 'long';\n continue;\n case 'unit-width-iso-code':\n result.currencyDisplay = 'symbol';\n continue;\n case 'scale':\n result.scale = parseFloat(token.options[0]);\n continue;\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n case 'integer-width':\n if (token.options.length > 1) {\n throw new RangeError('integer-width stems only accept a single optional option');\n }\n token.options[0].replace(INTEGER_WIDTH_REGEX, function (_, g1, g2, g3, g4, g5) {\n if (g1) {\n result.minimumIntegerDigits = g2.length;\n }\n else if (g3 && g4) {\n throw new Error('We currently do not support maximum integer digits');\n }\n else if (g5) {\n throw new Error('We currently do not support exact integer digits');\n }\n return '';\n });\n continue;\n }\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {\n result.minimumIntegerDigits = token.stem.length;\n continue;\n }\n if (FRACTION_PRECISION_REGEX.test(token.stem)) {\n // Precision\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision\n // precision-integer case\n if (token.options.length > 1) {\n throw new RangeError('Fraction-precision stems only accept a single optional option');\n }\n token.stem.replace(FRACTION_PRECISION_REGEX, function (_, g1, g2, g3, g4, g5) {\n // .000* case (before ICU67 it was .000+)\n if (g2 === '*') {\n result.minimumFractionDigits = g1.length;\n }\n // .### case\n else if (g3 && g3[0] === '#') {\n result.maximumFractionDigits = g3.length;\n }\n // .00## case\n else if (g4 && g5) {\n result.minimumFractionDigits = g4.length;\n result.maximumFractionDigits = g4.length + g5.length;\n }\n else {\n result.minimumFractionDigits = g1.length;\n result.maximumFractionDigits = g1.length;\n }\n return '';\n });\n var opt = token.options[0];\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display\n if (opt === 'w') {\n result = __assign(__assign({}, result), { trailingZeroDisplay: 'stripIfInteger' });\n }\n else if (opt) {\n result = __assign(__assign({}, result), parseSignificantPrecision(opt));\n }\n continue;\n }\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision\n if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {\n result = __assign(__assign({}, result), parseSignificantPrecision(token.stem));\n continue;\n }\n var signOpts = parseSign(token.stem);\n if (signOpts) {\n result = __assign(__assign({}, result), signOpts);\n }\n var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);\n if (conciseScientificAndEngineeringOpts) {\n result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts);\n }\n }\n return result;\n}\n","// @generated from time-data-gen.ts\n// prettier-ignore \nexport var timeData = {\n \"AX\": [\n \"H\"\n ],\n \"BQ\": [\n \"H\"\n ],\n \"CP\": [\n \"H\"\n ],\n \"CZ\": [\n \"H\"\n ],\n \"DK\": [\n \"H\"\n ],\n \"FI\": [\n \"H\"\n ],\n \"ID\": [\n \"H\"\n ],\n \"IS\": [\n \"H\"\n ],\n \"ML\": [\n \"H\"\n ],\n \"NE\": [\n \"H\"\n ],\n \"RU\": [\n \"H\"\n ],\n \"SE\": [\n \"H\"\n ],\n \"SJ\": [\n \"H\"\n ],\n \"SK\": [\n \"H\"\n ],\n \"AS\": [\n \"h\",\n \"H\"\n ],\n \"BT\": [\n \"h\",\n \"H\"\n ],\n \"DJ\": [\n \"h\",\n \"H\"\n ],\n \"ER\": [\n \"h\",\n \"H\"\n ],\n \"GH\": [\n \"h\",\n \"H\"\n ],\n \"IN\": [\n \"h\",\n \"H\"\n ],\n \"LS\": [\n \"h\",\n \"H\"\n ],\n \"PG\": [\n \"h\",\n \"H\"\n ],\n \"PW\": [\n \"h\",\n \"H\"\n ],\n \"SO\": [\n \"h\",\n \"H\"\n ],\n \"TO\": [\n \"h\",\n \"H\"\n ],\n \"VU\": [\n \"h\",\n \"H\"\n ],\n \"WS\": [\n \"h\",\n \"H\"\n ],\n \"001\": [\n \"H\",\n \"h\"\n ],\n \"AL\": [\n \"h\",\n \"H\",\n \"hB\"\n ],\n \"TD\": [\n \"h\",\n \"H\",\n \"hB\"\n ],\n \"ca-ES\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CM\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"fr-CA\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"gl-ES\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"it-CH\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"it-IT\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"LU\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"NP\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"PF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SC\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SM\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SN\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"TF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"VA\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CY\": [\n \"h\",\n \"H\",\n \"hb\",\n \"hB\"\n ],\n \"GR\": [\n \"h\",\n \"H\",\n \"hb\",\n \"hB\"\n ],\n \"CO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"DO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"KP\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"KR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"NA\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PA\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"VE\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"AC\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"AI\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"BW\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"BZ\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CC\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CX\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"DG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"FK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GB\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GI\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IE\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IM\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IO\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"JE\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"LT\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MN\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MS\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NF\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NR\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NU\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"PN\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"SH\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"SX\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"TA\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"ZA\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"af-ZA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"AR\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"CL\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"CR\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"CU\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"EA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-BO\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-BR\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-EC\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-ES\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-GQ\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-PE\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"GT\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"HN\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"IC\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"KG\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"KM\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"LK\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"MA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"MX\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"NI\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"PY\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"SV\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"UY\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"JP\": [\n \"H\",\n \"h\",\n \"K\"\n ],\n \"AD\": [\n \"H\",\n \"hB\"\n ],\n \"AM\": [\n \"H\",\n \"hB\"\n ],\n \"AO\": [\n \"H\",\n \"hB\"\n ],\n \"AT\": [\n \"H\",\n \"hB\"\n ],\n \"AW\": [\n \"H\",\n \"hB\"\n ],\n \"BE\": [\n \"H\",\n \"hB\"\n ],\n \"BF\": [\n \"H\",\n \"hB\"\n ],\n \"BJ\": [\n \"H\",\n \"hB\"\n ],\n \"BL\": [\n \"H\",\n \"hB\"\n ],\n \"BR\": [\n \"H\",\n \"hB\"\n ],\n \"CG\": [\n \"H\",\n \"hB\"\n ],\n \"CI\": [\n \"H\",\n \"hB\"\n ],\n \"CV\": [\n \"H\",\n \"hB\"\n ],\n \"DE\": [\n \"H\",\n \"hB\"\n ],\n \"EE\": [\n \"H\",\n \"hB\"\n ],\n \"FR\": [\n \"H\",\n \"hB\"\n ],\n \"GA\": [\n \"H\",\n \"hB\"\n ],\n \"GF\": [\n \"H\",\n \"hB\"\n ],\n \"GN\": [\n \"H\",\n \"hB\"\n ],\n \"GP\": [\n \"H\",\n \"hB\"\n ],\n \"GW\": [\n \"H\",\n \"hB\"\n ],\n \"HR\": [\n \"H\",\n \"hB\"\n ],\n \"IL\": [\n \"H\",\n \"hB\"\n ],\n \"IT\": [\n \"H\",\n \"hB\"\n ],\n \"KZ\": [\n \"H\",\n \"hB\"\n ],\n \"MC\": [\n \"H\",\n \"hB\"\n ],\n \"MD\": [\n \"H\",\n \"hB\"\n ],\n \"MF\": [\n \"H\",\n \"hB\"\n ],\n \"MQ\": [\n \"H\",\n \"hB\"\n ],\n \"MZ\": [\n \"H\",\n \"hB\"\n ],\n \"NC\": [\n \"H\",\n \"hB\"\n ],\n \"NL\": [\n \"H\",\n \"hB\"\n ],\n \"PM\": [\n \"H\",\n \"hB\"\n ],\n \"PT\": [\n \"H\",\n \"hB\"\n ],\n \"RE\": [\n \"H\",\n \"hB\"\n ],\n \"RO\": [\n \"H\",\n \"hB\"\n ],\n \"SI\": [\n \"H\",\n \"hB\"\n ],\n \"SR\": [\n \"H\",\n \"hB\"\n ],\n \"ST\": [\n \"H\",\n \"hB\"\n ],\n \"TG\": [\n \"H\",\n \"hB\"\n ],\n \"TR\": [\n \"H\",\n \"hB\"\n ],\n \"WF\": [\n \"H\",\n \"hB\"\n ],\n \"YT\": [\n \"H\",\n \"hB\"\n ],\n \"BD\": [\n \"h\",\n \"hB\",\n \"H\"\n ],\n \"PK\": [\n \"h\",\n \"hB\",\n \"H\"\n ],\n \"AZ\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BA\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BG\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"CH\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"GE\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"LI\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"ME\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"RS\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"UA\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"UZ\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"XK\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"AG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"AU\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BB\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BS\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"CA\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"DM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"en-001\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"FJ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"FM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GD\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GU\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"JM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KI\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KN\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"LC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"LR\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MH\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MP\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MW\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"NZ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SB\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SL\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SS\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SZ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TT\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"UM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"US\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VI\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"ZM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BO\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"EC\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"ES\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"GQ\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"PE\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"AE\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"ar-001\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"BH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"DZ\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"EG\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"EH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"HK\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"IQ\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"JO\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"KW\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"LB\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"LY\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MO\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MR\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"OM\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PS\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"QA\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SA\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SD\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SY\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"TN\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"YE\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"AF\": [\n \"H\",\n \"hb\",\n \"hB\",\n \"h\"\n ],\n \"LA\": [\n \"H\",\n \"hb\",\n \"hB\",\n \"h\"\n ],\n \"CN\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"LV\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"TL\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"zu-ZA\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"CD\": [\n \"hB\",\n \"H\"\n ],\n \"IR\": [\n \"hB\",\n \"H\"\n ],\n \"hi-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"kn-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"ml-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"te-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"KH\": [\n \"hB\",\n \"h\",\n \"H\",\n \"hb\"\n ],\n \"ta-IN\": [\n \"hB\",\n \"h\",\n \"hb\",\n \"H\"\n ],\n \"BN\": [\n \"hb\",\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"MY\": [\n \"hb\",\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"ET\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"gu-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"mr-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"pa-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"TW\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"KE\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"MM\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"TZ\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"UG\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ]\n};\n","var _a;\nimport { __assign } from \"tslib\";\nimport { ErrorKind } from './error';\nimport { SKELETON_TYPE, TYPE, } from './types';\nimport { SPACE_SEPARATOR_REGEX } from './regex.generated';\nimport { parseNumberSkeleton, parseNumberSkeletonFromString, parseDateTimeSkeleton, } from '@formatjs/icu-skeleton-parser';\nimport { getBestPattern } from './date-time-pattern-generator';\nvar SPACE_SEPARATOR_START_REGEX = new RegExp(\"^\".concat(SPACE_SEPARATOR_REGEX.source, \"*\"));\nvar SPACE_SEPARATOR_END_REGEX = new RegExp(\"\".concat(SPACE_SEPARATOR_REGEX.source, \"*$\"));\nfunction createLocation(start, end) {\n return { start: start, end: end };\n}\n// #region Ponyfills\n// Consolidate these variables up top for easier toggling during debugging\nvar hasNativeStartsWith = !!String.prototype.startsWith;\nvar hasNativeFromCodePoint = !!String.fromCodePoint;\nvar hasNativeFromEntries = !!Object.fromEntries;\nvar hasNativeCodePointAt = !!String.prototype.codePointAt;\nvar hasTrimStart = !!String.prototype.trimStart;\nvar hasTrimEnd = !!String.prototype.trimEnd;\nvar hasNativeIsSafeInteger = !!Number.isSafeInteger;\nvar isSafeInteger = hasNativeIsSafeInteger\n ? Number.isSafeInteger\n : function (n) {\n return (typeof n === 'number' &&\n isFinite(n) &&\n Math.floor(n) === n &&\n Math.abs(n) <= 0x1fffffffffffff);\n };\n// IE11 does not support y and u.\nvar REGEX_SUPPORTS_U_AND_Y = true;\ntry {\n var re = RE('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu');\n /**\n * legacy Edge or Xbox One browser\n * Unicode flag support: supported\n * Pattern_Syntax support: not supported\n * See https://github.com/formatjs/formatjs/issues/2822\n */\n REGEX_SUPPORTS_U_AND_Y = ((_a = re.exec('a')) === null || _a === void 0 ? void 0 : _a[0]) === 'a';\n}\ncatch (_) {\n REGEX_SUPPORTS_U_AND_Y = false;\n}\nvar startsWith = hasNativeStartsWith\n ? // Native\n function startsWith(s, search, position) {\n return s.startsWith(search, position);\n }\n : // For IE11\n function startsWith(s, search, position) {\n return s.slice(position, position + search.length) === search;\n };\nvar fromCodePoint = hasNativeFromCodePoint\n ? String.fromCodePoint\n : // IE11\n function fromCodePoint() {\n var codePoints = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n codePoints[_i] = arguments[_i];\n }\n var elements = '';\n var length = codePoints.length;\n var i = 0;\n var code;\n while (length > i) {\n code = codePoints[i++];\n if (code > 0x10ffff)\n throw RangeError(code + ' is not a valid code point');\n elements +=\n code < 0x10000\n ? String.fromCharCode(code)\n : String.fromCharCode(((code -= 0x10000) >> 10) + 0xd800, (code % 0x400) + 0xdc00);\n }\n return elements;\n };\nvar fromEntries = \n// native\nhasNativeFromEntries\n ? Object.fromEntries\n : // Ponyfill\n function fromEntries(entries) {\n var obj = {};\n for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {\n var _a = entries_1[_i], k = _a[0], v = _a[1];\n obj[k] = v;\n }\n return obj;\n };\nvar codePointAt = hasNativeCodePointAt\n ? // Native\n function codePointAt(s, index) {\n return s.codePointAt(index);\n }\n : // IE 11\n function codePointAt(s, index) {\n var size = s.length;\n if (index < 0 || index >= size) {\n return undefined;\n }\n var first = s.charCodeAt(index);\n var second;\n return first < 0xd800 ||\n first > 0xdbff ||\n index + 1 === size ||\n (second = s.charCodeAt(index + 1)) < 0xdc00 ||\n second > 0xdfff\n ? first\n : ((first - 0xd800) << 10) + (second - 0xdc00) + 0x10000;\n };\nvar trimStart = hasTrimStart\n ? // Native\n function trimStart(s) {\n return s.trimStart();\n }\n : // Ponyfill\n function trimStart(s) {\n return s.replace(SPACE_SEPARATOR_START_REGEX, '');\n };\nvar trimEnd = hasTrimEnd\n ? // Native\n function trimEnd(s) {\n return s.trimEnd();\n }\n : // Ponyfill\n function trimEnd(s) {\n return s.replace(SPACE_SEPARATOR_END_REGEX, '');\n };\n// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.\nfunction RE(s, flag) {\n return new RegExp(s, flag);\n}\n// #endregion\nvar matchIdentifierAtIndex;\nif (REGEX_SUPPORTS_U_AND_Y) {\n // Native\n var IDENTIFIER_PREFIX_RE_1 = RE('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu');\n matchIdentifierAtIndex = function matchIdentifierAtIndex(s, index) {\n var _a;\n IDENTIFIER_PREFIX_RE_1.lastIndex = index;\n var match = IDENTIFIER_PREFIX_RE_1.exec(s);\n return (_a = match[1]) !== null && _a !== void 0 ? _a : '';\n };\n}\nelse {\n // IE11\n matchIdentifierAtIndex = function matchIdentifierAtIndex(s, index) {\n var match = [];\n while (true) {\n var c = codePointAt(s, index);\n if (c === undefined || _isWhiteSpace(c) || _isPatternSyntax(c)) {\n break;\n }\n match.push(c);\n index += c >= 0x10000 ? 2 : 1;\n }\n return fromCodePoint.apply(void 0, match);\n };\n}\nvar Parser = /** @class */ (function () {\n function Parser(message, options) {\n if (options === void 0) { options = {}; }\n this.message = message;\n this.position = { offset: 0, line: 1, column: 1 };\n this.ignoreTag = !!options.ignoreTag;\n this.locale = options.locale;\n this.requiresOtherClause = !!options.requiresOtherClause;\n this.shouldParseSkeletons = !!options.shouldParseSkeletons;\n }\n Parser.prototype.parse = function () {\n if (this.offset() !== 0) {\n throw Error('parser can only be used once');\n }\n return this.parseMessage(0, '', false);\n };\n Parser.prototype.parseMessage = function (nestingLevel, parentArgType, expectingCloseTag) {\n var elements = [];\n while (!this.isEOF()) {\n var char = this.char();\n if (char === 123 /* `{` */) {\n var result = this.parseArgument(nestingLevel, expectingCloseTag);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n else if (char === 125 /* `}` */ && nestingLevel > 0) {\n break;\n }\n else if (char === 35 /* `#` */ &&\n (parentArgType === 'plural' || parentArgType === 'selectordinal')) {\n var position = this.clonePosition();\n this.bump();\n elements.push({\n type: TYPE.pound,\n location: createLocation(position, this.clonePosition()),\n });\n }\n else if (char === 60 /* `<` */ &&\n !this.ignoreTag &&\n this.peek() === 47 // char code for '/'\n ) {\n if (expectingCloseTag) {\n break;\n }\n else {\n return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));\n }\n }\n else if (char === 60 /* `<` */ &&\n !this.ignoreTag &&\n _isAlpha(this.peek() || 0)) {\n var result = this.parseTag(nestingLevel, parentArgType);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n else {\n var result = this.parseLiteral(nestingLevel, parentArgType);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n }\n return { val: elements, err: null };\n };\n /**\n * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the\n * [custom element name][] except that a dash is NOT always mandatory and uppercase letters\n * are accepted:\n *\n * ```\n * tag ::= \"<\" tagName (whitespace)* \"/>\" | \"<\" tagName (whitespace)* \">\" message \"\"\n * tagName ::= [a-z] (PENChar)*\n * PENChar ::=\n * \"-\" | \".\" | [0-9] | \"_\" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |\n * [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |\n * [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\n * ```\n *\n * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name\n * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do\n * since other tag-based engines like React allow it\n */\n Parser.prototype.parseTag = function (nestingLevel, parentArgType) {\n var startPosition = this.clonePosition();\n this.bump(); // `<`\n var tagName = this.parseTagName();\n this.bumpSpace();\n if (this.bumpIf('/>')) {\n // Self closing tag\n return {\n val: {\n type: TYPE.literal,\n value: \"<\".concat(tagName, \"/>\"),\n location: createLocation(startPosition, this.clonePosition()),\n },\n err: null,\n };\n }\n else if (this.bumpIf('>')) {\n var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);\n if (childrenResult.err) {\n return childrenResult;\n }\n var children = childrenResult.val;\n // Expecting a close tag\n var endTagStartPosition = this.clonePosition();\n if (this.bumpIf('')) {\n return this.error(ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));\n }\n return {\n val: {\n type: TYPE.tag,\n value: tagName,\n children: children,\n location: createLocation(startPosition, this.clonePosition()),\n },\n err: null,\n };\n }\n else {\n return this.error(ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));\n }\n }\n else {\n return this.error(ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));\n }\n };\n /**\n * This method assumes that the caller has peeked ahead for the first tag character.\n */\n Parser.prototype.parseTagName = function () {\n var startOffset = this.offset();\n this.bump(); // the first tag name character\n while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {\n this.bump();\n }\n return this.message.slice(startOffset, this.offset());\n };\n Parser.prototype.parseLiteral = function (nestingLevel, parentArgType) {\n var start = this.clonePosition();\n var value = '';\n while (true) {\n var parseQuoteResult = this.tryParseQuote(parentArgType);\n if (parseQuoteResult) {\n value += parseQuoteResult;\n continue;\n }\n var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);\n if (parseUnquotedResult) {\n value += parseUnquotedResult;\n continue;\n }\n var parseLeftAngleResult = this.tryParseLeftAngleBracket();\n if (parseLeftAngleResult) {\n value += parseLeftAngleResult;\n continue;\n }\n break;\n }\n var location = createLocation(start, this.clonePosition());\n return {\n val: { type: TYPE.literal, value: value, location: location },\n err: null,\n };\n };\n Parser.prototype.tryParseLeftAngleBracket = function () {\n if (!this.isEOF() &&\n this.char() === 60 /* `<` */ &&\n (this.ignoreTag ||\n // If at the opening tag or closing tag position, bail.\n !_isAlphaOrSlash(this.peek() || 0))) {\n this.bump(); // `<`\n return '<';\n }\n return null;\n };\n /**\n * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes\n * a character that requires quoting (that is, \"only where needed\"), and works the same in\n * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.\n */\n Parser.prototype.tryParseQuote = function (parentArgType) {\n if (this.isEOF() || this.char() !== 39 /* `'` */) {\n return null;\n }\n // Parse escaped char following the apostrophe, or early return if there is no escaped char.\n // Check if is valid escaped character\n switch (this.peek()) {\n case 39 /* `'` */:\n // double quote, should return as a single quote.\n this.bump();\n this.bump();\n return \"'\";\n // '{', '<', '>', '}'\n case 123:\n case 60:\n case 62:\n case 125:\n break;\n case 35: // '#'\n if (parentArgType === 'plural' || parentArgType === 'selectordinal') {\n break;\n }\n return null;\n default:\n return null;\n }\n this.bump(); // apostrophe\n var codePoints = [this.char()]; // escaped char\n this.bump();\n // read chars until the optional closing apostrophe is found\n while (!this.isEOF()) {\n var ch = this.char();\n if (ch === 39 /* `'` */) {\n if (this.peek() === 39 /* `'` */) {\n codePoints.push(39);\n // Bump one more time because we need to skip 2 characters.\n this.bump();\n }\n else {\n // Optional closing apostrophe.\n this.bump();\n break;\n }\n }\n else {\n codePoints.push(ch);\n }\n this.bump();\n }\n return fromCodePoint.apply(void 0, codePoints);\n };\n Parser.prototype.tryParseUnquoted = function (nestingLevel, parentArgType) {\n if (this.isEOF()) {\n return null;\n }\n var ch = this.char();\n if (ch === 60 /* `<` */ ||\n ch === 123 /* `{` */ ||\n (ch === 35 /* `#` */ &&\n (parentArgType === 'plural' || parentArgType === 'selectordinal')) ||\n (ch === 125 /* `}` */ && nestingLevel > 0)) {\n return null;\n }\n else {\n this.bump();\n return fromCodePoint(ch);\n }\n };\n Parser.prototype.parseArgument = function (nestingLevel, expectingCloseTag) {\n var openingBracePosition = this.clonePosition();\n this.bump(); // `{`\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n if (this.char() === 125 /* `}` */) {\n this.bump();\n return this.error(ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n // argument name\n var value = this.parseIdentifierIfPossible().value;\n if (!value) {\n return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n switch (this.char()) {\n // Simple argument: `{name}`\n case 125 /* `}` */: {\n this.bump(); // `}`\n return {\n val: {\n type: TYPE.argument,\n // value does not include the opening and closing braces.\n value: value,\n location: createLocation(openingBracePosition, this.clonePosition()),\n },\n err: null,\n };\n }\n // Argument with options: `{name, format, ...}`\n case 44 /* `,` */: {\n this.bump(); // `,`\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);\n }\n default:\n return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n };\n /**\n * Advance the parser until the end of the identifier, if it is currently on\n * an identifier character. Return an empty string otherwise.\n */\n Parser.prototype.parseIdentifierIfPossible = function () {\n var startingPosition = this.clonePosition();\n var startOffset = this.offset();\n var value = matchIdentifierAtIndex(this.message, startOffset);\n var endOffset = startOffset + value.length;\n this.bumpTo(endOffset);\n var endPosition = this.clonePosition();\n var location = createLocation(startingPosition, endPosition);\n return { value: value, location: location };\n };\n Parser.prototype.parseArgumentOptions = function (nestingLevel, expectingCloseTag, value, openingBracePosition) {\n var _a;\n // Parse this range:\n // {name, type, style}\n // ^---^\n var typeStartPosition = this.clonePosition();\n var argType = this.parseIdentifierIfPossible().value;\n var typeEndPosition = this.clonePosition();\n switch (argType) {\n case '':\n // Expecting a style string number, date, time, plural, selectordinal, or select.\n return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));\n case 'number':\n case 'date':\n case 'time': {\n // Parse this range:\n // {name, number, style}\n // ^-------^\n this.bumpSpace();\n var styleAndLocation = null;\n if (this.bumpIf(',')) {\n this.bumpSpace();\n var styleStartPosition = this.clonePosition();\n var result = this.parseSimpleArgStyleIfPossible();\n if (result.err) {\n return result;\n }\n var style = trimEnd(result.val);\n if (style.length === 0) {\n return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n var styleLocation = createLocation(styleStartPosition, this.clonePosition());\n styleAndLocation = { style: style, styleLocation: styleLocation };\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n var location_1 = createLocation(openingBracePosition, this.clonePosition());\n // Extract style or skeleton\n if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, '::', 0)) {\n // Skeleton starts with `::`.\n var skeleton = trimStart(styleAndLocation.style.slice(2));\n if (argType === 'number') {\n var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);\n if (result.err) {\n return result;\n }\n return {\n val: { type: TYPE.number, value: value, location: location_1, style: result.val },\n err: null,\n };\n }\n else {\n if (skeleton.length === 0) {\n return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);\n }\n var dateTimePattern = skeleton;\n // Get \"best match\" pattern only if locale is passed, if not, let it\n // pass as-is where `parseDateTimeSkeleton()` will throw an error\n // for unsupported patterns.\n if (this.locale) {\n dateTimePattern = getBestPattern(skeleton, this.locale);\n }\n var style = {\n type: SKELETON_TYPE.dateTime,\n pattern: dateTimePattern,\n location: styleAndLocation.styleLocation,\n parsedOptions: this.shouldParseSkeletons\n ? parseDateTimeSkeleton(dateTimePattern)\n : {},\n };\n var type = argType === 'date' ? TYPE.date : TYPE.time;\n return {\n val: { type: type, value: value, location: location_1, style: style },\n err: null,\n };\n }\n }\n // Regular style or no style.\n return {\n val: {\n type: argType === 'number'\n ? TYPE.number\n : argType === 'date'\n ? TYPE.date\n : TYPE.time,\n value: value,\n location: location_1,\n style: (_a = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a !== void 0 ? _a : null,\n },\n err: null,\n };\n }\n case 'plural':\n case 'selectordinal':\n case 'select': {\n // Parse this range:\n // {name, plural, options}\n // ^---------^\n var typeEndPosition_1 = this.clonePosition();\n this.bumpSpace();\n if (!this.bumpIf(',')) {\n return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, __assign({}, typeEndPosition_1)));\n }\n this.bumpSpace();\n // Parse offset:\n // {name, plural, offset:1, options}\n // ^-----^\n //\n // or the first option:\n //\n // {name, plural, one {...} other {...}}\n // ^--^\n var identifierAndLocation = this.parseIdentifierIfPossible();\n var pluralOffset = 0;\n if (argType !== 'select' && identifierAndLocation.value === 'offset') {\n if (!this.bumpIf(':')) {\n return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n this.bumpSpace();\n var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);\n if (result.err) {\n return result;\n }\n // Parse another identifier for option parsing\n this.bumpSpace();\n identifierAndLocation = this.parseIdentifierIfPossible();\n pluralOffset = result.val;\n }\n var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);\n if (optionsResult.err) {\n return optionsResult;\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n var location_2 = createLocation(openingBracePosition, this.clonePosition());\n if (argType === 'select') {\n return {\n val: {\n type: TYPE.select,\n value: value,\n options: fromEntries(optionsResult.val),\n location: location_2,\n },\n err: null,\n };\n }\n else {\n return {\n val: {\n type: TYPE.plural,\n value: value,\n options: fromEntries(optionsResult.val),\n offset: pluralOffset,\n pluralType: argType === 'plural' ? 'cardinal' : 'ordinal',\n location: location_2,\n },\n err: null,\n };\n }\n }\n default:\n return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));\n }\n };\n Parser.prototype.tryParseArgumentClose = function (openingBracePosition) {\n // Parse: {value, number, ::currency/GBP }\n //\n if (this.isEOF() || this.char() !== 125 /* `}` */) {\n return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n this.bump(); // `}`\n return { val: true, err: null };\n };\n /**\n * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659\n */\n Parser.prototype.parseSimpleArgStyleIfPossible = function () {\n var nestedBraces = 0;\n var startPosition = this.clonePosition();\n while (!this.isEOF()) {\n var ch = this.char();\n switch (ch) {\n case 39 /* `'` */: {\n // Treat apostrophe as quoting but include it in the style part.\n // Find the end of the quoted literal text.\n this.bump();\n var apostrophePosition = this.clonePosition();\n if (!this.bumpUntil(\"'\")) {\n return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));\n }\n this.bump();\n break;\n }\n case 123 /* `{` */: {\n nestedBraces += 1;\n this.bump();\n break;\n }\n case 125 /* `}` */: {\n if (nestedBraces > 0) {\n nestedBraces -= 1;\n }\n else {\n return {\n val: this.message.slice(startPosition.offset, this.offset()),\n err: null,\n };\n }\n break;\n }\n default:\n this.bump();\n break;\n }\n }\n return {\n val: this.message.slice(startPosition.offset, this.offset()),\n err: null,\n };\n };\n Parser.prototype.parseNumberSkeletonFromString = function (skeleton, location) {\n var tokens = [];\n try {\n tokens = parseNumberSkeletonFromString(skeleton);\n }\n catch (e) {\n return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location);\n }\n return {\n val: {\n type: SKELETON_TYPE.number,\n tokens: tokens,\n location: location,\n parsedOptions: this.shouldParseSkeletons\n ? parseNumberSkeleton(tokens)\n : {},\n },\n err: null,\n };\n };\n /**\n * @param nesting_level The current nesting level of messages.\n * This can be positive when parsing message fragment in select or plural argument options.\n * @param parent_arg_type The parent argument's type.\n * @param parsed_first_identifier If provided, this is the first identifier-like selector of\n * the argument. It is a by-product of a previous parsing attempt.\n * @param expecting_close_tag If true, this message is directly or indirectly nested inside\n * between a pair of opening and closing tags. The nested message will not parse beyond\n * the closing tag boundary.\n */\n Parser.prototype.tryParsePluralOrSelectOptions = function (nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {\n var _a;\n var hasOtherClause = false;\n var options = [];\n var parsedSelectors = new Set();\n var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;\n // Parse:\n // one {one apple}\n // ^--^\n while (true) {\n if (selector.length === 0) {\n var startPosition = this.clonePosition();\n if (parentArgType !== 'select' && this.bumpIf('=')) {\n // Try parse `={number}` selector\n var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);\n if (result.err) {\n return result;\n }\n selectorLocation = createLocation(startPosition, this.clonePosition());\n selector = this.message.slice(startPosition.offset, this.offset());\n }\n else {\n break;\n }\n }\n // Duplicate selector clauses\n if (parsedSelectors.has(selector)) {\n return this.error(parentArgType === 'select'\n ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR\n : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);\n }\n if (selector === 'other') {\n hasOtherClause = true;\n }\n // Parse:\n // one {one apple}\n // ^----------^\n this.bumpSpace();\n var openingBracePosition = this.clonePosition();\n if (!this.bumpIf('{')) {\n return this.error(parentArgType === 'select'\n ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\n : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));\n }\n var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);\n if (fragmentResult.err) {\n return fragmentResult;\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n options.push([\n selector,\n {\n value: fragmentResult.val,\n location: createLocation(openingBracePosition, this.clonePosition()),\n },\n ]);\n // Keep track of the existing selectors\n parsedSelectors.add(selector);\n // Prep next selector clause.\n this.bumpSpace();\n (_a = this.parseIdentifierIfPossible(), selector = _a.value, selectorLocation = _a.location);\n }\n if (options.length === 0) {\n return this.error(parentArgType === 'select'\n ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR\n : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));\n }\n if (this.requiresOtherClause && !hasOtherClause) {\n return this.error(ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n return { val: options, err: null };\n };\n Parser.prototype.tryParseDecimalInteger = function (expectNumberError, invalidNumberError) {\n var sign = 1;\n var startingPosition = this.clonePosition();\n if (this.bumpIf('+')) {\n }\n else if (this.bumpIf('-')) {\n sign = -1;\n }\n var hasDigits = false;\n var decimal = 0;\n while (!this.isEOF()) {\n var ch = this.char();\n if (ch >= 48 /* `0` */ && ch <= 57 /* `9` */) {\n hasDigits = true;\n decimal = decimal * 10 + (ch - 48);\n this.bump();\n }\n else {\n break;\n }\n }\n var location = createLocation(startingPosition, this.clonePosition());\n if (!hasDigits) {\n return this.error(expectNumberError, location);\n }\n decimal *= sign;\n if (!isSafeInteger(decimal)) {\n return this.error(invalidNumberError, location);\n }\n return { val: decimal, err: null };\n };\n Parser.prototype.offset = function () {\n return this.position.offset;\n };\n Parser.prototype.isEOF = function () {\n return this.offset() === this.message.length;\n };\n Parser.prototype.clonePosition = function () {\n // This is much faster than `Object.assign` or spread.\n return {\n offset: this.position.offset,\n line: this.position.line,\n column: this.position.column,\n };\n };\n /**\n * Return the code point at the current position of the parser.\n * Throws if the index is out of bound.\n */\n Parser.prototype.char = function () {\n var offset = this.position.offset;\n if (offset >= this.message.length) {\n throw Error('out of bound');\n }\n var code = codePointAt(this.message, offset);\n if (code === undefined) {\n throw Error(\"Offset \".concat(offset, \" is at invalid UTF-16 code unit boundary\"));\n }\n return code;\n };\n Parser.prototype.error = function (kind, location) {\n return {\n val: null,\n err: {\n kind: kind,\n message: this.message,\n location: location,\n },\n };\n };\n /** Bump the parser to the next UTF-16 code unit. */\n Parser.prototype.bump = function () {\n if (this.isEOF()) {\n return;\n }\n var code = this.char();\n if (code === 10 /* '\\n' */) {\n this.position.line += 1;\n this.position.column = 1;\n this.position.offset += 1;\n }\n else {\n this.position.column += 1;\n // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.\n this.position.offset += code < 0x10000 ? 1 : 2;\n }\n };\n /**\n * If the substring starting at the current position of the parser has\n * the given prefix, then bump the parser to the character immediately\n * following the prefix and return true. Otherwise, don't bump the parser\n * and return false.\n */\n Parser.prototype.bumpIf = function (prefix) {\n if (startsWith(this.message, prefix, this.offset())) {\n for (var i = 0; i < prefix.length; i++) {\n this.bump();\n }\n return true;\n }\n return false;\n };\n /**\n * Bump the parser until the pattern character is found and return `true`.\n * Otherwise bump to the end of the file and return `false`.\n */\n Parser.prototype.bumpUntil = function (pattern) {\n var currentOffset = this.offset();\n var index = this.message.indexOf(pattern, currentOffset);\n if (index >= 0) {\n this.bumpTo(index);\n return true;\n }\n else {\n this.bumpTo(this.message.length);\n return false;\n }\n };\n /**\n * Bump the parser to the target offset.\n * If target offset is beyond the end of the input, bump the parser to the end of the input.\n */\n Parser.prototype.bumpTo = function (targetOffset) {\n if (this.offset() > targetOffset) {\n throw Error(\"targetOffset \".concat(targetOffset, \" must be greater than or equal to the current offset \").concat(this.offset()));\n }\n targetOffset = Math.min(targetOffset, this.message.length);\n while (true) {\n var offset = this.offset();\n if (offset === targetOffset) {\n break;\n }\n if (offset > targetOffset) {\n throw Error(\"targetOffset \".concat(targetOffset, \" is at invalid UTF-16 code unit boundary\"));\n }\n this.bump();\n if (this.isEOF()) {\n break;\n }\n }\n };\n /** advance the parser through all whitespace to the next non-whitespace code unit. */\n Parser.prototype.bumpSpace = function () {\n while (!this.isEOF() && _isWhiteSpace(this.char())) {\n this.bump();\n }\n };\n /**\n * Peek at the *next* Unicode codepoint in the input without advancing the parser.\n * If the input has been exhausted, then this returns null.\n */\n Parser.prototype.peek = function () {\n if (this.isEOF()) {\n return null;\n }\n var code = this.char();\n var offset = this.offset();\n var nextCode = this.message.charCodeAt(offset + (code >= 0x10000 ? 2 : 1));\n return nextCode !== null && nextCode !== void 0 ? nextCode : null;\n };\n return Parser;\n}());\nexport { Parser };\n/**\n * This check if codepoint is alphabet (lower & uppercase)\n * @param codepoint\n * @returns\n */\nfunction _isAlpha(codepoint) {\n return ((codepoint >= 97 && codepoint <= 122) ||\n (codepoint >= 65 && codepoint <= 90));\n}\nfunction _isAlphaOrSlash(codepoint) {\n return _isAlpha(codepoint) || codepoint === 47; /* '/' */\n}\n/** See `parseTag` function docs. */\nfunction _isPotentialElementNameChar(c) {\n return (c === 45 /* '-' */ ||\n c === 46 /* '.' */ ||\n (c >= 48 && c <= 57) /* 0..9 */ ||\n c === 95 /* '_' */ ||\n (c >= 97 && c <= 122) /** a..z */ ||\n (c >= 65 && c <= 90) /* A..Z */ ||\n c == 0xb7 ||\n (c >= 0xc0 && c <= 0xd6) ||\n (c >= 0xd8 && c <= 0xf6) ||\n (c >= 0xf8 && c <= 0x37d) ||\n (c >= 0x37f && c <= 0x1fff) ||\n (c >= 0x200c && c <= 0x200d) ||\n (c >= 0x203f && c <= 0x2040) ||\n (c >= 0x2070 && c <= 0x218f) ||\n (c >= 0x2c00 && c <= 0x2fef) ||\n (c >= 0x3001 && c <= 0xd7ff) ||\n (c >= 0xf900 && c <= 0xfdcf) ||\n (c >= 0xfdf0 && c <= 0xfffd) ||\n (c >= 0x10000 && c <= 0xeffff));\n}\n/**\n * Code point equivalent of regex `\\p{White_Space}`.\n * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isWhiteSpace(c) {\n return ((c >= 0x0009 && c <= 0x000d) ||\n c === 0x0020 ||\n c === 0x0085 ||\n (c >= 0x200e && c <= 0x200f) ||\n c === 0x2028 ||\n c === 0x2029);\n}\n/**\n * Code point equivalent of regex `\\p{Pattern_Syntax}`.\n * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isPatternSyntax(c) {\n return ((c >= 0x0021 && c <= 0x0023) ||\n c === 0x0024 ||\n (c >= 0x0025 && c <= 0x0027) ||\n c === 0x0028 ||\n c === 0x0029 ||\n c === 0x002a ||\n c === 0x002b ||\n c === 0x002c ||\n c === 0x002d ||\n (c >= 0x002e && c <= 0x002f) ||\n (c >= 0x003a && c <= 0x003b) ||\n (c >= 0x003c && c <= 0x003e) ||\n (c >= 0x003f && c <= 0x0040) ||\n c === 0x005b ||\n c === 0x005c ||\n c === 0x005d ||\n c === 0x005e ||\n c === 0x0060 ||\n c === 0x007b ||\n c === 0x007c ||\n c === 0x007d ||\n c === 0x007e ||\n c === 0x00a1 ||\n (c >= 0x00a2 && c <= 0x00a5) ||\n c === 0x00a6 ||\n c === 0x00a7 ||\n c === 0x00a9 ||\n c === 0x00ab ||\n c === 0x00ac ||\n c === 0x00ae ||\n c === 0x00b0 ||\n c === 0x00b1 ||\n c === 0x00b6 ||\n c === 0x00bb ||\n c === 0x00bf ||\n c === 0x00d7 ||\n c === 0x00f7 ||\n (c >= 0x2010 && c <= 0x2015) ||\n (c >= 0x2016 && c <= 0x2017) ||\n c === 0x2018 ||\n c === 0x2019 ||\n c === 0x201a ||\n (c >= 0x201b && c <= 0x201c) ||\n c === 0x201d ||\n c === 0x201e ||\n c === 0x201f ||\n (c >= 0x2020 && c <= 0x2027) ||\n (c >= 0x2030 && c <= 0x2038) ||\n c === 0x2039 ||\n c === 0x203a ||\n (c >= 0x203b && c <= 0x203e) ||\n (c >= 0x2041 && c <= 0x2043) ||\n c === 0x2044 ||\n c === 0x2045 ||\n c === 0x2046 ||\n (c >= 0x2047 && c <= 0x2051) ||\n c === 0x2052 ||\n c === 0x2053 ||\n (c >= 0x2055 && c <= 0x205e) ||\n (c >= 0x2190 && c <= 0x2194) ||\n (c >= 0x2195 && c <= 0x2199) ||\n (c >= 0x219a && c <= 0x219b) ||\n (c >= 0x219c && c <= 0x219f) ||\n c === 0x21a0 ||\n (c >= 0x21a1 && c <= 0x21a2) ||\n c === 0x21a3 ||\n (c >= 0x21a4 && c <= 0x21a5) ||\n c === 0x21a6 ||\n (c >= 0x21a7 && c <= 0x21ad) ||\n c === 0x21ae ||\n (c >= 0x21af && c <= 0x21cd) ||\n (c >= 0x21ce && c <= 0x21cf) ||\n (c >= 0x21d0 && c <= 0x21d1) ||\n c === 0x21d2 ||\n c === 0x21d3 ||\n c === 0x21d4 ||\n (c >= 0x21d5 && c <= 0x21f3) ||\n (c >= 0x21f4 && c <= 0x22ff) ||\n (c >= 0x2300 && c <= 0x2307) ||\n c === 0x2308 ||\n c === 0x2309 ||\n c === 0x230a ||\n c === 0x230b ||\n (c >= 0x230c && c <= 0x231f) ||\n (c >= 0x2320 && c <= 0x2321) ||\n (c >= 0x2322 && c <= 0x2328) ||\n c === 0x2329 ||\n c === 0x232a ||\n (c >= 0x232b && c <= 0x237b) ||\n c === 0x237c ||\n (c >= 0x237d && c <= 0x239a) ||\n (c >= 0x239b && c <= 0x23b3) ||\n (c >= 0x23b4 && c <= 0x23db) ||\n (c >= 0x23dc && c <= 0x23e1) ||\n (c >= 0x23e2 && c <= 0x2426) ||\n (c >= 0x2427 && c <= 0x243f) ||\n (c >= 0x2440 && c <= 0x244a) ||\n (c >= 0x244b && c <= 0x245f) ||\n (c >= 0x2500 && c <= 0x25b6) ||\n c === 0x25b7 ||\n (c >= 0x25b8 && c <= 0x25c0) ||\n c === 0x25c1 ||\n (c >= 0x25c2 && c <= 0x25f7) ||\n (c >= 0x25f8 && c <= 0x25ff) ||\n (c >= 0x2600 && c <= 0x266e) ||\n c === 0x266f ||\n (c >= 0x2670 && c <= 0x2767) ||\n c === 0x2768 ||\n c === 0x2769 ||\n c === 0x276a ||\n c === 0x276b ||\n c === 0x276c ||\n c === 0x276d ||\n c === 0x276e ||\n c === 0x276f ||\n c === 0x2770 ||\n c === 0x2771 ||\n c === 0x2772 ||\n c === 0x2773 ||\n c === 0x2774 ||\n c === 0x2775 ||\n (c >= 0x2794 && c <= 0x27bf) ||\n (c >= 0x27c0 && c <= 0x27c4) ||\n c === 0x27c5 ||\n c === 0x27c6 ||\n (c >= 0x27c7 && c <= 0x27e5) ||\n c === 0x27e6 ||\n c === 0x27e7 ||\n c === 0x27e8 ||\n c === 0x27e9 ||\n c === 0x27ea ||\n c === 0x27eb ||\n c === 0x27ec ||\n c === 0x27ed ||\n c === 0x27ee ||\n c === 0x27ef ||\n (c >= 0x27f0 && c <= 0x27ff) ||\n (c >= 0x2800 && c <= 0x28ff) ||\n (c >= 0x2900 && c <= 0x2982) ||\n c === 0x2983 ||\n c === 0x2984 ||\n c === 0x2985 ||\n c === 0x2986 ||\n c === 0x2987 ||\n c === 0x2988 ||\n c === 0x2989 ||\n c === 0x298a ||\n c === 0x298b ||\n c === 0x298c ||\n c === 0x298d ||\n c === 0x298e ||\n c === 0x298f ||\n c === 0x2990 ||\n c === 0x2991 ||\n c === 0x2992 ||\n c === 0x2993 ||\n c === 0x2994 ||\n c === 0x2995 ||\n c === 0x2996 ||\n c === 0x2997 ||\n c === 0x2998 ||\n (c >= 0x2999 && c <= 0x29d7) ||\n c === 0x29d8 ||\n c === 0x29d9 ||\n c === 0x29da ||\n c === 0x29db ||\n (c >= 0x29dc && c <= 0x29fb) ||\n c === 0x29fc ||\n c === 0x29fd ||\n (c >= 0x29fe && c <= 0x2aff) ||\n (c >= 0x2b00 && c <= 0x2b2f) ||\n (c >= 0x2b30 && c <= 0x2b44) ||\n (c >= 0x2b45 && c <= 0x2b46) ||\n (c >= 0x2b47 && c <= 0x2b4c) ||\n (c >= 0x2b4d && c <= 0x2b73) ||\n (c >= 0x2b74 && c <= 0x2b75) ||\n (c >= 0x2b76 && c <= 0x2b95) ||\n c === 0x2b96 ||\n (c >= 0x2b97 && c <= 0x2bff) ||\n (c >= 0x2e00 && c <= 0x2e01) ||\n c === 0x2e02 ||\n c === 0x2e03 ||\n c === 0x2e04 ||\n c === 0x2e05 ||\n (c >= 0x2e06 && c <= 0x2e08) ||\n c === 0x2e09 ||\n c === 0x2e0a ||\n c === 0x2e0b ||\n c === 0x2e0c ||\n c === 0x2e0d ||\n (c >= 0x2e0e && c <= 0x2e16) ||\n c === 0x2e17 ||\n (c >= 0x2e18 && c <= 0x2e19) ||\n c === 0x2e1a ||\n c === 0x2e1b ||\n c === 0x2e1c ||\n c === 0x2e1d ||\n (c >= 0x2e1e && c <= 0x2e1f) ||\n c === 0x2e20 ||\n c === 0x2e21 ||\n c === 0x2e22 ||\n c === 0x2e23 ||\n c === 0x2e24 ||\n c === 0x2e25 ||\n c === 0x2e26 ||\n c === 0x2e27 ||\n c === 0x2e28 ||\n c === 0x2e29 ||\n (c >= 0x2e2a && c <= 0x2e2e) ||\n c === 0x2e2f ||\n (c >= 0x2e30 && c <= 0x2e39) ||\n (c >= 0x2e3a && c <= 0x2e3b) ||\n (c >= 0x2e3c && c <= 0x2e3f) ||\n c === 0x2e40 ||\n c === 0x2e41 ||\n c === 0x2e42 ||\n (c >= 0x2e43 && c <= 0x2e4f) ||\n (c >= 0x2e50 && c <= 0x2e51) ||\n c === 0x2e52 ||\n (c >= 0x2e53 && c <= 0x2e7f) ||\n (c >= 0x3001 && c <= 0x3003) ||\n c === 0x3008 ||\n c === 0x3009 ||\n c === 0x300a ||\n c === 0x300b ||\n c === 0x300c ||\n c === 0x300d ||\n c === 0x300e ||\n c === 0x300f ||\n c === 0x3010 ||\n c === 0x3011 ||\n (c >= 0x3012 && c <= 0x3013) ||\n c === 0x3014 ||\n c === 0x3015 ||\n c === 0x3016 ||\n c === 0x3017 ||\n c === 0x3018 ||\n c === 0x3019 ||\n c === 0x301a ||\n c === 0x301b ||\n c === 0x301c ||\n c === 0x301d ||\n (c >= 0x301e && c <= 0x301f) ||\n c === 0x3020 ||\n c === 0x3030 ||\n c === 0xfd3e ||\n c === 0xfd3f ||\n (c >= 0xfe45 && c <= 0xfe46));\n}\n","import { timeData } from './time-data.generated';\n/**\n * Returns the best matching date time pattern if a date time skeleton\n * pattern is provided with a locale. Follows the Unicode specification:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns\n * @param skeleton date time skeleton pattern that possibly includes j, J or C\n * @param locale\n */\nexport function getBestPattern(skeleton, locale) {\n var skeletonCopy = '';\n for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {\n var patternChar = skeleton.charAt(patternPos);\n if (patternChar === 'j') {\n var extraLength = 0;\n while (patternPos + 1 < skeleton.length &&\n skeleton.charAt(patternPos + 1) === patternChar) {\n extraLength++;\n patternPos++;\n }\n var hourLen = 1 + (extraLength & 1);\n var dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1);\n var dayPeriodChar = 'a';\n var hourChar = getDefaultHourSymbolFromLocale(locale);\n if (hourChar == 'H' || hourChar == 'k') {\n dayPeriodLen = 0;\n }\n while (dayPeriodLen-- > 0) {\n skeletonCopy += dayPeriodChar;\n }\n while (hourLen-- > 0) {\n skeletonCopy = hourChar + skeletonCopy;\n }\n }\n else if (patternChar === 'J') {\n skeletonCopy += 'H';\n }\n else {\n skeletonCopy += patternChar;\n }\n }\n return skeletonCopy;\n}\n/**\n * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)\n * of the given `locale` to the corresponding time pattern.\n * @param locale\n */\nfunction getDefaultHourSymbolFromLocale(locale) {\n var hourCycle = locale.hourCycle;\n if (hourCycle === undefined &&\n // @ts-ignore hourCycle(s) is not identified yet\n locale.hourCycles &&\n // @ts-ignore\n locale.hourCycles.length) {\n // @ts-ignore\n hourCycle = locale.hourCycles[0];\n }\n if (hourCycle) {\n switch (hourCycle) {\n case 'h24':\n return 'k';\n case 'h23':\n return 'H';\n case 'h12':\n return 'h';\n case 'h11':\n return 'K';\n default:\n throw new Error('Invalid hourCycle');\n }\n }\n // TODO: Once hourCycle is fully supported remove the following with data generation\n var languageTag = locale.language;\n var regionTag;\n if (languageTag !== 'root') {\n regionTag = locale.maximize().region;\n }\n var hourCycles = timeData[regionTag || ''] ||\n timeData[languageTag || ''] ||\n timeData[\"\".concat(languageTag, \"-001\")] ||\n timeData['001'];\n return hourCycles[0];\n}\n","import { __assign } from \"tslib\";\nimport { ErrorKind } from './error';\nimport { Parser } from './parser';\nimport { isDateElement, isDateTimeSkeleton, isNumberElement, isNumberSkeleton, isPluralElement, isSelectElement, isTagElement, isTimeElement, } from './types';\nfunction pruneLocation(els) {\n els.forEach(function (el) {\n delete el.location;\n if (isSelectElement(el) || isPluralElement(el)) {\n for (var k in el.options) {\n delete el.options[k].location;\n pruneLocation(el.options[k].value);\n }\n }\n else if (isNumberElement(el) && isNumberSkeleton(el.style)) {\n delete el.style.location;\n }\n else if ((isDateElement(el) || isTimeElement(el)) &&\n isDateTimeSkeleton(el.style)) {\n delete el.style.location;\n }\n else if (isTagElement(el)) {\n pruneLocation(el.children);\n }\n });\n}\nexport function parse(message, opts) {\n if (opts === void 0) { opts = {}; }\n opts = __assign({ shouldParseSkeletons: true, requiresOtherClause: true }, opts);\n var result = new Parser(message, opts).parse();\n if (result.err) {\n var error = SyntaxError(ErrorKind[result.err.kind]);\n // @ts-expect-error Assign to error object\n error.location = result.err.location;\n // @ts-expect-error Assign to error object\n error.originalMessage = result.err.message;\n throw error;\n }\n if (!(opts === null || opts === void 0 ? void 0 : opts.captureLocation)) {\n pruneLocation(result.val);\n }\n return result.val;\n}\nexport * from './types';\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.generateENXB = exports.generateENXA = exports.generateXXHA = exports.generateXXAC = exports.generateXXLS = void 0;\nvar tslib_1 = require(\"tslib\");\nvar icu_messageformat_parser_1 = require(\"@formatjs/icu-messageformat-parser\");\nfunction generateXXLS(msg) {\n var ast = typeof msg === 'string' ? (0, icu_messageformat_parser_1.parse)(msg) : msg;\n var lastChunk = ast.pop();\n if (lastChunk && (0, icu_messageformat_parser_1.isLiteralElement)(lastChunk)) {\n lastChunk.value += 'SSSSSSSSSSSSSSSSSSSSSSSSS';\n return (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], ast, true), [lastChunk], false);\n }\n return (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], ast, true), [{ type: icu_messageformat_parser_1.TYPE.literal, value: 'SSSSSSSSSSSSSSSSSSSSSSSSS' }], false);\n}\nexports.generateXXLS = generateXXLS;\nfunction generateXXAC(msg) {\n var ast = typeof msg === 'string' ? (0, icu_messageformat_parser_1.parse)(msg) : msg;\n ast.forEach(function (el) {\n if ((0, icu_messageformat_parser_1.isLiteralElement)(el)) {\n el.value = el.value.toUpperCase();\n }\n else if ((0, icu_messageformat_parser_1.isPluralElement)(el) || (0, icu_messageformat_parser_1.isSelectElement)(el)) {\n for (var _i = 0, _a = Object.values(el.options); _i < _a.length; _i++) {\n var opt = _a[_i];\n generateXXAC(opt.value);\n }\n }\n else if ((0, icu_messageformat_parser_1.isTagElement)(el)) {\n generateXXAC(el.children);\n }\n });\n return ast;\n}\nexports.generateXXAC = generateXXAC;\nfunction generateXXHA(msg) {\n var ast = typeof msg === 'string' ? (0, icu_messageformat_parser_1.parse)(msg) : msg;\n var firstChunk = ast.shift();\n if (firstChunk && (0, icu_messageformat_parser_1.isLiteralElement)(firstChunk)) {\n firstChunk.value = '[javascript]' + firstChunk.value;\n return (0, tslib_1.__spreadArray)([firstChunk], ast, true);\n }\n return (0, tslib_1.__spreadArray)([{ type: icu_messageformat_parser_1.TYPE.literal, value: '[javascript]' }], ast, true);\n}\nexports.generateXXHA = generateXXHA;\nvar ASCII = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\nvar ACCENTED_ASCII = 'âḃćḋèḟĝḫíĵǩĺṁńŏṗɋŕśṭůṿẘẋẏẓḀḂḈḊḔḞḠḢḬĴḴĻḾŊÕṔɊŔṠṮŨṼẄẌŸƵ';\nfunction generateENXA(msg) {\n var ast = typeof msg === 'string' ? (0, icu_messageformat_parser_1.parse)(msg) : msg;\n ast.forEach(function (el) {\n if ((0, icu_messageformat_parser_1.isLiteralElement)(el)) {\n el.value = el.value\n .split('')\n .map(function (c) {\n var i = ASCII.indexOf(c);\n if (i < 0) {\n return c;\n }\n return ACCENTED_ASCII[i];\n })\n .join('');\n }\n else if ((0, icu_messageformat_parser_1.isPluralElement)(el) || (0, icu_messageformat_parser_1.isSelectElement)(el)) {\n for (var _i = 0, _a = Object.values(el.options); _i < _a.length; _i++) {\n var opt = _a[_i];\n generateENXA(opt.value);\n }\n }\n else if ((0, icu_messageformat_parser_1.isTagElement)(el)) {\n generateENXA(el.children);\n }\n });\n return ast;\n}\nexports.generateENXA = generateENXA;\nfunction generateENXB(msg) {\n var ast = typeof msg === 'string' ? (0, icu_messageformat_parser_1.parse)(msg) : msg;\n ast.forEach(function (el) {\n if ((0, icu_messageformat_parser_1.isLiteralElement)(el)) {\n var pseudoString = el.value\n .split('')\n .map(function (c, index) {\n var i = ASCII.indexOf(c);\n var canPad = (index + 1) % 3 === 0;\n if (i < 0) {\n return c;\n }\n return canPad ? ACCENTED_ASCII[i].repeat(3) : ACCENTED_ASCII[i];\n })\n .join('');\n el.value = \"[!! \".concat(pseudoString, \" !!]\");\n }\n else if ((0, icu_messageformat_parser_1.isPluralElement)(el) || (0, icu_messageformat_parser_1.isSelectElement)(el)) {\n for (var _i = 0, _a = Object.values(el.options); _i < _a.length; _i++) {\n var opt = _a[_i];\n generateENXB(opt.value);\n }\n }\n else if ((0, icu_messageformat_parser_1.isTagElement)(el)) {\n generateENXB(el.children);\n }\n });\n return ast;\n}\nexports.generateENXB = generateENXB;\n"],"names":["ErrorKind","TYPE","SKELETON_TYPE","isLiteralElement","el","type","literal","isArgumentElement","argument","isNumberElement","number","isDateElement","date","isTimeElement","time","isSelectElement","select","isPluralElement","plural","isPoundElement","pound","isTagElement","tag","isNumberSkeleton","isDateTimeSkeleton","dateTime","createLiteralElement","value","createNumberElement","style","SPACE_SEPARATOR_REGEX","DATE_TIME_REGEX","parseDateTimeSkeleton","skeleton","result","replace","match","len","length","era","year","RangeError","month","day","weekday","hour12","hourCycle","hour","minute","second","timeZoneName","WHITE_SPACE_REGEX","FRACTION_PRECISION_REGEX","SIGNIFICANT_PRECISION_REGEX","INTEGER_WIDTH_REGEX","CONCISE_INTEGER_WIDTH_REGEX","parseSignificantPrecision","str","roundingPriority","_","g1","g2","minimumSignificantDigits","maximumSignificantDigits","parseSign","signDisplay","currencySign","parseConciseScientificAndEngineeringStem","stem","notation","slice","test","Error","minimumIntegerDigits","parseNotationOptions","opt","signOpts","parseNumberSkeleton","tokens","_i","tokens_1","token","scale","currency","options","useGrouping","maximumFractionDigits","unit","compactDisplay","__assign","reduce","all","currencyDisplay","unitDisplay","parseFloat","g3","g4","g5","minimumFractionDigits","trailingZeroDisplay","conciseScientificAndEngineeringOpts","_a","timeData","getDefaultHourSymbolFromLocale","locale","undefined","hourCycles","regionTag","languageTag","language","maximize","region","concat","SPACE_SEPARATOR_START_REGEX","RegExp","source","SPACE_SEPARATOR_END_REGEX","createLocation","start","end","hasNativeStartsWith","String","prototype","startsWith","hasNativeFromCodePoint","fromCodePoint","hasNativeFromEntries","Object","fromEntries","hasNativeCodePointAt","codePointAt","hasTrimStart","trimStart","hasTrimEnd","trimEnd","isSafeInteger","Number","n","isFinite","Math","floor","abs","REGEX_SUPPORTS_U_AND_Y","RE","exec","matchIdentifierAtIndex","s","search","position","codePoints","arguments","code","elements","i","fromCharCode","entries","obj","entries_1","k","v","index","size","first","charCodeAt","flag","IDENTIFIER_PREFIX_RE_1","lastIndex","c","_isWhiteSpace","_isPatternSyntax","push","apply","Parser","message","this","offset","line","column","ignoreTag","requiresOtherClause","shouldParseSkeletons","parse","parseMessage","nestingLevel","parentArgType","expectingCloseTag","isEOF","char","parseArgument","err","val","peek","error","UNMATCHED_CLOSING_TAG","clonePosition","_isAlpha","parseTag","parseLiteral","bump","location","startPosition","tagName","parseTagName","bumpSpace","bumpIf","childrenResult","children","endTagStartPosition","INVALID_TAG","closingTagNameStartPosition","UNCLOSED_TAG","startOffset","parseQuoteResult","tryParseQuote","parseUnquotedResult","tryParseUnquoted","parseLeftAngleResult","tryParseLeftAngleBracket","codepoint","ch","openingBracePosition","EXPECT_ARGUMENT_CLOSING_BRACE","EMPTY_ARGUMENT","parseIdentifierIfPossible","MALFORMED_ARGUMENT","parseArgumentOptions","startingPosition","endOffset","bumpTo","typeStartPosition","argType","typeEndPosition","EXPECT_ARGUMENT_TYPE","styleAndLocation","styleStartPosition","parseSimpleArgStyleIfPossible","EXPECT_ARGUMENT_STYLE","styleLocation","argCloseResult","tryParseArgumentClose","location_1","parseNumberSkeletonFromString","EXPECT_DATE_TIME_SKELETON","dateTimePattern","skeletonCopy","patternPos","patternChar","charAt","extraLength","hourLen","dayPeriodLen","hourChar","getBestPattern","pattern","parsedOptions","typeEndPosition_1","EXPECT_SELECT_ARGUMENT_OPTIONS","identifierAndLocation","pluralOffset","EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE","tryParseDecimalInteger","INVALID_PLURAL_ARGUMENT_OFFSET_VALUE","optionsResult","tryParsePluralOrSelectOptions","location_2","pluralType","INVALID_ARGUMENT_TYPE","nestedBraces","apostrophePosition","bumpUntil","UNCLOSED_QUOTE_IN_ARGUMENT_STYLE","stringTokens_1","split","filter","x","stemAndOptions","options_1","e","INVALID_NUMBER_SKELETON","expectCloseTag","parsedFirstIdentifier","hasOtherClause","parsedSelectors","Set","selector","selectorLocation","EXPECT_PLURAL_ARGUMENT_SELECTOR","INVALID_PLURAL_ARGUMENT_SELECTOR","has","DUPLICATE_SELECT_ARGUMENT_SELECTOR","DUPLICATE_PLURAL_ARGUMENT_SELECTOR","EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT","EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT","fragmentResult","add","EXPECT_SELECT_ARGUMENT_SELECTOR","MISSING_OTHER_CLAUSE","expectNumberError","invalidNumberError","sign","hasDigits","decimal","kind","prefix","currentOffset","indexOf","targetOffset","min","nextCode","pruneLocation","els","forEach","opts","SyntaxError","originalMessage","captureLocation","exports","generateENXA","tslib_1","require","icu_messageformat_parser_1","ASCII","ACCENTED_ASCII","msg","ast","map","join","values"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6386.95210fd8.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6386.95210fd8.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..52ca3f18ed30124f86398c3364727029b707b710 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6386.95210fd8.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6386],{6768:function(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},12120:function(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},12203:function(t){"use strict";t.exports=function(t,e,a,n){for(var i=65535&t,r=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{r=r+(i=i+e[n++]|0)|0}while(--s);i%=65521,r%=65521}return i|r<<16}},13933:function(t){"use strict";var e=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();t.exports=function(t,a,n,i){var r=e,s=i+n;t=~t;for(var o=i;o>>8^r[255&(t^a[o])];return~t}},32595:function(t,e){"use strict";var a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!==typeof a)throw new TypeError(a+"must be non-object");for(var n in a)a.hasOwnProperty(n)&&(t[n]=a[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,a,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),i);else for(var r=0;r=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var a=n.inflateInit2(this.strm,e.windowBits);if(a!==s.Z_OK)throw new Error(o[a]);this.header=new l,n.inflateGetHeader(this.strm,this.header)};function f(t,e){var a=new _(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}_.prototype.push=function(t,e){var a,o,h,l,_,f=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"===typeof t?f.input=r.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(u),f.next_out=0,f.avail_out=u),(a=n.inflate(f,s.Z_NO_FLUSH))!==s.Z_STREAM_END&&a!==s.Z_OK)return this.onEnd(a),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&a!==s.Z_STREAM_END&&(0!==f.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(h=r.utf8border(f.output,f.next_out),l=f.next_out-h,_=r.buf2string(f.output,h),f.next_out=l,f.avail_out=u-l,l&&i.arraySet(f.output,f.output,h,l,0),this.onData(_)):this.onData(i.shrinkBuf(f.output,f.next_out))))}while(f.avail_in>0&&a!==s.Z_STREAM_END);return a===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(a=n.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),f.avail_out=0,!0)},_.prototype.onData=function(t){this.chunks.push(t)},_.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=_,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},42045:function(t,e,a){"use strict";var n=a(46881),i=a(32595),r=a(94506),s=a(6768),o=a(12120),h=Object.prototype.toString,l=function(t){this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==a)throw new Error(s[a]);e.header&&n.deflateSetHeader(this.strm,e.header)};function d(t,e){var a=new l(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}l.prototype.push=function(t,e){var a,s,o=this.strm,l=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"===typeof t?o.input=r.string2buf(t):"[object ArrayBuffer]"===h.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(l),o.next_out=0,o.avail_out=l),1!==(a=n.deflate(o,s))&&0!==a)return this.onEnd(a),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(r.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==s||(this.onEnd(0),o.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=l,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},46881:function(t,e,a){"use strict";var n=a(32595),i=a(97883),r=a(12203),s=a(13933),o=a(6768),h=-2,l=258,d=262,_=103,f=113,u=666;function c(t,e){return t.msg=o[e],e}function g(t){return(t<<1)-(t>4?9:0)}function w(t){for(var e=t.length;--e>=0;)t[e]=0}function b(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(n.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function m(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,b(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function v(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function k(t,e,a,i){var o=t.avail_in;return o>i&&(o=i),0===o?0:(t.avail_in-=o,n.arraySet(e,t.input,t.next_in,o,a),1===t.state.wrap?t.adler=r(t.adler,e,o,a):2===t.state.wrap&&(t.adler=s(t.adler,e,o,a)),t.next_in+=o,t.total_in+=o,o)}function x(t,e){var a,n,i=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match,h=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,_=t.window,f=t.w_mask,u=t.prev,c=t.strstart+l,g=_[r+s-1],w=_[r+s];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(_[(a=e)+s]===w&&_[a+s-1]===g&&_[a]===_[r]&&_[++a]===_[r+1]){r+=2,a++;do{}while(_[++r]===_[++a]&&_[++r]===_[++a]&&_[++r]===_[++a]&&_[++r]===_[++a]&&_[++r]===_[++a]&&_[++r]===_[++a]&&_[++r]===_[++a]&&_[++r]===_[++a]&&rs){if(t.match_start=e,s=n,n>=o)break;g=_[r+s-1],w=_[r+s]}}}while((e=u[e&f])>h&&0!==--i);return s<=t.lookahead?s:t.lookahead}function y(t){var e,a,i,r,s,o=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=o+(o-d)){n.arraySet(t.window,t.window,o,o,0),t.match_start-=o,t.strstart-=o,t.block_start-=o,e=a=t.hash_size;do{i=t.head[--e],t.head[e]=i>=o?i-o:0}while(--a);e=a=o;do{i=t.prev[--e],t.prev[e]=i>=o?i-o:0}while(--a);r+=o}if(0===t.strm.avail_in)break;if(a=k(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3)if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<15&&(o=2,i-=16),r<1||r>9||8!==a||i<8||i>15||e<0||e>9||s<0||s>4)return c(t,h);8===i&&(i=9);var l=new A;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=i,l.w_size=1<>1,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,C(t)}S=[new E(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,m(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(m(t,!1),t.strm.avail_out),1)})),new E(4,4,8,4,z),new E(4,5,16,8,z),new E(4,6,32,32,z),new E(4,4,16,16,B),new E(8,16,32,32,B),new E(8,16,128,128,B),new E(8,32,128,256,B),new E(32,128,258,1024,B),new E(32,258,258,4096,B)],e.deflateInit=function(t,e){return R(t,e,8,15,8,0)},e.deflateInit2=R,e.deflateReset=C,e.deflateResetKeep=Z,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var a,n,r,o;if(!t||!t.state||e>5||e<0)return t?c(t,h):h;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===u&&4!==e)return c(t,0===t.avail_out?-5:h);if(n.strm=t,a=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,p(n,31),p(n,139),p(n,8),n.gzhead?(p(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),p(n,255&n.gzhead.time),p(n,n.gzhead.time>>8&255),p(n,n.gzhead.time>>16&255),p(n,n.gzhead.time>>24&255),p(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),p(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(p(n,255&n.gzhead.extra.length),p(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=s(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(p(n,0),p(n,0),p(n,0),p(n,0),p(n,0),p(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),p(n,3),n.status=f);else{var d=8+(n.w_bits-8<<4)<<8;d|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(d|=32),d+=31-d%31,n.status=f,v(n,d),0!==n.strstart&&(v(n,t.adler>>>16),v(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(r=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>r&&(t.adler=s(t.adler,n.pending_buf,n.pending-r,r)),b(t),r=n.pending,n.pending!==n.pending_buf_size));)p(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>r&&(t.adler=s(t.adler,n.pending_buf,n.pending-r,r)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(t.adler=s(t.adler,n.pending_buf,n.pending-r,r)),b(t),r=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexr&&(t.adler=s(t.adler,n.pending_buf,n.pending-r,r)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(t.adler=s(t.adler,n.pending_buf,n.pending-r,r)),b(t),r=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexr&&(t.adler=s(t.adler,n.pending_buf,n.pending-r,r)),0===o&&(n.status=_)}else n.status=_;if(n.status===_&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&b(t),n.pending+2<=n.pending_buf_size&&(p(n,255&t.adler),p(n,t.adler>>8&255),t.adler=0,n.status=f)):n.status=f),0!==n.pending){if(b(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(a)&&4!==e)return c(t,-5);if(n.status===u&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==u){var k=2===n.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var a,n,r,s,o=t.window;;){if(t.lookahead<=l){if(y(t),t.lookahead<=l&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[r=t.strstart-1])===o[++r]&&n===o[++r]&&n===o[++r]){s=t.strstart+l;do{}while(n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(n,e):S[n.level].func(n,e);if(3!==k&&4!==k||(n.status=u),1===k||3===k)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===k&&(1===e?i._tr_align(n):5!==e&&(i._tr_stored_block(n,0,0,!1),3===e&&(w(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),b(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(p(n,255&t.adler),p(n,t.adler>>8&255),p(n,t.adler>>16&255),p(n,t.adler>>24&255),p(n,255&t.total_in),p(n,t.total_in>>8&255),p(n,t.total_in>>16&255),p(n,t.total_in>>24&255)):(v(n,t.adler>>>16),v(n,65535&t.adler)),b(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==_&&e!==f&&e!==u?c(t,h):(t.state=null,e===f?c(t,-3):0):h},e.deflateInfo="pako deflate (from Nodeca project)"},55743:function(t){"use strict";t.exports=function(t,e){var a,n,i,r,s,o,h,l,d,_,f,u,c,g,w,b,m,p,v,k,x,y,z,B,S;a=t.state,n=t.next_in,B=t.input,i=n+(t.avail_in-5),r=t.next_out,S=t.output,s=r-(e-t.avail_out),o=r+(t.avail_out-257),h=a.dmax,l=a.wsize,d=a.whave,_=a.wnext,f=a.window,u=a.hold,c=a.bits,g=a.lencode,w=a.distcode,b=(1<>>=v=p>>>24,c-=v,0===(v=p>>>16&255))S[r++]=65535&p;else{if(!(16&v)){if(0===(64&v)){p=g[(65535&p)+(u&(1<>>=v,c-=v),c<15&&(u+=B[n++]<>>=v=p>>>24,c-=v,!(16&(v=p>>>16&255))){if(0===(64&v)){p=w[(65535&p)+(u&(1<h){t.msg="invalid distance too far back",a.mode=30;break t}if(u>>>=v,c-=v,x>(v=r-s)){if((v=x-v)>d&&a.sane){t.msg="invalid distance too far back",a.mode=30;break t}if(y=0,z=f,0===_){if(y+=l-v,v2;)S[r++]=z[y++],S[r++]=z[y++],S[r++]=z[y++],k-=3;k&&(S[r++]=z[y++],k>1&&(S[r++]=z[y++]))}else{y=r-x;do{S[r++]=S[y++],S[r++]=S[y++],S[r++]=S[y++],k-=3}while(k>2);k&&(S[r++]=S[y++],k>1&&(S[r++]=S[y++]))}break}}break}}while(n>3,u&=(1<<(c-=k<<3))-1,t.next_in=n,t.next_out=r,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):h}function c(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,u(t)):h}function g(t,e){var a,n;return t&&t.state?(n=t.state,e<0?(a=0,e=-e):(a=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?h:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=a,n.wbits=e,c(t))):h}function w(t,e){var a,n;return t?(n=new f,t.state=n,n.window=null,0!==(a=g(t,e))&&(t.state=null),a):h}var b,m,p=!0;function v(t){if(p){var e;for(b=new n.Buf32(512),m=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(o(1,t.lens,0,288,b,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;o(2,t.lens,0,32,m,0,t.work,{bits:5}),p=!1}t.lencode=b,t.lenbits=9,t.distcode=m,t.distbits=5}e.inflateReset=c,e.inflateReset2=g,e.inflateResetKeep=u,e.inflateInit=function(t){return w(t,15)},e.inflateInit2=w,e.inflate=function(t,e){var a,f,u,c,g,w,b,m,p,k,x,y,z,B,S,E,A,Z,C,R,N,I,O,T,D=0,F=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;(a=t.state).mode===l&&(a.mode=13),g=t.next_out,u=t.output,b=t.avail_out,c=t.next_in,f=t.input,w=t.avail_in,m=a.hold,p=a.bits,k=w,x=b,I=0;t:for(;;)switch(a.mode){case 1:if(0===a.wrap){a.mode=13;break}for(;p<16;){if(0===w)break t;w--,m+=f[c++]<>>8&255,a.check=r(a.check,F,2,0),m=0,p=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",a.mode=d;break}if(8!==(15&m)){t.msg="unknown compression method",a.mode=d;break}if(p-=4,N=8+(15&(m>>>=4)),0===a.wbits)a.wbits=N;else if(N>a.wbits){t.msg="invalid window size",a.mode=d;break}a.dmax=1<>8&1),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,p=0,a.mode=3;case 3:for(;p<32;){if(0===w)break t;w--,m+=f[c++]<>>8&255,F[2]=m>>>16&255,F[3]=m>>>24&255,a.check=r(a.check,F,4,0)),m=0,p=0,a.mode=4;case 4:for(;p<16;){if(0===w)break t;w--,m+=f[c++]<>8),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,p=0,a.mode=5;case 5:if(1024&a.flags){for(;p<16;){if(0===w)break t;w--,m+=f[c++]<>>8&255,a.check=r(a.check,F,2,0)),m=0,p=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&((y=a.length)>w&&(y=w),y&&(a.head&&(N=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),n.arraySet(a.head.extra,f,c,y,N)),512&a.flags&&(a.check=r(a.check,f,y,c)),w-=y,c+=y,a.length-=y),a.length))break t;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===w)break t;y=0;do{N=f[c+y++],a.head&&N&&a.length<65536&&(a.head.name+=String.fromCharCode(N))}while(N&&y>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=l;break;case 10:for(;p<32;){if(0===w)break t;w--,m+=f[c++]<>>=7&p,p-=7&p,a.mode=27;break}for(;p<3;){if(0===w)break t;w--,m+=f[c++]<>>=1)){case 0:a.mode=14;break;case 1:if(v(a),a.mode=20,6===e){m>>>=2,p-=2;break t}break;case 2:a.mode=17;break;case 3:t.msg="invalid block type",a.mode=d}m>>>=2,p-=2;break;case 14:for(m>>>=7&p,p-=7&p;p<32;){if(0===w)break t;w--,m+=f[c++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=d;break}if(a.length=65535&m,m=0,p=0,a.mode=15,6===e)break t;case 15:a.mode=16;case 16:if(y=a.length){if(y>w&&(y=w),y>b&&(y=b),0===y)break t;n.arraySet(u,f,c,y,g),w-=y,c+=y,b-=y,g+=y,a.length-=y;break}a.mode=l;break;case 17:for(;p<14;){if(0===w)break t;w--,m+=f[c++]<>>=5,p-=5,a.ndist=1+(31&m),m>>>=5,p-=5,a.ncode=4+(15&m),m>>>=4,p-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=d;break}a.have=0,a.mode=18;case 18:for(;a.have>>=3,p-=3}for(;a.have<19;)a.lens[U[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,O={bits:a.lenbits},I=o(0,a.lens,0,19,a.lencode,0,a.work,O),a.lenbits=O.bits,I){t.msg="invalid code lengths set",a.mode=d;break}a.have=0,a.mode=19;case 19:for(;a.have>>16&255,A=65535&D,!((S=D>>>24)<=p);){if(0===w)break t;w--,m+=f[c++]<>>=S,p-=S,a.lens[a.have++]=A;else{if(16===A){for(T=S+2;p>>=S,p-=S,0===a.have){t.msg="invalid bit length repeat",a.mode=d;break}N=a.lens[a.have-1],y=3+(3&m),m>>>=2,p-=2}else if(17===A){for(T=S+3;p>>=S)),m>>>=3,p-=3}else{for(T=S+7;p>>=S)),m>>>=7,p-=7}if(a.have+y>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=d;break}for(;y--;)a.lens[a.have++]=N}}if(a.mode===d)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=d;break}if(a.lenbits=9,O={bits:a.lenbits},I=o(1,a.lens,0,a.nlen,a.lencode,0,a.work,O),a.lenbits=O.bits,I){t.msg="invalid literal/lengths set",a.mode=d;break}if(a.distbits=6,a.distcode=a.distdyn,O={bits:a.distbits},I=o(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,O),a.distbits=O.bits,I){t.msg="invalid distances set",a.mode=d;break}if(a.mode=20,6===e)break t;case 20:a.mode=21;case 21:if(w>=6&&b>=258){t.next_out=g,t.avail_out=b,t.next_in=c,t.avail_in=w,a.hold=m,a.bits=p,s(t,x),g=t.next_out,u=t.output,b=t.avail_out,c=t.next_in,f=t.input,w=t.avail_in,m=a.hold,p=a.bits,a.mode===l&&(a.back=-1);break}for(a.back=0;E=(D=a.lencode[m&(1<>>16&255,A=65535&D,!((S=D>>>24)<=p);){if(0===w)break t;w--,m+=f[c++]<>Z)])>>>16&255,A=65535&D,!(Z+(S=D>>>24)<=p);){if(0===w)break t;w--,m+=f[c++]<>>=Z,p-=Z,a.back+=Z}if(m>>>=S,p-=S,a.back+=S,a.length=A,0===E){a.mode=26;break}if(32&E){a.back=-1,a.mode=l;break}if(64&E){t.msg="invalid literal/length code",a.mode=d;break}a.extra=15&E,a.mode=22;case 22:if(a.extra){for(T=a.extra;p>>=a.extra,p-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;E=(D=a.distcode[m&(1<>>16&255,A=65535&D,!((S=D>>>24)<=p);){if(0===w)break t;w--,m+=f[c++]<>Z)])>>>16&255,A=65535&D,!(Z+(S=D>>>24)<=p);){if(0===w)break t;w--,m+=f[c++]<>>=Z,p-=Z,a.back+=Z}if(m>>>=S,p-=S,a.back+=S,64&E){t.msg="invalid distance code",a.mode=d;break}a.offset=A,a.extra=15&E,a.mode=24;case 24:if(a.extra){for(T=a.extra;p>>=a.extra,p-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=d;break}a.mode=25;case 25:if(0===b)break t;if(y=x-b,a.offset>y){if((y=a.offset-y)>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=d;break}y>a.wnext?(y-=a.wnext,z=a.wsize-y):z=a.wnext-y,y>a.length&&(y=a.length),B=a.window}else B=u,z=g-a.offset,y=a.length;y>b&&(y=b),b-=y,a.length-=y;do{u[g++]=B[z++]}while(--y);0===a.length&&(a.mode=21);break;case 26:if(0===b)break t;u[g++]=a.length,b--,a.mode=21;break;case 27:if(a.wrap){for(;p<32;){if(0===w)break t;w--,m|=f[c++]<=s.wsize?(n.arraySet(s.window,e,a-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((r=s.wsize-s.wnext)>i&&(r=i),n.arraySet(s.window,e,a-i,r,s.wnext),(i-=r)?(n.arraySet(s.window,e,a-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function h(t,e){if(e<65537&&(t.subarray&&r||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},e.buf2binstring=function(t){return h(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,i=e.length;a4)l[n++]=65533,a+=r-1;else{for(i&=2===r?31:3===r?15:7;r>1&&a1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return h(l,n)},e.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;a>=0&&128===(192&t[a]);)a--;return a<0||0===a?e:a+s[t[a]]>e?a:e}},95532:function(t,e,a){"use strict";var n=a(32595),i=15,r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,a,l,d,_,f,u){var c,g,w,b,m,p,v,k,x,y=u.bits,z=0,B=0,S=0,E=0,A=0,Z=0,C=0,R=0,N=0,I=0,O=null,T=0,D=new n.Buf16(16),F=new n.Buf16(16),U=null,L=0;for(z=0;z<=i;z++)D[z]=0;for(B=0;B=1&&0===D[E];E--);if(A>E&&(A=E),0===E)return d[_++]=20971520,d[_++]=20971520,u.bits=1,0;for(S=1;S0&&(0===t||1!==E))return-1;for(F[1]=0,z=1;z852||2===t&&N>592)return 1;for(;;){v=z-C,f[B]p?(k=U[L+f[B]],x=O[T+f[B]]):(k=96,x=0),c=1<>C)+(g-=c)]=v<<24|k<<16|x}while(0!==g);for(c=1<>=1;if(0!==c?(I&=c-1,I+=c):I=0,B++,0===--D[z]){if(z===E)break;z=e[a+f[B]]}if(z>A&&(I&b)!==w){for(0===C&&(C=A),m+=S,R=1<<(Z=z-C);Z+C852||2===t&&N>592)return 1;d[w=I&b]=A<<24|Z<<16|m-_}}return 0!==I&&(d[m+I]=z-C<<24|64<<16),u.bits=A,0}},97883:function(t,e,a){"use strict";var n=a(32595);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,s=286,o=30,h=15,l=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var c=new Array(60);i(c);var g=new Array(512);i(g);var w=new Array(256);i(w);var b=new Array(29);i(b);var m=new Array(o);i(m);var p,v,k,x=function(t,e,a,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=i,this.has_stree=t&&t.length},y=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e};function z(t){return t<256?g[t]:g[256+(t>>>7)]}function B(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function S(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1}function Z(t,e,a){var n,i,r=new Array(16),s=0;for(n=1;n<=h;n++)r[n]=s=s+a[n-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=A(r[o]++,o))}}function C(t){var e;for(e=0;e8?B(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function N(t,e,a,n){var i=2*e,r=2*a;return t[i]>1;a>=1;a--)I(t,r,a);i=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],I(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,r[2*i]=r[2*a]+r[2*n],t.depth[i]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,r[2*a+1]=r[2*n+1]=i,t.heap[1]=i++,I(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,i,r,s,o,l=e.dyn_tree,d=e.max_code,_=e.stat_desc.static_tree,f=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,g=e.stat_desc.max_length,w=0;for(r=0;r<=h;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(r=l[2*l[2*(n=t.heap[a])+1]+1]+1)>g&&(r=g,w++),l[2*n+1]=r,n>d||(t.bl_count[r]++,s=0,n>=c&&(s=u[n-c]),o=l[2*n],t.opt_len+=o*(r+s),f&&(t.static_len+=o*(_[2*n+1]+s)));if(0!==w){do{for(r=g-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[g]--,w-=2}while(w>0);for(r=g;0!==r;r--)for(n=t.bl_count[r];0!==n;)(i=t.heap[--a])>d||(l[2*i+1]!==r&&(t.opt_len+=(r-l[2*i+1])*l[2*i],l[2*i+1]=r),n--)}}(t,e),Z(r,d,t.bl_count)}function D(t,e,a){var n,i,r=-1,s=e[1],o=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)i=s,s=e[2*(n+1)+1],++o>=7;n0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*f[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?L(t,e,a,n):4===t.strategy||s===i?(S(t,2+(n?1:0),3),O(t,u,c)):(S(t,4+(n?1:0),3),function(t,e,a,n){var i;for(S(t,e-257,5),S(t,a-1,5),S(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(w[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){S(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(B(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}}}]); +//# sourceMappingURL=6386.95210fd8.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6386.95210fd8.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6386.95210fd8.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..22491eace6b1e35fdb65f630cac2f2a55ce313b9 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6386.95210fd8.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6386.95210fd8.chunk.js","mappings":"kHAEAA,EAAOC,QAAU,CACf,EAAQ,kBACR,EAAQ,aACR,EAAQ,GACR,KAAQ,aACR,KAAQ,eACR,KAAQ,aACR,KAAQ,sBACR,KAAQ,eACR,KAAQ,uB,iCCiBVD,EAAOC,QAzBP,WAEEC,KAAKC,MAAQ,KACbD,KAAKE,QAAU,EAEfF,KAAKG,SAAW,EAEhBH,KAAKI,SAAW,EAEhBJ,KAAKK,OAAS,KACdL,KAAKM,SAAW,EAEhBN,KAAKO,UAAY,EAEjBP,KAAKQ,UAAY,EAEjBR,KAAKS,IAAM,GAEXT,KAAKU,MAAQ,KAEbV,KAAKW,UAAY,EAEjBX,KAAKY,MAAQ,CACf,C,iCCKAd,EAAOC,QAzBP,SAAiBa,EAAOC,EAAKC,EAAKC,GAKhC,IAJA,IAA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K,IAC7DvI,EAAEE,YAAYF,EAAE2F,MAAqB,EAAb3F,EAAEyD,SAAe,GAAY,IAAP8E,EAE9CvI,EAAEE,YAAYF,EAAEyF,MAAQzF,EAAEyD,UAAiB,IAAL2P,EACtCpT,EAAEyD,WAEW,IAAT8E,EAEFvI,EAAE4E,UAAa,EAAHwO,MAEZpT,EAAE8F,UAEFyC,IAKAvI,EAAE4E,UAA0C,GAA/B+L,EAAayC,GAAInD,EAAS,MACvCjQ,EAAE8E,UAAyB,EAAf8M,EAAOrJ,OA0BbvI,EAAEyD,WAAazD,EAAE0F,YAAY,CAKvC,EAMA3O,EAAQuQ,UAhKR,SAAmBtH,GACjB+R,EAAU/R,EAAGwV,EAAiB,GAC9BvD,EAAUjS,EAt8BM,IAs8BQwQ,GA5yB1B,SAAkBxQ,GACG,KAAfA,EAAEgG,UACJ6L,EAAU7R,EAAGA,EAAE+F,QACf/F,EAAE+F,OAAS,EACX/F,EAAEgG,SAAW,GAEJhG,EAAEgG,UAAY,IACvBhG,EAAEE,YAAYF,EAAEC,WAAwB,IAAXD,EAAE+F,OAC/B/F,EAAE+F,SAAW,EACb/F,EAAEgG,UAAY,EAElB,CAkyBEyP,CAASzV,EACX,C","sources":["../node_modules/pako/lib/zlib/messages.js","../node_modules/pako/lib/zlib/zstream.js","../node_modules/pako/lib/zlib/adler32.js","../node_modules/pako/lib/zlib/crc32.js","../node_modules/pako/lib/utils/common.js","../node_modules/pako/lib/inflate.js","../node_modules/pako/lib/deflate.js","../node_modules/pako/lib/zlib/deflate.js","../node_modules/pako/lib/zlib/inffast.js","../node_modules/pako/lib/zlib/inflate.js","../node_modules/pako/lib/zlib/gzheader.js","../node_modules/pako/index.js","../node_modules/pako/lib/zlib/constants.js","../node_modules/pako/lib/utils/strings.js","../node_modules/pako/lib/zlib/inftrees.js","../node_modules/pako/lib/zlib/trees.js"],"sourcesContent":["'use strict';\n\nmodule.exports = {\n '2': 'need dictionary', /* Z_NEED_DICT 2 */\n '1': 'stream end', /* Z_STREAM_END 1 */\n '0': '', /* Z_OK 0 */\n '-1': 'file error', /* Z_ERRNO (-1) */\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\n};\n","'use strict';\n\n\nfunction ZStream() {\n /* next input byte */\n this.input = null; // JS specific, because we have no pointers\n this.next_in = 0;\n /* number of bytes available at input */\n this.avail_in = 0;\n /* total number of input bytes read so far */\n this.total_in = 0;\n /* next output byte should be put there */\n this.output = null; // JS specific, because we have no pointers\n this.next_out = 0;\n /* remaining free space at output */\n this.avail_out = 0;\n /* total number of bytes output so far */\n this.total_out = 0;\n /* last error message, NULL if no error */\n this.msg = ''/*Z_NULL*/;\n /* not visible by applications */\n this.state = null;\n /* best guess about the data type: binary or text */\n this.data_type = 2/*Z_UNKNOWN*/;\n /* adler32 value of the uncompressed data */\n this.adler = 0;\n}\n\nmodule.exports = ZStream;\n","'use strict';\n\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It doesn't worth to make additional optimizationa as in original.\n// Small size is preferable.\n\nfunction adler32(adler, buf, len, pos) {\n var s1 = (adler & 0xffff) |0,\n s2 = ((adler >>> 16) & 0xffff) |0,\n n = 0;\n\n while (len !== 0) {\n // Set limit ~ twice less than 5552, to keep\n // s2 in 31-bits, because we force signed ints.\n // in other case %= will fail.\n n = len > 2000 ? 2000 : len;\n len -= n;\n\n do {\n s1 = (s1 + buf[pos++]) |0;\n s2 = (s2 + s1) |0;\n } while (--n);\n\n s1 %= 65521;\n s2 %= 65521;\n }\n\n return (s1 | (s2 << 16)) |0;\n}\n\n\nmodule.exports = adler32;\n","'use strict';\n\n// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n\n\n// Use ordinary array, since untyped makes no boost here\nfunction makeTable() {\n var c, table = [];\n\n for (var n =0; n < 256; n++) {\n c = n;\n for (var k =0; k < 8; k++) {\n c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\n }\n table[n] = c;\n }\n\n return table;\n}\n\n// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable = makeTable();\n\n\nfunction crc32(crc, buf, len, pos) {\n var t = crcTable,\n end = pos + len;\n\n crc = crc ^ (-1);\n\n for (var i = pos; i < end; i++) {\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\n }\n\n return (crc ^ (-1)); // >>> 0;\n}\n\n\nmodule.exports = crc32;\n","'use strict';\n\n\nvar TYPED_OK = (typeof Uint8Array !== 'undefined') &&\n (typeof Uint16Array !== 'undefined') &&\n (typeof Int32Array !== 'undefined');\n\n\nexports.assign = function (obj /*from1, from2, from3, ...*/) {\n var sources = Array.prototype.slice.call(arguments, 1);\n while (sources.length) {\n var source = sources.shift();\n if (!source) { continue; }\n\n if (typeof source !== 'object') {\n throw new TypeError(source + 'must be non-object');\n }\n\n for (var p in source) {\n if (source.hasOwnProperty(p)) {\n obj[p] = source[p];\n }\n }\n }\n\n return obj;\n};\n\n\n// reduce buffer size, avoiding mem copy\nexports.shrinkBuf = function (buf, size) {\n if (buf.length === size) { return buf; }\n if (buf.subarray) { return buf.subarray(0, size); }\n buf.length = size;\n return buf;\n};\n\n\nvar fnTyped = {\n arraySet: function (dest, src, src_offs, len, dest_offs) {\n if (src.subarray && dest.subarray) {\n dest.set(src.subarray(src_offs, src_offs+len), dest_offs);\n return;\n }\n // Fallback to ordinary array\n for (var i=0; i Array\n *\n * Chunks of output data, if [[Inflate#onData]] not overriden.\n **/\n\n/**\n * Inflate.result -> Uint8Array|Array|String\n *\n * Uncompressed result, generated by default [[Inflate#onData]]\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Inflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Inflate.err -> Number\n *\n * Error code after inflate finished. 0 (Z_OK) on success.\n * Should be checked if broken data possible.\n **/\n\n/**\n * Inflate.msg -> String\n *\n * Error message, if [[Inflate.err]] != 0\n **/\n\n\n/**\n * new Inflate(options)\n * - options (Object): zlib inflate options.\n *\n * Creates new inflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `windowBits`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw inflate\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n * By default, when no options set, autodetect deflate/gzip data format via\n * wrapper header.\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var inflate = new pako.Inflate({ level: 3});\n *\n * inflate.push(chunk1, false);\n * inflate.push(chunk2, true); // true -> last chunk\n *\n * if (inflate.err) { throw new Error(inflate.err); }\n *\n * console.log(inflate.result);\n * ```\n **/\nvar Inflate = function(options) {\n\n this.options = utils.assign({\n chunkSize: 16384,\n windowBits: 0,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n // Force window size for `raw` data, if not set directly,\n // because we have no header for autodetect.\n if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\n opt.windowBits = -opt.windowBits;\n if (opt.windowBits === 0) { opt.windowBits = -15; }\n }\n\n // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\n if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\n !(options && options.windowBits)) {\n opt.windowBits += 32;\n }\n\n // Gzip header has no info about windows size, we can do autodetect only\n // for deflate. So, if window size not set, force it to max when gzip possible\n if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\n // bit 3 (16) -> gzipped data\n // bit 4 (32) -> autodetect gzip/deflate\n if ((opt.windowBits & 15) === 0) {\n opt.windowBits |= 15;\n }\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new zstream();\n this.strm.avail_out = 0;\n\n var status = zlib_inflate.inflateInit2(\n this.strm,\n opt.windowBits\n );\n\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n\n this.header = new gzheader();\n\n zlib_inflate.inflateGetHeader(this.strm, this.header);\n};\n\n/**\n * Inflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.\n *\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\n * new output chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the decompression context.\n *\n * On fail call [[Inflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nInflate.prototype.push = function(data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var status, _mode;\n var next_out_utf8, tail, utf8str;\n\n if (this.ended) { return false; }\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // Only binary strings can be decompressed on practice\n strm.input = strings.binstring2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n\n status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */\n\n if (status !== c.Z_STREAM_END && status !== c.Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n\n if (strm.next_out) {\n if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {\n\n if (this.options.to === 'string') {\n\n next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\n\n tail = strm.next_out - next_out_utf8;\n utf8str = strings.buf2string(strm.output, next_out_utf8);\n\n // move tail\n strm.next_out = tail;\n strm.avail_out = chunkSize - tail;\n if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }\n\n this.onData(utf8str);\n\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n }\n } while ((strm.avail_in > 0) && status !== c.Z_STREAM_END);\n\n if (status === c.Z_STREAM_END) {\n _mode = c.Z_FINISH;\n }\n\n // Finalize on the last chunk.\n if (_mode === c.Z_FINISH) {\n status = zlib_inflate.inflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === c.Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === c.Z_SYNC_FLUSH) {\n this.onEnd(c.Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Inflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): ouput data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nInflate.prototype.onData = function(chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Inflate#onEnd(status) -> Void\n * - status (Number): inflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called either after you tell inflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nInflate.prototype.onEnd = function(status) {\n // On success - join\n if (status === c.Z_OK) {\n if (this.options.to === 'string') {\n // Glue & convert here, until we teach pako to send\n // utf8 alligned strings to onData\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * inflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\n * format via wrapper header by default. That's why we don't provide\n * separate `ungzip` method.\n *\n * Supported options are:\n *\n * - windowBits\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , input = pako.deflate([1,2,3,4,5,6,7,8,9])\n * , output;\n *\n * try {\n * output = pako.inflate(input);\n * } catch (err)\n * console.log(err);\n * }\n * ```\n **/\nfunction inflate(input, options) {\n var inflator = new Inflate(options);\n\n inflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (inflator.err) { throw inflator.msg; }\n\n return inflator.result;\n}\n\n\n/**\n * inflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * The same as [[inflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction inflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return inflate(input, options);\n}\n\n\n/**\n * ungzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Just shortcut to [[inflate]], because it autodetects format\n * by header.content. Done for convenience.\n **/\n\n\nexports.Inflate = Inflate;\nexports.inflate = inflate;\nexports.inflateRaw = inflateRaw;\nexports.ungzip = inflate;\n","'use strict';\n\n\nvar zlib_deflate = require('./zlib/deflate.js');\nvar utils = require('./utils/common');\nvar strings = require('./utils/strings');\nvar msg = require('./zlib/messages');\nvar zstream = require('./zlib/zstream');\n\nvar toString = Object.prototype.toString;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nvar Z_NO_FLUSH = 0;\nvar Z_FINISH = 4;\n\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_SYNC_FLUSH = 2;\n\nvar Z_DEFAULT_COMPRESSION = -1;\n\nvar Z_DEFAULT_STRATEGY = 0;\n\nvar Z_DEFLATED = 8;\n\n/* ===========================================================================*/\n\n\n/**\n * class Deflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[deflate]],\n * [[deflateRaw]] and [[gzip]].\n **/\n\n/* internal\n * Deflate.chunks -> Array\n *\n * Chunks of output data, if [[Deflate#onData]] not overriden.\n **/\n\n/**\n * Deflate.result -> Uint8Array|Array\n *\n * Compressed result, generated by default [[Deflate#onData]]\n * and [[Deflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Deflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Deflate.err -> Number\n *\n * Error code after deflate finished. 0 (Z_OK) on success.\n * You will not need it in real life, because deflate errors\n * are possible only on wrong options or bad `onData` / `onEnd`\n * custom handlers.\n **/\n\n/**\n * Deflate.msg -> String\n *\n * Error message, if [[Deflate.err]] != 0\n **/\n\n\n/**\n * new Deflate(options)\n * - options (Object): zlib deflate options.\n *\n * Creates new deflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `level`\n * - `windowBits`\n * - `memLevel`\n * - `strategy`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw deflate\n * - `gzip` (Boolean) - create gzip wrapper\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\n * (each char code [0..255])\n * - `header` (Object) - custom header for gzip\n * - `text` (Boolean) - true if compressed data believed to be text\n * - `time` (Number) - modification time, unix timestamp\n * - `os` (Number) - operation system code\n * - `extra` (Array) - array of bytes with extra data (max 65536)\n * - `name` (String) - file name (binary string)\n * - `comment` (String) - comment (binary string)\n * - `hcrc` (Boolean) - true if header crc should be added\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var deflate = new pako.Deflate({ level: 3});\n *\n * deflate.push(chunk1, false);\n * deflate.push(chunk2, true); // true -> last chunk\n *\n * if (deflate.err) { throw new Error(deflate.err); }\n *\n * console.log(deflate.result);\n * ```\n **/\nvar Deflate = function(options) {\n\n this.options = utils.assign({\n level: Z_DEFAULT_COMPRESSION,\n method: Z_DEFLATED,\n chunkSize: 16384,\n windowBits: 15,\n memLevel: 8,\n strategy: Z_DEFAULT_STRATEGY,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n if (opt.raw && (opt.windowBits > 0)) {\n opt.windowBits = -opt.windowBits;\n }\n\n else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {\n opt.windowBits += 16;\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new zstream();\n this.strm.avail_out = 0;\n\n var status = zlib_deflate.deflateInit2(\n this.strm,\n opt.level,\n opt.method,\n opt.windowBits,\n opt.memLevel,\n opt.strategy\n );\n\n if (status !== Z_OK) {\n throw new Error(msg[status]);\n }\n\n if (opt.header) {\n zlib_deflate.deflateSetHeader(this.strm, opt.header);\n }\n};\n\n/**\n * Deflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be\n * converted to utf8 byte sequence.\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.\n *\n * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with\n * new compressed chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the compression context.\n *\n * On fail call [[Deflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * array format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nDeflate.prototype.push = function(data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var status, _mode;\n\n if (this.ended) { return false; }\n\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // If we need to compress text, change encoding to utf8.\n strm.input = strings.string2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n status = zlib_deflate.deflate(strm, _mode); /* no bad return value */\n\n if (status !== Z_STREAM_END && status !== Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {\n if (this.options.to === 'string') {\n this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);\n\n // Finalize on the last chunk.\n if (_mode === Z_FINISH) {\n status = zlib_deflate.deflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === Z_SYNC_FLUSH) {\n this.onEnd(Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Deflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): ouput data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nDeflate.prototype.onData = function(chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Deflate#onEnd(status) -> Void\n * - status (Number): deflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called once after you tell deflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nDeflate.prototype.onEnd = function(status) {\n // On success - join\n if (status === Z_OK) {\n if (this.options.to === 'string') {\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * deflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * Compress `data` with deflate alrorythm and `options`.\n *\n * Supported options are:\n *\n * - level\n * - windowBits\n * - memLevel\n * - strategy\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\n * (each char code [0..255])\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , data = Uint8Array([1,2,3,4,5,6,7,8,9]);\n *\n * console.log(pako.deflate(data));\n * ```\n **/\nfunction deflate(input, options) {\n var deflator = new Deflate(options);\n\n deflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (deflator.err) { throw deflator.msg; }\n\n return deflator.result;\n}\n\n\n/**\n * deflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction deflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return deflate(input, options);\n}\n\n\n/**\n * gzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but create gzip wrapper instead of\n * deflate one.\n **/\nfunction gzip(input, options) {\n options = options || {};\n options.gzip = true;\n return deflate(input, options);\n}\n\n\nexports.Deflate = Deflate;\nexports.deflate = deflate;\nexports.deflateRaw = deflateRaw;\nexports.gzip = gzip;\n","'use strict';\n\nvar utils = require('../utils/common');\nvar trees = require('./trees');\nvar adler32 = require('./adler32');\nvar crc32 = require('./crc32');\nvar msg = require('./messages');\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\nvar Z_NO_FLUSH = 0;\nvar Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\nvar Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\n//var Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\n//var Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\n//var Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n\n/* compression levels */\n//var Z_NO_COMPRESSION = 0;\n//var Z_BEST_SPEED = 1;\n//var Z_BEST_COMPRESSION = 9;\nvar Z_DEFAULT_COMPRESSION = -1;\n\n\nvar Z_FILTERED = 1;\nvar Z_HUFFMAN_ONLY = 2;\nvar Z_RLE = 3;\nvar Z_FIXED = 4;\nvar Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\n//var Z_BINARY = 0;\n//var Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n/*============================================================================*/\n\n\nvar MAX_MEM_LEVEL = 9;\n/* Maximum value for memLevel in deflateInit2 */\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_MEM_LEVEL = 8;\n\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\nvar D_CODES = 30;\n/* number of distance codes */\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\nvar HEAP_SIZE = 2*L_CODES + 1;\n/* maximum heap size */\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\nvar MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\n\nvar PRESET_DICT = 0x20;\n\nvar INIT_STATE = 42;\nvar EXTRA_STATE = 69;\nvar NAME_STATE = 73;\nvar COMMENT_STATE = 91;\nvar HCRC_STATE = 103;\nvar BUSY_STATE = 113;\nvar FINISH_STATE = 666;\n\nvar BS_NEED_MORE = 1; /* block not completed, need more input or more output */\nvar BS_BLOCK_DONE = 2; /* block flush performed */\nvar BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */\nvar BS_FINISH_DONE = 4; /* finish done, accept no more input or output */\n\nvar OS_CODE = 0x03; // Unix :) . Don't detect, use this default.\n\nfunction err(strm, errorCode) {\n strm.msg = msg[errorCode];\n return errorCode;\n}\n\nfunction rank(f) {\n return ((f) << 1) - ((f) > 4 ? 9 : 0);\n}\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n\n/* =========================================================================\n * Flush as much pending output as possible. All deflate() output goes\n * through this function so some applications may wish to modify it\n * to avoid allocating a large strm->output buffer and copying into it.\n * (See also read_buf()).\n */\nfunction flush_pending(strm) {\n var s = strm.state;\n\n //_tr_flush_bits(s);\n var len = s.pending;\n if (len > strm.avail_out) {\n len = strm.avail_out;\n }\n if (len === 0) { return; }\n\n utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);\n strm.next_out += len;\n s.pending_out += len;\n strm.total_out += len;\n strm.avail_out -= len;\n s.pending -= len;\n if (s.pending === 0) {\n s.pending_out = 0;\n }\n}\n\n\nfunction flush_block_only (s, last) {\n trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);\n s.block_start = s.strstart;\n flush_pending(s.strm);\n}\n\n\nfunction put_byte(s, b) {\n s.pending_buf[s.pending++] = b;\n}\n\n\n/* =========================================================================\n * Put a short in the pending buffer. The 16-bit value is put in MSB order.\n * IN assertion: the stream state is correct and there is enough room in\n * pending_buf.\n */\nfunction putShortMSB(s, b) {\n// put_byte(s, (Byte)(b >> 8));\n// put_byte(s, (Byte)(b & 0xff));\n s.pending_buf[s.pending++] = (b >>> 8) & 0xff;\n s.pending_buf[s.pending++] = b & 0xff;\n}\n\n\n/* ===========================================================================\n * Read a new buffer from the current input stream, update the adler32\n * and total number of bytes read. All deflate() input goes through\n * this function so some applications may wish to modify it to avoid\n * allocating a large strm->input buffer and copying from it.\n * (See also flush_pending()).\n */\nfunction read_buf(strm, buf, start, size) {\n var len = strm.avail_in;\n\n if (len > size) { len = size; }\n if (len === 0) { return 0; }\n\n strm.avail_in -= len;\n\n utils.arraySet(buf, strm.input, strm.next_in, len, start);\n if (strm.state.wrap === 1) {\n strm.adler = adler32(strm.adler, buf, len, start);\n }\n\n else if (strm.state.wrap === 2) {\n strm.adler = crc32(strm.adler, buf, len, start);\n }\n\n strm.next_in += len;\n strm.total_in += len;\n\n return len;\n}\n\n\n/* ===========================================================================\n * Set match_start to the longest match starting at the given string and\n * return its length. Matches shorter or equal to prev_length are discarded,\n * in which case the result is equal to prev_length and match_start is\n * garbage.\n * IN assertions: cur_match is the head of the hash chain for the current\n * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\n * OUT assertion: the match length is not greater than s->lookahead.\n */\nfunction longest_match(s, cur_match) {\n var chain_length = s.max_chain_length; /* max hash chain length */\n var scan = s.strstart; /* current string */\n var match; /* matched string */\n var len; /* length of current match */\n var best_len = s.prev_length; /* best match length so far */\n var nice_match = s.nice_match; /* stop if match long enough */\n var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?\n s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;\n\n var _win = s.window; // shortcut\n\n var wmask = s.w_mask;\n var prev = s.prev;\n\n /* Stop when cur_match becomes <= limit. To simplify the code,\n * we prevent matches with the string of window index 0.\n */\n\n var strend = s.strstart + MAX_MATCH;\n var scan_end1 = _win[scan + best_len - 1];\n var scan_end = _win[scan + best_len];\n\n /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\n * It is easy to get rid of this optimization if necessary.\n */\n // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n\n /* Do not waste too much time if we already have a good match: */\n if (s.prev_length >= s.good_match) {\n chain_length >>= 2;\n }\n /* Do not look for matches beyond the end of the input. This is necessary\n * to make deflate deterministic.\n */\n if (nice_match > s.lookahead) { nice_match = s.lookahead; }\n\n // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\n\n do {\n // Assert(cur_match < s->strstart, \"no future\");\n match = cur_match;\n\n /* Skip to next match if the match length cannot increase\n * or if the match length is less than 2. Note that the checks below\n * for insufficient lookahead only occur occasionally for performance\n * reasons. Therefore uninitialized memory will be accessed, and\n * conditional jumps will be made that depend on those values.\n * However the length of the match is limited to the lookahead, so\n * the output of deflate is not affected by the uninitialized values.\n */\n\n if (_win[match + best_len] !== scan_end ||\n _win[match + best_len - 1] !== scan_end1 ||\n _win[match] !== _win[scan] ||\n _win[++match] !== _win[scan + 1]) {\n continue;\n }\n\n /* The check at best_len-1 can be removed because it will be made\n * again later. (This heuristic is not always a win.)\n * It is not necessary to compare scan[2] and match[2] since they\n * are always equal when the other bytes match, given that\n * the hash keys are equal and that HASH_BITS >= 8.\n */\n scan += 2;\n match++;\n // Assert(*scan == *match, \"match[2]?\");\n\n /* We check for insufficient lookahead only every 8th comparison;\n * the 256th check will be made at strstart+258.\n */\n do {\n /*jshint noempty:false*/\n } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n scan < strend);\n\n // Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\n\n len = MAX_MATCH - (strend - scan);\n scan = strend - MAX_MATCH;\n\n if (len > best_len) {\n s.match_start = cur_match;\n best_len = len;\n if (len >= nice_match) {\n break;\n }\n scan_end1 = _win[scan + best_len - 1];\n scan_end = _win[scan + best_len];\n }\n } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);\n\n if (best_len <= s.lookahead) {\n return best_len;\n }\n return s.lookahead;\n}\n\n\n/* ===========================================================================\n * Fill the window when the lookahead becomes insufficient.\n * Updates strstart and lookahead.\n *\n * IN assertion: lookahead < MIN_LOOKAHEAD\n * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\n * At least one byte has been read, or avail_in == 0; reads are\n * performed for at least two bytes (required for the zip translate_eol\n * option -- not supported here).\n */\nfunction fill_window(s) {\n var _w_size = s.w_size;\n var p, n, m, more, str;\n\n //Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\n\n do {\n more = s.window_size - s.lookahead - s.strstart;\n\n // JS ints have 32 bit, block below not needed\n /* Deal with !@#$% 64K limit: */\n //if (sizeof(int) <= 2) {\n // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n // more = wsize;\n //\n // } else if (more == (unsigned)(-1)) {\n // /* Very unlikely, but possible on 16 bit machine if\n // * strstart == 0 && lookahead == 1 (input done a byte at time)\n // */\n // more--;\n // }\n //}\n\n\n /* If the window is almost full and there is insufficient lookahead,\n * move the upper half to the lower one to make room in the upper half.\n */\n if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {\n\n utils.arraySet(s.window, s.window, _w_size, _w_size, 0);\n s.match_start -= _w_size;\n s.strstart -= _w_size;\n /* we now have strstart >= MAX_DIST */\n s.block_start -= _w_size;\n\n /* Slide the hash table (could be avoided with 32 bit values\n at the expense of memory usage). We slide even when level == 0\n to keep the hash table consistent if we switch back to level > 0\n later. (Using level 0 permanently is not an optimal usage of\n zlib, so we don't care about this pathological case.)\n */\n\n n = s.hash_size;\n p = n;\n do {\n m = s.head[--p];\n s.head[p] = (m >= _w_size ? m - _w_size : 0);\n } while (--n);\n\n n = _w_size;\n p = n;\n do {\n m = s.prev[--p];\n s.prev[p] = (m >= _w_size ? m - _w_size : 0);\n /* If n is not on any hash chain, prev[n] is garbage but\n * its value will never be used.\n */\n } while (--n);\n\n more += _w_size;\n }\n if (s.strm.avail_in === 0) {\n break;\n }\n\n /* If there was no sliding:\n * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\n * more == window_size - lookahead - strstart\n * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\n * => more >= window_size - 2*WSIZE + 2\n * In the BIG_MEM or MMAP case (not yet supported),\n * window_size == input_size + MIN_LOOKAHEAD &&\n * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\n * Otherwise, window_size == 2*WSIZE so more >= 2.\n * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\n */\n //Assert(more >= 2, \"more < 2\");\n n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);\n s.lookahead += n;\n\n /* Initialize the hash value now that we have some input: */\n if (s.lookahead + s.insert >= MIN_MATCH) {\n str = s.strstart - s.insert;\n s.ins_h = s.window[str];\n\n /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;\n//#if MIN_MATCH != 3\n// Call update_hash() MIN_MATCH-3 more times\n//#endif\n while (s.insert) {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH-1]) & s.hash_mask;\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = str;\n str++;\n s.insert--;\n if (s.lookahead + s.insert < MIN_MATCH) {\n break;\n }\n }\n }\n /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\n * but this is not important since only literal bytes will be emitted.\n */\n\n } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);\n\n /* If the WIN_INIT bytes after the end of the current data have never been\n * written, then zero those bytes in order to avoid memory check reports of\n * the use of uninitialized (or uninitialised as Julian writes) bytes by\n * the longest match routines. Update the high water mark for the next\n * time through here. WIN_INIT is set to MAX_MATCH since the longest match\n * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\n */\n// if (s.high_water < s.window_size) {\n// var curr = s.strstart + s.lookahead;\n// var init = 0;\n//\n// if (s.high_water < curr) {\n// /* Previous high water mark below current data -- zero WIN_INIT\n// * bytes or up to end of window, whichever is less.\n// */\n// init = s.window_size - curr;\n// if (init > WIN_INIT)\n// init = WIN_INIT;\n// zmemzero(s->window + curr, (unsigned)init);\n// s->high_water = curr + init;\n// }\n// else if (s->high_water < (ulg)curr + WIN_INIT) {\n// /* High water mark at or above current data, but below current data\n// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n// * to end of window, whichever is less.\n// */\n// init = (ulg)curr + WIN_INIT - s->high_water;\n// if (init > s->window_size - s->high_water)\n// init = s->window_size - s->high_water;\n// zmemzero(s->window + s->high_water, (unsigned)init);\n// s->high_water += init;\n// }\n// }\n//\n// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n// \"not enough room for search\");\n}\n\n/* ===========================================================================\n * Copy without compression as much as possible from the input stream, return\n * the current block state.\n * This function does not insert new strings in the dictionary since\n * uncompressible data is probably not useful. This function is used\n * only for the level=0 compression option.\n * NOTE: this function should be optimized to avoid extra copying from\n * window to pending_buf.\n */\nfunction deflate_stored(s, flush) {\n /* Stored blocks are limited to 0xffff bytes, pending_buf is limited\n * to pending_buf_size, and each stored block has a 5 byte header:\n */\n var max_block_size = 0xffff;\n\n if (max_block_size > s.pending_buf_size - 5) {\n max_block_size = s.pending_buf_size - 5;\n }\n\n /* Copy as much as possible from input to output: */\n for (;;) {\n /* Fill the window as much as possible: */\n if (s.lookahead <= 1) {\n\n //Assert(s->strstart < s->w_size+MAX_DIST(s) ||\n // s->block_start >= (long)s->w_size, \"slide too late\");\n// if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\n// s.block_start >= s.w_size)) {\n// throw new Error(\"slide too late\");\n// }\n\n fill_window(s);\n if (s.lookahead === 0 && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n\n if (s.lookahead === 0) {\n break;\n }\n /* flush the current block */\n }\n //Assert(s->block_start >= 0L, \"block gone\");\n// if (s.block_start < 0) throw new Error(\"block gone\");\n\n s.strstart += s.lookahead;\n s.lookahead = 0;\n\n /* Emit a stored block if pending_buf will be full: */\n var max_start = s.block_start + max_block_size;\n\n if (s.strstart === 0 || s.strstart >= max_start) {\n /* strstart == 0 is possible when wraparound on 16-bit machine */\n s.lookahead = s.strstart - max_start;\n s.strstart = max_start;\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n\n\n }\n /* Flush if we may have to slide, otherwise block_start may become\n * negative and the data will be gone:\n */\n if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n\n s.insert = 0;\n\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n\n if (s.strstart > s.block_start) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_NEED_MORE;\n}\n\n/* ===========================================================================\n * Compress as much as possible from the input stream, return the current\n * block state.\n * This function does not perform lazy evaluation of matches and inserts\n * new strings in the dictionary only for unmatched strings or for short\n * matches. It is used only for the fast compression options.\n */\nfunction deflate_fast(s, flush) {\n var hash_head; /* head of the hash chain */\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break; /* flush the current block */\n }\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n * At this point we have always match_length < MIN_MATCH\n */\n if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n }\n if (s.match_length >= MIN_MATCH) {\n // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n\n /*** _tr_tally_dist(s, s.strstart - s.match_start,\n s.match_length - MIN_MATCH, bflush); ***/\n bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n\n /* Insert new strings in the hash table only if the match length\n * is not too large. This saves time but degrades compression.\n */\n if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {\n s.match_length--; /* string at strstart already in table */\n do {\n s.strstart++;\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n /* strstart never exceeds WSIZE-MAX_MATCH, so there are\n * always MIN_MATCH bytes ahead.\n */\n } while (--s.match_length !== 0);\n s.strstart++;\n } else\n {\n s.strstart += s.match_length;\n s.match_length = 0;\n s.ins_h = s.window[s.strstart];\n /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;\n\n//#if MIN_MATCH != 3\n// Call UPDATE_HASH() MIN_MATCH-3 more times\n//#endif\n /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\n * matter since it will be recomputed at next deflate call.\n */\n }\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = ((s.strstart < (MIN_MATCH-1)) ? s.strstart : MIN_MATCH-1);\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* ===========================================================================\n * Same as above, but achieves better compression. We use a lazy\n * evaluation for matches: a match is finally adopted only if there is\n * no better match at the next window position.\n */\nfunction deflate_slow(s, flush) {\n var hash_head; /* head of hash chain */\n var bflush; /* set if current block must be flushed */\n\n var max_insert;\n\n /* Process the input block. */\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n */\n s.prev_length = s.match_length;\n s.prev_match = s.match_start;\n s.match_length = MIN_MATCH-1;\n\n if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&\n s.strstart - hash_head <= (s.w_size-MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n\n if (s.match_length <= 5 &&\n (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {\n\n /* If prev_match is also MIN_MATCH, match_start is garbage\n * but we will ignore the current match anyway.\n */\n s.match_length = MIN_MATCH-1;\n }\n }\n /* If there was a match at the previous step and the current\n * match is not better, output the previous match:\n */\n if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {\n max_insert = s.strstart + s.lookahead - MIN_MATCH;\n /* Do not insert strings in hash table beyond this. */\n\n //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n\n /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\n s.prev_length - MIN_MATCH, bflush);***/\n bflush = trees._tr_tally(s, s.strstart - 1- s.prev_match, s.prev_length - MIN_MATCH);\n /* Insert in hash table all strings up to the end of the match.\n * strstart-1 and strstart are already inserted. If there is not\n * enough lookahead, the last two strings are not inserted in\n * the hash table.\n */\n s.lookahead -= s.prev_length-1;\n s.prev_length -= 2;\n do {\n if (++s.strstart <= max_insert) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n } while (--s.prev_length !== 0);\n s.match_available = 0;\n s.match_length = MIN_MATCH-1;\n s.strstart++;\n\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n } else if (s.match_available) {\n /* If there was no match at the previous position, output a\n * single literal. If there was a match but the current match\n * is longer, truncate the previous match to a single literal.\n */\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);\n\n if (bflush) {\n /*** FLUSH_BLOCK_ONLY(s, 0) ***/\n flush_block_only(s, false);\n /***/\n }\n s.strstart++;\n s.lookahead--;\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n } else {\n /* There is no previous match to compare with, wait for\n * the next step to decide.\n */\n s.match_available = 1;\n s.strstart++;\n s.lookahead--;\n }\n }\n //Assert (flush != Z_NO_FLUSH, \"no flush?\");\n if (s.match_available) {\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);\n\n s.match_available = 0;\n }\n s.insert = s.strstart < MIN_MATCH-1 ? s.strstart : MIN_MATCH-1;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_BLOCK_DONE;\n}\n\n\n/* ===========================================================================\n * For Z_RLE, simply look for runs of bytes, generate matches only of distance\n * one. Do not maintain a hash table. (It will be regenerated if this run of\n * deflate switches away from Z_RLE.)\n */\nfunction deflate_rle(s, flush) {\n var bflush; /* set if current block must be flushed */\n var prev; /* byte at distance one to match */\n var scan, strend; /* scan goes up to strend for length of run */\n\n var _win = s.window;\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the longest run, plus one for the unrolled loop.\n */\n if (s.lookahead <= MAX_MATCH) {\n fill_window(s);\n if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* See how many times the previous byte repeats */\n s.match_length = 0;\n if (s.lookahead >= MIN_MATCH && s.strstart > 0) {\n scan = s.strstart - 1;\n prev = _win[scan];\n if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {\n strend = s.strstart + MAX_MATCH;\n do {\n /*jshint noempty:false*/\n } while (prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n scan < strend);\n s.match_length = MAX_MATCH - (strend - scan);\n if (s.match_length > s.lookahead) {\n s.match_length = s.lookahead;\n }\n }\n //Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n }\n\n /* Emit match if have run of MIN_MATCH or longer, else emit literal */\n if (s.match_length >= MIN_MATCH) {\n //check_match(s, s.strstart, s.strstart - 1, s.match_length);\n\n /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/\n bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n s.strstart += s.match_length;\n s.match_length = 0;\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* ===========================================================================\n * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.\n * (It will be regenerated if this run of deflate switches away from Huffman.)\n */\nfunction deflate_huff(s, flush) {\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we have a literal to write. */\n if (s.lookahead === 0) {\n fill_window(s);\n if (s.lookahead === 0) {\n if (flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n break; /* flush the current block */\n }\n }\n\n /* Output a literal byte */\n s.match_length = 0;\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n s.lookahead--;\n s.strstart++;\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* Values for max_lazy_match, good_match and max_chain_length, depending on\n * the desired pack level (0..9). The values given below have been tuned to\n * exclude worst case performance for pathological files. Better values may be\n * found for specific files.\n */\nvar Config = function (good_length, max_lazy, nice_length, max_chain, func) {\n this.good_length = good_length;\n this.max_lazy = max_lazy;\n this.nice_length = nice_length;\n this.max_chain = max_chain;\n this.func = func;\n};\n\nvar configuration_table;\n\nconfiguration_table = [\n /* good lazy nice chain */\n new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */\n new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */\n new Config(4, 5, 16, 8, deflate_fast), /* 2 */\n new Config(4, 6, 32, 32, deflate_fast), /* 3 */\n\n new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */\n new Config(8, 16, 32, 32, deflate_slow), /* 5 */\n new Config(8, 16, 128, 128, deflate_slow), /* 6 */\n new Config(8, 32, 128, 256, deflate_slow), /* 7 */\n new Config(32, 128, 258, 1024, deflate_slow), /* 8 */\n new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */\n];\n\n\n/* ===========================================================================\n * Initialize the \"longest match\" routines for a new zlib stream\n */\nfunction lm_init(s) {\n s.window_size = 2 * s.w_size;\n\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n\n /* Set the default configuration parameters:\n */\n s.max_lazy_match = configuration_table[s.level].max_lazy;\n s.good_match = configuration_table[s.level].good_length;\n s.nice_match = configuration_table[s.level].nice_length;\n s.max_chain_length = configuration_table[s.level].max_chain;\n\n s.strstart = 0;\n s.block_start = 0;\n s.lookahead = 0;\n s.insert = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n s.ins_h = 0;\n}\n\n\nfunction DeflateState() {\n this.strm = null; /* pointer back to this zlib stream */\n this.status = 0; /* as the name implies */\n this.pending_buf = null; /* output still pending */\n this.pending_buf_size = 0; /* size of pending_buf */\n this.pending_out = 0; /* next pending byte to output to the stream */\n this.pending = 0; /* nb of bytes in the pending buffer */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.gzhead = null; /* gzip header information to write */\n this.gzindex = 0; /* where in extra, name, or comment */\n this.method = Z_DEFLATED; /* can only be DEFLATED */\n this.last_flush = -1; /* value of flush param for previous deflate call */\n\n this.w_size = 0; /* LZ77 window size (32K by default) */\n this.w_bits = 0; /* log2(w_size) (8..16) */\n this.w_mask = 0; /* w_size - 1 */\n\n this.window = null;\n /* Sliding window. Input bytes are read into the second half of the window,\n * and move to the first half later to keep a dictionary of at least wSize\n * bytes. With this organization, matches are limited to a distance of\n * wSize-MAX_MATCH bytes, but this ensures that IO is always\n * performed with a length multiple of the block size.\n */\n\n this.window_size = 0;\n /* Actual size of window: 2*wSize, except when the user input buffer\n * is directly used as sliding window.\n */\n\n this.prev = null;\n /* Link to older string with same hash index. To limit the size of this\n * array to 64K, this link is maintained only for the last 32K strings.\n * An index in this array is thus a window index modulo 32K.\n */\n\n this.head = null; /* Heads of the hash chains or NIL. */\n\n this.ins_h = 0; /* hash index of string to be inserted */\n this.hash_size = 0; /* number of elements in hash table */\n this.hash_bits = 0; /* log2(hash_size) */\n this.hash_mask = 0; /* hash_size-1 */\n\n this.hash_shift = 0;\n /* Number of bits by which ins_h must be shifted at each input\n * step. It must be such that after MIN_MATCH steps, the oldest\n * byte no longer takes part in the hash key, that is:\n * hash_shift * MIN_MATCH >= hash_bits\n */\n\n this.block_start = 0;\n /* Window position at the beginning of the current output block. Gets\n * negative when the window is moved backwards.\n */\n\n this.match_length = 0; /* length of best match */\n this.prev_match = 0; /* previous match */\n this.match_available = 0; /* set if previous match exists */\n this.strstart = 0; /* start of string to insert */\n this.match_start = 0; /* start of matching string */\n this.lookahead = 0; /* number of valid bytes ahead in window */\n\n this.prev_length = 0;\n /* Length of the best match at previous step. Matches not greater than this\n * are discarded. This is used in the lazy match evaluation.\n */\n\n this.max_chain_length = 0;\n /* To speed up deflation, hash chains are never searched beyond this\n * length. A higher limit improves compression ratio but degrades the\n * speed.\n */\n\n this.max_lazy_match = 0;\n /* Attempt to find a better match only when the current match is strictly\n * smaller than this value. This mechanism is used only for compression\n * levels >= 4.\n */\n // That's alias to max_lazy_match, don't use directly\n //this.max_insert_length = 0;\n /* Insert new strings in the hash table only if the match length is not\n * greater than this length. This saves time but degrades compression.\n * max_insert_length is used only for compression levels <= 3.\n */\n\n this.level = 0; /* compression level (1..9) */\n this.strategy = 0; /* favor or force Huffman coding*/\n\n this.good_match = 0;\n /* Use a faster search when the previous match is longer than this */\n\n this.nice_match = 0; /* Stop searching when current match exceeds this */\n\n /* used by trees.c: */\n\n /* Didn't use ct_data typedef below to suppress compiler warning */\n\n // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */\n // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */\n\n // Use flat array of DOUBLE size, with interleaved fata,\n // because JS does not support effective\n this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2);\n this.dyn_dtree = new utils.Buf16((2*D_CODES+1) * 2);\n this.bl_tree = new utils.Buf16((2*BL_CODES+1) * 2);\n zero(this.dyn_ltree);\n zero(this.dyn_dtree);\n zero(this.bl_tree);\n\n this.l_desc = null; /* desc. for literal tree */\n this.d_desc = null; /* desc. for distance tree */\n this.bl_desc = null; /* desc. for bit length tree */\n\n //ush bl_count[MAX_BITS+1];\n this.bl_count = new utils.Buf16(MAX_BITS+1);\n /* number of codes at each bit length for an optimal tree */\n\n //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */\n this.heap = new utils.Buf16(2*L_CODES+1); /* heap used to build the Huffman trees */\n zero(this.heap);\n\n this.heap_len = 0; /* number of elements in the heap */\n this.heap_max = 0; /* element of largest frequency */\n /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\n * The same heap array is used to build all trees.\n */\n\n this.depth = new utils.Buf16(2*L_CODES+1); //uch depth[2*L_CODES+1];\n zero(this.depth);\n /* Depth of each subtree used as tie breaker for trees of equal frequency\n */\n\n this.l_buf = 0; /* buffer index for literals or lengths */\n\n this.lit_bufsize = 0;\n /* Size of match buffer for literals/lengths. There are 4 reasons for\n * limiting lit_bufsize to 64K:\n * - frequencies can be kept in 16 bit counters\n * - if compression is not successful for the first block, all input\n * data is still in the window so we can still emit a stored block even\n * when input comes from standard input. (This can also be done for\n * all blocks if lit_bufsize is not greater than 32K.)\n * - if compression is not successful for a file smaller than 64K, we can\n * even emit a stored file instead of a stored block (saving 5 bytes).\n * This is applicable only for zip (not gzip or zlib).\n * - creating new Huffman trees less frequently may not provide fast\n * adaptation to changes in the input data statistics. (Take for\n * example a binary file with poorly compressible code followed by\n * a highly compressible string table.) Smaller buffer sizes give\n * fast adaptation but have of course the overhead of transmitting\n * trees more frequently.\n * - I can't count above 4\n */\n\n this.last_lit = 0; /* running index in l_buf */\n\n this.d_buf = 0;\n /* Buffer index for distances. To simplify the code, d_buf and l_buf have\n * the same number of elements. To use different lengths, an extra flag\n * array would be necessary.\n */\n\n this.opt_len = 0; /* bit length of current block with optimal trees */\n this.static_len = 0; /* bit length of current block with static trees */\n this.matches = 0; /* number of string matches in current block */\n this.insert = 0; /* bytes at end of window left to insert */\n\n\n this.bi_buf = 0;\n /* Output buffer. bits are inserted starting at the bottom (least\n * significant bits).\n */\n this.bi_valid = 0;\n /* Number of valid bits in bi_buf. All bits above the last valid bit\n * are always zero.\n */\n\n // Used for window memory init. We safely ignore it for JS. That makes\n // sense only for pointers and memory check tools.\n //this.high_water = 0;\n /* High water mark offset in window for initialized bytes -- bytes above\n * this are set to zero in order to avoid memory check warnings when\n * longest match routines access bytes past the input. This is then\n * updated to the new high water mark.\n */\n}\n\n\nfunction deflateResetKeep(strm) {\n var s;\n\n if (!strm || !strm.state) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n strm.total_in = strm.total_out = 0;\n strm.data_type = Z_UNKNOWN;\n\n s = strm.state;\n s.pending = 0;\n s.pending_out = 0;\n\n if (s.wrap < 0) {\n s.wrap = -s.wrap;\n /* was made negative by deflate(..., Z_FINISH); */\n }\n s.status = (s.wrap ? INIT_STATE : BUSY_STATE);\n strm.adler = (s.wrap === 2) ?\n 0 // crc32(0, Z_NULL, 0)\n :\n 1; // adler32(0, Z_NULL, 0)\n s.last_flush = Z_NO_FLUSH;\n trees._tr_init(s);\n return Z_OK;\n}\n\n\nfunction deflateReset(strm) {\n var ret = deflateResetKeep(strm);\n if (ret === Z_OK) {\n lm_init(strm.state);\n }\n return ret;\n}\n\n\nfunction deflateSetHeader(strm, head) {\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }\n strm.state.gzhead = head;\n return Z_OK;\n}\n\n\nfunction deflateInit2(strm, level, method, windowBits, memLevel, strategy) {\n if (!strm) { // === Z_NULL\n return Z_STREAM_ERROR;\n }\n var wrap = 1;\n\n if (level === Z_DEFAULT_COMPRESSION) {\n level = 6;\n }\n\n if (windowBits < 0) { /* suppress zlib wrapper */\n wrap = 0;\n windowBits = -windowBits;\n }\n\n else if (windowBits > 15) {\n wrap = 2; /* write gzip wrapper instead */\n windowBits -= 16;\n }\n\n\n if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||\n windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||\n strategy < 0 || strategy > Z_FIXED) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n\n if (windowBits === 8) {\n windowBits = 9;\n }\n /* until 256-byte window bug fixed */\n\n var s = new DeflateState();\n\n strm.state = s;\n s.strm = strm;\n\n s.wrap = wrap;\n s.gzhead = null;\n s.w_bits = windowBits;\n s.w_size = 1 << s.w_bits;\n s.w_mask = s.w_size - 1;\n\n s.hash_bits = memLevel + 7;\n s.hash_size = 1 << s.hash_bits;\n s.hash_mask = s.hash_size - 1;\n s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);\n\n s.window = new utils.Buf8(s.w_size * 2);\n s.head = new utils.Buf16(s.hash_size);\n s.prev = new utils.Buf16(s.w_size);\n\n // Don't need mem init magic for JS.\n //s.high_water = 0; /* nothing written to s->window yet */\n\n s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */\n\n s.pending_buf_size = s.lit_bufsize * 4;\n s.pending_buf = new utils.Buf8(s.pending_buf_size);\n\n s.d_buf = s.lit_bufsize >> 1;\n s.l_buf = (1 + 2) * s.lit_bufsize;\n\n s.level = level;\n s.strategy = strategy;\n s.method = method;\n\n return deflateReset(strm);\n}\n\nfunction deflateInit(strm, level) {\n return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);\n}\n\n\nfunction deflate(strm, flush) {\n var old_flush, s;\n var beg, val; // for gzip header write only\n\n if (!strm || !strm.state ||\n flush > Z_BLOCK || flush < 0) {\n return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;\n }\n\n s = strm.state;\n\n if (!strm.output ||\n (!strm.input && strm.avail_in !== 0) ||\n (s.status === FINISH_STATE && flush !== Z_FINISH)) {\n return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);\n }\n\n s.strm = strm; /* just in case */\n old_flush = s.last_flush;\n s.last_flush = flush;\n\n /* Write the header */\n if (s.status === INIT_STATE) {\n\n if (s.wrap === 2) { // GZIP header\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n put_byte(s, 31);\n put_byte(s, 139);\n put_byte(s, 8);\n if (!s.gzhead) { // s->gzhead == Z_NULL\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, OS_CODE);\n s.status = BUSY_STATE;\n }\n else {\n put_byte(s, (s.gzhead.text ? 1 : 0) +\n (s.gzhead.hcrc ? 2 : 0) +\n (!s.gzhead.extra ? 0 : 4) +\n (!s.gzhead.name ? 0 : 8) +\n (!s.gzhead.comment ? 0 : 16)\n );\n put_byte(s, s.gzhead.time & 0xff);\n put_byte(s, (s.gzhead.time >> 8) & 0xff);\n put_byte(s, (s.gzhead.time >> 16) & 0xff);\n put_byte(s, (s.gzhead.time >> 24) & 0xff);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, s.gzhead.os & 0xff);\n if (s.gzhead.extra && s.gzhead.extra.length) {\n put_byte(s, s.gzhead.extra.length & 0xff);\n put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);\n }\n if (s.gzhead.hcrc) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);\n }\n s.gzindex = 0;\n s.status = EXTRA_STATE;\n }\n }\n else // DEFLATE header\n {\n var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;\n var level_flags = -1;\n\n if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {\n level_flags = 0;\n } else if (s.level < 6) {\n level_flags = 1;\n } else if (s.level === 6) {\n level_flags = 2;\n } else {\n level_flags = 3;\n }\n header |= (level_flags << 6);\n if (s.strstart !== 0) { header |= PRESET_DICT; }\n header += 31 - (header % 31);\n\n s.status = BUSY_STATE;\n putShortMSB(s, header);\n\n /* Save the adler32 of the preset dictionary: */\n if (s.strstart !== 0) {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n strm.adler = 1; // adler32(0L, Z_NULL, 0);\n }\n }\n\n//#ifdef GZIP\n if (s.status === EXTRA_STATE) {\n if (s.gzhead.extra/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n\n while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n break;\n }\n }\n put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);\n s.gzindex++;\n }\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (s.gzindex === s.gzhead.extra.length) {\n s.gzindex = 0;\n s.status = NAME_STATE;\n }\n }\n else {\n s.status = NAME_STATE;\n }\n }\n if (s.status === NAME_STATE) {\n if (s.gzhead.name/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.name.length) {\n val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.gzindex = 0;\n s.status = COMMENT_STATE;\n }\n }\n else {\n s.status = COMMENT_STATE;\n }\n }\n if (s.status === COMMENT_STATE) {\n if (s.gzhead.comment/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.comment.length) {\n val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.status = HCRC_STATE;\n }\n }\n else {\n s.status = HCRC_STATE;\n }\n }\n if (s.status === HCRC_STATE) {\n if (s.gzhead.hcrc) {\n if (s.pending + 2 > s.pending_buf_size) {\n flush_pending(strm);\n }\n if (s.pending + 2 <= s.pending_buf_size) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n s.status = BUSY_STATE;\n }\n }\n else {\n s.status = BUSY_STATE;\n }\n }\n//#endif\n\n /* Flush as much pending output as possible */\n if (s.pending !== 0) {\n flush_pending(strm);\n if (strm.avail_out === 0) {\n /* Since avail_out is 0, deflate will be called again with\n * more output space, but possibly with both pending and\n * avail_in equal to zero. There won't be anything to do,\n * but this is not an error situation so make sure we\n * return OK instead of BUF_ERROR at next call of deflate:\n */\n s.last_flush = -1;\n return Z_OK;\n }\n\n /* Make sure there is something to do and avoid duplicate consecutive\n * flushes. For repeated and useless calls with Z_FINISH, we keep\n * returning Z_STREAM_END instead of Z_BUF_ERROR.\n */\n } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&\n flush !== Z_FINISH) {\n return err(strm, Z_BUF_ERROR);\n }\n\n /* User must not provide more input after the first FINISH: */\n if (s.status === FINISH_STATE && strm.avail_in !== 0) {\n return err(strm, Z_BUF_ERROR);\n }\n\n /* Start a new block or continue the current one.\n */\n if (strm.avail_in !== 0 || s.lookahead !== 0 ||\n (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {\n var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :\n (s.strategy === Z_RLE ? deflate_rle(s, flush) :\n configuration_table[s.level].func(s, flush));\n\n if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {\n s.status = FINISH_STATE;\n }\n if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {\n if (strm.avail_out === 0) {\n s.last_flush = -1;\n /* avoid BUF_ERROR next call, see above */\n }\n return Z_OK;\n /* If flush != Z_NO_FLUSH && avail_out == 0, the next call\n * of deflate should use the same flush parameter to make sure\n * that the flush is complete. So we don't have to output an\n * empty block here, this will be done at next call. This also\n * ensures that for a very small output buffer, we emit at most\n * one empty block.\n */\n }\n if (bstate === BS_BLOCK_DONE) {\n if (flush === Z_PARTIAL_FLUSH) {\n trees._tr_align(s);\n }\n else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */\n\n trees._tr_stored_block(s, 0, 0, false);\n /* For a full flush, this empty block will be recognized\n * as a special marker by inflate_sync().\n */\n if (flush === Z_FULL_FLUSH) {\n /*** CLEAR_HASH(s); ***/ /* forget history */\n zero(s.head); // Fill with NIL (= 0);\n\n if (s.lookahead === 0) {\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n }\n }\n flush_pending(strm);\n if (strm.avail_out === 0) {\n s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */\n return Z_OK;\n }\n }\n }\n //Assert(strm->avail_out > 0, \"bug2\");\n //if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\n\n if (flush !== Z_FINISH) { return Z_OK; }\n if (s.wrap <= 0) { return Z_STREAM_END; }\n\n /* Write the trailer */\n if (s.wrap === 2) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n put_byte(s, (strm.adler >> 16) & 0xff);\n put_byte(s, (strm.adler >> 24) & 0xff);\n put_byte(s, strm.total_in & 0xff);\n put_byte(s, (strm.total_in >> 8) & 0xff);\n put_byte(s, (strm.total_in >> 16) & 0xff);\n put_byte(s, (strm.total_in >> 24) & 0xff);\n }\n else\n {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n\n flush_pending(strm);\n /* If avail_out is zero, the application will call deflate again\n * to flush the rest.\n */\n if (s.wrap > 0) { s.wrap = -s.wrap; }\n /* write the trailer only once! */\n return s.pending !== 0 ? Z_OK : Z_STREAM_END;\n}\n\nfunction deflateEnd(strm) {\n var status;\n\n if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\n return Z_STREAM_ERROR;\n }\n\n status = strm.state.status;\n if (status !== INIT_STATE &&\n status !== EXTRA_STATE &&\n status !== NAME_STATE &&\n status !== COMMENT_STATE &&\n status !== HCRC_STATE &&\n status !== BUSY_STATE &&\n status !== FINISH_STATE\n ) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n strm.state = null;\n\n return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;\n}\n\n/* =========================================================================\n * Copy the source state to the destination state\n */\n//function deflateCopy(dest, source) {\n//\n//}\n\nexports.deflateInit = deflateInit;\nexports.deflateInit2 = deflateInit2;\nexports.deflateReset = deflateReset;\nexports.deflateResetKeep = deflateResetKeep;\nexports.deflateSetHeader = deflateSetHeader;\nexports.deflate = deflate;\nexports.deflateEnd = deflateEnd;\nexports.deflateInfo = 'pako deflate (from Nodeca project)';\n\n/* Not implemented\nexports.deflateBound = deflateBound;\nexports.deflateCopy = deflateCopy;\nexports.deflateSetDictionary = deflateSetDictionary;\nexports.deflateParams = deflateParams;\nexports.deflatePending = deflatePending;\nexports.deflatePrime = deflatePrime;\nexports.deflateTune = deflateTune;\n*/\n","'use strict';\n\n// See state defs from inflate.js\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\n\n/*\n Decode literal, length, and distance codes and write out the resulting\n literal and match bytes until either not enough input or output is\n available, an end-of-block is encountered, or a data error is encountered.\n When large enough input and output buffers are supplied to inflate(), for\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\n inflate execution time is spent in this routine.\n\n Entry assumptions:\n\n state.mode === LEN\n strm.avail_in >= 6\n strm.avail_out >= 258\n start >= strm.avail_out\n state.bits < 8\n\n On return, state.mode is one of:\n\n LEN -- ran out of enough output space or enough available input\n TYPE -- reached end of block code, inflate() to interpret next block\n BAD -- error in block data\n\n Notes:\n\n - The maximum input bits used by a length/distance pair is 15 bits for the\n length code, 5 bits for the length extra, 15 bits for the distance code,\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\n checking for available input while decoding.\n\n - The maximum bytes that a single length/distance pair can output is 258\n bytes, which is the maximum length that can be coded. inflate_fast()\n requires strm.avail_out >= 258 for each loop to avoid checking for\n output space.\n */\nmodule.exports = function inflate_fast(strm, start) {\n var state;\n var _in; /* local strm.input */\n var last; /* have enough input while in < last */\n var _out; /* local strm.output */\n var beg; /* inflate()'s initial strm.output */\n var end; /* while out < end, enough space available */\n//#ifdef INFLATE_STRICT\n var dmax; /* maximum distance from zlib header */\n//#endif\n var wsize; /* window size or zero if not using window */\n var whave; /* valid bytes in the window */\n var wnext; /* window write index */\n var window; /* allocated sliding window, if wsize != 0 */\n var hold; /* local strm.hold */\n var bits; /* local strm.bits */\n var lcode; /* local strm.lencode */\n var dcode; /* local strm.distcode */\n var lmask; /* mask for first level of length codes */\n var dmask; /* mask for first level of distance codes */\n var here; /* retrieved table entry */\n var op; /* code bits, operation, extra bits, or */\n /* window position, window bytes to copy */\n var len; /* match length, unused bytes */\n var dist; /* match distance */\n var from; /* where to copy match from */\n var from_source;\n\n\n var input, output; // JS specific, because we have no pointers\n\n /* copy state to local variables */\n state = strm.state;\n //here = state.here;\n _in = strm.next_in;\n input = strm.input;\n last = _in + (strm.avail_in - 5);\n _out = strm.next_out;\n output = strm.output;\n beg = _out - (start - strm.avail_out);\n end = _out + (strm.avail_out - 257);\n//#ifdef INFLATE_STRICT\n dmax = state.dmax;\n//#endif\n wsize = state.wsize;\n whave = state.whave;\n wnext = state.wnext;\n window = state.window;\n hold = state.hold;\n bits = state.bits;\n lcode = state.lencode;\n dcode = state.distcode;\n lmask = (1 << state.lenbits) - 1;\n dmask = (1 << state.distbits) - 1;\n\n\n /* decode literals and length/distances until end-of-block or not enough\n input data or output space */\n\n top:\n do {\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n\n here = lcode[hold & lmask];\n\n dolen:\n for (;;) { // Goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n if (op === 0) { /* literal */\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n output[_out++] = here & 0xffff/*here.val*/;\n }\n else if (op & 16) { /* length base */\n len = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (op) {\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n len += hold & ((1 << op) - 1);\n hold >>>= op;\n bits -= op;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", len));\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n here = dcode[hold & dmask];\n\n dodist:\n for (;;) { // goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n\n if (op & 16) { /* distance base */\n dist = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n }\n dist += hold & ((1 << op) - 1);\n//#ifdef INFLATE_STRICT\n if (dist > dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n//#endif\n hold >>>= op;\n bits -= op;\n //Tracevv((stderr, \"inflate: distance %u\\n\", dist));\n op = _out - beg; /* max distance in output */\n if (dist > op) { /* see if copy from window */\n op = dist - op; /* distance back in window */\n if (op > whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n\n// (!) This block is disabled in zlib defailts,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// if (len <= op - whave) {\n// do {\n// output[_out++] = 0;\n// } while (--len);\n// continue top;\n// }\n// len -= op - whave;\n// do {\n// output[_out++] = 0;\n// } while (--op > whave);\n// if (op === 0) {\n// from = _out - dist;\n// do {\n// output[_out++] = output[from++];\n// } while (--len);\n// continue top;\n// }\n//#endif\n }\n from = 0; // window index\n from_source = window;\n if (wnext === 0) { /* very common case */\n from += wsize - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n else if (wnext < op) { /* wrap around window */\n from += wsize + wnext - op;\n op -= wnext;\n if (op < len) { /* some from end of window */\n len -= op;\n do {\n output[_out++] = window[from++];\n } while (--op);\n from = 0;\n if (wnext < len) { /* some from start of window */\n op = wnext;\n len -= op;\n do {\n output[_out++] = window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n }\n else { /* contiguous in window */\n from += wnext - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n while (len > 2) {\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n len -= 3;\n }\n if (len) {\n output[_out++] = from_source[from++];\n if (len > 1) {\n output[_out++] = from_source[from++];\n }\n }\n }\n else {\n from = _out - dist; /* copy direct from output */\n do { /* minimum length is three */\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n len -= 3;\n } while (len > 2);\n if (len) {\n output[_out++] = output[from++];\n if (len > 1) {\n output[_out++] = output[from++];\n }\n }\n }\n }\n else if ((op & 64) === 0) { /* 2nd level distance code */\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dodist;\n }\n else {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n }\n else if ((op & 64) === 0) { /* 2nd level length code */\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dolen;\n }\n else if (op & 32) { /* end-of-block */\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.mode = TYPE;\n break top;\n }\n else {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n } while (_in < last && _out < end);\n\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\n len = bits >> 3;\n _in -= len;\n bits -= len << 3;\n hold &= (1 << bits) - 1;\n\n /* update state and return */\n strm.next_in = _in;\n strm.next_out = _out;\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\n state.hold = hold;\n state.bits = bits;\n return;\n};\n","'use strict';\n\n\nvar utils = require('../utils/common');\nvar adler32 = require('./adler32');\nvar crc32 = require('./crc32');\nvar inflate_fast = require('./inffast');\nvar inflate_table = require('./inftrees');\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\n//var Z_NO_FLUSH = 0;\n//var Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\n//var Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\nvar Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\nvar Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n\n/* STATES ====================================================================*/\n/* ===========================================================================*/\n\n\nvar HEAD = 1; /* i: waiting for magic header */\nvar FLAGS = 2; /* i: waiting for method and flags (gzip) */\nvar TIME = 3; /* i: waiting for modification time (gzip) */\nvar OS = 4; /* i: waiting for extra flags and operating system (gzip) */\nvar EXLEN = 5; /* i: waiting for extra length (gzip) */\nvar EXTRA = 6; /* i: waiting for extra bytes (gzip) */\nvar NAME = 7; /* i: waiting for end of file name (gzip) */\nvar COMMENT = 8; /* i: waiting for end of comment (gzip) */\nvar HCRC = 9; /* i: waiting for header crc (gzip) */\nvar DICTID = 10; /* i: waiting for dictionary check value */\nvar DICT = 11; /* waiting for inflateSetDictionary() call */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\nvar TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */\nvar STORED = 14; /* i: waiting for stored size (length and complement) */\nvar COPY_ = 15; /* i/o: same as COPY below, but only first time in */\nvar COPY = 16; /* i/o: waiting for input or output to copy stored block */\nvar TABLE = 17; /* i: waiting for dynamic block table lengths */\nvar LENLENS = 18; /* i: waiting for code length code lengths */\nvar CODELENS = 19; /* i: waiting for length/lit and distance code lengths */\nvar LEN_ = 20; /* i: same as LEN below, but only first time in */\nvar LEN = 21; /* i: waiting for length/lit/eob code */\nvar LENEXT = 22; /* i: waiting for length extra bits */\nvar DIST = 23; /* i: waiting for distance code */\nvar DISTEXT = 24; /* i: waiting for distance extra bits */\nvar MATCH = 25; /* o: waiting for output space to copy string */\nvar LIT = 26; /* o: waiting for output space to write literal */\nvar CHECK = 27; /* i: waiting for 32-bit check value */\nvar LENGTH = 28; /* i: waiting for 32-bit length (gzip) */\nvar DONE = 29; /* finished check, done -- remain here until reset */\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar MEM = 31; /* got an inflate() memory error -- remain here until reset */\nvar SYNC = 32; /* looking for synchronization bytes to restart inflate() */\n\n/* ===========================================================================*/\n\n\n\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_WBITS = MAX_WBITS;\n\n\nfunction ZSWAP32(q) {\n return (((q >>> 24) & 0xff) +\n ((q >>> 8) & 0xff00) +\n ((q & 0xff00) << 8) +\n ((q & 0xff) << 24));\n}\n\n\nfunction InflateState() {\n this.mode = 0; /* current inflate mode */\n this.last = false; /* true if processing last block */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.havedict = false; /* true if dictionary provided */\n this.flags = 0; /* gzip header method and flags (0 if zlib) */\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\n this.check = 0; /* protected copy of check value */\n this.total = 0; /* protected copy of output count */\n // TODO: may be {}\n this.head = null; /* where to save gzip header information */\n\n /* sliding window */\n this.wbits = 0; /* log base 2 of requested window size */\n this.wsize = 0; /* window size or zero if not using window */\n this.whave = 0; /* valid bytes in the window */\n this.wnext = 0; /* window write index */\n this.window = null; /* allocated sliding window, if needed */\n\n /* bit accumulator */\n this.hold = 0; /* input bit accumulator */\n this.bits = 0; /* number of bits in \"in\" */\n\n /* for string and stored block copying */\n this.length = 0; /* literal or length of data to copy */\n this.offset = 0; /* distance back to copy string from */\n\n /* for table and code decoding */\n this.extra = 0; /* extra bits needed */\n\n /* fixed and dynamic code tables */\n this.lencode = null; /* starting table for length/literal codes */\n this.distcode = null; /* starting table for distance codes */\n this.lenbits = 0; /* index bits for lencode */\n this.distbits = 0; /* index bits for distcode */\n\n /* dynamic table building */\n this.ncode = 0; /* number of code length code lengths */\n this.nlen = 0; /* number of length code lengths */\n this.ndist = 0; /* number of distance code lengths */\n this.have = 0; /* number of code lengths in lens[] */\n this.next = null; /* next available space in codes[] */\n\n this.lens = new utils.Buf16(320); /* temporary storage for code lengths */\n this.work = new utils.Buf16(288); /* work area for code table building */\n\n /*\n because we don't have pointers in js, we use lencode and distcode directly\n as buffers so we don't need codes\n */\n //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\n this.sane = 0; /* if false, allow invalid distance too far */\n this.back = 0; /* bits back of last unprocessed length/lit */\n this.was = 0; /* initial length of match */\n}\n\nfunction inflateResetKeep(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n strm.total_in = strm.total_out = state.total = 0;\n strm.msg = ''; /*Z_NULL*/\n if (state.wrap) { /* to support ill-conceived Java test suite */\n strm.adler = state.wrap & 1;\n }\n state.mode = HEAD;\n state.last = 0;\n state.havedict = 0;\n state.dmax = 32768;\n state.head = null/*Z_NULL*/;\n state.hold = 0;\n state.bits = 0;\n //state.lencode = state.distcode = state.next = state.codes;\n state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);\n state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);\n\n state.sane = 1;\n state.back = -1;\n //Tracev((stderr, \"inflate: reset\\n\"));\n return Z_OK;\n}\n\nfunction inflateReset(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n state.wsize = 0;\n state.whave = 0;\n state.wnext = 0;\n return inflateResetKeep(strm);\n\n}\n\nfunction inflateReset2(strm, windowBits) {\n var wrap;\n var state;\n\n /* get the state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n /* extract wrap request from windowBits parameter */\n if (windowBits < 0) {\n wrap = 0;\n windowBits = -windowBits;\n }\n else {\n wrap = (windowBits >> 4) + 1;\n if (windowBits < 48) {\n windowBits &= 15;\n }\n }\n\n /* set number of window bits, free window if different */\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\n return Z_STREAM_ERROR;\n }\n if (state.window !== null && state.wbits !== windowBits) {\n state.window = null;\n }\n\n /* update state and reset the rest of it */\n state.wrap = wrap;\n state.wbits = windowBits;\n return inflateReset(strm);\n}\n\nfunction inflateInit2(strm, windowBits) {\n var ret;\n var state;\n\n if (!strm) { return Z_STREAM_ERROR; }\n //strm.msg = Z_NULL; /* in case we return an error */\n\n state = new InflateState();\n\n //if (state === Z_NULL) return Z_MEM_ERROR;\n //Tracev((stderr, \"inflate: allocated\\n\"));\n strm.state = state;\n state.window = null/*Z_NULL*/;\n ret = inflateReset2(strm, windowBits);\n if (ret !== Z_OK) {\n strm.state = null/*Z_NULL*/;\n }\n return ret;\n}\n\nfunction inflateInit(strm) {\n return inflateInit2(strm, DEF_WBITS);\n}\n\n\n/*\n Return state with length and distance decoding tables and index sizes set to\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\n If BUILDFIXED is defined, then instead this routine builds the tables the\n first time it's called, and returns those tables the first time and\n thereafter. This reduces the size of the code by about 2K bytes, in\n exchange for a little execution time. However, BUILDFIXED should not be\n used for threaded applications, since the rewriting of the tables and virgin\n may not be thread-safe.\n */\nvar virgin = true;\n\nvar lenfix, distfix; // We have no pointers in JS, so keep tables separate\n\nfunction fixedtables(state) {\n /* build fixed huffman tables if first call (may not be thread safe) */\n if (virgin) {\n var sym;\n\n lenfix = new utils.Buf32(512);\n distfix = new utils.Buf32(32);\n\n /* literal/length table */\n sym = 0;\n while (sym < 144) { state.lens[sym++] = 8; }\n while (sym < 256) { state.lens[sym++] = 9; }\n while (sym < 280) { state.lens[sym++] = 7; }\n while (sym < 288) { state.lens[sym++] = 8; }\n\n inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {bits: 9});\n\n /* distance table */\n sym = 0;\n while (sym < 32) { state.lens[sym++] = 5; }\n\n inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {bits: 5});\n\n /* do this just once */\n virgin = false;\n }\n\n state.lencode = lenfix;\n state.lenbits = 9;\n state.distcode = distfix;\n state.distbits = 5;\n}\n\n\n/*\n Update the window with the last wsize (normally 32K) bytes written before\n returning. If window does not exist yet, create it. This is only called\n when a window is already in use, or when output has been written during this\n inflate call, but the end of the deflate stream has not been reached yet.\n It is also called to create a window for dictionary data when a dictionary\n is loaded.\n\n Providing output buffers larger than 32K to inflate() should provide a speed\n advantage, since only the last 32K of output is copied to the sliding window\n upon return from inflate(), and since all distances after the first 32K of\n output will fall in the output data, making match copies simpler and faster.\n The advantage may be dependent on the size of the processor's data caches.\n */\nfunction updatewindow(strm, src, end, copy) {\n var dist;\n var state = strm.state;\n\n /* if it hasn't been done already, allocate space for the window */\n if (state.window === null) {\n state.wsize = 1 << state.wbits;\n state.wnext = 0;\n state.whave = 0;\n\n state.window = new utils.Buf8(state.wsize);\n }\n\n /* copy state->wsize or less output bytes into the circular window */\n if (copy >= state.wsize) {\n utils.arraySet(state.window,src, end - state.wsize, state.wsize, 0);\n state.wnext = 0;\n state.whave = state.wsize;\n }\n else {\n dist = state.wsize - state.wnext;\n if (dist > copy) {\n dist = copy;\n }\n //zmemcpy(state->window + state->wnext, end - copy, dist);\n utils.arraySet(state.window,src, end - copy, dist, state.wnext);\n copy -= dist;\n if (copy) {\n //zmemcpy(state->window, end - copy, copy);\n utils.arraySet(state.window,src, end - copy, copy, 0);\n state.wnext = copy;\n state.whave = state.wsize;\n }\n else {\n state.wnext += dist;\n if (state.wnext === state.wsize) { state.wnext = 0; }\n if (state.whave < state.wsize) { state.whave += dist; }\n }\n }\n return 0;\n}\n\nfunction inflate(strm, flush) {\n var state;\n var input, output; // input/output buffers\n var next; /* next input INDEX */\n var put; /* next output INDEX */\n var have, left; /* available input and output */\n var hold; /* bit buffer */\n var bits; /* bits in bit buffer */\n var _in, _out; /* save starting available input and output */\n var copy; /* number of stored or match bytes to copy */\n var from; /* where to copy match bytes from */\n var from_source;\n var here = 0; /* current decoding table entry */\n var here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\n //var last; /* parent table entry */\n var last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\n var len; /* length to copy for repeats, bits to drop */\n var ret; /* return code */\n var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */\n var opts;\n\n var n; // temporary var for NEED_BITS\n\n var order = /* permutation of code lengths */\n [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];\n\n\n if (!strm || !strm.state || !strm.output ||\n (!strm.input && strm.avail_in !== 0)) {\n return Z_STREAM_ERROR;\n }\n\n state = strm.state;\n if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */\n\n\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n _in = have;\n _out = left;\n ret = Z_OK;\n\n inf_leave: // goto emulation\n for (;;) {\n switch (state.mode) {\n case HEAD:\n if (state.wrap === 0) {\n state.mode = TYPEDO;\n break;\n }\n //=== NEEDBITS(16);\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\n state.check = 0/*crc32(0L, Z_NULL, 0)*/;\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = FLAGS;\n break;\n }\n state.flags = 0; /* expect zlib header */\n if (state.head) {\n state.head.done = false;\n }\n if (!(state.wrap & 1) || /* check if zlib header allowed */\n (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\n strm.msg = 'incorrect header check';\n state.mode = BAD;\n break;\n }\n if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n len = (hold & 0x0f)/*BITS(4)*/ + 8;\n if (state.wbits === 0) {\n state.wbits = len;\n }\n else if (len > state.wbits) {\n strm.msg = 'invalid window size';\n state.mode = BAD;\n break;\n }\n state.dmax = 1 << len;\n //Tracev((stderr, \"inflate: zlib header ok\\n\"));\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = hold & 0x200 ? DICTID : TYPE;\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n break;\n case FLAGS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.flags = hold;\n if ((state.flags & 0xff) !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n if (state.flags & 0xe000) {\n strm.msg = 'unknown header flags set';\n state.mode = BAD;\n break;\n }\n if (state.head) {\n state.head.text = ((hold >> 8) & 1);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = TIME;\n /* falls through */\n case TIME:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.time = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC4(state.check, hold)\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n hbuf[2] = (hold >>> 16) & 0xff;\n hbuf[3] = (hold >>> 24) & 0xff;\n state.check = crc32(state.check, hbuf, 4, 0);\n //===\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = OS;\n /* falls through */\n case OS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.xflags = (hold & 0xff);\n state.head.os = (hold >> 8);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = EXLEN;\n /* falls through */\n case EXLEN:\n if (state.flags & 0x0400) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length = hold;\n if (state.head) {\n state.head.extra_len = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n else if (state.head) {\n state.head.extra = null/*Z_NULL*/;\n }\n state.mode = EXTRA;\n /* falls through */\n case EXTRA:\n if (state.flags & 0x0400) {\n copy = state.length;\n if (copy > have) { copy = have; }\n if (copy) {\n if (state.head) {\n len = state.head.extra_len - state.length;\n if (!state.head.extra) {\n // Use untyped array for more conveniend processing later\n state.head.extra = new Array(state.head.extra_len);\n }\n utils.arraySet(\n state.head.extra,\n input,\n next,\n // extra field is limited to 65536 bytes\n // - no need for additional size check\n copy,\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\n len\n );\n //zmemcpy(state.head.extra + len, next,\n // len + copy > state.head.extra_max ?\n // state.head.extra_max - len : copy);\n }\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n state.length -= copy;\n }\n if (state.length) { break inf_leave; }\n }\n state.length = 0;\n state.mode = NAME;\n /* falls through */\n case NAME:\n if (state.flags & 0x0800) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n // TODO: 2 or 1 bytes?\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.name_max*/)) {\n state.head.name += String.fromCharCode(len);\n }\n } while (len && copy < have);\n\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.name = null;\n }\n state.length = 0;\n state.mode = COMMENT;\n /* falls through */\n case COMMENT:\n if (state.flags & 0x1000) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.comm_max*/)) {\n state.head.comment += String.fromCharCode(len);\n }\n } while (len && copy < have);\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.comment = null;\n }\n state.mode = HCRC;\n /* falls through */\n case HCRC:\n if (state.flags & 0x0200) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.check & 0xffff)) {\n strm.msg = 'header crc mismatch';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n if (state.head) {\n state.head.hcrc = ((state.flags >> 9) & 1);\n state.head.done = true;\n }\n strm.adler = state.check = 0 /*crc32(0L, Z_NULL, 0)*/;\n state.mode = TYPE;\n break;\n case DICTID:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n strm.adler = state.check = ZSWAP32(hold);\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = DICT;\n /* falls through */\n case DICT:\n if (state.havedict === 0) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n return Z_NEED_DICT;\n }\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = TYPE;\n /* falls through */\n case TYPE:\n if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case TYPEDO:\n if (state.last) {\n //--- BYTEBITS() ---//\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n state.mode = CHECK;\n break;\n }\n //=== NEEDBITS(3); */\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.last = (hold & 0x01)/*BITS(1)*/;\n //--- DROPBITS(1) ---//\n hold >>>= 1;\n bits -= 1;\n //---//\n\n switch ((hold & 0x03)/*BITS(2)*/) {\n case 0: /* stored block */\n //Tracev((stderr, \"inflate: stored block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = STORED;\n break;\n case 1: /* fixed block */\n fixedtables(state);\n //Tracev((stderr, \"inflate: fixed codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = LEN_; /* decode codes */\n if (flush === Z_TREES) {\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break inf_leave;\n }\n break;\n case 2: /* dynamic block */\n //Tracev((stderr, \"inflate: dynamic codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = TABLE;\n break;\n case 3:\n strm.msg = 'invalid block type';\n state.mode = BAD;\n }\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break;\n case STORED:\n //--- BYTEBITS() ---// /* go to byte boundary */\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\n strm.msg = 'invalid stored block lengths';\n state.mode = BAD;\n break;\n }\n state.length = hold & 0xffff;\n //Tracev((stderr, \"inflate: stored length %u\\n\",\n // state.length));\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = COPY_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case COPY_:\n state.mode = COPY;\n /* falls through */\n case COPY:\n copy = state.length;\n if (copy) {\n if (copy > have) { copy = have; }\n if (copy > left) { copy = left; }\n if (copy === 0) { break inf_leave; }\n //--- zmemcpy(put, next, copy); ---\n utils.arraySet(output, input, next, copy, put);\n //---//\n have -= copy;\n next += copy;\n left -= copy;\n put += copy;\n state.length -= copy;\n break;\n }\n //Tracev((stderr, \"inflate: stored end\\n\"));\n state.mode = TYPE;\n break;\n case TABLE:\n //=== NEEDBITS(14); */\n while (bits < 14) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n//#ifndef PKZIP_BUG_WORKAROUND\n if (state.nlen > 286 || state.ndist > 30) {\n strm.msg = 'too many length or distance symbols';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracev((stderr, \"inflate: table sizes ok\\n\"));\n state.have = 0;\n state.mode = LENLENS;\n /* falls through */\n case LENLENS:\n while (state.have < state.ncode) {\n //=== NEEDBITS(3);\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n while (state.have < 19) {\n state.lens[order[state.have++]] = 0;\n }\n // We have separate tables & no pointers. 2 commented lines below not needed.\n //state.next = state.codes;\n //state.lencode = state.next;\n // Switch to use dynamic table\n state.lencode = state.lendyn;\n state.lenbits = 7;\n\n opts = {bits: state.lenbits};\n ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\n state.lenbits = opts.bits;\n\n if (ret) {\n strm.msg = 'invalid code lengths set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, \"inflate: code lengths ok\\n\"));\n state.have = 0;\n state.mode = CODELENS;\n /* falls through */\n case CODELENS:\n while (state.have < state.nlen + state.ndist) {\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_val < 16) {\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.lens[state.have++] = here_val;\n }\n else {\n if (here_val === 16) {\n //=== NEEDBITS(here.bits + 2);\n n = here_bits + 2;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n if (state.have === 0) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n len = state.lens[state.have - 1];\n copy = 3 + (hold & 0x03);//BITS(2);\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n }\n else if (here_val === 17) {\n //=== NEEDBITS(here.bits + 3);\n n = here_bits + 3;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 3 + (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n else {\n //=== NEEDBITS(here.bits + 7);\n n = here_bits + 7;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 11 + (hold & 0x7f);//BITS(7);\n //--- DROPBITS(7) ---//\n hold >>>= 7;\n bits -= 7;\n //---//\n }\n if (state.have + copy > state.nlen + state.ndist) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n while (copy--) {\n state.lens[state.have++] = len;\n }\n }\n }\n\n /* handle error breaks in while */\n if (state.mode === BAD) { break; }\n\n /* check for end-of-block code (better have one) */\n if (state.lens[256] === 0) {\n strm.msg = 'invalid code -- missing end-of-block';\n state.mode = BAD;\n break;\n }\n\n /* build code tables -- note: do not change the lenbits or distbits\n values here (9 and 6) without reading the comments in inftrees.h\n concerning the ENOUGH constants, which depend on those values */\n state.lenbits = 9;\n\n opts = {bits: state.lenbits};\n ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.lenbits = opts.bits;\n // state.lencode = state.next;\n\n if (ret) {\n strm.msg = 'invalid literal/lengths set';\n state.mode = BAD;\n break;\n }\n\n state.distbits = 6;\n //state.distcode.copy(state.codes);\n // Switch to use dynamic table\n state.distcode = state.distdyn;\n opts = {bits: state.distbits};\n ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.distbits = opts.bits;\n // state.distcode = state.next;\n\n if (ret) {\n strm.msg = 'invalid distances set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, 'inflate: codes ok\\n'));\n state.mode = LEN_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case LEN_:\n state.mode = LEN;\n /* falls through */\n case LEN:\n if (have >= 6 && left >= 258) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n inflate_fast(strm, _out);\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n if (state.mode === TYPE) {\n state.back = -1;\n }\n break;\n }\n state.back = 0;\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) -1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if (here_bits <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_op && (here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.lencode[last_val +\n ((hold & ((1 << (last_bits + last_op)) -1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n state.length = here_val;\n if (here_op === 0) {\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n state.mode = LIT;\n break;\n }\n if (here_op & 32) {\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.back = -1;\n state.mode = TYPE;\n break;\n }\n if (here_op & 64) {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break;\n }\n state.extra = here_op & 15;\n state.mode = LENEXT;\n /* falls through */\n case LENEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length += hold & ((1 << state.extra) -1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", state.length));\n state.was = state.length;\n state.mode = DIST;\n /* falls through */\n case DIST:\n for (;;) {\n here = state.distcode[hold & ((1 << state.distbits) -1)];/*BITS(state.distbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if ((here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.distcode[last_val +\n ((hold & ((1 << (last_bits + last_op)) -1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n if (here_op & 64) {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break;\n }\n state.offset = here_val;\n state.extra = (here_op) & 15;\n state.mode = DISTEXT;\n /* falls through */\n case DISTEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.offset += hold & ((1 << state.extra) -1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n//#ifdef INFLATE_STRICT\n if (state.offset > state.dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracevv((stderr, \"inflate: distance %u\\n\", state.offset));\n state.mode = MATCH;\n /* falls through */\n case MATCH:\n if (left === 0) { break inf_leave; }\n copy = _out - left;\n if (state.offset > copy) { /* copy from window */\n copy = state.offset - copy;\n if (copy > state.whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n// (!) This block is disabled in zlib defailts,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// Trace((stderr, \"inflate.c too far\\n\"));\n// copy -= state.whave;\n// if (copy > state.length) { copy = state.length; }\n// if (copy > left) { copy = left; }\n// left -= copy;\n// state.length -= copy;\n// do {\n// output[put++] = 0;\n// } while (--copy);\n// if (state.length === 0) { state.mode = LEN; }\n// break;\n//#endif\n }\n if (copy > state.wnext) {\n copy -= state.wnext;\n from = state.wsize - copy;\n }\n else {\n from = state.wnext - copy;\n }\n if (copy > state.length) { copy = state.length; }\n from_source = state.window;\n }\n else { /* copy from output */\n from_source = output;\n from = put - state.offset;\n copy = state.length;\n }\n if (copy > left) { copy = left; }\n left -= copy;\n state.length -= copy;\n do {\n output[put++] = from_source[from++];\n } while (--copy);\n if (state.length === 0) { state.mode = LEN; }\n break;\n case LIT:\n if (left === 0) { break inf_leave; }\n output[put++] = state.length;\n left--;\n state.mode = LEN;\n break;\n case CHECK:\n if (state.wrap) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n // Use '|' insdead of '+' to make sure that result is signed\n hold |= input[next++] << bits;\n bits += 8;\n }\n //===//\n _out -= left;\n strm.total_out += _out;\n state.total += _out;\n if (_out) {\n strm.adler = state.check =\n /*UPDATE(state.check, put - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\n\n }\n _out = left;\n // NB: crc32 stored as signed 32-bit int, ZSWAP32 returns signed too\n if ((state.flags ? hold : ZSWAP32(hold)) !== state.check) {\n strm.msg = 'incorrect data check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: check matches trailer\\n\"));\n }\n state.mode = LENGTH;\n /* falls through */\n case LENGTH:\n if (state.wrap && state.flags) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.total & 0xffffffff)) {\n strm.msg = 'incorrect length check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: length matches trailer\\n\"));\n }\n state.mode = DONE;\n /* falls through */\n case DONE:\n ret = Z_STREAM_END;\n break inf_leave;\n case BAD:\n ret = Z_DATA_ERROR;\n break inf_leave;\n case MEM:\n return Z_MEM_ERROR;\n case SYNC:\n /* falls through */\n default:\n return Z_STREAM_ERROR;\n }\n }\n\n // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n\n /*\n Return from inflate(), updating the total counts and the check value.\n If there was no progress during the inflate() call, return a buffer\n error. Call updatewindow() to create and/or update the window state.\n Note: a memory error from inflate() is non-recoverable.\n */\n\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\n (state.mode < CHECK || flush !== Z_FINISH))) {\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n }\n _in -= strm.avail_in;\n _out -= strm.avail_out;\n strm.total_in += _in;\n strm.total_out += _out;\n state.total += _out;\n if (state.wrap && _out) {\n strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\n }\n strm.data_type = state.bits + (state.last ? 64 : 0) +\n (state.mode === TYPE ? 128 : 0) +\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\n if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {\n ret = Z_BUF_ERROR;\n }\n return ret;\n}\n\nfunction inflateEnd(strm) {\n\n if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {\n return Z_STREAM_ERROR;\n }\n\n var state = strm.state;\n if (state.window) {\n state.window = null;\n }\n strm.state = null;\n return Z_OK;\n}\n\nfunction inflateGetHeader(strm, head) {\n var state;\n\n /* check state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }\n\n /* save header structure */\n state.head = head;\n head.done = false;\n return Z_OK;\n}\n\n\nexports.inflateReset = inflateReset;\nexports.inflateReset2 = inflateReset2;\nexports.inflateResetKeep = inflateResetKeep;\nexports.inflateInit = inflateInit;\nexports.inflateInit2 = inflateInit2;\nexports.inflate = inflate;\nexports.inflateEnd = inflateEnd;\nexports.inflateGetHeader = inflateGetHeader;\nexports.inflateInfo = 'pako inflate (from Nodeca project)';\n\n/* Not implemented\nexports.inflateCopy = inflateCopy;\nexports.inflateGetDictionary = inflateGetDictionary;\nexports.inflateMark = inflateMark;\nexports.inflatePrime = inflatePrime;\nexports.inflateSetDictionary = inflateSetDictionary;\nexports.inflateSync = inflateSync;\nexports.inflateSyncPoint = inflateSyncPoint;\nexports.inflateUndermine = inflateUndermine;\n*/\n","'use strict';\n\n\nfunction GZheader() {\n /* true if compressed data believed to be text */\n this.text = 0;\n /* modification time */\n this.time = 0;\n /* extra flags (not used when writing a gzip file) */\n this.xflags = 0;\n /* operating system */\n this.os = 0;\n /* pointer to extra field or Z_NULL if none */\n this.extra = null;\n /* extra field length (valid if extra != Z_NULL) */\n this.extra_len = 0; // Actually, we don't need it in JS,\n // but leave for few code modifications\n\n //\n // Setup limits is not necessary because in js we should not preallocate memory\n // for inflate use constant limit in 65536 bytes\n //\n\n /* space at extra (only when reading header) */\n // this.extra_max = 0;\n /* pointer to zero-terminated file name or Z_NULL */\n this.name = '';\n /* space at name (only when reading header) */\n // this.name_max = 0;\n /* pointer to zero-terminated comment or Z_NULL */\n this.comment = '';\n /* space at comment (only when reading header) */\n // this.comm_max = 0;\n /* true if there was or will be a header crc */\n this.hcrc = 0;\n /* true when done reading gzip header (not used when writing a gzip file) */\n this.done = false;\n}\n\nmodule.exports = GZheader;\n","// Top level file is just a mixin of submodules & constants\n'use strict';\n\nvar assign = require('./lib/utils/common').assign;\n\nvar deflate = require('./lib/deflate');\nvar inflate = require('./lib/inflate');\nvar constants = require('./lib/zlib/constants');\n\nvar pako = {};\n\nassign(pako, deflate, inflate, constants);\n\nmodule.exports = pako;\n","module.exports = {\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n Z_NO_FLUSH: 0,\n Z_PARTIAL_FLUSH: 1,\n Z_SYNC_FLUSH: 2,\n Z_FULL_FLUSH: 3,\n Z_FINISH: 4,\n Z_BLOCK: 5,\n Z_TREES: 6,\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n Z_OK: 0,\n Z_STREAM_END: 1,\n Z_NEED_DICT: 2,\n Z_ERRNO: -1,\n Z_STREAM_ERROR: -2,\n Z_DATA_ERROR: -3,\n //Z_MEM_ERROR: -4,\n Z_BUF_ERROR: -5,\n //Z_VERSION_ERROR: -6,\n\n /* compression levels */\n Z_NO_COMPRESSION: 0,\n Z_BEST_SPEED: 1,\n Z_BEST_COMPRESSION: 9,\n Z_DEFAULT_COMPRESSION: -1,\n\n\n Z_FILTERED: 1,\n Z_HUFFMAN_ONLY: 2,\n Z_RLE: 3,\n Z_FIXED: 4,\n Z_DEFAULT_STRATEGY: 0,\n\n /* Possible values of the data_type field (though see inflate()) */\n Z_BINARY: 0,\n Z_TEXT: 1,\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\n Z_UNKNOWN: 2,\n\n /* The deflate compression method */\n Z_DEFLATED: 8\n //Z_NULL: null // Use -1 or null inline, depending on var type\n};\n","// String encode/decode helpers\n'use strict';\n\n\nvar utils = require('./common');\n\n\n// Quick check if we can use fast array to bin string conversion\n//\n// - apply(Array) can fail on Android 2.2\n// - apply(Uint8Array) can fail on iOS 5.1 Safary\n//\nvar STR_APPLY_OK = true;\nvar STR_APPLY_UIA_OK = true;\n\ntry { String.fromCharCode.apply(null, [0]); } catch(__) { STR_APPLY_OK = false; }\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch(__) { STR_APPLY_UIA_OK = false; }\n\n\n// Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nvar _utf8len = new utils.Buf8(256);\nfor (var q=0; q<256; q++) {\n _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\n}\n_utf8len[254]=_utf8len[254]=1; // Invalid sequence start\n\n\n// convert string to array (typed, when possible)\nexports.string2buf = function (str) {\n var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\n\n // count binary size\n for (m_pos = 0; m_pos < str_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) {\n c2 = str.charCodeAt(m_pos+1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\n }\n\n // allocate buffer\n buf = new utils.Buf8(buf_len);\n\n // convert\n for (i=0, m_pos = 0; i < buf_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) {\n c2 = str.charCodeAt(m_pos+1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n if (c < 0x80) {\n /* one byte */\n buf[i++] = c;\n } else if (c < 0x800) {\n /* two bytes */\n buf[i++] = 0xC0 | (c >>> 6);\n buf[i++] = 0x80 | (c & 0x3f);\n } else if (c < 0x10000) {\n /* three bytes */\n buf[i++] = 0xE0 | (c >>> 12);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n } else {\n /* four bytes */\n buf[i++] = 0xf0 | (c >>> 18);\n buf[i++] = 0x80 | (c >>> 12 & 0x3f);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n }\n }\n\n return buf;\n};\n\n// Helper (used in 2 places)\nfunction buf2binstring(buf, len) {\n // use fallback for big arrays to avoid stack overflow\n if (len < 65537) {\n if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {\n return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));\n }\n }\n\n var result = '';\n for (var i=0; i < len; i++) {\n result += String.fromCharCode(buf[i]);\n }\n return result;\n}\n\n\n// Convert byte array to binary string\nexports.buf2binstring = function(buf) {\n return buf2binstring(buf, buf.length);\n};\n\n\n// Convert binary string (typed, when possible)\nexports.binstring2buf = function(str) {\n var buf = new utils.Buf8(str.length);\n for (var i=0, len=buf.length; i < len; i++) {\n buf[i] = str.charCodeAt(i);\n }\n return buf;\n};\n\n\n// convert array to string\nexports.buf2string = function (buf, max) {\n var i, out, c, c_len;\n var len = max || buf.length;\n\n // Reserve max possible length (2 words per char)\n // NB: by unknown reasons, Array is significantly faster for\n // String.fromCharCode.apply than Uint16Array.\n var utf16buf = new Array(len*2);\n\n for (out=0, i=0; i 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; }\n\n // apply mask on first byte\n c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\n // join the rest\n while (c_len > 1 && i < len) {\n c = (c << 6) | (buf[i++] & 0x3f);\n c_len--;\n }\n\n // terminated by end of string?\n if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\n\n if (c < 0x10000) {\n utf16buf[out++] = c;\n } else {\n c -= 0x10000;\n utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\n utf16buf[out++] = 0xdc00 | (c & 0x3ff);\n }\n }\n\n return buf2binstring(utf16buf, out);\n};\n\n\n// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max - length limit (mandatory);\nexports.utf8border = function(buf, max) {\n var pos;\n\n max = max || buf.length;\n if (max > buf.length) { max = buf.length; }\n\n // go back from last position, until start of sequence found\n pos = max-1;\n while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\n\n // Fuckup - very small and broken sequence,\n // return max, because we should return something anyway.\n if (pos < 0) { return max; }\n\n // If we came to start of buffer - that means vuffer is too small,\n // return max too.\n if (pos === 0) { return max; }\n\n return (pos + _utf8len[buf[pos]] > max) ? pos : max;\n};\n","'use strict';\n\n\nvar utils = require('../utils/common');\n\nvar MAXBITS = 15;\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\nvar lbase = [ /* Length codes 257..285 base */\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\n];\n\nvar lext = [ /* Length codes 257..285 extra */\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\n];\n\nvar dbase = [ /* Distance codes 0..29 base */\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\n 8193, 12289, 16385, 24577, 0, 0\n];\n\nvar dext = [ /* Distance codes 0..29 extra */\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\n 28, 28, 29, 29, 64, 64\n];\n\nmodule.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)\n{\n var bits = opts.bits;\n //here = opts.here; /* table entry for duplication */\n\n var len = 0; /* a code's length in bits */\n var sym = 0; /* index of code symbols */\n var min = 0, max = 0; /* minimum and maximum code lengths */\n var root = 0; /* number of index bits for root table */\n var curr = 0; /* number of index bits for current table */\n var drop = 0; /* code bits to drop for sub-table */\n var left = 0; /* number of prefix codes available */\n var used = 0; /* code entries in table used */\n var huff = 0; /* Huffman code */\n var incr; /* for incrementing code, index */\n var fill; /* index for replicating entries */\n var low; /* low bits for current root entry */\n var mask; /* mask for low root bits */\n var next; /* next available space in table */\n var base = null; /* base value table to use */\n var base_index = 0;\n// var shoextra; /* extra bits table to use */\n var end; /* use base and extra for symbol > end */\n var count = new utils.Buf16(MAXBITS+1); //[MAXBITS+1]; /* number of codes of each length */\n var offs = new utils.Buf16(MAXBITS+1); //[MAXBITS+1]; /* offsets in table for each length */\n var extra = null;\n var extra_index = 0;\n\n var here_bits, here_op, here_val;\n\n /*\n Process a set of code lengths to create a canonical Huffman code. The\n code lengths are lens[0..codes-1]. Each length corresponds to the\n symbols 0..codes-1. The Huffman code is generated by first sorting the\n symbols by length from short to long, and retaining the symbol order\n for codes with equal lengths. Then the code starts with all zero bits\n for the first code of the shortest length, and the codes are integer\n increments for the same length, and zeros are appended as the length\n increases. For the deflate format, these bits are stored backwards\n from their more natural integer increment ordering, and so when the\n decoding tables are built in the large loop below, the integer codes\n are incremented backwards.\n\n This routine assumes, but does not check, that all of the entries in\n lens[] are in the range 0..MAXBITS. The caller must assure this.\n 1..MAXBITS is interpreted as that code length. zero means that that\n symbol does not occur in this code.\n\n The codes are sorted by computing a count of codes for each length,\n creating from that a table of starting indices for each length in the\n sorted table, and then entering the symbols in order in the sorted\n table. The sorted table is work[], with that space being provided by\n the caller.\n\n The length counts are used for other purposes as well, i.e. finding\n the minimum and maximum length codes, determining if there are any\n codes at all, checking for a valid set of lengths, and looking ahead\n at length counts to determine sub-table sizes when building the\n decoding tables.\n */\n\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\n for (len = 0; len <= MAXBITS; len++) {\n count[len] = 0;\n }\n for (sym = 0; sym < codes; sym++) {\n count[lens[lens_index + sym]]++;\n }\n\n /* bound code lengths, force root to be within code lengths */\n root = bits;\n for (max = MAXBITS; max >= 1; max--) {\n if (count[max] !== 0) { break; }\n }\n if (root > max) {\n root = max;\n }\n if (max === 0) { /* no symbols to code at all */\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n\n //table.op[opts.table_index] = 64;\n //table.bits[opts.table_index] = 1;\n //table.val[opts.table_index++] = 0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n opts.bits = 1;\n return 0; /* no symbols, but wait for decoding to report error */\n }\n for (min = 1; min < max; min++) {\n if (count[min] !== 0) { break; }\n }\n if (root < min) {\n root = min;\n }\n\n /* check for an over-subscribed or incomplete set of lengths */\n left = 1;\n for (len = 1; len <= MAXBITS; len++) {\n left <<= 1;\n left -= count[len];\n if (left < 0) {\n return -1;\n } /* over-subscribed */\n }\n if (left > 0 && (type === CODES || max !== 1)) {\n return -1; /* incomplete set */\n }\n\n /* generate offsets into symbol table for each length for sorting */\n offs[1] = 0;\n for (len = 1; len < MAXBITS; len++) {\n offs[len + 1] = offs[len] + count[len];\n }\n\n /* sort symbols by length, by symbol order within each length */\n for (sym = 0; sym < codes; sym++) {\n if (lens[lens_index + sym] !== 0) {\n work[offs[lens[lens_index + sym]]++] = sym;\n }\n }\n\n /*\n Create and fill in decoding tables. In this loop, the table being\n filled is at next and has curr index bits. The code being used is huff\n with length len. That code is converted to an index by dropping drop\n bits off of the bottom. For codes where len is less than drop + curr,\n those top drop + curr - len bits are incremented through all values to\n fill the table with replicated entries.\n\n root is the number of index bits for the root table. When len exceeds\n root, sub-tables are created pointed to by the root entry with an index\n of the low root bits of huff. This is saved in low to check for when a\n new sub-table should be started. drop is zero when the root table is\n being filled, and drop is root when sub-tables are being filled.\n\n When a new sub-table is needed, it is necessary to look ahead in the\n code lengths to determine what size sub-table is needed. The length\n counts are used for this, and so count[] is decremented as codes are\n entered in the tables.\n\n used keeps track of how many table entries have been allocated from the\n provided *table space. It is checked for LENS and DIST tables against\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\n the initial root table size constants. See the comments in inftrees.h\n for more information.\n\n sym increments through all symbols, and the loop terminates when\n all codes of length max, i.e. all codes, have been processed. This\n routine permits incomplete codes, so another loop after this one fills\n in the rest of the decoding tables with invalid code markers.\n */\n\n /* set up for code type */\n // poor man optimization - use if-else instead of switch,\n // to avoid deopts in old v8\n if (type === CODES) {\n base = extra = work; /* dummy value--not used */\n end = 19;\n\n } else if (type === LENS) {\n base = lbase;\n base_index -= 257;\n extra = lext;\n extra_index -= 257;\n end = 256;\n\n } else { /* DISTS */\n base = dbase;\n extra = dext;\n end = -1;\n }\n\n /* initialize opts for loop */\n huff = 0; /* starting code */\n sym = 0; /* starting code symbol */\n len = min; /* starting code length */\n next = table_index; /* current table to fill in */\n curr = root; /* current table index bits */\n drop = 0; /* current bits to drop from code for index */\n low = -1; /* trigger new sub-table when len > root */\n used = 1 << root; /* use root table entries */\n mask = used - 1; /* mask for comparing low */\n\n /* check available table space */\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n var i=0;\n /* process all codes and make table entries */\n for (;;) {\n i++;\n /* create table entry */\n here_bits = len - drop;\n if (work[sym] < end) {\n here_op = 0;\n here_val = work[sym];\n }\n else if (work[sym] > end) {\n here_op = extra[extra_index + work[sym]];\n here_val = base[base_index + work[sym]];\n }\n else {\n here_op = 32 + 64; /* end of block */\n here_val = 0;\n }\n\n /* replicate for those indices with low len bits equal to huff */\n incr = 1 << (len - drop);\n fill = 1 << curr;\n min = fill; /* save offset to next table */\n do {\n fill -= incr;\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\n } while (fill !== 0);\n\n /* backwards increment the len-bit code huff */\n incr = 1 << (len - 1);\n while (huff & incr) {\n incr >>= 1;\n }\n if (incr !== 0) {\n huff &= incr - 1;\n huff += incr;\n } else {\n huff = 0;\n }\n\n /* go to next symbol, update count, len */\n sym++;\n if (--count[len] === 0) {\n if (len === max) { break; }\n len = lens[lens_index + work[sym]];\n }\n\n /* create new sub-table if needed */\n if (len > root && (huff & mask) !== low) {\n /* if first time, transition to sub-tables */\n if (drop === 0) {\n drop = root;\n }\n\n /* increment past last table */\n next += min; /* here min is 1 << curr */\n\n /* determine length of next table */\n curr = len - drop;\n left = 1 << curr;\n while (curr + drop < max) {\n left -= count[curr + drop];\n if (left <= 0) { break; }\n curr++;\n left <<= 1;\n }\n\n /* check for enough space */\n used += 1 << curr;\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* point entry in root table to sub-table */\n low = huff & mask;\n /*table.op[low] = curr;\n table.bits[low] = root;\n table.val[low] = next - opts.table_index;*/\n table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\n }\n }\n\n /* fill in remaining table entry if code is incomplete (guaranteed to have\n at most one remaining entry, since if the code is incomplete, the\n maximum code length that was allowed to get this far is one bit) */\n if (huff !== 0) {\n //table.op[next + huff] = 64; /* invalid code marker */\n //table.bits[next + huff] = len - drop;\n //table.val[next + huff] = 0;\n table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\n }\n\n /* set return parameters */\n //opts.table_index += used;\n opts.bits = root;\n return 0;\n};\n","'use strict';\n\n\nvar utils = require('../utils/common');\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n//var Z_FILTERED = 1;\n//var Z_HUFFMAN_ONLY = 2;\n//var Z_RLE = 3;\nvar Z_FIXED = 4;\n//var Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\nvar Z_BINARY = 0;\nvar Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n/*============================================================================*/\n\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n// From zutil.h\n\nvar STORED_BLOCK = 0;\nvar STATIC_TREES = 1;\nvar DYN_TREES = 2;\n/* The three kinds of block type */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\n/* The minimum and maximum match lengths */\n\n// From deflate.h\n/* ===========================================================================\n * Internal compression state.\n */\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\n\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\n\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\n\nvar D_CODES = 30;\n/* number of distance codes */\n\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\n\nvar HEAP_SIZE = 2*L_CODES + 1;\n/* maximum heap size */\n\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar Buf_size = 16;\n/* size of bit buffer in bi_buf */\n\n\n/* ===========================================================================\n * Constants\n */\n\nvar MAX_BL_BITS = 7;\n/* Bit length codes must not exceed MAX_BL_BITS bits */\n\nvar END_BLOCK = 256;\n/* end of block literal code */\n\nvar REP_3_6 = 16;\n/* repeat previous bit length 3-6 times (2 bits of repeat count) */\n\nvar REPZ_3_10 = 17;\n/* repeat a zero length 3-10 times (3 bits of repeat count) */\n\nvar REPZ_11_138 = 18;\n/* repeat a zero length 11-138 times (7 bits of repeat count) */\n\nvar extra_lbits = /* extra bits for each length code */\n [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];\n\nvar extra_dbits = /* extra bits for each distance code */\n [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];\n\nvar extra_blbits = /* extra bits for each bit length code */\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];\n\nvar bl_order =\n [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];\n/* The lengths of the bit length codes are sent in order of decreasing\n * probability, to avoid transmitting the lengths for unused bit length codes.\n */\n\n/* ===========================================================================\n * Local data. These are initialized only once.\n */\n\n// We pre-fill arrays with 0 to avoid uninitialized gaps\n\nvar DIST_CODE_LEN = 512; /* see definition of array dist_code below */\n\n// !!!! Use flat array insdead of structure, Freq = i*2, Len = i*2+1\nvar static_ltree = new Array((L_CODES+2) * 2);\nzero(static_ltree);\n/* The static literal tree. Since the bit lengths are imposed, there is no\n * need for the L_CODES extra codes used during heap construction. However\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\n * below).\n */\n\nvar static_dtree = new Array(D_CODES * 2);\nzero(static_dtree);\n/* The static distance tree. (Actually a trivial tree since all codes use\n * 5 bits.)\n */\n\nvar _dist_code = new Array(DIST_CODE_LEN);\nzero(_dist_code);\n/* Distance codes. The first 256 values correspond to the distances\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\n * the 15 bit distances.\n */\n\nvar _length_code = new Array(MAX_MATCH-MIN_MATCH+1);\nzero(_length_code);\n/* length code for each normalized match length (0 == MIN_MATCH) */\n\nvar base_length = new Array(LENGTH_CODES);\nzero(base_length);\n/* First normalized length for each code (0 = MIN_MATCH) */\n\nvar base_dist = new Array(D_CODES);\nzero(base_dist);\n/* First normalized distance for each code (0 = distance of 1) */\n\n\nvar StaticTreeDesc = function (static_tree, extra_bits, extra_base, elems, max_length) {\n\n this.static_tree = static_tree; /* static tree or NULL */\n this.extra_bits = extra_bits; /* extra bits for each code or NULL */\n this.extra_base = extra_base; /* base index for extra_bits */\n this.elems = elems; /* max number of elements in the tree */\n this.max_length = max_length; /* max bit length for the codes */\n\n // show if `static_tree` has data or dummy - needed for monomorphic objects\n this.has_stree = static_tree && static_tree.length;\n};\n\n\nvar static_l_desc;\nvar static_d_desc;\nvar static_bl_desc;\n\n\nvar TreeDesc = function(dyn_tree, stat_desc) {\n this.dyn_tree = dyn_tree; /* the dynamic tree */\n this.max_code = 0; /* largest code with non zero frequency */\n this.stat_desc = stat_desc; /* the corresponding static tree */\n};\n\n\n\nfunction d_code(dist) {\n return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\n}\n\n\n/* ===========================================================================\n * Output a short LSB first on the stream.\n * IN assertion: there is enough room in pendingBuf.\n */\nfunction put_short (s, w) {\n// put_byte(s, (uch)((w) & 0xff));\n// put_byte(s, (uch)((ush)(w) >> 8));\n s.pending_buf[s.pending++] = (w) & 0xff;\n s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\n}\n\n\n/* ===========================================================================\n * Send a value on a given number of bits.\n * IN assertion: length <= 16 and value fits in length bits.\n */\nfunction send_bits(s, value, length) {\n if (s.bi_valid > (Buf_size - length)) {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n put_short(s, s.bi_buf);\n s.bi_buf = value >> (Buf_size - s.bi_valid);\n s.bi_valid += length - Buf_size;\n } else {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n s.bi_valid += length;\n }\n}\n\n\nfunction send_code(s, c, tree) {\n send_bits(s, tree[c*2]/*.Code*/, tree[c*2 + 1]/*.Len*/);\n}\n\n\n/* ===========================================================================\n * Reverse the first len bits of a code, using straightforward code (a faster\n * method would use a table)\n * IN assertion: 1 <= len <= 15\n */\nfunction bi_reverse(code, len) {\n var res = 0;\n do {\n res |= code & 1;\n code >>>= 1;\n res <<= 1;\n } while (--len > 0);\n return res >>> 1;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer, keeping at most 7 bits in it.\n */\nfunction bi_flush(s) {\n if (s.bi_valid === 16) {\n put_short(s, s.bi_buf);\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n } else if (s.bi_valid >= 8) {\n s.pending_buf[s.pending++] = s.bi_buf & 0xff;\n s.bi_buf >>= 8;\n s.bi_valid -= 8;\n }\n}\n\n\n/* ===========================================================================\n * Compute the optimal bit lengths for a tree and update the total bit length\n * for the current block.\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\n * above are the tree nodes sorted by increasing frequency.\n * OUT assertions: the field len is set to the optimal bit length, the\n * array bl_count contains the frequencies for each bit length.\n * The length opt_len is updated; static_len is also updated if stree is\n * not null.\n */\nfunction gen_bitlen(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var max_code = desc.max_code;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var extra = desc.stat_desc.extra_bits;\n var base = desc.stat_desc.extra_base;\n var max_length = desc.stat_desc.max_length;\n var h; /* heap index */\n var n, m; /* iterate over the tree elements */\n var bits; /* bit length */\n var xbits; /* extra bits */\n var f; /* frequency */\n var overflow = 0; /* number of elements with bit length too large */\n\n for (bits = 0; bits <= MAX_BITS; bits++) {\n s.bl_count[bits] = 0;\n }\n\n /* In a first pass, compute the optimal bit lengths (which may\n * overflow in the case of the bit length tree).\n */\n tree[s.heap[s.heap_max]*2 + 1]/*.Len*/ = 0; /* root of the heap */\n\n for (h = s.heap_max+1; h < HEAP_SIZE; h++) {\n n = s.heap[h];\n bits = tree[tree[n*2 +1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;\n if (bits > max_length) {\n bits = max_length;\n overflow++;\n }\n tree[n*2 + 1]/*.Len*/ = bits;\n /* We overwrite tree[n].Dad which is no longer needed */\n\n if (n > max_code) { continue; } /* not a leaf node */\n\n s.bl_count[bits]++;\n xbits = 0;\n if (n >= base) {\n xbits = extra[n-base];\n }\n f = tree[n * 2]/*.Freq*/;\n s.opt_len += f * (bits + xbits);\n if (has_stree) {\n s.static_len += f * (stree[n*2 + 1]/*.Len*/ + xbits);\n }\n }\n if (overflow === 0) { return; }\n\n // Trace((stderr,\"\\nbit length overflow\\n\"));\n /* This happens for example on obj2 and pic of the Calgary corpus */\n\n /* Find the first bit length which could increase: */\n do {\n bits = max_length-1;\n while (s.bl_count[bits] === 0) { bits--; }\n s.bl_count[bits]--; /* move one leaf down the tree */\n s.bl_count[bits+1] += 2; /* move one overflow item as its brother */\n s.bl_count[max_length]--;\n /* The brother of the overflow item also moves one step up,\n * but this does not affect bl_count[max_length]\n */\n overflow -= 2;\n } while (overflow > 0);\n\n /* Now recompute all bit lengths, scanning in increasing frequency.\n * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\n * lengths instead of fixing only the wrong ones. This idea is taken\n * from 'ar' written by Haruhiko Okumura.)\n */\n for (bits = max_length; bits !== 0; bits--) {\n n = s.bl_count[bits];\n while (n !== 0) {\n m = s.heap[--h];\n if (m > max_code) { continue; }\n if (tree[m*2 + 1]/*.Len*/ !== bits) {\n // Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\n s.opt_len += (bits - tree[m*2 + 1]/*.Len*/)*tree[m*2]/*.Freq*/;\n tree[m*2 + 1]/*.Len*/ = bits;\n }\n n--;\n }\n }\n}\n\n\n/* ===========================================================================\n * Generate the codes for a given tree and bit counts (which need not be\n * optimal).\n * IN assertion: the array bl_count contains the bit length statistics for\n * the given tree and the field len is set for all tree elements.\n * OUT assertion: the field code is set for all tree elements of non\n * zero code length.\n */\nfunction gen_codes(tree, max_code, bl_count)\n// ct_data *tree; /* the tree to decorate */\n// int max_code; /* largest code with non zero frequency */\n// ushf *bl_count; /* number of codes at each bit length */\n{\n var next_code = new Array(MAX_BITS+1); /* next code value for each bit length */\n var code = 0; /* running code value */\n var bits; /* bit index */\n var n; /* code index */\n\n /* The distribution counts are first used to generate the code values\n * without bit reversal.\n */\n for (bits = 1; bits <= MAX_BITS; bits++) {\n next_code[bits] = code = (code + bl_count[bits-1]) << 1;\n }\n /* Check that the bit counts in bl_count are consistent. The last code\n * must be all ones.\n */\n //Assert (code + bl_count[MAX_BITS]-1 == (1< length code (0..28) */\n length = 0;\n for (code = 0; code < LENGTH_CODES-1; code++) {\n base_length[code] = length;\n for (n = 0; n < (1< dist code (0..29) */\n dist = 0;\n for (code = 0 ; code < 16; code++) {\n base_dist[code] = dist;\n for (n = 0; n < (1<>= 7; /* from now on, all distances are divided by 128 */\n for (; code < D_CODES; code++) {\n base_dist[code] = dist << 7;\n for (n = 0; n < (1<<(extra_dbits[code]-7)); n++) {\n _dist_code[256 + dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n\n /* Construct the codes of the static literal tree */\n for (bits = 0; bits <= MAX_BITS; bits++) {\n bl_count[bits] = 0;\n }\n\n n = 0;\n while (n <= 143) {\n static_ltree[n*2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n while (n <= 255) {\n static_ltree[n*2 + 1]/*.Len*/ = 9;\n n++;\n bl_count[9]++;\n }\n while (n <= 279) {\n static_ltree[n*2 + 1]/*.Len*/ = 7;\n n++;\n bl_count[7]++;\n }\n while (n <= 287) {\n static_ltree[n*2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n /* Codes 286 and 287 do not exist, but we must include them in the\n * tree construction to get a canonical Huffman tree (longest code\n * all ones)\n */\n gen_codes(static_ltree, L_CODES+1, bl_count);\n\n /* The static distance tree is trivial: */\n for (n = 0; n < D_CODES; n++) {\n static_dtree[n*2 + 1]/*.Len*/ = 5;\n static_dtree[n*2]/*.Code*/ = bi_reverse(n, 5);\n }\n\n // Now data ready and we can init static trees\n static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS);\n static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);\n static_bl_desc =new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);\n\n //static_init_done = true;\n}\n\n\n/* ===========================================================================\n * Initialize a new block.\n */\nfunction init_block(s) {\n var n; /* iterates over tree elements */\n\n /* Initialize the trees. */\n for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n*2]/*.Freq*/ = 0; }\n for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n*2]/*.Freq*/ = 0; }\n for (n = 0; n < BL_CODES; n++) { s.bl_tree[n*2]/*.Freq*/ = 0; }\n\n s.dyn_ltree[END_BLOCK*2]/*.Freq*/ = 1;\n s.opt_len = s.static_len = 0;\n s.last_lit = s.matches = 0;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer and align the output on a byte boundary\n */\nfunction bi_windup(s)\n{\n if (s.bi_valid > 8) {\n put_short(s, s.bi_buf);\n } else if (s.bi_valid > 0) {\n //put_byte(s, (Byte)s->bi_buf);\n s.pending_buf[s.pending++] = s.bi_buf;\n }\n s.bi_buf = 0;\n s.bi_valid = 0;\n}\n\n/* ===========================================================================\n * Copy a stored block, storing first the length and its\n * one's complement if requested.\n */\nfunction copy_block(s, buf, len, header)\n//DeflateState *s;\n//charf *buf; /* the input data */\n//unsigned len; /* its length */\n//int header; /* true if block header must be written */\n{\n bi_windup(s); /* align on byte boundary */\n\n if (header) {\n put_short(s, len);\n put_short(s, ~len);\n }\n// while (len--) {\n// put_byte(s, *buf++);\n// }\n utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);\n s.pending += len;\n}\n\n/* ===========================================================================\n * Compares to subtrees, using the tree depth as tie breaker when\n * the subtrees have equal frequency. This minimizes the worst case length.\n */\nfunction smaller(tree, n, m, depth) {\n var _n2 = n*2;\n var _m2 = m*2;\n return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||\n (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));\n}\n\n/* ===========================================================================\n * Restore the heap property by moving down the tree starting at node k,\n * exchanging a node with the smallest of its two sons if necessary, stopping\n * when the heap property is re-established (each father smaller than its\n * two sons).\n */\nfunction pqdownheap(s, tree, k)\n// deflate_state *s;\n// ct_data *tree; /* the tree to restore */\n// int k; /* node to move down */\n{\n var v = s.heap[k];\n var j = k << 1; /* left son of k */\n while (j <= s.heap_len) {\n /* Set j to the smallest of the two sons: */\n if (j < s.heap_len &&\n smaller(tree, s.heap[j+1], s.heap[j], s.depth)) {\n j++;\n }\n /* Exit if v is smaller than both sons */\n if (smaller(tree, v, s.heap[j], s.depth)) { break; }\n\n /* Exchange v with the smallest son */\n s.heap[k] = s.heap[j];\n k = j;\n\n /* And continue down the tree, setting j to the left son of k */\n j <<= 1;\n }\n s.heap[k] = v;\n}\n\n\n// inlined manually\n// var SMALLEST = 1;\n\n/* ===========================================================================\n * Send the block data compressed using the given Huffman trees\n */\nfunction compress_block(s, ltree, dtree)\n// deflate_state *s;\n// const ct_data *ltree; /* literal tree */\n// const ct_data *dtree; /* distance tree */\n{\n var dist; /* distance of matched string */\n var lc; /* match length or unmatched char (if dist == 0) */\n var lx = 0; /* running index in l_buf */\n var code; /* the code to send */\n var extra; /* number of extra bits to send */\n\n if (s.last_lit !== 0) {\n do {\n dist = (s.pending_buf[s.d_buf + lx*2] << 8) | (s.pending_buf[s.d_buf + lx*2 + 1]);\n lc = s.pending_buf[s.l_buf + lx];\n lx++;\n\n if (dist === 0) {\n send_code(s, lc, ltree); /* send a literal byte */\n //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n } else {\n /* Here, lc is the match length - MIN_MATCH */\n code = _length_code[lc];\n send_code(s, code+LITERALS+1, ltree); /* send the length code */\n extra = extra_lbits[code];\n if (extra !== 0) {\n lc -= base_length[code];\n send_bits(s, lc, extra); /* send the extra length bits */\n }\n dist--; /* dist is now the match distance - 1 */\n code = d_code(dist);\n //Assert (code < D_CODES, \"bad d_code\");\n\n send_code(s, code, dtree); /* send the distance code */\n extra = extra_dbits[code];\n if (extra !== 0) {\n dist -= base_dist[code];\n send_bits(s, dist, extra); /* send the extra distance bits */\n }\n } /* literal or match pair ? */\n\n /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */\n //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n // \"pendingBuf overflow\");\n\n } while (lx < s.last_lit);\n }\n\n send_code(s, END_BLOCK, ltree);\n}\n\n\n/* ===========================================================================\n * Construct one Huffman tree and assigns the code bit strings and lengths.\n * Update the total bit length for the current block.\n * IN assertion: the field freq is set for all tree elements.\n * OUT assertions: the fields len and code are set to the optimal bit length\n * and corresponding code. The length opt_len is updated; static_len is\n * also updated if stree is not null. The field max_code is set.\n */\nfunction build_tree(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var elems = desc.stat_desc.elems;\n var n, m; /* iterate over heap elements */\n var max_code = -1; /* largest code with non zero frequency */\n var node; /* new node being created */\n\n /* Construct the initial heap, with least frequent element in\n * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\n * heap[0] is not used.\n */\n s.heap_len = 0;\n s.heap_max = HEAP_SIZE;\n\n for (n = 0; n < elems; n++) {\n if (tree[n * 2]/*.Freq*/ !== 0) {\n s.heap[++s.heap_len] = max_code = n;\n s.depth[n] = 0;\n\n } else {\n tree[n*2 + 1]/*.Len*/ = 0;\n }\n }\n\n /* The pkzip format requires that at least one distance code exists,\n * and that at least one bit should be sent even if there is only one\n * possible code. So to avoid special checks later on we force at least\n * two codes of non zero frequency.\n */\n while (s.heap_len < 2) {\n node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\n tree[node * 2]/*.Freq*/ = 1;\n s.depth[node] = 0;\n s.opt_len--;\n\n if (has_stree) {\n s.static_len -= stree[node*2 + 1]/*.Len*/;\n }\n /* node is 0 or 1 so it does not have extra bits */\n }\n desc.max_code = max_code;\n\n /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\n * establish sub-heaps of increasing lengths:\n */\n for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }\n\n /* Construct the Huffman tree by repeatedly combining the least two\n * frequent nodes.\n */\n node = elems; /* next internal node of the tree */\n do {\n //pqremove(s, tree, n); /* n = node of least frequency */\n /*** pqremove ***/\n n = s.heap[1/*SMALLEST*/];\n s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];\n pqdownheap(s, tree, 1/*SMALLEST*/);\n /***/\n\n m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */\n\n s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\n s.heap[--s.heap_max] = m;\n\n /* Create a new node father of n and m */\n tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;\n s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\n tree[n*2 + 1]/*.Dad*/ = tree[m*2 + 1]/*.Dad*/ = node;\n\n /* and insert the new node in the heap */\n s.heap[1/*SMALLEST*/] = node++;\n pqdownheap(s, tree, 1/*SMALLEST*/);\n\n } while (s.heap_len >= 2);\n\n s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];\n\n /* At this point, the fields freq and dad are set. We can now\n * generate the bit lengths.\n */\n gen_bitlen(s, desc);\n\n /* The field len is now set, we can generate the bit codes */\n gen_codes(tree, max_code, s.bl_count);\n}\n\n\n/* ===========================================================================\n * Scan a literal or distance tree to determine the frequencies of the codes\n * in the bit length tree.\n */\nfunction scan_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0*2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n tree[(max_code+1)*2 + 1]/*.Len*/ = 0xffff; /* guard */\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n+1)*2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n s.bl_tree[curlen * 2]/*.Freq*/ += count;\n\n } else if (curlen !== 0) {\n\n if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }\n s.bl_tree[REP_3_6*2]/*.Freq*/++;\n\n } else if (count <= 10) {\n s.bl_tree[REPZ_3_10*2]/*.Freq*/++;\n\n } else {\n s.bl_tree[REPZ_11_138*2]/*.Freq*/++;\n }\n\n count = 0;\n prevlen = curlen;\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Send a literal or distance tree in compressed form, using the codes in\n * bl_tree.\n */\nfunction send_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0*2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n /* tree[max_code+1].Len = -1; */ /* guard already set */\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n+1)*2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);\n\n } else if (curlen !== 0) {\n if (curlen !== prevlen) {\n send_code(s, curlen, s.bl_tree);\n count--;\n }\n //Assert(count >= 3 && count <= 6, \" 3_6?\");\n send_code(s, REP_3_6, s.bl_tree);\n send_bits(s, count-3, 2);\n\n } else if (count <= 10) {\n send_code(s, REPZ_3_10, s.bl_tree);\n send_bits(s, count-3, 3);\n\n } else {\n send_code(s, REPZ_11_138, s.bl_tree);\n send_bits(s, count-11, 7);\n }\n\n count = 0;\n prevlen = curlen;\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Construct the Huffman tree for the bit lengths and return the index in\n * bl_order of the last bit length code to send.\n */\nfunction build_bl_tree(s) {\n var max_blindex; /* index of last bit length code of non zero freq */\n\n /* Determine the bit length frequencies for literal and distance trees */\n scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\n scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\n\n /* Build the bit length tree: */\n build_tree(s, s.bl_desc);\n /* opt_len now includes the length of the tree representations, except\n * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\n */\n\n /* Determine the number of bit length codes to send. The pkzip format\n * requires that at least 4 bit length codes be sent. (appnote.txt says\n * 3 but the actual value used is 4.)\n */\n for (max_blindex = BL_CODES-1; max_blindex >= 3; max_blindex--) {\n if (s.bl_tree[bl_order[max_blindex]*2 + 1]/*.Len*/ !== 0) {\n break;\n }\n }\n /* Update opt_len to include the bit length tree and counts */\n s.opt_len += 3*(max_blindex+1) + 5+5+4;\n //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n // s->opt_len, s->static_len));\n\n return max_blindex;\n}\n\n\n/* ===========================================================================\n * Send the header for a block using dynamic Huffman trees: the counts, the\n * lengths of the bit length codes, the literal tree and the distance tree.\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n */\nfunction send_all_trees(s, lcodes, dcodes, blcodes)\n// deflate_state *s;\n// int lcodes, dcodes, blcodes; /* number of codes for each tree */\n{\n var rank; /* index in bl_order */\n\n //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n // \"too many codes\");\n //Tracev((stderr, \"\\nbl counts: \"));\n send_bits(s, lcodes-257, 5); /* not +255 as stated in appnote.txt */\n send_bits(s, dcodes-1, 5);\n send_bits(s, blcodes-4, 4); /* not -3 as stated in appnote.txt */\n for (rank = 0; rank < blcodes; rank++) {\n //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\n send_bits(s, s.bl_tree[bl_order[rank]*2 + 1]/*.Len*/, 3);\n }\n //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_ltree, lcodes-1); /* literal tree */\n //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_dtree, dcodes-1); /* distance tree */\n //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n}\n\n\n/* ===========================================================================\n * Check if the data type is TEXT or BINARY, using the following algorithm:\n * - TEXT if the two conditions below are satisfied:\n * a) There are no non-portable control characters belonging to the\n * \"black list\" (0..6, 14..25, 28..31).\n * b) There is at least one printable character belonging to the\n * \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\n * - BINARY otherwise.\n * - The following partially-portable control characters form a\n * \"gray list\" that is ignored in this detection algorithm:\n * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\n * IN assertion: the fields Freq of dyn_ltree are set.\n */\nfunction detect_data_type(s) {\n /* black_mask is the bit mask of black-listed bytes\n * set bits 0..6, 14..25, and 28..31\n * 0xf3ffc07f = binary 11110011111111111100000001111111\n */\n var black_mask = 0xf3ffc07f;\n var n;\n\n /* Check for non-textual (\"black-listed\") bytes. */\n for (n = 0; n <= 31; n++, black_mask >>>= 1) {\n if ((black_mask & 1) && (s.dyn_ltree[n*2]/*.Freq*/ !== 0)) {\n return Z_BINARY;\n }\n }\n\n /* Check for textual (\"white-listed\") bytes. */\n if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||\n s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n for (n = 32; n < LITERALS; n++) {\n if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n }\n\n /* There are no \"black-listed\" or \"white-listed\" bytes:\n * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\n */\n return Z_BINARY;\n}\n\n\nvar static_init_done = false;\n\n/* ===========================================================================\n * Initialize the tree data structures for a new zlib stream.\n */\nfunction _tr_init(s)\n{\n\n if (!static_init_done) {\n tr_static_init();\n static_init_done = true;\n }\n\n s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);\n s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);\n s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\n\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n /* Initialize the first block of the first file: */\n init_block(s);\n}\n\n\n/* ===========================================================================\n * Send a stored block\n */\nfunction _tr_stored_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n send_bits(s, (STORED_BLOCK<<1)+(last ? 1 : 0), 3); /* send block type */\n copy_block(s, buf, stored_len, true); /* with header */\n}\n\n\n/* ===========================================================================\n * Send one empty static block to give enough lookahead for inflate.\n * This takes 10 bits, of which 7 may remain in the bit buffer.\n */\nfunction _tr_align(s) {\n send_bits(s, STATIC_TREES<<1, 3);\n send_code(s, END_BLOCK, static_ltree);\n bi_flush(s);\n}\n\n\n/* ===========================================================================\n * Determine the best encoding for the current block: dynamic trees, static\n * trees or store, and output the encoded block to the zip file.\n */\nfunction _tr_flush_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block, or NULL if too old */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n var opt_lenb, static_lenb; /* opt_len and static_len in bytes */\n var max_blindex = 0; /* index of last bit length code of non zero freq */\n\n /* Build the Huffman trees unless a stored block is forced */\n if (s.level > 0) {\n\n /* Check if the file is binary or text */\n if (s.strm.data_type === Z_UNKNOWN) {\n s.strm.data_type = detect_data_type(s);\n }\n\n /* Construct the literal and distance trees */\n build_tree(s, s.l_desc);\n // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n\n build_tree(s, s.d_desc);\n // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n /* At this point, opt_len and static_len are the total bit lengths of\n * the compressed block data, excluding the tree representations.\n */\n\n /* Build the bit length tree for the above two trees, and get the index\n * in bl_order of the last bit length code to send.\n */\n max_blindex = build_bl_tree(s);\n\n /* Determine the best encoding. Compute the block lengths in bytes. */\n opt_lenb = (s.opt_len+3+7) >>> 3;\n static_lenb = (s.static_len+3+7) >>> 3;\n\n // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n // s->last_lit));\n\n if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }\n\n } else {\n // Assert(buf != (char*)0, \"lost buf\");\n opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\n }\n\n if ((stored_len+4 <= opt_lenb) && (buf !== -1)) {\n /* 4: two words for the lengths */\n\n /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n * Otherwise we can't have processed more than WSIZE input bytes since\n * the last block flush, because compression would have been\n * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n * transform a block into a stored block.\n */\n _tr_stored_block(s, buf, stored_len, last);\n\n } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {\n\n send_bits(s, (STATIC_TREES<<1) + (last ? 1 : 0), 3);\n compress_block(s, static_ltree, static_dtree);\n\n } else {\n send_bits(s, (DYN_TREES<<1) + (last ? 1 : 0), 3);\n send_all_trees(s, s.l_desc.max_code+1, s.d_desc.max_code+1, max_blindex+1);\n compress_block(s, s.dyn_ltree, s.dyn_dtree);\n }\n // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n /* The above check is made mod 2^32, for files larger than 512 MB\n * and uLong implemented on 32 bits.\n */\n init_block(s);\n\n if (last) {\n bi_windup(s);\n }\n // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n // s->compressed_len-7*last));\n}\n\n/* ===========================================================================\n * Save the match info and tally the frequency counts. Return true if\n * the current block must be flushed.\n */\nfunction _tr_tally(s, dist, lc)\n// deflate_state *s;\n// unsigned dist; /* distance of matched string */\n// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{\n //var out_length, in_length, dcode;\n\n s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;\n s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;\n\n s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;\n s.last_lit++;\n\n if (dist === 0) {\n /* lc is the unmatched char */\n s.dyn_ltree[lc*2]/*.Freq*/++;\n } else {\n s.matches++;\n /* Here, lc is the match length - MIN_MATCH */\n dist--; /* dist = match distance - 1 */\n //Assert((ush)dist < (ush)MAX_DIST(s) &&\n // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n // (ush)d_code(dist) < (ush)D_CODES, \"_tr_tally: bad match\");\n\n s.dyn_ltree[(_length_code[lc]+LITERALS+1) * 2]/*.Freq*/++;\n s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;\n }\n\n// (!) This block is disabled in zlib defailts,\n// don't enable it for binary compatibility\n\n//#ifdef TRUNCATE_BLOCK\n// /* Try to guess if it is profitable to stop the current block here */\n// if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n// /* Compute an upper bound for the compressed length */\n// out_length = s.last_lit*8;\n// in_length = s.strstart - s.block_start;\n//\n// for (dcode = 0; dcode < D_CODES; dcode++) {\n// out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n// }\n// out_length >>>= 3;\n// //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n// // s->last_lit, in_length, out_length,\n// // 100L - out_length*100L/in_length));\n// if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n// return true;\n// }\n// }\n//#endif\n\n return (s.last_lit === s.lit_bufsize-1);\n /* We avoid equality with lit_bufsize because of wraparound at 64K\n * on 16 bit machines and because stored blocks are restricted to\n * 64K-1 bytes.\n */\n}\n\nexports._tr_init = _tr_init;\nexports._tr_stored_block = _tr_stored_block;\nexports._tr_flush_block = _tr_flush_block;\nexports._tr_tally = _tr_tally;\nexports._tr_align = _tr_align;\n"],"names":["module","exports","this","input","next_in","avail_in","total_in","output","next_out","avail_out","total_out","msg","state","data_type","adler","buf","len","pos","s1","s2","n","crcTable","c","table","k","makeTable","crc","t","end","i","TYPED_OK","Uint8Array","Uint16Array","Int32Array","assign","obj","sources","Array","prototype","slice","call","arguments","length","source","shift","TypeError","p","hasOwnProperty","shrinkBuf","size","subarray","fnTyped","arraySet","dest","src","src_offs","dest_offs","set","flattenChunks","chunks","l","chunk","result","fnUntyped","concat","apply","setTyped","on","Buf8","Buf16","Buf32","zlib_inflate","require","utils","strings","zstream","gzheader","toString","Object","Inflate","options","chunkSize","windowBits","to","opt","raw","err","ended","strm","status","inflateInit2","Z_OK","Error","header","inflateGetHeader","inflate","inflator","push","data","mode","_mode","next_out_utf8","tail","utf8str","Z_FINISH","Z_NO_FLUSH","binstring2buf","Z_STREAM_END","onEnd","Z_SYNC_FLUSH","utf8border","buf2string","onData","inflateEnd","join","inflateRaw","ungzip","zlib_deflate","Deflate","level","method","memLevel","strategy","gzip","deflateInit2","deflateSetHeader","deflate","deflator","string2buf","buf2binstring","deflateEnd","deflateRaw","trees","adler32","crc32","Z_STREAM_ERROR","MAX_MATCH","MIN_LOOKAHEAD","HCRC_STATE","BUSY_STATE","FINISH_STATE","errorCode","rank","f","zero","flush_pending","s","pending","pending_buf","pending_out","flush_block_only","last","_tr_flush_block","block_start","strstart","put_byte","b","putShortMSB","read_buf","start","wrap","longest_match","cur_match","match","chain_length","max_chain_length","scan","best_len","prev_length","nice_match","limit","w_size","_win","window","wmask","w_mask","prev","strend","scan_end1","scan_end","good_match","lookahead","match_start","fill_window","m","more","str","_w_size","window_size","hash_size","head","insert","ins_h","hash_shift","hash_mask","deflate_fast","flush","hash_head","bflush","match_length","_tr_tally","max_lazy_match","MIN_MATCH","last_lit","deflate_slow","max_insert","prev_match","match_available","configuration_table","Config","good_length","max_lazy","nice_length","max_chain","func","DeflateState","pending_buf_size","gzhead","gzindex","last_flush","w_bits","hash_bits","dyn_ltree","HEAP_SIZE","dyn_dtree","bl_tree","l_desc","d_desc","bl_desc","bl_count","MAX_BITS","heap","heap_len","heap_max","depth","l_buf","lit_bufsize","d_buf","opt_len","static_len","matches","bi_buf","bi_valid","deflateResetKeep","_tr_init","deflateReset","ret","max_block_size","max_start","deflateInit","old_flush","beg","val","text","hcrc","extra","name","comment","time","os","charCodeAt","bstate","deflate_huff","deflate_rle","_tr_align","_tr_stored_block","deflateInfo","_in","_out","dmax","wsize","whave","wnext","hold","bits","lcode","dcode","lmask","dmask","here","op","dist","from","from_source","lencode","distcode","lenbits","distbits","top","dolen","dodist","sane","inflate_fast","inflate_table","TYPE","BAD","ZSWAP32","q","InflateState","havedict","flags","check","total","wbits","offset","ncode","nlen","ndist","have","next","lens","work","lendyn","distdyn","back","was","inflateResetKeep","inflateReset","inflateReset2","lenfix","distfix","virgin","fixedtables","sym","inflateInit","put","left","copy","here_bits","here_op","here_val","last_bits","last_op","last_val","opts","hbuf","order","inf_leave","done","xflags","extra_len","String","fromCharCode","updatewindow","inflateInfo","pako","Z_PARTIAL_FLUSH","Z_FULL_FLUSH","Z_BLOCK","Z_TREES","Z_NEED_DICT","Z_ERRNO","Z_DATA_ERROR","Z_BUF_ERROR","Z_NO_COMPRESSION","Z_BEST_SPEED","Z_BEST_COMPRESSION","Z_DEFAULT_COMPRESSION","Z_FILTERED","Z_HUFFMAN_ONLY","Z_RLE","Z_FIXED","Z_DEFAULT_STRATEGY","Z_BINARY","Z_TEXT","Z_UNKNOWN","Z_DEFLATED","STR_APPLY_OK","STR_APPLY_UIA_OK","__","_utf8len","c2","m_pos","str_len","buf_len","max","out","c_len","utf16buf","MAXBITS","lbase","lext","dbase","dext","type","lens_index","codes","table_index","incr","fill","low","mask","min","root","curr","drop","used","huff","base","base_index","count","offs","extra_index","LITERALS","L_CODES","D_CODES","extra_lbits","extra_dbits","extra_blbits","bl_order","static_ltree","static_dtree","_dist_code","_length_code","base_length","base_dist","static_l_desc","static_d_desc","static_bl_desc","StaticTreeDesc","static_tree","extra_bits","extra_base","elems","max_length","has_stree","TreeDesc","dyn_tree","stat_desc","max_code","d_code","put_short","w","send_bits","value","send_code","tree","bi_reverse","code","res","gen_codes","next_code","init_block","END_BLOCK","bi_windup","smaller","_n2","_m2","pqdownheap","v","j","compress_block","ltree","dtree","lc","lx","build_tree","desc","node","stree","h","xbits","overflow","gen_bitlen","scan_tree","curlen","prevlen","nextlen","max_count","min_count","REP_3_6","REPZ_3_10","REPZ_11_138","send_tree","static_init_done","stored_len","copy_block","LENGTH_CODES","tr_static_init","opt_lenb","static_lenb","max_blindex","black_mask","detect_data_type","BL_CODES","build_bl_tree","lcodes","dcodes","blcodes","send_all_trees","STATIC_TREES","bi_flush"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..50220c28dd307131ad210d90cf10d1e07c3c8401 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 6674.568e5d25.chunk.js.LICENSE.txt */ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6674],{18930:function(t,e,r){t.exports=r(91231)},26737:function(t,e,r){r.d(e,{w:function(){return i}});var n=r(31014);const s=n.createContext(!1),i=()=>n.useContext(s);s.Provider},28486:function(t,e,r){r.d(e,{tH:function(){return o}});var n=r(31014);function s(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}s({},"ErrorBoundary",(()=>o));s({},"ErrorBoundaryContext",(()=>i));const i=(0,n.createContext)(null),u={didCatch:!1,error:null};class o extends n.Component{state=u;static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary=(...t)=>{const{error:e}=this.state;null!==e&&(this.props.onReset?.({args:t,reason:"imperative-api"}),this.setState(u))};componentDidCatch(t,e){this.props.onError?.(t,e)}componentDidUpdate(t,e){const{didCatch:r}=this.state,{resetKeys:n}=this.props;r&&null!==e.error&&function(t=[],e=[]){return t.length!==e.length||t.some(((t,r)=>!Object.is(t,e[r])))}(t.resetKeys,n)&&(this.props.onReset?.({next:n,prev:t.resetKeys,reason:"keys"}),this.setState(u))}render(){const{children:t,fallbackRender:e,FallbackComponent:r,fallback:s}=this.props,{didCatch:u,error:o}=this.state;let c=t;if(u){const t={error:o,resetErrorBoundary:this.resetErrorBoundary};if((0,n.isValidElement)(s))c=s;else if("function"===typeof e)c=e(t);else{if(!r)throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");c=(0,n.createElement)(r,t)}}return(0,n.createElement)(i.Provider,{value:{didCatch:u,error:o,resetErrorBoundary:this.resetErrorBoundary}},c)}}function c(t){if(null==t||"boolean"!==typeof t.didCatch||"function"!==typeof t.resetErrorBoundary)throw new Error("ErrorBoundaryContext not found");return!0}function a(){const t=(0,n.useContext)(i);c(t);const[e,r]=(0,n.useState)({error:null,hasError:!1}),s=(0,n.useMemo)((()=>({resetBoundary:()=>{t?.resetErrorBoundary(),r({error:null,hasError:!1})},showBoundary:t=>r({error:t,hasError:!0})})),[t?.resetErrorBoundary]);if(e.hasError)throw e.error;return s}s({},"useErrorBoundary",(()=>a));function l(t,e){const r=r=>(0,n.createElement)(o,e,(0,n.createElement)(t,r)),s=t.displayName||t.name||"Unknown";return r.displayName=`withErrorBoundary(${s})`,r}s({},"withErrorBoundary",(()=>l))},35067:function(t,e,r){r.d(e,{h:function(){return u}});var n=r(31014);function s(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}const i=n.createContext(s()),u=()=>n.useContext(i)},41261:function(t,e,r){r.d(e,{I:function(){return u}});var n=r(45586),s=r(28999),i=r(44200);function u(t,e,r){const u=(0,s.vh)(t,e,r);return(0,i.t)(u,n.$)}},41698:function(t,e,r){r.d(e,{EU:function(){return s},iL:function(){return i},tu:function(){return n}});const n=t=>{t.suspense&&"number"!==typeof t.staleTime&&(t.staleTime=1e3)},s=(t,e,r)=>(null==t?void 0:t.suspense)&&((t,e)=>t.isLoading&&t.isFetching&&!e)(e,r),i=(t,e,r)=>e.fetchOptimistic(t).then((({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)})).catch((e=>{r.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)}))},44200:function(t,e,r){r.d(e,{t:function(){return h}});var n=r(31014),s=r(61226),i=r(95904),u=r(35067),o=r(27288),c=r(26737),a=r(52165),l=r(41698);function h(t,e){const r=(0,o.jE)({context:t.context}),h=(0,c.w)(),d=(0,u.h)(),f=r.defaultQueryOptions(t);f._optimisticResults=h?"isRestoring":"optimistic",f.onError&&(f.onError=i.j.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=i.j.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=i.j.batchCalls(f.onSettled)),(0,l.tu)(f),(0,a.LJ)(f,d),(0,a.wZ)(d);const[p]=n.useState((()=>new e(r,f))),y=p.getOptimisticResult(f);if((0,s.r)(n.useCallback((t=>{const e=h?()=>{}:p.subscribe(i.j.batchCalls(t));return p.updateResult(),e}),[p,h]),(()=>p.getCurrentResult()),(()=>p.getCurrentResult())),n.useEffect((()=>{p.setOptions(f,{listeners:!1})}),[f,p]),(0,l.EU)(f,y,h))throw(0,l.iL)(f,p,d);if((0,a.$1)({result:y,errorResetBoundary:d,useErrorBoundary:f.useErrorBoundary,query:p.getCurrentQuery()}))throw y.error;return f.notifyOnChangeProps?y:p.trackResult(y)}},45586:function(t,e,r){r.d(e,{$:function(){return c}});var n=r(28999),s=r(95904),i=r(47125),u=r(21363),o=r(98159);class c extends u.Q{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),a(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),(0,n.f8)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&h(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(e),!i||this.currentQuery===s&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();const u=this.computeRefetchInterval();!i||this.currentQuery===s&&this.options.enabled===r.enabled&&u===this.currentRefetchInterval||this.updateRefetchInterval(u)}getOptimisticResult(t){const e=this.client.getQueryCache().build(this.client,t);return this.createResult(e,t)}getCurrentResult(){return this.currentResult}trackResult(t){const e={};return Object.keys(t).forEach((r=>{Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})})),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){const e=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,e);return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,e)))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(n.lQ)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),n.S$||this.currentResult.isStale||!(0,n.gn)(this.options.staleTime))return;const t=(0,n.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),t)}computeRefetchInterval(){var t;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!n.S$&&!1!==this.options.enabled&&(0,n.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){const r=this.currentQuery,s=this.options,i=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,l=t!==r,f=l?t.state:this.currentQueryInitialState,p=l?this.currentResult:this.previousQueryResult,{state:y}=t;let v,{dataUpdatedAt:m,error:R,errorUpdatedAt:b,fetchStatus:E,status:S}=y,g=!1,C=!1;if(e._optimisticResults){const n=this.hasListeners(),i=!n&&a(t,e),u=n&&h(t,r,e,s);(i||u)&&(E=(0,o.v_)(t.options.networkMode)?"fetching":"paused",m||(S="loading")),"isRestoring"===e._optimisticResults&&(E="idle")}if(e.keepPreviousData&&!y.dataUpdatedAt&&null!=p&&p.isSuccess&&"error"!==S)v=p.data,m=p.dataUpdatedAt,S=p.status,g=!0;else if(e.select&&"undefined"!==typeof y.data)if(i&&y.data===(null==u?void 0:u.data)&&e.select===this.selectFn)v=this.selectResult;else try{this.selectFn=e.select,v=e.select(y.data),v=(0,n.pl)(null==i?void 0:i.data,v,e),this.selectResult=v,this.selectError=null}catch(I){0,this.selectError=I}else v=y.data;if("undefined"!==typeof e.placeholderData&&"undefined"===typeof v&&"loading"===S){let t;if(null!=i&&i.isPlaceholderData&&e.placeholderData===(null==c?void 0:c.placeholderData))t=i.data;else if(t="function"===typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&"undefined"!==typeof t)try{t=e.select(t),this.selectError=null}catch(I){0,this.selectError=I}"undefined"!==typeof t&&(S="success",v=(0,n.pl)(null==i?void 0:i.data,t,e),C=!0)}this.selectError&&(R=this.selectError,v=this.selectResult,b=Date.now(),S="error");const O="fetching"===E,w="loading"===S,Q="error"===S;return{status:S,fetchStatus:E,isLoading:w,isSuccess:"success"===S,isError:Q,isInitialLoading:w&&O,data:v,dataUpdatedAt:m,error:R,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>f.dataUpdateCount||y.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!w,isLoadingError:Q&&0===y.dataUpdatedAt,isPaused:"paused"===E,isPlaceholderData:C,isPreviousData:g,isRefetchError:Q&&0!==y.dataUpdatedAt,isStale:d(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){const e=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,n.f8)(r,e))return;this.currentResult=r;const s={cache:!0};!1!==(null==t?void 0:t.listeners)&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options;if("all"===t||!t&&!this.trackedProps.size)return!0;const r=new Set(null!=t?t:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((t=>{const n=t;return this.currentResult[n]!==e[n]&&r.has(n)}))})()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||(0,o.wm)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){s.j.batch((()=>{var e,r,n,s;if(t.onSuccess)null==(e=(r=this.options).onSuccess)||e.call(r,this.currentResult.data),null==(n=(s=this.options).onSettled)||n.call(s,this.currentResult.data,null);else if(t.onError){var i,u,o,c;null==(i=(u=this.options).onError)||i.call(u,this.currentResult.error),null==(o=(c=this.options).onSettled)||o.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach((({listener:t})=>{t(this.currentResult)})),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function a(t,e){return function(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&l(t,e,e.refetchOnMount)}function l(t,e,r){if(!1!==e.enabled){const n="function"===typeof r?r(t):r;return"always"===n||!1!==n&&d(t,e)}return!1}function h(t,e,r,n){return!1!==r.enabled&&(t!==e||!1===n.enabled)&&(!r.suspense||"error"!==t.state.status)&&d(t,r)}function d(t,e){return t.isStaleByTime(e.staleTime)}},52165:function(t,e,r){r.d(e,{$1:function(){return o},LJ:function(){return i},wZ:function(){return u}});var n=r(31014),s=r(71233);const i=(t,e)=>{(t.suspense||t.useErrorBoundary)&&(e.isReset()||(t.retryOnMount=!1))},u=t=>{n.useEffect((()=>{t.clearReset()}),[t])},o=({result:t,errorResetBoundary:e,useErrorBoundary:r,query:n})=>t.isError&&!e.isReset()&&!t.isFetching&&(0,s.G)(r,[t.error,n])},61226:function(t,e,r){r.d(e,{r:function(){return n}});const n=r(18930).useSyncExternalStore},71233:function(t,e,r){function n(t,e){return"function"===typeof t?t(...e):!!t}r.d(e,{G:function(){return n}})},76137:function(t,e,r){r.d(e,{YQ:function(){return s}});var n=r(31014);function s(t,e,r){var s=this,i=(0,n.useRef)(null),u=(0,n.useRef)(0),o=(0,n.useRef)(null),c=(0,n.useRef)([]),a=(0,n.useRef)(),l=(0,n.useRef)(),h=(0,n.useRef)(t),d=(0,n.useRef)(!0);h.current=t;var f="undefined"!=typeof window,p=!e&&0!==e&&f;if("function"!=typeof t)throw new TypeError("Expected a function");e=+e||0;var y=!!(r=r||{}).leading,v=!("trailing"in r)||!!r.trailing,m="maxWait"in r,R="debounceOnServer"in r&&!!r.debounceOnServer,b=m?Math.max(+r.maxWait||0,e):null;(0,n.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var E=(0,n.useMemo)((function(){var t=function(t){var e=c.current,r=a.current;return c.current=a.current=null,u.current=t,l.current=h.current.apply(r,e)},r=function(t,e){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(t):setTimeout(t,e)},n=function(t){if(!d.current)return!1;var r=t-i.current;return!i.current||r>=e||r<0||m&&t-u.current>=b},E=function(e){return o.current=null,v&&c.current?t(e):(c.current=a.current=null,l.current)},S=function t(){var s=Date.now();if(n(s))return E(s);if(d.current){var o=e-(s-i.current),c=m?Math.min(o,b-(s-u.current)):o;r(t,c)}},g=function(){if(f||R){var h=Date.now(),p=n(h);if(c.current=[].slice.call(arguments),a.current=s,i.current=h,p){if(!o.current&&d.current)return u.current=i.current,r(S,e),y?t(i.current):l.current;if(m)return r(S,e),t(i.current)}return o.current||r(S,e),l.current}};return g.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),u.current=0,c.current=i.current=a.current=o.current=null},g.isPending=function(){return!!o.current},g.flush=function(){return o.current?E(Date.now()):l.current},g}),[y,m,e,b,v,p,f,R]);return E}},77020:function(t,e,r){r.d(e,{n:function(){return d}});var n=r(31014),s=r(61226),i=r(28999),u=r(84865),o=r(95904),c=r(21363);class a extends c.Q{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;const r=this.options;this.options=this.client.defaultMutationOptions(t),(0,i.f8)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(null==(t=this.currentMutation)||t.removeObserver(this))}onMutationUpdate(t){this.updateResult();const e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:"undefined"!==typeof t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:(0,u.$)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){o.j.batch((()=>{var e,r,n,s;if(this.mutateOptions&&this.hasListeners())if(t.onSuccess)null==(e=(r=this.mutateOptions).onSuccess)||e.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(s=this.mutateOptions).onSettled)||n.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(t.onError){var i,u,o,c;null==(i=(u=this.mutateOptions).onError)||i.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(o=(c=this.mutateOptions).onSettled)||o.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}t.listeners&&this.listeners.forEach((({listener:t})=>{t(this.currentResult)}))}))}}var l=r(27288),h=r(71233);function d(t,e,r){const u=(0,i.GR)(t,e,r),c=(0,l.jE)({context:u.context}),[d]=n.useState((()=>new a(c,u)));n.useEffect((()=>{d.setOptions(u)}),[d,u]);const p=(0,s.r)(n.useCallback((t=>d.subscribe(o.j.batchCalls(t))),[d]),(()=>d.getCurrentResult()),(()=>d.getCurrentResult())),y=n.useCallback(((t,e)=>{d.mutate(t,e).catch(f)}),[d]);if(p.error&&(0,h.G)(d.options.useErrorBoundary,[p.error]))throw p.error;return{...p,mutate:y,mutateAsync:p.mutate}}function f(){}},91231:function(t,e,r){var n=r(31014);var s="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},i=n.useState,u=n.useEffect,o=n.useLayoutEffect,c=n.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!s(t,r)}catch(n){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=i({inst:{value:r,getSnapshot:e}}),s=n[0].inst,l=n[1];return o((function(){s.value=r,s.getSnapshot=e,a(s)&&l({inst:s})}),[t,r,e]),u((function(){return a(s)&&l({inst:s}),t((function(){a(s)&&l({inst:s})}))}),[t]),c(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},96950:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useClipboard=void 0;var s=n(r(42999)),i=r(31014),u=r(38298);function o(t){return t&&("TEXTAREA"===t.nodeName||"INPUT"===t.nodeName)}e.useClipboard=function(t){void 0===t&&(t={});var e=u.useTimedToggle(!1),r=e[0],n=e[1],c=i.useRef(null),a=i.useRef(t);return a.current=t,{copied:r,copy:i.useCallback((function(t){var e=a.current,r=c.current;function i(){e.onSuccess&&e.onSuccess(),e.copiedTimeout&&n(e.copiedTimeout),e.selectOnCopy&&o(r)&&r.select()}function u(){e.onError&&e.onError(),!1!==e.selectOnError&&o(r)&&r.select()}function l(t){s.default(t).then(i).catch(u)}"string"===typeof t?l(t):r&&l(r.value)}),[]),isSupported:function(){return!!navigator.clipboard||"function"===typeof document.execCommand&&"function"===typeof document.queryCommandSupported&&document.queryCommandSupported("copy")},target:c}}}}]); +//# sourceMappingURL=6674.568e5d25.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js.LICENSE.txt b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..766e1cae3f1a43bb5720588bd66f68674e5cb279 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * use-sync-external-store-shim.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c054e9aa8298c0b1e3970cce8b2b88f5d0098233 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6674.568e5d25.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6674.568e5d25.chunk.js","mappings":";uHAGEA,EAAOC,QAAU,EAAjBD,M,uECAF,MAAAE,EAAAC,EAAAA,eAAA,GAEOC,EAAAA,IAAAD,EAAAA,WAAAD,GACMA,EAAAG,Q,sOCEN,MAAMC,GACX,EAAAC,EAAAA,eAA+C,MCK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AQU,OAAOzR,GAwChC,OAvCA0R,EAAWrF,QAAUrM,EAuCd,CACHsR,OAAQA,EACRK,KAlCcZ,EAAQa,aAAY,SAAUC,GAC5C,IAAIC,EAAOJ,EAAWrF,QAClB0F,EAASP,EAAUnF,QACvB,SAAS2F,IACDF,EAAKlS,WACLkS,EAAKlS,YAELkS,EAAKG,eACLV,EAAaO,EAAKG,eAElBH,EAAKI,cAAgBjB,EAAYc,IACjCA,EAAO3J,QAEf,CACA,SAAS+J,IACDL,EAAKzW,SACLyW,EAAKzW,WAEkB,IAAvByW,EAAKM,eAA2BnB,EAAYc,IAC5CA,EAAO3J,QAEf,CACA,SAASuJ,EAAK7U,GACVgU,EAAiBuB,QAAQvV,GAAO4C,KAAKsS,GAAelS,MAAMqS,EAC9D,CACoB,kBAATN,EACPF,EAAKE,GAEAE,GACLJ,EAAKI,EAAOjV,MAEpB,GAAG,IAICwV,YAzCJ,WACI,QAAUC,UAAUC,WACiB,oBAAzBlC,SAASmC,aAC6B,oBAAnCnC,SAASoC,uBAChBpC,SAASoC,sBAAsB,OAC3C,EAqCIX,OAAQP,EAEhB,C","sources":["../node_modules/use-sync-external-store/shim/index.js","../node_modules/@tanstack/react-query/src/isRestoring.tsx","../node_modules/react-error-boundary/dist/src/ErrorBoundaryContext.ts","../node_modules/react-error-boundary/dist/src/ErrorBoundary.ts","../node_modules/react-error-boundary/dist/src/assertErrorBoundaryContext.ts","../node_modules/react-error-boundary/dist/src/useErrorBoundary.ts","../node_modules/react-error-boundary/dist/src/withErrorBoundary.ts","../node_modules/@tanstack/react-query/src/QueryErrorResetBoundary.tsx","../node_modules/@tanstack/react-query/src/useQuery.ts","../node_modules/@tanstack/react-query/src/suspense.ts","../node_modules/@tanstack/react-query/src/useBaseQuery.ts","../node_modules/@tanstack/query-core/src/queryObserver.ts","../node_modules/@tanstack/react-query/src/errorBoundaryUtils.ts","../node_modules/@tanstack/react-query/src/useSyncExternalStore.ts","../node_modules/@tanstack/react-query/src/utils.ts","../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/@tanstack/query-core/src/mutationObserver.ts","../node_modules/@tanstack/react-query/src/useMutation.ts","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/use-clipboard-copy/dist/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","'use client'\nimport * as React from 'react'\n\nconst IsRestoringContext = React.createContext(false)\n\nexport const useIsRestoring = () => React.useContext(IsRestoringContext)\nexport const IsRestoringProvider = IsRestoringContext.Provider\n","import { createContext } from \"react\";\n\nexport type ErrorBoundaryContextType = {\n didCatch: boolean;\n error: any;\n resetErrorBoundary: (...args: any[]) => void;\n};\n\nexport const ErrorBoundaryContext =\n createContext(null);\n","import {\n Component,\n createElement,\n ErrorInfo,\n isValidElement,\n PropsWithChildren,\n PropsWithRef,\n ReactElement,\n} from \"react\";\nimport { ErrorBoundaryContext } from \"./ErrorBoundaryContext\";\nimport { ErrorBoundaryProps, FallbackProps } from \"./types\";\n\ntype ErrorBoundaryState = { didCatch: boolean; error: any };\n\nconst initialState: ErrorBoundaryState = {\n didCatch: false,\n error: null,\n};\n\nexport class ErrorBoundary extends Component<\n PropsWithRef>,\n ErrorBoundaryState\n> {\n state = initialState;\n\n static getDerivedStateFromError(error: Error) {\n return { didCatch: true, error };\n }\n\n resetErrorBoundary = (...args: any[]) => {\n const { error } = this.state;\n\n if (error !== null) {\n this.props.onReset?.({\n args,\n reason: \"imperative-api\",\n });\n\n this.setState(initialState);\n }\n };\n\n componentDidCatch(error: Error, info: ErrorInfo) {\n this.props.onError?.(error, info);\n }\n\n componentDidUpdate(\n prevProps: ErrorBoundaryProps,\n prevState: ErrorBoundaryState\n ) {\n const { didCatch } = this.state;\n const { resetKeys } = this.props;\n\n // There's an edge case where if the thing that triggered the error happens to *also* be in the resetKeys array,\n // we'd end up resetting the error boundary immediately.\n // This would likely trigger a second error to be thrown.\n // So we make sure that we don't check the resetKeys on the first call of cDU after the error is set.\n\n if (\n didCatch &&\n prevState.error !== null &&\n hasArrayChanged(prevProps.resetKeys, resetKeys)\n ) {\n this.props.onReset?.({\n next: resetKeys,\n prev: prevProps.resetKeys,\n reason: \"keys\",\n });\n\n this.setState(initialState);\n }\n }\n\n render() {\n const { children, fallbackRender, FallbackComponent, fallback } =\n this.props;\n const { didCatch, error } = this.state;\n\n let childToRender = children;\n\n if (didCatch) {\n const props: FallbackProps = {\n error,\n resetErrorBoundary: this.resetErrorBoundary,\n };\n\n if (isValidElement(fallback)) {\n childToRender = fallback;\n } else if (typeof fallbackRender === \"function\") {\n childToRender = fallbackRender(props);\n } else if (FallbackComponent) {\n childToRender = createElement(FallbackComponent, props);\n } else {\n throw new Error(\n \"react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop\"\n );\n }\n }\n\n return createElement(\n ErrorBoundaryContext.Provider,\n {\n value: {\n didCatch,\n error,\n resetErrorBoundary: this.resetErrorBoundary,\n },\n },\n childToRender\n ) as ReactElement;\n }\n}\n\nfunction hasArrayChanged(a: any[] = [], b: any[] = []) {\n return (\n a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]))\n );\n}\n","import { ErrorBoundaryContextType } from \"./ErrorBoundaryContext\";\n\nexport function assertErrorBoundaryContext(\n value: any\n): value is ErrorBoundaryContextType {\n if (\n value == null ||\n typeof value.didCatch !== \"boolean\" ||\n typeof value.resetErrorBoundary !== \"function\"\n ) {\n throw new Error(\"ErrorBoundaryContext not found\");\n }\n\n return true;\n}\n","import { useContext, useMemo, useState } from \"react\";\nimport { assertErrorBoundaryContext } from \"./assertErrorBoundaryContext\";\nimport { ErrorBoundaryContext } from \"./ErrorBoundaryContext\";\n\nexport type UseErrorBoundaryApi = {\n resetBoundary: () => void;\n showBoundary: (error: Error) => void;\n};\n\nexport function useErrorBoundary(): UseErrorBoundaryApi {\n const context = useContext(ErrorBoundaryContext);\n\n assertErrorBoundaryContext(context);\n\n const [state, setState] = useState<{\n error: Error | null;\n hasError: boolean;\n }>({\n error: null,\n hasError: false,\n });\n\n const memoized = useMemo(\n () => ({\n resetBoundary: () => {\n context?.resetErrorBoundary();\n setState({ error: null, hasError: false });\n },\n showBoundary: (error: Error) =>\n setState({\n error,\n hasError: true,\n }),\n }),\n [context?.resetErrorBoundary]\n );\n\n if (state.hasError) {\n throw state.error;\n }\n\n return memoized;\n}\n","import { ComponentType, createElement } from \"react\";\nimport { ErrorBoundary } from \"./ErrorBoundary\";\nimport { ErrorBoundaryProps } from \"./types\";\n\nexport function withErrorBoundary(\n Component: ComponentType,\n errorBoundaryProps: ErrorBoundaryProps\n): ComponentType {\n const Wrapped: ComponentType = (props: Props) => {\n return createElement(\n ErrorBoundary,\n errorBoundaryProps,\n createElement(Component, props)\n );\n };\n\n // Format for display in DevTools\n const name = Component.displayName || Component.name || \"Unknown\";\n Wrapped.displayName = `withErrorBoundary(${name})`;\n\n return Wrapped;\n}\n","'use client'\nimport * as React from 'react'\n\n// CONTEXT\n\nexport interface QueryErrorResetBoundaryValue {\n clearReset: () => void\n isReset: () => boolean\n reset: () => void\n}\n\nfunction createValue(): QueryErrorResetBoundaryValue {\n let isReset = false\n return {\n clearReset: () => {\n isReset = false\n },\n reset: () => {\n isReset = true\n },\n isReset: () => {\n return isReset\n },\n }\n}\n\nconst QueryErrorResetBoundaryContext = React.createContext(createValue())\n\n// HOOK\n\nexport const useQueryErrorResetBoundary = () =>\n React.useContext(QueryErrorResetBoundaryContext)\n\n// COMPONENT\n\nexport interface QueryErrorResetBoundaryProps {\n children:\n | ((value: QueryErrorResetBoundaryValue) => React.ReactNode)\n | React.ReactNode\n}\n\nexport const QueryErrorResetBoundary = ({\n children,\n}: QueryErrorResetBoundaryProps) => {\n const [value] = React.useState(() => createValue())\n return (\n \n {typeof children === 'function'\n ? (children as Function)(value)\n : children}\n \n )\n}\n","import 'client-only'\nimport type { QueryFunction, QueryKey } from '@tanstack/query-core'\nimport { parseQueryArgs, QueryObserver } from '@tanstack/query-core'\nimport type {\n DefinedUseQueryResult,\n UseQueryOptions,\n UseQueryResult,\n} from './types'\nimport { useBaseQuery } from './useBaseQuery'\n\n// HOOK\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: Omit<\n UseQueryOptions,\n 'initialData'\n > & { initialData?: () => undefined },\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: Omit<\n UseQueryOptions,\n 'initialData'\n > & { initialData: TQueryFnData | (() => TQueryFnData) },\n): DefinedUseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions,\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n options?: Omit<\n UseQueryOptions,\n 'queryKey' | 'initialData'\n > & { initialData?: () => undefined },\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n options?: Omit<\n UseQueryOptions,\n 'queryKey' | 'initialData'\n > & { initialData: TQueryFnData | (() => TQueryFnData) },\n): DefinedUseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n options?: Omit<\n UseQueryOptions,\n 'queryKey'\n >,\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n queryFn: QueryFunction,\n options?: Omit<\n UseQueryOptions,\n 'queryKey' | 'queryFn' | 'initialData'\n > & { initialData?: () => undefined },\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n queryFn: QueryFunction,\n options?: Omit<\n UseQueryOptions,\n 'queryKey' | 'queryFn' | 'initialData'\n > & { initialData: TQueryFnData | (() => TQueryFnData) },\n): DefinedUseQueryResult\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n queryKey: TQueryKey,\n queryFn: QueryFunction,\n options?: Omit<\n UseQueryOptions,\n 'queryKey' | 'queryFn'\n >,\n): UseQueryResult\n\nexport function useQuery<\n TQueryFnData,\n TError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n arg1: TQueryKey | UseQueryOptions,\n arg2?:\n | QueryFunction\n | UseQueryOptions,\n arg3?: UseQueryOptions,\n): UseQueryResult {\n const parsedOptions = parseQueryArgs(arg1, arg2, arg3)\n return useBaseQuery(parsedOptions, QueryObserver)\n}\n","import type { DefaultedQueryObserverOptions } from '@tanstack/query-core'\nimport type { QueryObserver } from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\nimport type { QueryObserverResult } from '@tanstack/query-core'\nimport type { QueryKey } from '@tanstack/query-core'\n\nexport const ensureStaleTime = (\n defaultedOptions: DefaultedQueryObserverOptions,\n) => {\n if (defaultedOptions.suspense) {\n // Always set stale time when using suspense to prevent\n // fetching again when directly mounting after suspending\n if (typeof defaultedOptions.staleTime !== 'number') {\n defaultedOptions.staleTime = 1000\n }\n }\n}\n\nexport const willFetch = (\n result: QueryObserverResult,\n isRestoring: boolean,\n) => result.isLoading && result.isFetching && !isRestoring\n\nexport const shouldSuspend = (\n defaultedOptions:\n | DefaultedQueryObserverOptions\n | undefined,\n result: QueryObserverResult,\n isRestoring: boolean,\n) => defaultedOptions?.suspense && willFetch(result, isRestoring)\n\nexport const fetchOptimistic = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n defaultedOptions: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n observer: QueryObserver,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) =>\n observer\n .fetchOptimistic(defaultedOptions)\n .then(({ data }) => {\n defaultedOptions.onSuccess?.(data as TData)\n defaultedOptions.onSettled?.(data, null)\n })\n .catch((error) => {\n errorResetBoundary.clearReset()\n defaultedOptions.onError?.(error)\n defaultedOptions.onSettled?.(undefined, error)\n })\n","import 'client-only'\nimport * as React from 'react'\nimport { useSyncExternalStore } from './useSyncExternalStore'\n\nimport type { QueryKey, QueryObserver } from '@tanstack/query-core'\nimport { notifyManager } from '@tanstack/query-core'\nimport { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'\nimport { useQueryClient } from './QueryClientProvider'\nimport type { UseBaseQueryOptions } from './types'\nimport { useIsRestoring } from './isRestoring'\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary,\n} from './errorBoundaryUtils'\nimport { ensureStaleTime, shouldSuspend, fetchOptimistic } from './suspense'\n\nexport function useBaseQuery<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: UseBaseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n Observer: typeof QueryObserver,\n) {\n const queryClient = useQueryClient({ context: options.context })\n const isRestoring = useIsRestoring()\n const errorResetBoundary = useQueryErrorResetBoundary()\n const defaultedOptions = queryClient.defaultQueryOptions(options)\n\n // Make sure results are optimistically set in fetching state before subscribing or updating options\n defaultedOptions._optimisticResults = isRestoring\n ? 'isRestoring'\n : 'optimistic'\n\n // Include callbacks in batch renders\n if (defaultedOptions.onError) {\n defaultedOptions.onError = notifyManager.batchCalls(\n defaultedOptions.onError,\n )\n }\n\n if (defaultedOptions.onSuccess) {\n defaultedOptions.onSuccess = notifyManager.batchCalls(\n defaultedOptions.onSuccess,\n )\n }\n\n if (defaultedOptions.onSettled) {\n defaultedOptions.onSettled = notifyManager.batchCalls(\n defaultedOptions.onSettled,\n )\n }\n\n ensureStaleTime(defaultedOptions)\n ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary)\n\n useClearResetErrorBoundary(errorResetBoundary)\n\n const [observer] = React.useState(\n () =>\n new Observer(\n queryClient,\n defaultedOptions,\n ),\n )\n\n const result = observer.getOptimisticResult(defaultedOptions)\n\n useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => {\n const unsubscribe = isRestoring\n ? () => undefined\n : observer.subscribe(notifyManager.batchCalls(onStoreChange))\n\n // Update result to make sure we did not miss any query updates\n // between creating the observer and subscribing to it.\n observer.updateResult()\n\n return unsubscribe\n },\n [observer, isRestoring],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n React.useEffect(() => {\n // Do not notify on updates because of changes in the options because\n // these changes should already be reflected in the optimistic result.\n observer.setOptions(defaultedOptions, { listeners: false })\n }, [defaultedOptions, observer])\n\n // Handle suspense\n if (shouldSuspend(defaultedOptions, result, isRestoring)) {\n throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n }\n\n // Handle error boundary\n if (\n getHasError({\n result,\n errorResetBoundary,\n useErrorBoundary: defaultedOptions.useErrorBoundary,\n query: observer.getCurrentQuery(),\n })\n ) {\n throw result.error\n }\n\n // Handle result property usage tracking\n return !defaultedOptions.notifyOnChangeProps\n ? observer.trackResult(result)\n : result\n}\n","import type { DefaultedQueryObserverOptions, RefetchPageFilters } from './types'\nimport {\n isServer,\n isValidTimeout,\n noop,\n replaceData,\n shallowEqualObjects,\n timeUntilStale,\n} from './utils'\nimport { notifyManager } from './notifyManager'\nimport type {\n PlaceholderDataFunction,\n QueryKey,\n QueryObserverBaseResult,\n QueryObserverOptions,\n QueryObserverResult,\n QueryOptions,\n RefetchOptions,\n} from './types'\nimport type { Query, QueryState, Action, FetchOptions } from './query'\nimport type { QueryClient } from './queryClient'\nimport { focusManager } from './focusManager'\nimport { Subscribable } from './subscribable'\nimport { canFetch, isCancelledError } from './retryer'\n\ntype QueryObserverListener = (\n result: QueryObserverResult,\n) => void\n\nexport interface NotifyOptions {\n cache?: boolean\n listeners?: boolean\n onError?: boolean\n onSuccess?: boolean\n}\n\nexport interface ObserverFetchOptions extends FetchOptions {\n throwOnError?: boolean\n}\n\nexport class QueryObserver<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> extends Subscribable> {\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >\n\n private client: QueryClient\n private currentQuery!: Query\n private currentQueryInitialState!: QueryState\n private currentResult!: QueryObserverResult\n private currentResultState?: QueryState\n private currentResultOptions?: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >\n private previousQueryResult?: QueryObserverResult\n private selectError: TError | null\n private selectFn?: (data: TQueryData) => TData\n private selectResult?: TData\n private staleTimeoutId?: ReturnType\n private refetchIntervalId?: ReturnType\n private currentRefetchInterval?: number | false\n private trackedProps!: Set\n\n constructor(\n client: QueryClient,\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ) {\n super()\n\n this.client = client\n this.options = options\n this.trackedProps = new Set()\n this.selectError = null\n this.bindMethods()\n this.setOptions(options)\n }\n\n protected bindMethods(): void {\n this.remove = this.remove.bind(this)\n this.refetch = this.refetch.bind(this)\n }\n\n protected onSubscribe(): void {\n if (this.listeners.size === 1) {\n this.currentQuery.addObserver(this)\n\n if (shouldFetchOnMount(this.currentQuery, this.options)) {\n this.executeFetch()\n }\n\n this.updateTimers()\n }\n }\n\n protected onUnsubscribe(): void {\n if (!this.hasListeners()) {\n this.destroy()\n }\n }\n\n shouldFetchOnReconnect(): boolean {\n return shouldFetchOn(\n this.currentQuery,\n this.options,\n this.options.refetchOnReconnect,\n )\n }\n\n shouldFetchOnWindowFocus(): boolean {\n return shouldFetchOn(\n this.currentQuery,\n this.options,\n this.options.refetchOnWindowFocus,\n )\n }\n\n destroy(): void {\n this.listeners = new Set()\n this.clearStaleTimeout()\n this.clearRefetchInterval()\n this.currentQuery.removeObserver(this)\n }\n\n setOptions(\n options?: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n notifyOptions?: NotifyOptions,\n ): void {\n const prevOptions = this.options\n const prevQuery = this.currentQuery\n\n this.options = this.client.defaultQueryOptions(options)\n\n if (\n process.env.NODE_ENV !== 'production' &&\n typeof options?.isDataEqual !== 'undefined'\n ) {\n this.client\n .getLogger()\n .error(\n `The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option`,\n )\n }\n\n if (!shallowEqualObjects(prevOptions, this.options)) {\n this.client.getQueryCache().notify({\n type: 'observerOptionsUpdated',\n query: this.currentQuery,\n observer: this,\n })\n }\n\n if (\n typeof this.options.enabled !== 'undefined' &&\n typeof this.options.enabled !== 'boolean'\n ) {\n throw new Error('Expected enabled to be a boolean')\n }\n\n // Keep previous query key if the user does not supply one\n if (!this.options.queryKey) {\n this.options.queryKey = prevOptions.queryKey\n }\n\n this.updateQuery()\n\n const mounted = this.hasListeners()\n\n // Fetch if there are subscribers\n if (\n mounted &&\n shouldFetchOptionally(\n this.currentQuery,\n prevQuery,\n this.options,\n prevOptions,\n )\n ) {\n this.executeFetch()\n }\n\n // Update result\n this.updateResult(notifyOptions)\n\n // Update stale interval if needed\n if (\n mounted &&\n (this.currentQuery !== prevQuery ||\n this.options.enabled !== prevOptions.enabled ||\n this.options.staleTime !== prevOptions.staleTime)\n ) {\n this.updateStaleTimeout()\n }\n\n const nextRefetchInterval = this.computeRefetchInterval()\n\n // Update refetch interval if needed\n if (\n mounted &&\n (this.currentQuery !== prevQuery ||\n this.options.enabled !== prevOptions.enabled ||\n nextRefetchInterval !== this.currentRefetchInterval)\n ) {\n this.updateRefetchInterval(nextRefetchInterval)\n }\n }\n\n getOptimisticResult(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): QueryObserverResult {\n const query = this.client.getQueryCache().build(this.client, options)\n\n return this.createResult(query, options)\n }\n\n getCurrentResult(): QueryObserverResult {\n return this.currentResult\n }\n\n trackResult(\n result: QueryObserverResult,\n ): QueryObserverResult {\n const trackedResult = {} as QueryObserverResult\n\n Object.keys(result).forEach((key) => {\n Object.defineProperty(trackedResult, key, {\n configurable: false,\n enumerable: true,\n get: () => {\n this.trackedProps.add(key as keyof QueryObserverResult)\n return result[key as keyof QueryObserverResult]\n },\n })\n })\n\n return trackedResult\n }\n\n getCurrentQuery(): Query {\n return this.currentQuery\n }\n\n remove(): void {\n this.client.getQueryCache().remove(this.currentQuery)\n }\n\n refetch({\n refetchPage,\n ...options\n }: RefetchOptions & RefetchPageFilters = {}): Promise<\n QueryObserverResult\n > {\n return this.fetch({\n ...options,\n meta: { refetchPage },\n })\n }\n\n fetchOptimistic(\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): Promise> {\n const defaultedOptions = this.client.defaultQueryOptions(options)\n\n const query = this.client\n .getQueryCache()\n .build(this.client, defaultedOptions)\n query.isFetchingOptimistic = true\n\n return query.fetch().then(() => this.createResult(query, defaultedOptions))\n }\n\n protected fetch(\n fetchOptions: ObserverFetchOptions,\n ): Promise> {\n return this.executeFetch({\n ...fetchOptions,\n cancelRefetch: fetchOptions.cancelRefetch ?? true,\n }).then(() => {\n this.updateResult()\n return this.currentResult\n })\n }\n\n private executeFetch(\n fetchOptions?: ObserverFetchOptions,\n ): Promise {\n // Make sure we reference the latest query as the current one might have been removed\n this.updateQuery()\n\n // Fetch\n let promise: Promise = this.currentQuery.fetch(\n this.options as QueryOptions,\n fetchOptions,\n )\n\n if (!fetchOptions?.throwOnError) {\n promise = promise.catch(noop)\n }\n\n return promise\n }\n\n private updateStaleTimeout(): void {\n this.clearStaleTimeout()\n\n if (\n isServer ||\n this.currentResult.isStale ||\n !isValidTimeout(this.options.staleTime)\n ) {\n return\n }\n\n const time = timeUntilStale(\n this.currentResult.dataUpdatedAt,\n this.options.staleTime,\n )\n\n // The timeout is sometimes triggered 1 ms before the stale time expiration.\n // To mitigate this issue we always add 1 ms to the timeout.\n const timeout = time + 1\n\n this.staleTimeoutId = setTimeout(() => {\n if (!this.currentResult.isStale) {\n this.updateResult()\n }\n }, timeout)\n }\n\n private computeRefetchInterval() {\n return typeof this.options.refetchInterval === 'function'\n ? this.options.refetchInterval(this.currentResult.data, this.currentQuery)\n : this.options.refetchInterval ?? false\n }\n\n private updateRefetchInterval(nextInterval: number | false): void {\n this.clearRefetchInterval()\n\n this.currentRefetchInterval = nextInterval\n\n if (\n isServer ||\n this.options.enabled === false ||\n !isValidTimeout(this.currentRefetchInterval) ||\n this.currentRefetchInterval === 0\n ) {\n return\n }\n\n this.refetchIntervalId = setInterval(() => {\n if (\n this.options.refetchIntervalInBackground ||\n focusManager.isFocused()\n ) {\n this.executeFetch()\n }\n }, this.currentRefetchInterval)\n }\n\n private updateTimers(): void {\n this.updateStaleTimeout()\n this.updateRefetchInterval(this.computeRefetchInterval())\n }\n\n private clearStaleTimeout(): void {\n if (this.staleTimeoutId) {\n clearTimeout(this.staleTimeoutId)\n this.staleTimeoutId = undefined\n }\n }\n\n private clearRefetchInterval(): void {\n if (this.refetchIntervalId) {\n clearInterval(this.refetchIntervalId)\n this.refetchIntervalId = undefined\n }\n }\n\n protected createResult(\n query: Query,\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): QueryObserverResult {\n const prevQuery = this.currentQuery\n const prevOptions = this.options\n const prevResult = this.currentResult as\n | QueryObserverResult\n | undefined\n const prevResultState = this.currentResultState\n const prevResultOptions = this.currentResultOptions\n const queryChange = query !== prevQuery\n const queryInitialState = queryChange\n ? query.state\n : this.currentQueryInitialState\n const prevQueryResult = queryChange\n ? this.currentResult\n : this.previousQueryResult\n\n const { state } = query\n let { dataUpdatedAt, error, errorUpdatedAt, fetchStatus, status } = state\n let isPreviousData = false\n let isPlaceholderData = false\n let data: TData | undefined\n\n // Optimistically set result in fetching state if needed\n if (options._optimisticResults) {\n const mounted = this.hasListeners()\n\n const fetchOnMount = !mounted && shouldFetchOnMount(query, options)\n\n const fetchOptionally =\n mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions)\n\n if (fetchOnMount || fetchOptionally) {\n fetchStatus = canFetch(query.options.networkMode)\n ? 'fetching'\n : 'paused'\n if (!dataUpdatedAt) {\n status = 'loading'\n }\n }\n if (options._optimisticResults === 'isRestoring') {\n fetchStatus = 'idle'\n }\n }\n\n // Keep previous data if needed\n if (\n options.keepPreviousData &&\n !state.dataUpdatedAt &&\n prevQueryResult?.isSuccess &&\n status !== 'error'\n ) {\n data = prevQueryResult.data\n dataUpdatedAt = prevQueryResult.dataUpdatedAt\n status = prevQueryResult.status\n isPreviousData = true\n }\n // Select data if needed\n else if (options.select && typeof state.data !== 'undefined') {\n // Memoize select result\n if (\n prevResult &&\n state.data === prevResultState?.data &&\n options.select === this.selectFn\n ) {\n data = this.selectResult\n } else {\n try {\n this.selectFn = options.select\n data = options.select(state.data)\n data = replaceData(prevResult?.data, data, options)\n this.selectResult = data\n this.selectError = null\n } catch (selectError) {\n if (process.env.NODE_ENV !== 'production') {\n this.client.getLogger().error(selectError)\n }\n this.selectError = selectError as TError\n }\n }\n }\n // Use query data\n else {\n data = state.data as unknown as TData\n }\n\n // Show placeholder data if needed\n if (\n typeof options.placeholderData !== 'undefined' &&\n typeof data === 'undefined' &&\n status === 'loading'\n ) {\n let placeholderData\n\n // Memoize placeholder data\n if (\n prevResult?.isPlaceholderData &&\n options.placeholderData === prevResultOptions?.placeholderData\n ) {\n placeholderData = prevResult.data\n } else {\n placeholderData =\n typeof options.placeholderData === 'function'\n ? (options.placeholderData as PlaceholderDataFunction)()\n : options.placeholderData\n if (options.select && typeof placeholderData !== 'undefined') {\n try {\n placeholderData = options.select(placeholderData)\n this.selectError = null\n } catch (selectError) {\n if (process.env.NODE_ENV !== 'production') {\n this.client.getLogger().error(selectError)\n }\n this.selectError = selectError as TError\n }\n }\n }\n\n if (typeof placeholderData !== 'undefined') {\n status = 'success'\n data = replaceData(prevResult?.data, placeholderData, options) as TData\n isPlaceholderData = true\n }\n }\n\n if (this.selectError) {\n error = this.selectError as any\n data = this.selectResult\n errorUpdatedAt = Date.now()\n status = 'error'\n }\n\n const isFetching = fetchStatus === 'fetching'\n const isLoading = status === 'loading'\n const isError = status === 'error'\n\n const result: QueryObserverBaseResult = {\n status,\n fetchStatus,\n isLoading,\n isSuccess: status === 'success',\n isError,\n isInitialLoading: isLoading && isFetching,\n data,\n dataUpdatedAt,\n error,\n errorUpdatedAt,\n failureCount: state.fetchFailureCount,\n failureReason: state.fetchFailureReason,\n errorUpdateCount: state.errorUpdateCount,\n isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,\n isFetchedAfterMount:\n state.dataUpdateCount > queryInitialState.dataUpdateCount ||\n state.errorUpdateCount > queryInitialState.errorUpdateCount,\n isFetching,\n isRefetching: isFetching && !isLoading,\n isLoadingError: isError && state.dataUpdatedAt === 0,\n isPaused: fetchStatus === 'paused',\n isPlaceholderData,\n isPreviousData,\n isRefetchError: isError && state.dataUpdatedAt !== 0,\n isStale: isStale(query, options),\n refetch: this.refetch,\n remove: this.remove,\n }\n\n return result as QueryObserverResult\n }\n\n updateResult(notifyOptions?: NotifyOptions): void {\n const prevResult = this.currentResult as\n | QueryObserverResult\n | undefined\n\n const nextResult = this.createResult(this.currentQuery, this.options)\n this.currentResultState = this.currentQuery.state\n this.currentResultOptions = this.options\n\n // Only notify and update result if something has changed\n if (shallowEqualObjects(nextResult, prevResult)) {\n return\n }\n\n this.currentResult = nextResult\n\n // Determine which callbacks to trigger\n const defaultNotifyOptions: NotifyOptions = { cache: true }\n\n const shouldNotifyListeners = (): boolean => {\n if (!prevResult) {\n return true\n }\n\n const { notifyOnChangeProps } = this.options\n\n if (\n notifyOnChangeProps === 'all' ||\n (!notifyOnChangeProps && !this.trackedProps.size)\n ) {\n return true\n }\n\n const includedProps = new Set(notifyOnChangeProps ?? this.trackedProps)\n\n if (this.options.useErrorBoundary) {\n includedProps.add('error')\n }\n\n return Object.keys(this.currentResult).some((key) => {\n const typedKey = key as keyof QueryObserverResult\n const changed = this.currentResult[typedKey] !== prevResult[typedKey]\n return changed && includedProps.has(typedKey)\n })\n }\n\n if (notifyOptions?.listeners !== false && shouldNotifyListeners()) {\n defaultNotifyOptions.listeners = true\n }\n\n this.notify({ ...defaultNotifyOptions, ...notifyOptions })\n }\n\n private updateQuery(): void {\n const query = this.client.getQueryCache().build(this.client, this.options)\n\n if (query === this.currentQuery) {\n return\n }\n\n const prevQuery = this.currentQuery as\n | Query\n | undefined\n this.currentQuery = query\n this.currentQueryInitialState = query.state\n this.previousQueryResult = this.currentResult\n\n if (this.hasListeners()) {\n prevQuery?.removeObserver(this)\n query.addObserver(this)\n }\n }\n\n onQueryUpdate(action: Action): void {\n const notifyOptions: NotifyOptions = {}\n\n if (action.type === 'success') {\n notifyOptions.onSuccess = !action.manual\n } else if (action.type === 'error' && !isCancelledError(action.error)) {\n notifyOptions.onError = true\n }\n\n this.updateResult(notifyOptions)\n\n if (this.hasListeners()) {\n this.updateTimers()\n }\n }\n\n private notify(notifyOptions: NotifyOptions): void {\n notifyManager.batch(() => {\n // First trigger the configuration callbacks\n if (notifyOptions.onSuccess) {\n this.options.onSuccess?.(this.currentResult.data!)\n this.options.onSettled?.(this.currentResult.data!, null)\n } else if (notifyOptions.onError) {\n this.options.onError?.(this.currentResult.error!)\n this.options.onSettled?.(undefined, this.currentResult.error!)\n }\n\n // Then trigger the listeners\n if (notifyOptions.listeners) {\n this.listeners.forEach(({ listener }) => {\n listener(this.currentResult)\n })\n }\n\n // Then the cache listeners\n if (notifyOptions.cache) {\n this.client.getQueryCache().notify({\n query: this.currentQuery,\n type: 'observerResultsUpdated',\n })\n }\n })\n }\n}\n\nfunction shouldLoadOnMount(\n query: Query,\n options: QueryObserverOptions,\n): boolean {\n return (\n options.enabled !== false &&\n !query.state.dataUpdatedAt &&\n !(query.state.status === 'error' && options.retryOnMount === false)\n )\n}\n\nfunction shouldFetchOnMount(\n query: Query,\n options: QueryObserverOptions,\n): boolean {\n return (\n shouldLoadOnMount(query, options) ||\n (query.state.dataUpdatedAt > 0 &&\n shouldFetchOn(query, options, options.refetchOnMount))\n )\n}\n\nfunction shouldFetchOn(\n query: Query,\n options: QueryObserverOptions,\n field: typeof options['refetchOnMount'] &\n typeof options['refetchOnWindowFocus'] &\n typeof options['refetchOnReconnect'],\n) {\n if (options.enabled !== false) {\n const value = typeof field === 'function' ? field(query) : field\n\n return value === 'always' || (value !== false && isStale(query, options))\n }\n return false\n}\n\nfunction shouldFetchOptionally(\n query: Query,\n prevQuery: Query,\n options: QueryObserverOptions,\n prevOptions: QueryObserverOptions,\n): boolean {\n return (\n options.enabled !== false &&\n (query !== prevQuery || prevOptions.enabled === false) &&\n (!options.suspense || query.state.status !== 'error') &&\n isStale(query, options)\n )\n}\n\nfunction isStale(\n query: Query,\n options: QueryObserverOptions,\n): boolean {\n return query.isStaleByTime(options.staleTime)\n}\n","'use client'\nimport type {\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserverResult,\n UseErrorBoundary,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\nimport * as React from 'react'\nimport { shouldThrowError } from './utils'\n\nexport const ensurePreventErrorBoundaryRetry = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n if (options.suspense || options.useErrorBoundary) {\n // Prevent retrying failed query if the error boundary has not been reset yet\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false\n }\n }\n}\n\nexport const useClearResetErrorBoundary = (\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset()\n }, [errorResetBoundary])\n}\n\nexport const getHasError = <\n TData,\n TError,\n TQueryFnData,\n TQueryData,\n TQueryKey extends QueryKey,\n>({\n result,\n errorResetBoundary,\n useErrorBoundary,\n query,\n}: {\n result: QueryObserverResult\n errorResetBoundary: QueryErrorResetBoundaryValue\n useErrorBoundary: UseErrorBoundary<\n TQueryFnData,\n TError,\n TQueryData,\n TQueryKey\n >\n query: Query\n}) => {\n return (\n result.isError &&\n !errorResetBoundary.isReset() &&\n !result.isFetching &&\n shouldThrowError(useErrorBoundary, [result.error, query])\n )\n}\n","'use client'\n// Temporary workaround due to an issue with react-native uSES - https://github.com/TanStack/query/pull/3601\nimport { useSyncExternalStore as uSES } from 'use-sync-external-store/shim/index.js'\n\nexport const useSyncExternalStore = uSES\n","export function shouldThrowError boolean>(\n _useErrorBoundary: boolean | T | undefined,\n params: Parameters,\n): boolean {\n // Allow useErrorBoundary function to override throwing behavior on a per-error basis\n if (typeof _useErrorBoundary === 'function') {\n return _useErrorBoundary(...params)\n }\n\n return !!_useErrorBoundary\n}\n","import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState ReturnType>\n extends ControlFunctions> {\n (...args: Parameters): ReturnType | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * \n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType,\n>(func: T, wait?: number, options?: Options): DebouncedState {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef([]);\n const lastThis = useRef();\n const result = useRef>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState = (...args: Parameters): ReturnType => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n useRAF,\n isClientSide,\n debounceOnServer,\n ]);\n\n return debounced;\n}\n","import type { Action, Mutation } from './mutation'\nimport { getDefaultState } from './mutation'\nimport { notifyManager } from './notifyManager'\nimport type { QueryClient } from './queryClient'\nimport { Subscribable } from './subscribable'\nimport type {\n MutateOptions,\n MutationObserverBaseResult,\n MutationObserverResult,\n MutationObserverOptions,\n} from './types'\nimport { shallowEqualObjects } from './utils'\n\n// TYPES\n\ntype MutationObserverListener = (\n result: MutationObserverResult,\n) => void\n\ninterface NotifyOptions {\n listeners?: boolean\n onError?: boolean\n onSuccess?: boolean\n}\n\n// CLASS\n\nexport class MutationObserver<\n TData = unknown,\n TError = unknown,\n TVariables = void,\n TContext = unknown,\n> extends Subscribable<\n MutationObserverListener\n> {\n options!: MutationObserverOptions\n\n private client: QueryClient\n private currentResult!: MutationObserverResult<\n TData,\n TError,\n TVariables,\n TContext\n >\n private currentMutation?: Mutation\n private mutateOptions?: MutateOptions\n\n constructor(\n client: QueryClient,\n options: MutationObserverOptions,\n ) {\n super()\n\n this.client = client\n this.setOptions(options)\n this.bindMethods()\n this.updateResult()\n }\n\n protected bindMethods(): void {\n this.mutate = this.mutate.bind(this)\n this.reset = this.reset.bind(this)\n }\n\n setOptions(\n options?: MutationObserverOptions,\n ) {\n const prevOptions = this.options\n this.options = this.client.defaultMutationOptions(options)\n if (!shallowEqualObjects(prevOptions, this.options)) {\n this.client.getMutationCache().notify({\n type: 'observerOptionsUpdated',\n mutation: this.currentMutation,\n observer: this,\n })\n }\n this.currentMutation?.setOptions(this.options)\n }\n\n protected onUnsubscribe(): void {\n if (!this.hasListeners()) {\n this.currentMutation?.removeObserver(this)\n }\n }\n\n onMutationUpdate(action: Action): void {\n this.updateResult()\n\n // Determine which callbacks to trigger\n const notifyOptions: NotifyOptions = {\n listeners: true,\n }\n\n if (action.type === 'success') {\n notifyOptions.onSuccess = true\n } else if (action.type === 'error') {\n notifyOptions.onError = true\n }\n\n this.notify(notifyOptions)\n }\n\n getCurrentResult(): MutationObserverResult<\n TData,\n TError,\n TVariables,\n TContext\n > {\n return this.currentResult\n }\n\n reset(): void {\n this.currentMutation = undefined\n this.updateResult()\n this.notify({ listeners: true })\n }\n\n mutate(\n variables?: TVariables,\n options?: MutateOptions,\n ): Promise {\n this.mutateOptions = options\n\n if (this.currentMutation) {\n this.currentMutation.removeObserver(this)\n }\n\n this.currentMutation = this.client.getMutationCache().build(this.client, {\n ...this.options,\n variables:\n typeof variables !== 'undefined' ? variables : this.options.variables,\n })\n\n this.currentMutation.addObserver(this)\n\n return this.currentMutation.execute()\n }\n\n private updateResult(): void {\n const state = this.currentMutation\n ? this.currentMutation.state\n : getDefaultState()\n\n const result: MutationObserverBaseResult<\n TData,\n TError,\n TVariables,\n TContext\n > = {\n ...state,\n isLoading: state.status === 'loading',\n isSuccess: state.status === 'success',\n isError: state.status === 'error',\n isIdle: state.status === 'idle',\n mutate: this.mutate,\n reset: this.reset,\n }\n\n this.currentResult = result as MutationObserverResult<\n TData,\n TError,\n TVariables,\n TContext\n >\n }\n\n private notify(options: NotifyOptions) {\n notifyManager.batch(() => {\n // First trigger the mutate callbacks\n if (this.mutateOptions && this.hasListeners()) {\n if (options.onSuccess) {\n this.mutateOptions.onSuccess?.(\n this.currentResult.data!,\n this.currentResult.variables!,\n this.currentResult.context!,\n )\n this.mutateOptions.onSettled?.(\n this.currentResult.data!,\n null,\n this.currentResult.variables!,\n this.currentResult.context,\n )\n } else if (options.onError) {\n this.mutateOptions.onError?.(\n this.currentResult.error!,\n this.currentResult.variables!,\n this.currentResult.context,\n )\n this.mutateOptions.onSettled?.(\n undefined,\n this.currentResult.error,\n this.currentResult.variables!,\n this.currentResult.context,\n )\n }\n }\n\n // Then trigger the listeners\n if (options.listeners) {\n this.listeners.forEach(({ listener }) => {\n listener(this.currentResult)\n })\n }\n })\n }\n}\n","import 'client-only'\nimport * as React from 'react'\nimport { useSyncExternalStore } from './useSyncExternalStore'\n\nimport type { MutationFunction, MutationKey } from '@tanstack/query-core'\nimport {\n notifyManager,\n parseMutationArgs,\n MutationObserver,\n} from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport type {\n UseMutateFunction,\n UseMutationOptions,\n UseMutationResult,\n} from './types'\nimport { shouldThrowError } from './utils'\n\n// HOOK\n\nexport function useMutation<\n TData = unknown,\n TError = unknown,\n TVariables = void,\n TContext = unknown,\n>(\n options: UseMutationOptions,\n): UseMutationResult\nexport function useMutation<\n TData = unknown,\n TError = unknown,\n TVariables = void,\n TContext = unknown,\n>(\n mutationFn: MutationFunction,\n options?: Omit<\n UseMutationOptions,\n 'mutationFn'\n >,\n): UseMutationResult\nexport function useMutation<\n TData = unknown,\n TError = unknown,\n TVariables = void,\n TContext = unknown,\n>(\n mutationKey: MutationKey,\n options?: Omit<\n UseMutationOptions,\n 'mutationKey'\n >,\n): UseMutationResult\nexport function useMutation<\n TData = unknown,\n TError = unknown,\n TVariables = void,\n TContext = unknown,\n>(\n mutationKey: MutationKey,\n mutationFn?: MutationFunction,\n options?: Omit<\n UseMutationOptions,\n 'mutationKey' | 'mutationFn'\n >,\n): UseMutationResult\nexport function useMutation<\n TData = unknown,\n TError = unknown,\n TVariables = void,\n TContext = unknown,\n>(\n arg1:\n | MutationKey\n | MutationFunction\n | UseMutationOptions,\n arg2?:\n | MutationFunction\n | UseMutationOptions,\n arg3?: UseMutationOptions,\n): UseMutationResult {\n const options = parseMutationArgs(arg1, arg2, arg3)\n const queryClient = useQueryClient({ context: options.context })\n\n const [observer] = React.useState(\n () =>\n new MutationObserver(\n queryClient,\n options,\n ),\n )\n\n React.useEffect(() => {\n observer.setOptions(options)\n }, [observer, options])\n\n const result = useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n const mutate = React.useCallback<\n UseMutateFunction\n >(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop)\n },\n [observer],\n )\n\n if (\n result.error &&\n shouldThrowError(observer.options.useErrorBoundary, [result.error])\n ) {\n throw result.error\n }\n\n return { ...result, mutate, mutateAsync: result.mutate }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nfunction noop() {}\n","/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useClipboard = void 0;\nvar clipboard_copy_1 = __importDefault(require(\"clipboard-copy\"));\nvar react_1 = require(\"react\");\nvar useTimedToggle_1 = require(\"./useTimedToggle\");\nfunction isInputLike(node) {\n return node && (node.nodeName === 'TEXTAREA' || node.nodeName === 'INPUT');\n}\nfunction useClipboard(options) {\n if (options === void 0) { options = {}; }\n var _a = useTimedToggle_1.useTimedToggle(false), copied = _a[0], toggleCopied = _a[1];\n var targetRef = react_1.useRef(null);\n var optionsRef = react_1.useRef(options);\n optionsRef.current = options;\n function isSupported() {\n return (!!navigator.clipboard ||\n (typeof document.execCommand === 'function' &&\n typeof document.queryCommandSupported === 'function' &&\n document.queryCommandSupported('copy')));\n }\n var copyHandler = react_1.useCallback(function (text) {\n var opts = optionsRef.current;\n var target = targetRef.current;\n function handleSuccess() {\n if (opts.onSuccess) {\n opts.onSuccess();\n }\n if (opts.copiedTimeout) {\n toggleCopied(opts.copiedTimeout);\n }\n if (opts.selectOnCopy && isInputLike(target)) {\n target.select();\n }\n }\n function handleError() {\n if (opts.onError) {\n opts.onError();\n }\n if (opts.selectOnError !== false && isInputLike(target)) {\n target.select();\n }\n }\n function copy(value) {\n clipboard_copy_1.default(value).then(handleSuccess).catch(handleError);\n }\n if (typeof text === 'string') {\n copy(text);\n }\n else if (target) {\n copy(target.value);\n }\n }, []);\n return {\n copied: copied,\n copy: copyHandler,\n isSupported: isSupported,\n target: targetRef,\n };\n}\nexports.useClipboard = useClipboard;\n"],"names":["module","exports","IsRestoringContext","React","useIsRestoring","Provider","$ebb31c7feaa4405e$export$b16d9fb1a22de840","$hgUW1$createContext","$44d7e150ebc754d2$var$initialState","didCatch","error","$44d7e150ebc754d2$export$e926676385687eaf","$hgUW1$Component","state","getDerivedStateFromError","resetErrorBoundary","args","this","props","onReset","reason","setState","componentDidCatch","info","onError","componentDidUpdate","prevProps","prevState","resetKeys","a","b","length","some","item","index","Object","is","$44d7e150ebc754d2$var$hasArrayChanged","next","prev","render","children","fallbackRender","FallbackComponent","fallback","childToRender","$hgUW1$isValidElement","Error","$hgUW1$createElement","value","$75c9d331f9c1ed1a$export$f20aa86254872370","$7c3c25b3f398a9d6$export$c052f6604b7d51fe","context","$hgUW1$useContext","$hgUW1$useState","hasError","memoized","$hgUW1$useMemo","resetBoundary","showBoundary","$62ff477d53f02a5b$export$f0c7a449e0cfaec7","Component","errorBoundaryProps","Wrapped","name","displayName","createValue","clearReset","isReset","reset","QueryErrorResetBoundaryContext","useQueryErrorResetBoundary","useQuery","arg1","arg2","arg3","parsedOptions","parseQueryArgs","useBaseQuery","QueryObserver","ensureStaleTime","defaultedOptions","suspense","staleTime","shouldSuspend","result","isRestoring","willFetch","isLoading","isFetching","fetchOptimistic","observer","errorResetBoundary","then","data","onSuccess","onSettled","catch","undefined","options","Observer","queryClient","useQueryClient","defaultQueryOptions","_optimisticResults","notifyManager","batchCalls","ensurePreventErrorBoundaryRetry","useClearResetErrorBoundary","getOptimisticResult","useSyncExternalStore","onStoreChange","unsubscribe","subscribe","updateResult","getCurrentResult","setOptions","listeners","getHasError","useErrorBoundary","query","getCurrentQuery","notifyOnChangeProps","trackResult","Subscribable","constructor","client","super","trackedProps","Set","selectError","bindMethods","remove","bind","refetch","onSubscribe","size","currentQuery","addObserver","shouldFetchOnMount","executeFetch","updateTimers","onUnsubscribe","hasListeners","destroy","shouldFetchOnReconnect","shouldFetchOn","refetchOnReconnect","shouldFetchOnWindowFocus","refetchOnWindowFocus","clearStaleTimeout","clearRefetchInterval","removeObserver","notifyOptions","prevOptions","prevQuery","shallowEqualObjects","getQueryCache","notify","type","enabled","queryKey","updateQuery","mounted","shouldFetchOptionally","updateStaleTimeout","nextRefetchInterval","computeRefetchInterval","currentRefetchInterval","updateRefetchInterval","build","createResult","currentResult","trackedResult","keys","forEach","key","defineProperty","configurable","enumerable","get","add","refetchPage","fetch","meta","isFetchingOptimistic","fetchOptions","_fetchOptions$cancelR","cancelRefetch","promise","throwOnError","noop","isServer","isStale","isValidTimeout","timeout","timeUntilStale","dataUpdatedAt","staleTimeoutId","setTimeout","_this$options$refetch","refetchInterval","nextInterval","refetchIntervalId","setInterval","refetchIntervalInBackground","focusManager","isFocused","clearTimeout","clearInterval","prevResult","prevResultState","currentResultState","prevResultOptions","currentResultOptions","queryChange","queryInitialState","currentQueryInitialState","prevQueryResult","previousQueryResult","errorUpdatedAt","fetchStatus","status","isPreviousData","isPlaceholderData","fetchOnMount","fetchOptionally","canFetch","networkMode","keepPreviousData","isSuccess","select","selectFn","selectResult","replaceData","process","placeholderData","Date","now","isError","isInitialLoading","failureCount","fetchFailureCount","failureReason","fetchFailureReason","errorUpdateCount","isFetched","dataUpdateCount","isFetchedAfterMount","isRefetching","isLoadingError","isPaused","isRefetchError","nextResult","defaultNotifyOptions","cache","shouldNotifyListeners","includedProps","typedKey","has","onQueryUpdate","action","manual","isCancelledError","batch","_this$options$onSucce","_this$options","_this$options$onSettl","_this$options2","call","_this$options$onError","_this$options3","_this$options$onSettl2","_this$options4","listener","retryOnMount","shouldLoadOnMount","refetchOnMount","field","isStaleByTime","useSyncExternalStore$1","shouldThrowError","_useErrorBoundary","params","c","e","u","i","r","o","f","l","v","m","d","g","current","p","window","w","TypeError","s","leading","x","trailing","h","y","debounceOnServer","F","Math","max","maxWait","n","A","t","apply","cancelAnimationFrame","requestAnimationFrame","min","slice","arguments","cancel","isPending","flush","MutationObserver","mutate","_this$currentMutation","defaultMutationOptions","getMutationCache","mutation","currentMutation","_this$currentMutation2","onMutationUpdate","variables","mutateOptions","execute","getDefaultState","isIdle","_this$mutateOptions$o","_this$mutateOptions","_this$mutateOptions$o2","_this$mutateOptions2","_this$mutateOptions$o3","_this$mutateOptions3","_this$mutateOptions$o4","_this$mutateOptions4","useMutation","parseMutationArgs","mutateAsync","require","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","checkIfSnapshotChanged","inst","latestGetSnapshot","getSnapshot","nextValue","shim","document","createElement","_useState","forceUpdate","__importDefault","mod","__esModule","useClipboard","clipboard_copy_1","react_1","useTimedToggle_1","isInputLike","node","nodeName","_a","useTimedToggle","copied","toggleCopied","targetRef","useRef","optionsRef","copy","useCallback","text","opts","target","handleSuccess","copiedTimeout","selectOnCopy","handleError","selectOnError","default","isSupported","navigator","clipboard","execCommand","queryCommandSupported"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6742.957d9f66.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6742.957d9f66.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..295d424b7b68e9ce6f2603e6a5b97de266522729 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6742.957d9f66.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6742],{30922:function(e,r,t){t.d(r,{q:function(){return i}});var n=t(59403),a=t(88443),o=t(50111);const i=({row:{original:e},getValue:r})=>{const t=r();return t?(0,o.Y)(n.T.Text,{children:(0,o.Y)(a.A,{id:"sM0MBJ",defaultMessage:"Version {version}",values:{version:t}})}):null}},60709:function(e,r,t){t.d(r,{i:function(){return l}});var n=t(77020),a=t(43683),o=t(82832),i=t(31014),s=t(98590);const l=({onSuccess:e})=>{const r=(0,n.n)({mutationFn:async({toAdd:e,toDelete:r,promptId:t})=>Promise.all([...e.map((({key:e,value:r})=>o.M.setRegisteredPromptTag(t,e,r))),...r.map((({key:e})=>o.M.deleteRegisteredPromptTag(t,e)))])}),{EditTagsModal:t,showEditTagsModal:l,isLoading:u}=(0,a.Q)({valueRequired:!0,saveTagsHandler:(t,n,a)=>{const{addedOrModifiedTags:o,deletedTags:i}=(0,s.Rf)(n,a);return new Promise(((n,a)=>{if(!t.name)return a();r.mutate({promptId:t.name,toAdd:o,toDelete:i},{onSuccess:()=>{n(),null===e||void 0===e||e()},onError:a})}))}});return{EditTagsModal:t,showEditPromptTagsModal:(0,i.useCallback)((e=>l({name:e.name,tags:e.tags.filter((e=>(0,s.oD)(e.key)))})),[l]),isLoading:u}}},66742:function(e,r,t){t.r(r),t.d(r,{default:function(){return H}});var n=t(84069),a=t(41261),o=t(31014),i=t(82832);const s=({queryKey:e})=>{const[,{searchFilter:r,pageToken:t}]=e;return i.M.listRegisteredPrompts(r,t)};var l=t(23823),u=t(68048),c=t(59403),d=t(88443),m=t(50111);const f=({searchFilter:e,onSearchFilterChange:r})=>(0,m.Y)(u.TableFilterLayout,{children:(0,m.Y)(u.TableFilterInput,{placeholder:"Search prompts by name",componentId:"mlflow.prompts.list.search",value:e,onChange:e=>r(e.target.value)})});var g=t(89555),p=t(70618),v=t(9856),h=t(88464),P=t(98590),y=t(98597);var w={name:"zjik7",styles:"display:flex"},M={name:"tyk0n8",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex"},Y={name:"14cnl6e",styles:"flex-shrink:0;opacity:0;[role=row]:hover &{opacity:1;}[role=row]:focus-within &{opacity:1;}"};const x=({row:{original:e},table:{options:{meta:r}}})=>{var t;const n=(0,h.A)(),{onEditTags:a}=r,o=(null===e||void 0===e||null===(t=e.tags)||void 0===t?void 0:t.filter((e=>(0,P.oD)(e.key))))||[],i=o.length>0;return(0,m.FD)("div",{css:w,children:[(0,m.Y)("div",{css:M,children:null===o||void 0===o?void 0:o.map((e=>(0,m.Y)(y.t,{tag:e},e.key)))}),(0,m.Y)(c.B,{componentId:"mlflow.prompts.list.tag.add",size:"small",icon:i?(0,m.Y)(u.PencilIcon,{}):void 0,onClick:()=>null===a||void 0===a?void 0:a(e),"aria-label":n.formatMessage({id:"lA8QO2",defaultMessage:"Edit tags"}),children:i?void 0:(0,m.Y)(d.A,{id:"iDpAK8",defaultMessage:"Add tags"}),css:Y,type:"tertiary"})]})};var T=t(48624),b=t(58481);const R=({row:{original:e},getValue:r})=>{const t=r();return e.name?(0,m.Y)(T.N_,{to:b.Ay.getPromptDetailsPageRoute(encodeURIComponent(e.name)),children:t}):t};var A=t(76010),F=t(30922),k=t(9133);var E={name:"1h3rtzg",styles:"align-items:center"};const C=({prompts:e,hasNextPage:r,hasPreviousPage:t,isLoading:n,isFiltered:a,onNextPage:i,onPreviousPage:s,onEditTags:l})=>{const{theme:f}=(0,c.u)(),P=(()=>{const e=(0,h.A)();return(0,o.useMemo)((()=>[{header:e.formatMessage({id:"tzA/LZ",defaultMessage:"Name"}),accessorKey:"name",id:"name",cell:R},{header:e.formatMessage({id:"bmd4rb",defaultMessage:"Latest version"}),cell:F.q,accessorFn:({latest_versions:e})=>{var r;return null===(r=(0,k.first)(e))||void 0===r?void 0:r.version},id:"latestVersion"},{header:e.formatMessage({id:"FiKsFK",defaultMessage:"Last modified"}),id:"lastModified",accessorFn:({last_updated_timestamp:r})=>A.A.formatTimestamp(r,e)},{header:e.formatMessage({id:"KMVqUP",defaultMessage:"Tags"}),accessorKey:"tags",id:"tags",cell:x}]),[e])})(),y=(0,p.N4)({data:null!==e&&void 0!==e?e:[],columns:P,getCoreRowModel:(0,v.HT)(),getRowId:(e,r)=>{var t;return null!==(t=e.name)&&void 0!==t?t:r.toString()},meta:{onEditTags:l}});return(0,m.FD)(u.Table,{scrollable:!0,pagination:(0,m.Y)(u.CursorPagination,{hasNextPage:r,hasPreviousPage:t,onNextPage:i,onPreviousPage:s,componentId:"mlflow.prompts.list.pagination"}),empty:(()=>{const r=!n&&(0,k.isEmpty)(e);return r&&a?(0,m.Y)(u.Empty,{image:(0,m.Y)(u.NoIcon,{}),title:(0,m.Y)(d.A,{id:"hlpNRa",defaultMessage:"No prompts found"}),description:null}):r?(0,m.Y)(u.Empty,{title:(0,m.Y)(d.A,{id:"/fwKFW",defaultMessage:"No prompts created"}),description:(0,m.Y)(d.A,{id:"WM5IeI",defaultMessage:'Use "Create prompt" button in order to create a new prompt'})}):null})(),children:[(0,m.Y)(u.TableRow,{isHeader:!0,children:y.getLeafHeaders().map((e=>(0,m.Y)(u.TableHeader,{componentId:"mlflow.prompts.list.table.header",children:(0,p.Kv)(e.column.columnDef.header,e.getContext())},e.id)))}),n?(0,m.Y)(u.TableSkeletonRows,{table:y}):y.getRowModel().rows.map((e=>(0,m.Y)(u.TableRow,{css:(0,g.AH)({height:f.general.buttonHeight},""),children:e.getAllCells().map((e=>(0,m.Y)(u.TableCell,{css:E,children:(0,p.Kv)(e.column.columnDef.cell,e.getContext())},e.id)))},e.id)))]})};var S=t(60709),N=t(70724),D=t(20109),I=t(62448),_=t(72282),L=t(76137);var K={name:"1m5f2z8",styles:"overflow:hidden;display:flex;flex-direction:column"},q={name:"xt6tct",styles:"flex:1;display:flex;flex-direction:column;overflow:hidden"};var H=(0,D.X)(I.A.mlflowServices.EXPERIMENTS,(()=>{const[e,r]=(0,o.useState)(""),t=(0,T.Zp)(),[i]=(0,L.d7)(e,500),{data:g,error:p,refetch:v,hasNextPage:h,hasPreviousPage:P,isLoading:y,onNextPage:w,onPreviousPage:M}=(({searchFilter:e}={})=>{var r,t,n,i;const l=(0,o.useRef)([]),[u,c]=(0,o.useState)(void 0),d=(0,a.I)(["prompts_list",{searchFilter:e,pageToken:u}],{queryFn:s,retry:!1}),m=(0,o.useCallback)((()=>{var e;l.current.push(u),c(null===(e=d.data)||void 0===e?void 0:e.next_page_token)}),[null===(r=d.data)||void 0===r?void 0:r.next_page_token,u]),f=(0,o.useCallback)((()=>{const e=l.current.pop();c(e)}),[]);return{data:null===(t=d.data)||void 0===t?void 0:t.registered_models,error:null!==(n=d.error)&&void 0!==n?n:void 0,isLoading:d.isLoading,hasNextPage:void 0!==(null===(i=d.data)||void 0===i?void 0:i.next_page_token),hasPreviousPage:Boolean(u),onNextPage:m,onPreviousPage:f,refetch:d.refetch}})({searchFilter:i}),{EditTagsModal:Y,showEditPromptTagsModal:x}=(0,S.i)({onSuccess:v}),{CreatePromptModal:R,openModal:A}=(0,N.z)({mode:N.v.CreatePrompt,onSuccess:({promptName:e})=>t(b.Ay.getPromptDetailsPageRoute(e))});return(0,m.FD)(n.m,{css:K,children:[(0,m.Y)(l.S,{shrinks:!1}),(0,m.Y)(u.Header,{title:(0,m.Y)(d.A,{id:"aLRRam",defaultMessage:"Prompts"}),buttons:(0,m.Y)(c.B,{componentId:"mlflow.prompts.list.create",type:"primary",onClick:A,children:(0,m.Y)(d.A,{id:"7x6xu8",defaultMessage:"Create prompt"})})}),(0,m.Y)(l.S,{shrinks:!1}),(0,m.FD)("div",{css:q,children:[(0,m.Y)(f,{searchFilter:e,onSearchFilterChange:r}),(null===p||void 0===p?void 0:p.message)&&(0,m.FD)(m.FK,{children:[(0,m.Y)(u.Alert,{type:"error",message:p.message,componentId:"mlflow.prompts.list.error",closable:!1}),(0,m.Y)(l.S,{})]}),(0,m.Y)(C,{prompts:g,error:p,hasNextPage:h,hasPreviousPage:P,isLoading:y,isFiltered:Boolean(e),onNextPage:w,onPreviousPage:M,onEditTags:x})]}),Y,R]})}),void 0,_.u)},72282:function(e,r,t){t.d(r,{u:function(){return u}});var n=t(68048),a=t(59403),o=t(88443),i=t(84069),s=t(50111);var l={name:"1vfb318",styles:"flex:1;display:flex;align-items:center;justify-content:center"};const u=({error:e})=>{var r;return(0,s.Y)(i.m,{css:l,children:(0,s.Y)(n.Empty,{"data-testid":"fallback",title:(0,s.Y)(o.A,{id:"AOoWxS",defaultMessage:"Error"}),description:null!==(r=null===e||void 0===e?void 0:e.message)&&void 0!==r?r:(0,s.Y)(o.A,{id:"zmMR5p",defaultMessage:"An error occurred while rendering this component."}),image:(0,s.Y)(a.l,{})})})}},76137:function(e,r,t){t.d(r,{YQ:function(){return a},d7:function(){return i}});var n=t(31014);function a(e,r,t){var a=this,o=(0,n.useRef)(null),i=(0,n.useRef)(0),s=(0,n.useRef)(null),l=(0,n.useRef)([]),u=(0,n.useRef)(),c=(0,n.useRef)(),d=(0,n.useRef)(e),m=(0,n.useRef)(!0);d.current=e;var f="undefined"!=typeof window,g=!r&&0!==r&&f;if("function"!=typeof e)throw new TypeError("Expected a function");r=+r||0;var p=!!(t=t||{}).leading,v=!("trailing"in t)||!!t.trailing,h="maxWait"in t,P="debounceOnServer"in t&&!!t.debounceOnServer,y=h?Math.max(+t.maxWait||0,r):null;(0,n.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,n.useMemo)((function(){var e=function(e){var r=l.current,t=u.current;return l.current=u.current=null,i.current=e,c.current=d.current.apply(t,r)},t=function(e,r){g&&cancelAnimationFrame(s.current),s.current=g?requestAnimationFrame(e):setTimeout(e,r)},n=function(e){if(!m.current)return!1;var t=e-o.current;return!o.current||t>=r||t<0||h&&e-i.current>=y},w=function(r){return s.current=null,v&&l.current?e(r):(l.current=u.current=null,c.current)},M=function e(){var a=Date.now();if(n(a))return w(a);if(m.current){var s=r-(a-o.current),l=h?Math.min(s,y-(a-i.current)):s;t(e,l)}},Y=function(){if(f||P){var d=Date.now(),g=n(d);if(l.current=[].slice.call(arguments),u.current=a,o.current=d,g){if(!s.current&&m.current)return i.current=o.current,t(M,r),p?e(o.current):c.current;if(h)return t(M,r),e(o.current)}return s.current||t(M,r),c.current}};return Y.cancel=function(){s.current&&(g?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,l.current=o.current=u.current=s.current=null},Y.isPending=function(){return!!s.current},Y.flush=function(){return s.current?w(Date.now()):c.current},Y}),[p,h,r,y,v,g,f,P]);return w}function o(e,r){return e===r}function i(e,r,t){var i=t&&t.equalityFn||o,s=(0,n.useRef)(e),l=(0,n.useState)({})[1],u=a((0,n.useCallback)((function(e){s.current=e,l({})}),[l]),r,t),c=(0,n.useRef)(e);return i(c.current,e)||(u(e),c.current=e),[s.current,u]}}}]); +//# sourceMappingURL=6742.957d9f66.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6742.957d9f66.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6742.957d9f66.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..57a5fd6077befb1407729551c943524dff5e6c7c --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6742.957d9f66.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6742.957d9f66.chunk.js","mappings":"4LAIO,MAAMA,EAAsDA,EAAGC,KAAOC,YAAYC,eACvF,MAAMC,EAAUD,IAEhB,OAAKC,GAIHC,EAAAA,EAAAA,GAACC,EAAAA,E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B,QACbmC,EAASnC,QACTiC,EAAQjC,QACN,IACN,EAEAuD,EAAKc,UAAY,WACf,QAASpC,EAAQjC,OACnB,EAEAuD,EAAKe,MAAQ,WACX,OAAQrC,EAAQjC,QAA2BvH,EAAaoL,KAAKC,OAAnC1B,EAAOpC,OACnC,EAEOuD,CACT,GAAG,CACDZ,EACAI,EACAnB,EACAsB,EACAL,EACAJ,EACAF,EACAS,IAGF,OAAOO,CACT,CCtSA,SAAS1B,EAAiBE,EAASuB,GACjC,OAAOvB,IAASuB,CAClB,CAEwB,SAAAxB,EACtBwB,EACAE,EACA1B,GAOA,IAAME,EAAMF,GAAWA,EAAQyC,YAAe1C,EAExCI,GAAcF,EAAAA,EAAAA,QAAOuB,GAClBpB,GAAezJ,EAAAA,EAAAA,UAAS,CAAE,GACnC,GAAM0J,EAAYR,GAChBC,EAAAA,EAAAA,cACE,SAACG,GACCE,EAAYjC,QAAU+B,EACtBG,EAAY,CAAE,EAChB,GACA,CAACA,IAEHsB,EACA1B,GAEIM,GAAgBL,EAAAA,EAAAA,QAAOuB,GAO7B,OALKtB,EAAGI,EAAcpC,QAASsD,KAC7BnB,EAAUmB,GACVlB,EAAcpC,QAAUsD,GAGnB,CAACrB,EAAYjC,QAAcmC,EACpC,C","sources":["experiment-tracking/pages/prompts/components/PromptsListTableVersionCell.tsx","experiment-tracking/pages/prompts/hooks/useUpdateRegisteredPromptTags.tsx","experiment-tracking/pages/prompts/hooks/usePromptsListQuery.tsx","experiment-tracking/pages/prompts/components/PromptsListFilters.tsx","experiment-tracking/pages/prompts/components/PromptsListTableTagsCell.tsx","experiment-tracking/pages/prompts/components/PromptsListTableNameCell.tsx","experiment-tracking/pages/prompts/components/PromptsListTable.tsx","experiment-tracking/pages/prompts/PromptsPage.tsx","experiment-tracking/pages/prompts/components/PromptPageErrorHandler.tsx","../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts"],"sourcesContent":["import { Typography } from '@databricks/design-system';\nimport { ColumnDef } from '@tanstack/react-table';\nimport { FormattedMessage } from 'react-intl';\n\nexport const PromptsListTableVersionCell: ColumnDef['cell'] = ({ row: { original }, getValue }) => {\n const version = getValue();\n\n if (!version) {\n return null;\n }\n return (\n \n \n \n );\n};\n","import { useMutation } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { useEditKeyValueTagsModal } from '../../../../common/hooks/useEditKeyValueTagsModal';\nimport { RegisteredPromptsApi } from '../api';\nimport { RegisteredPrompt } from '../types';\nimport { useCallback } from 'react';\nimport { diffCurrentAndNewTags, isUserFacingTag } from '../../../../common/utils/TagUtils';\n\ntype UpdateTagsPayload = {\n promptId: string;\n toAdd: { key: string; value: string }[];\n toDelete: { key: string }[];\n};\n\nexport const useUpdateRegisteredPromptTags = ({ onSuccess }: { onSuccess?: () => void }) => {\n const updateMutation = useMutation({\n mutationFn: async ({ toAdd, toDelete, promptId }) => {\n return Promise.all([\n ...toAdd.map(({ key, value }) => RegisteredPromptsApi.setRegisteredPromptTag(promptId, key, value)),\n ...toDelete.map(({ key }) => RegisteredPromptsApi.deleteRegisteredPromptTag(promptId, key)),\n ]);\n },\n });\n\n const { EditTagsModal, showEditTagsModal, isLoading } = useEditKeyValueTagsModal<\n Pick\n >({\n valueRequired: true,\n saveTagsHandler: (prompt, currentTags, newTags) => {\n const { addedOrModifiedTags, deletedTags } = diffCurrentAndNewTags(currentTags, newTags);\n\n return new Promise((resolve, reject) => {\n if (!prompt.name) {\n return reject();\n }\n // Send all requests to the mutation\n updateMutation.mutate(\n {\n promptId: prompt.name,\n toAdd: addedOrModifiedTags,\n toDelete: deletedTags,\n },\n {\n onSuccess: () => {\n resolve();\n onSuccess?.();\n },\n onError: reject,\n },\n );\n });\n },\n });\n\n const showEditPromptTagsModal = useCallback(\n (prompt: RegisteredPrompt) =>\n showEditTagsModal({\n name: prompt.name,\n tags: prompt.tags.filter((tag) => isUserFacingTag(tag.key)),\n }),\n [showEditTagsModal],\n );\n\n return { EditTagsModal, showEditPromptTagsModal, isLoading };\n};\n","import { useQuery, QueryFunctionContext } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { useCallback, useRef, useState } from 'react';\nimport { RegisteredPromptsListResponse } from '../types';\nimport { RegisteredPromptsApi } from '../api';\n\nconst queryFn = ({ queryKey }: QueryFunctionContext) => {\n const [, { searchFilter, pageToken }] = queryKey;\n return RegisteredPromptsApi.listRegisteredPrompts(searchFilter, pageToken);\n};\n\ntype PromptsListQueryKey = ['prompts_list', { searchFilter?: string; pageToken?: string }];\n\nexport const usePromptsListQuery = ({\n searchFilter,\n}: {\n searchFilter?: string;\n} = {}) => {\n const previousPageTokens = useRef<(string | undefined)[]>([]);\n\n const [currentPageToken, setCurrentPageToken] = useState(undefined);\n\n const queryResult = useQuery<\n RegisteredPromptsListResponse,\n Error,\n RegisteredPromptsListResponse,\n PromptsListQueryKey\n >(['prompts_list', { searchFilter, pageToken: currentPageToken }], {\n queryFn,\n retry: false,\n });\n\n const onNextPage = useCallback(() => {\n previousPageTokens.current.push(currentPageToken);\n setCurrentPageToken(queryResult.data?.next_page_token);\n }, [queryResult.data?.next_page_token, currentPageToken]);\n\n const onPreviousPage = useCallback(() => {\n const previousPageToken = previousPageTokens.current.pop();\n setCurrentPageToken(previousPageToken);\n }, []);\n\n return {\n data: queryResult.data?.registered_models,\n error: queryResult.error ?? undefined,\n isLoading: queryResult.isLoading,\n hasNextPage: queryResult.data?.next_page_token !== undefined,\n hasPreviousPage: Boolean(currentPageToken),\n onNextPage,\n onPreviousPage,\n refetch: queryResult.refetch,\n };\n};\n","import { TableFilterInput, TableFilterLayout } from '@databricks/design-system';\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport { ModelSearchInputHelpTooltip } from '../../../../model-registry/components/model-list/ModelListFilters';\n\nexport const PromptsListFilters = ({\n searchFilter,\n onSearchFilterChange,\n}: {\n searchFilter: string;\n onSearchFilterChange: (searchFilter: string) => void;\n}) => {\n return (\n \n onSearchFilterChange(e.target.value)}\n // TODO: Add this back once we support searching with tags\n // suffix={}\n />\n \n );\n};\n","import { ColumnDef } from '@tanstack/react-table';\nimport { RegisteredPrompt } from '../types';\nimport { Button, PencilIcon } from '@databricks/design-system';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { isUserFacingTag } from '../../../../common/utils/TagUtils';\nimport { PromptsTableMetadata } from '../utils';\nimport { KeyValueTag } from '../../../../common/components/KeyValueTag';\n\nexport const PromptsListTableTagsCell: ColumnDef['cell'] = ({\n row: { original },\n table: {\n options: { meta },\n },\n}) => {\n const intl = useIntl();\n\n const { onEditTags } = meta as PromptsTableMetadata;\n\n const visibleTagList = original?.tags?.filter((tag) => isUserFacingTag(tag.key)) || [];\n const containsTags = visibleTagList.length > 0;\n\n return (\n
\n
\n {visibleTagList?.map((tag) => (\n \n ))}\n
\n }\n onClick={() => onEditTags?.(original)}\n aria-label={intl.formatMessage({\n defaultMessage: 'Edit tags',\n description: 'Label for the edit tags button in the registered prompts table',\n })}\n children={\n !containsTags ? (\n \n ) : undefined\n }\n css={{\n flexShrink: 0,\n opacity: 0,\n '[role=row]:hover &': {\n opacity: 1,\n },\n '[role=row]:focus-within &': {\n opacity: 1,\n },\n }}\n type=\"tertiary\"\n />\n
\n );\n};\n","import { ColumnDef } from '@tanstack/react-table';\nimport { Link } from '../../../../common/utils/RoutingUtils';\nimport Routes from '../../../routes';\nimport { RegisteredPrompt } from '../types';\n\nexport const PromptsListTableNameCell: ColumnDef['cell'] = ({ row: { original }, getValue }) => {\n const name = getValue();\n\n if (!original.name) {\n return name;\n }\n return {name};\n};\n","import {\n CursorPagination,\n Empty,\n NoIcon,\n Table,\n TableCell,\n TableHeader,\n TableRow,\n TableSkeletonRows,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { ColumnDef, flexRender, getCoreRowModel, useReactTable } from '@tanstack/react-table';\nimport { useMemo } from 'react';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { RegisteredPrompt } from '../types';\nimport { PromptsListTableTagsCell } from './PromptsListTableTagsCell';\nimport { PromptsListTableNameCell } from './PromptsListTableNameCell';\nimport Utils from '../../../../common/utils/Utils';\nimport { PromptsListTableVersionCell } from './PromptsListTableVersionCell';\nimport { PromptsTableMetadata } from '../utils';\nimport { first, isEmpty } from 'lodash';\n\ntype PromptsTableColumnDef = ColumnDef;\n\nconst usePromptsTableColumns = () => {\n const intl = useIntl();\n return useMemo(() => {\n const resultColumns: PromptsTableColumnDef[] = [\n {\n header: intl.formatMessage({\n defaultMessage: 'Name',\n description: 'Header for the name column in the registered prompts table',\n }),\n accessorKey: 'name',\n id: 'name',\n cell: PromptsListTableNameCell,\n },\n {\n header: intl.formatMessage({\n defaultMessage: 'Latest version',\n description: 'Header for the latest version column in the registered prompts table',\n }),\n cell: PromptsListTableVersionCell,\n accessorFn: ({ latest_versions }) => first(latest_versions)?.version,\n id: 'latestVersion',\n },\n {\n header: intl.formatMessage({\n defaultMessage: 'Last modified',\n description: 'Header for the last modified column in the registered prompts table',\n }),\n id: 'lastModified',\n accessorFn: ({ last_updated_timestamp }) => Utils.formatTimestamp(last_updated_timestamp, intl),\n },\n {\n header: intl.formatMessage({\n defaultMessage: 'Tags',\n description: 'Header for the tags column in the registered prompts table',\n }),\n accessorKey: 'tags',\n id: 'tags',\n cell: PromptsListTableTagsCell,\n },\n ];\n\n return resultColumns;\n }, [intl]);\n};\n\nexport const PromptsListTable = ({\n prompts,\n hasNextPage,\n hasPreviousPage,\n isLoading,\n isFiltered,\n onNextPage,\n onPreviousPage,\n onEditTags,\n}: {\n prompts?: RegisteredPrompt[];\n error?: Error;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n isLoading?: boolean;\n isFiltered?: boolean;\n onNextPage: () => void;\n onPreviousPage: () => void;\n onEditTags: (editedEntity: RegisteredPrompt) => void;\n}) => {\n const { theme } = useDesignSystemTheme();\n const columns = usePromptsTableColumns();\n\n const table = useReactTable({\n data: prompts ?? [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getRowId: (row, index) => row.name ?? index.toString(),\n meta: { onEditTags } satisfies PromptsTableMetadata,\n });\n\n const getEmptyState = () => {\n const isEmptyList = !isLoading && isEmpty(prompts);\n if (isEmptyList && isFiltered) {\n return (\n }\n title={\n \n }\n description={null}\n />\n );\n }\n if (isEmptyList) {\n return (\n \n }\n description={\n \n }\n />\n );\n }\n\n return null;\n };\n\n return (\n \n }\n empty={getEmptyState()}\n >\n \n {table.getLeafHeaders().map((header) => (\n \n {flexRender(header.column.columnDef.header, header.getContext())}\n \n ))}\n \n {isLoading ? (\n \n ) : (\n table.getRowModel().rows.map((row) => (\n \n {row.getAllCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n )}\n
\n );\n};\n","import { ScrollablePageWrapper } from '@mlflow/mlflow/src/common/components/ScrollablePageWrapper';\nimport { usePromptsListQuery } from './hooks/usePromptsListQuery';\nimport { Alert, Button, Header, Spacer } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { useState } from 'react';\nimport { PromptsListFilters } from './components/PromptsListFilters';\nimport { PromptsListTable } from './components/PromptsListTable';\nimport { useUpdateRegisteredPromptTags } from './hooks/useUpdateRegisteredPromptTags';\nimport { CreatePromptModalMode, useCreatePromptModal } from './hooks/useCreatePromptModal';\nimport Routes from '../../routes';\nimport { useNavigate } from '../../../common/utils/RoutingUtils';\nimport { withErrorBoundary } from '../../../common/utils/withErrorBoundary';\nimport ErrorUtils from '../../../common/utils/ErrorUtils';\nimport { PromptPageErrorHandler } from './components/PromptPageErrorHandler';\nimport { useDebounce } from 'use-debounce';\n\nconst PromptsPage = () => {\n const [searchFilter, setSearchFilter] = useState('');\n const navigate = useNavigate();\n\n const [debouncedSearchFilter] = useDebounce(searchFilter, 500);\n\n const { data, error, refetch, hasNextPage, hasPreviousPage, isLoading, onNextPage, onPreviousPage } =\n usePromptsListQuery({ searchFilter: debouncedSearchFilter });\n\n const { EditTagsModal, showEditPromptTagsModal } = useUpdateRegisteredPromptTags({ onSuccess: refetch });\n const { CreatePromptModal, openModal: openCreateVersionModal } = useCreatePromptModal({\n mode: CreatePromptModalMode.CreatePrompt,\n onSuccess: ({ promptName }) => navigate(Routes.getPromptDetailsPageRoute(promptName)),\n });\n\n return (\n \n \n }\n buttons={\n \n }\n />\n \n
\n \n {error?.message && (\n <>\n \n \n \n )}\n \n
\n {EditTagsModal}\n {CreatePromptModal}\n
\n );\n};\n\nexport default withErrorBoundary(ErrorUtils.mlflowServices.EXPERIMENTS, PromptsPage, undefined, PromptPageErrorHandler);\n","import { DangerIcon, Empty } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { ScrollablePageWrapper } from '../../../../common/components/ScrollablePageWrapper';\n\nexport const PromptPageErrorHandler = ({ error }: { error?: Error }) => {\n return (\n \n \n }\n description={\n error?.message ?? (\n \n )\n }\n image={}\n />\n \n );\n};\n","import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState ReturnType>\n extends ControlFunctions> {\n (...args: Parameters): ReturnType | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * \n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType,\n>(func: T, wait?: number, options?: Options): DebouncedState {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef([]);\n const lastThis = useRef();\n const result = useRef>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState = (...args: Parameters): ReturnType => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n useRAF,\n isClientSide,\n debounceOnServer,\n ]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality(left: T, right: T): boolean {\n return left === right;\n}\n\nexport default function useDebounce(\n value: T,\n delay: number,\n options?: {\n maxWait?: number;\n leading?: boolean;\n trailing?: boolean;\n equalityFn?: (left: T, right: T) => boolean;\n }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const activeValue = useRef(value);\n const [, forceUpdate] = useState({});\n const debounced = useDebouncedCallback(\n useCallback(\n (value: T) => {\n activeValue.current = value;\n forceUpdate({});\n },\n [forceUpdate]\n ),\n delay,\n options\n );\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [activeValue.current as T, debounced];\n}\n"],"names":["PromptsListTableVersionCell","row","original","getValue","version","_jsx","Typography","Text","children","FormattedMessage","id","defaultMessage","values","useUpdateRegisteredPromptTags","onSuccess","updateMutation","useMutation","mutationFn","async","toAdd","toDelete","promptId","Promise","all","map","key","value","RegisteredPromptsApi","setRegisteredPromptTag","deleteRegisteredPromptTag","EditTagsModal","showEditTagsModal","isLoading","useEditKeyValueTagsModal","valueRequired","saveTagsHandler","prompt","currentTags","newTags","addedOrModifiedTags","deletedTags","diffCurrentAndNewTags","resolve","reject","name","mutate","onError","showEditPromptTagsModal","useCallback","tags","filter","tag","isUserFacingTag","queryFn","queryKey","searchFilter","pageToken","listRegisteredPrompts","PromptsListFilters","onSearchFilterChange","TableFilterLayout","TableFilterInput","placeholder","componentId","onChange","e","target","_ref","styles","_ref2","_ref3","PromptsListTableTagsCell","table","options","meta","_original$tags","intl","useIntl","onEditTags","visibleTagList","containsTags","length","_jsxs","css","KeyValueTag","Button","size","icon","PencilIcon","undefined","onClick","formatMessage","type","PromptsListTableNameCell","Link","to","Routes","getPromptDetailsPageRoute","encodeURIComponent","PromptsListTable","prompts","hasNextPage","hasPreviousPage","isFiltered","onNextPage","onPreviousPage","theme","useDesignSystemTheme","columns","usePromptsTableColumns","useMemo","header","accessorKey","cell","accessorFn","latest_versions","_first","first","last_updated_timestamp","Utils","formatTimestamp","useReactTable","data","getCoreRowModel","getRowId","index","_row$name","toString","Table","scrollable","pagination","CursorPagination","empty","getEmptyState","isEmptyList","isEmpty","Empty","image","NoIcon","title","description","TableRow","isHeader","getLeafHeaders","TableHeader","flexRender","column","columnDef","getContext","TableSkeletonRows","getRowModel","rows","_css","height","general","buttonHeight","getAllCells","TableCell","withErrorBoundary","ErrorUtils","mlflowServices","EXPERIMENTS","PromptsPage","setSearchFilter","useState","navigate","useNavigate","debouncedSearchFilter","useDebounce","error","refetch","usePromptsListQuery","_queryResult$data2","_queryResult$data3","_queryResult$error","_queryResult$data4","previousPageTokens","useRef","currentPageToken","setCurrentPageToken","queryResult","useQuery","retry","_queryResult$data","current","push","next_page_token","previousPageToken","pop","registered_models","Boolean","CreatePromptModal","openModal","openCreateVersionModal","useCreatePromptModal","mode","CreatePromptModalMode","CreatePrompt","promptName","ScrollablePageWrapper","Spacer","shrinks","Header","buttons","message","_Fragment","Alert","closable","PromptPageErrorHandler","_error$message","DangerIcon","c","u","i","a","r","o","f","l","v","m","d","g","p","window","w","TypeError","s","leading","x","trailing","h","y","debounceOnServer","F","Math","max","maxWait","n","A","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6791.64608625.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6791.64608625.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..d0a6e2af64d243224cb2150eae8473bebfcb57ce --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6791.64608625.chunk.js @@ -0,0 +1,11 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6791],{3966:function(e,t,s){s.d(t,{L:function(){return l}});var i=s(89555),n=s(59403),a=s(68048),o=s(88443),r=s(50111);const l=({tags:e,onEdit:t})=>{const{theme:s}=(0,n.u)(),l=e.length>0;return(0,r.FD)("div",{css:(0,i.AH)({display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:s.spacing.xs},""),children:[null===e||void 0===e?void 0:e.map((e=>(0,r.FD)(a.Tag,{componentId:e.key,children:[(0,r.FD)("strong",{children:[e.key,e.value?":":null]}),"\xa0",e.value]},e.key))),(0,r.Y)(n.B,{componentId:"databricks-experiment-tracking-prompt-edit-tags-button",size:"small",icon:l?(0,r.Y)(a.PencilIcon,{}):void 0,onClick:t,children:l?null:(0,r.Y)(o.A,{id:"0wxgDJ",defaultMessage:"Add tags"})})]})}},10405:function(e,t,s){s.d(t,{i:function(){return m}});var i=s(89555),n=s(31014),a=s(27705),o=s(59403),r=s(68048),l=s(88464),d=s(50111);const c=({theme:e,getPrefixedClassName:t})=>{const s=t("collapse"),i=`.${s}-item`,n=`.${s}-header`,a=`.${s}-content-box`;return{fontSize:14,[`& > ${i} > ${n}`]:{paddingLeft:0,paddingTop:12,paddingBottom:12,display:"flex",alignItems:"center",fontSize:16,fontWeight:"normal",lineHeight:e.typography.lineHeightLg},[a]:{padding:`${e.spacing.xs}px 0 ${e.spacing.md}px 0`}}};function m(e){const{title:t,forceOpen:s,showServerError:m,defaultCollapsed:g,onChange:h,className:u,componentId:p="mlflow.common.generic_collapsible_section"}=e,f=s&&{activeKey:["1"]},v=g?null:["1"],{theme:b,getPrefixedClassName:y}=(0,o.u)(),{formatMessage:A}=(0,l.A)(),C=(0,n.useCallback)((({isActive:e})=>(0,d.Y)("div",{css:(0,o.i)({width:b.general.heightBase/2,transform:e?"rotate(90deg)":void 0}),children:(0,d.Y)(o.q,{css:(0,i.AH)({svg:{width:b.general.heightBase/2,height:b.general.heightBase/2}},""),"aria-label":A(e?{id:"iaomsd",defaultMessage:"collapse {title}"}:{id:"dTLq6E",defaultMessage:"expand {title}"},{title:t})})})),[b,t,A]);return(0,d.Y)(r.Accordion,{componentId:p,...f,dangerouslyAppendEmotionCSS:c({theme:b,getPrefixedClassName:y}),dangerouslySetAntdProps:{className:u,expandIconPosition:"left",expandIcon:C},defaultActiveKey:null!==v&&void 0!==v?v:void 0,onChange:h,children:(0,d.Y)(r.Accordion.Panel,{header:t,children:(0,d.Y)(a.g,{showServerError:m,children:e.children})},"1")})}},11473:function(e,t,s){s.d(t,{N9:function(){return g},NW:function(){return c},OT:function(){return l},Yc:function(){return m}});var i=s(31014),n=s(37504),a=s.n(n),o=s(75826);let r=null;const l=()=>r||(r=new o.Converter,r.setFlavor("github"),r),d={allowedTags:["h1","h2","h3","h4","h5","h6","h7","h8","blockquote","p","a","ul","ol","nl","li","ins","b","i","strong","em","strike","code","hr","br","div","table","thead","tbody","tr","th","td","pre","del","sup","sub","dl","dt","dd","kbd","q","samp","samp","var","hr","rt","rp","summary","iframe","img","caption","figure"],allowedAttributes:{a:["href","name","target"],img:["src","longdesc"],div:["itemscope","itemtype"]}},c=e=>a()(e,d),m=e=>e.replace(new RegExp("(0,i.useCallback)((e=>{const t=l().makeHtml(e);return c(t)}),[])},23381:function(e,t,s){s.d(t,{t:function(){return y}});var i=s(89555),n=s(9133),a=s(31014),o=s(68048),r=s(59403),l=s(23823),d=s(86020),c=s(88464),m=s(88443),g=s(50111);var h={name:"1d3w5wq",styles:"width:100%"},u={name:"s079uh",styles:"margin-top:2px"},p={name:"82a6rk",styles:"flex:1"},f={name:"82a6rk",styles:"flex:1"};const v=({renderKey:e,setDraftAliases:t,existingAliases:s,draftAliases:n,version:l,aliasToVersionMap:v,disabled:b})=>{const y=(0,c.A)(),[A,C]=(0,a.useState)(!1),{theme:k}=(0,r.u)(),I=(0,a.useCallback)((e=>{t((t=>t.filter((t=>t!==e))))}),[t]),x=(0,a.useCallback)((e=>{const s=e.map((e=>e.replace(/[^\w-]/g,"").toLowerCase().substring(0,255))).filter((e=>e.length>0)),i=Array.from(new Set(s));t(i),C(!1)}),[t]);return(0,g.FD)(o.LegacySelect,{disabled:b,filterOption:(e,t)=>null===t||void 0===t?void 0:t.value.toLowerCase().startsWith(e.toLowerCase()),placeholder:y.formatMessage({id:"bQZDSv",defaultMessage:"Enter aliases (champion, challenger, etc)"}),allowClear:!0,css:h,mode:"tags",onChange:x,dangerouslySetAntdProps:{dropdownMatchSelectWidth:!0,tagRender:({value:e})=>(0,g.Y)(d.Z,{compact:!0,css:u,closable:!0,onClose:()=>I(e.toString()),value:e.toString()})},onDropdownVisibleChange:C,open:A,value:n||[],children:[s.map((e=>(0,g.Y)(o.LegacySelect.Option,{value:e,"data-testid":"model-alias-option",children:(0,g.FD)("div",{css:(0,i.AH)({display:"flex",marginRight:k.spacing.xs},""),children:[(0,g.Y)("div",{css:p,children:e}),(0,g.Y)("div",{children:(0,g.Y)(m.A,{id:"4OcdLd",defaultMessage:"This version"})})]},e)},e))),Object.entries(v).filter((([,e])=>e!==l)).map((([e,t])=>(0,g.Y)(o.LegacySelect.Option,{value:e,"data-testid":"model-alias-option",children:(0,g.FD)("div",{css:(0,i.AH)({display:"flex",marginRight:k.spacing.xs},""),children:[(0,g.Y)("div",{css:f,children:e}),(0,g.Y)("div",{children:(0,g.Y)(m.A,{id:"Boj6Fm",defaultMessage:"Version {version}",values:{version:t}})})]},e)},e)))]},JSON.stringify(e))};var b=s(52350);const y=({aliases:e,onSuccess:t,onSave:s,getTitle:d,description:c})=>{const[h,u]=(0,a.useState)(!1),[p,f]=(0,a.useState)(!1),[y]=o.LegacyForm.useForm(),[A,C]=(0,a.useState)(""),{theme:k}=(0,r.u)(),[I,x]=(0,a.useState)([]),[w,Y]=(0,a.useState)([]),[S,T]=(0,a.useState)("0"),M=(0,a.useCallback)((t=>{const s=e.filter((({version:e})=>e===t)).map((({alias:e})=>e))||[];t&&(x(s),Y(s),T(t),f(!0))}),[e]),R=(0,a.useMemo)((()=>{const t=e.reduce(((e,t)=>{var s;return e.some((({version:e})=>e===t.version))?(null===(s=e.find((({version:e})=>e===t.version)))||void 0===s||s.aliases.push(t.alias),e):[...e,{version:t.version,aliases:[t.alias]}]}),[]).filter((({version:e})=>e!==S));return w.map((e=>({alias:e,otherVersion:t.find((t=>{var s;return null===(s=t.aliases)||void 0===s?void 0:s.find((t=>t===e))}))}))).filter((({otherVersion:e})=>e))}),[e,w,S]),N=(0,a.useMemo)((()=>e.reduce(((e,{alias:t,version:s})=>({...e,[t]:s})),{})||{}),[e]),P=(0,n.isEqual)(I.slice().sort(),w.slice().sort()),L=w.length>10,D=P||L;return{EditAliasesModal:(0,g.FD)(l.d,{componentId:"mlflow.edit-aliases-modal",visible:p,footer:(0,g.FD)("div",{children:[(0,g.Y)(r.B,{componentId:"mlflow.edit-aliases-modal.cancel-button",onClick:()=>f(!1),children:(0,g.Y)(m.A,{id:"3yuDKB",defaultMessage:"Cancel"})}),(0,g.Y)(r.B,{componentId:"mlflow.edit-aliases-modal.save-button",loading:h,type:"primary",disabled:D,onClick:()=>{C(""),u(!0),s(S,I,w).then((()=>{u(!1),f(!1),null===t||void 0===t||t()})).catch((e=>{if(u(!1),e instanceof b.s){const t=e.getMessageField()||e.getUserVisibleError().toString()||e.text;C(t)}else C(e.message)}))},children:(0,g.Y)(m.A,{id:"j4vtTO",defaultMessage:"Save aliases"})})]}),destroyOnClose:!0,title:d(S),onCancel:()=>f(!1),confirmLoading:!1,children:[(0,g.Y)(r.T.Paragraph,{children:c}),(0,g.FD)(o.LegacyForm,{form:y,layout:"vertical",children:[(0,g.Y)(o.LegacyForm.Item,{children:(0,g.Y)(v,{disabled:!1,renderKey:R,aliasToVersionMap:N,version:S,draftAliases:w,existingAliases:I,setDraftAliases:Y})}),(0,g.FD)("div",{css:(0,i.AH)({display:"flex",flexDirection:"column",gap:k.spacing.xs},""),children:[L&&(0,g.Y)(o.Alert,{componentId:"mlflow.edit-aliases-modal.exceeding-limit-alert",role:"alert",message:(0,g.Y)(m.A,{id:"rzIPYc",defaultMessage:"You are exceeding a limit of {limit} aliases assigned to the single model version",values:{limit:10}}),type:"error",closable:!1}),R.map((({alias:e,otherVersion:t})=>(0,g.Y)(o.Alert,{componentId:"mlflow.edit-aliases-modal.conflicted-alias-alert",role:"alert",message:(0,g.Y)(m.A,{id:"CUKIO0",defaultMessage:'The "{alias}" alias is also being used on version {otherVersion}. Adding it to this version will remove it from version {otherVersion}.',values:{otherVersion:null===t||void 0===t?void 0:t.version,alias:e}}),type:"info",closable:!1},e))),A&&(0,g.Y)(o.Alert,{componentId:"mlflow.edit-aliases-modal.error-alert",role:"alert",message:A,type:"error",closable:!1})]})]})]}),showEditAliasesModal:M}}},27705:function(e,t,s){s.d(t,{g:function(){return o}});var i=s(31014),n=s(76010),a=s(50111);class o extends i.Component{constructor(...e){super(...e),this.state={error:null}}componentDidCatch(e,t){this.setState({error:e}),console.error(e,t)}renderErrorMessage(e){return this.props.showServerError?(0,a.FD)("div",{children:["Error message: ",e.message]}):""}render(){const{children:e}=this.props,{error:t}=this.state;return t?(0,a.Y)("div",{children:(0,a.FD)("p",{children:[(0,a.Y)("i",{"data-testid":"icon-fail",className:"fa fa-exclamation-triangle mlflow-icon-fail",css:r.wrapper}),(0,a.Y)("span",{children:" Something went wrong with this section. "}),(0,a.Y)("span",{children:"If this error persists, please report an issue "}),(0,a.Y)("a",{href:n.A.getSupportPageUrl(),target:"_blank",children:"here"}),".",this.renderErrorMessage(t)]})}):e}}const r={wrapper:{marginLeft:-2}}},34860:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAB3CAYAAAA5Od+KAAAAAXNSR0IArs4c6QAABBdpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpERTk4ODkyMDVDMEQxMUU4QjcwMkI4NjVBQkFBMDNBNzwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpERTk4ODkyMTVDMEQxMUU4QjcwMkI4NjVBQkFBMDNBNzwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdm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XKqSWElw8lIu5hgxmvUATiFbaXxpw/B+FMQuI2U5L+qwPTnkyumewiPbrhfqMCo9MMVHGAi4As0dbZMEE58tO5uWgVi5RcOwJRYVp+dE1/FcncTKDzxxKRdjoMzmehJdE9elR8rSoKUgnRgJvgWkymlA2q/EpdxyLF4k7HFY9Il2q1JTwB8EsZybKGJlFCQu5RoRLk9nPsJuh2A5NnmS4Tx079SFSuNtpDR7wBJL3TYnnlzDoorGs7Cjy89h+BI4JU8PQx/1dzm0uJZkZqyNZvaESjWSH6nOxqlowN8FeheoNCyJWMcRqZXc2nsvWXG2kgn9sdqSfHINzZ17L2DMshrjl3LMNh2z63ZMVPkl51kPk7LTWwyzknlPHXKNWJBHlQnPTUjNKzAqpH6jaUOOqjslbyD7fYxkZDyTrOw3nCmpR66hqZw+apNzmPgSNJ8WolgeZ7xK/p26sAXCRm5lz5IfTUrc/LEoDU9dcv0NkZPVDjTNYpR9DxWwIsy2lJuGJK4Z5z0pU7yGaT5/Ihz/JieF+5uQjOf0IDc4Zh5qtpEMMZMJkY8uvPORfX8bXiYGe4vjdxMqeLtR/r8h7+TosdfJ7d/sjAMvKUHTk9xQUbWhaSzpFecQC5Ukn4FTP04HMWcK3r/Mg9IxWJTaby/tRBfgESyVO4KRmA7sAdKMeyPCNhL38UZsI384lIgRt5EYSJkY+H8lx8IKTKY5+wAAAABJRU5ErkJggg=="},41287:function(e,t,s){s.d(t,{h:function(){return A}});var i=s(31014),n=s(76010),a=s(23823),o=s(68048),r=s(70169),l=s(59403),d=s(88443),c=s(50111);const m=i.createContext();class g extends i.Component{constructor(...e){super(...e),this.handleKeyPress=e=>{const{save:t,recordKey:s,cancel:i}=this.props;"Enter"===e.key?t(s):"Escape"===e.key&&i()}}render(){const{editing:e,dataIndex:t,record:s,children:i}=this.props;return(0,c.Y)(m.Consumer,{children:({formRef:n})=>(0,c.Y)("div",{className:e?"editing-cell":"",children:e?(0,c.Y)(o.LegacyForm,{ref:n,children:(0,c.Y)(o.LegacyForm.Item,{style:{margin:0},name:t,initialValue:s[t],children:(0,c.Y)(r.I,{componentId:"codegen_mlflow_app_src_common_components_tables_editableformtable.tsx_50",onKeyDown:this.handleKeyPress,"data-testid":"editable-table-edited-input"})})}):i})})}}class h extends i.Component{constructor(e){super(e),this.columns=void 0,this.form=void 0,this.initColumns=()=>[...this.props.columns.map((e=>e.editable?{...e,render:(t,s)=>(0,c.Y)(g,{record:s,dataIndex:e.dataIndex,title:e.title,editing:this.isEditing(s),save:this.save,cancel:this.cancel,recordKey:s.key,children:t})}:e)),{title:(0,c.Y)(d.A,{id:"cBDYla",defaultMessage:"Actions"}),dataIndex:"operation",render:(e,t)=>{const{editingKey:s,isRequestPending:i}=this.state,n=this.isEditing(t);return n&&i?(0,c.Y)(l.S,{size:"small"}):n?(0,c.FD)("span",{children:[(0,c.Y)(l.B,{componentId:"codegen_mlflow_app_src_common_components_tables_editableformtable.tsx_120",type:"link",onClick:()=>this.save(t.key),style:{marginRight:10},"data-testid":"editable-table-button-save",children:(0,c.Y)(d.A,{id:"E7mv3b",defaultMessage:"Save"})}),(0,c.Y)(l.B,{componentId:"codegen_mlflow_app_src_common_components_tables_editableformtable.tsx_131",type:"link",onClick:()=>this.cancel(t.key),"data-testid":"editable-table-button-cancel",children:(0,c.Y)(d.A,{id:"peyOdH",defaultMessage:"Cancel"})})]}):(0,c.FD)("span",{children:[(0,c.Y)(l.B,{componentId:"codegen_mlflow_app_src_common_components_tables_editableformtable.tsx_145",icon:(0,c.Y)(o.PencilIcon,{}),disabled:""!==s,onClick:()=>this.edit(t.key),"data-testid":"editable-table-button-edit"}),(0,c.Y)(l.B,{componentId:"codegen_mlflow_app_src_common_components_tables_editableformtable.tsx_151",icon:(0,c.Y)(o.TrashIcon,{}),disabled:""!==s,onClick:()=>this.setState({deletingKey:t.key}),"data-testid":"editable-table-button-delete"})]})}}],this.isEditing=e=>e.key===this.state.editingKey,this.cancel=()=>{this.setState({editingKey:""})},this.save=e=>{this.form.current.validateFields().then((t=>{const s=this.props.data.find((t=>t.key===e));s&&(this.setState({isRequestPending:!0}),this.props.onSaveEdit({...s,...t}).then((()=>{this.setState({editingKey:"",isRequestPending:!1})})))}))},this.delete=async e=>{try{const t=this.props.data.find((t=>t.key===e));t&&(this.setState({isRequestPending:!0}),await this.props.onDelete({...t}))}finally{this.setState({deletingKey:"",isRequestPending:!1})}},this.edit=e=>{this.setState({editingKey:e})},this.state={editingKey:"",isRequestPending:!1,deletingKey:""},this.columns=this.initColumns(),this.form=i.createRef()}render(){const{data:e}=this.props;return(0,c.FD)(m.Provider,{value:{formRef:this.form},children:[(0,c.Y)(o.LegacyTable,{className:"editable-table","data-testid":"editable-table",dataSource:e,columns:this.columns,size:"middle",tableLayout:"fixed",pagination:!1,locale:{emptyText:(0,c.Y)(d.A,{id:"0ja5l/",defaultMessage:"No tags found."})},scroll:{y:280}}),(0,c.Y)(a.d,{componentId:"codegen_mlflow_app_src_common_components_tables_editableformtable.tsx_228","data-testid":"editable-form-table-remove-modal",title:(0,c.Y)(d.A,{id:"pBUaAK",defaultMessage:"Are you sure you want to delete this tag\uff1f"}),visible:this.state.deletingKey,okText:(0,c.Y)(d.A,{id:"vlxeiA",defaultMessage:"Confirm"}),cancelText:(0,c.Y)(d.A,{id:"aIP7Kb",defaultMessage:"Cancel"}),confirmLoading:this.state.isRequestPending,onOk:()=>this.delete(this.state.deletingKey),onCancel:()=>this.setState({deletingKey:""})})]})}}const u=h;var p=s(9133),f=s.n(p),v=s(64912);class b extends i.Component{constructor(...e){super(...e),this.tableColumns=[{title:this.props.intl.formatMessage({id:"cI+F/q",defaultMessage:"Name"}),dataIndex:"name",width:200},{title:this.props.intl.formatMessage({id:"oBKd1E",defaultMessage:"Value"}),dataIndex:"value",width:200,editable:!0}],this.getData=()=>f().sortBy(n.A.getVisibleTagValues(this.props.tags).map((e=>({key:e[0],name:e[0],value:e[1]}))),"name"),this.getTagNamesAsSet=()=>new Set(n.A.getVisibleTagValues(this.props.tags).map((e=>e[0]))),this.tagNameValidator=(e,t,s)=>{s(this.getTagNamesAsSet().has(t)?this.props.intl.formatMessage({id:"gVxisd",defaultMessage:'Tag "{value}" already exists.'},{value:t}):void 0)}}render(){const{isRequestPending:e,handleSaveEdit:t,handleDeleteTag:s,handleAddTag:i,innerRef:n}=this.props;return(0,c.FD)(c.FK,{children:[(0,c.Y)(u,{columns:this.tableColumns,data:this.getData(),onSaveEdit:t,onDelete:s}),(0,c.Y)(a.S,{size:"sm"}),(0,c.Y)("div",{children:(0,c.FD)(o.LegacyForm,{ref:n,layout:"inline",onFinish:i,css:y.form,children:[(0,c.Y)(o.LegacyForm.Item,{name:"name",rules:[{required:!0,message:this.props.intl.formatMessage({id:"ubGTUL",defaultMessage:"Name is required."})},{validator:this.tagNameValidator}],children:(0,c.Y)(r.I,{componentId:"codegen_mlflow_app_src_common_components_editabletagstableview.tsx_107","aria-label":"tag name","data-testid":"tags-form-input-name",placeholder:this.props.intl.formatMessage({id:"0gGMZm",defaultMessage:"Name"})})}),(0,c.Y)(o.LegacyForm.Item,{name:"value",rules:[],children:(0,c.Y)(r.I,{componentId:"codegen_mlflow_app_src_common_components_editabletagstableview.tsx_117","aria-label":"tag value","data-testid":"tags-form-input-value",placeholder:this.props.intl.formatMessage({id:"8XbTnl",defaultMessage:"Value"})})}),(0,c.Y)(o.LegacyForm.Item,{children:(0,c.Y)(l.B,{componentId:"codegen_mlflow_app_src_common_components_editabletagstableview.tsx_127",loading:e,htmlType:"submit","data-testid":"add-tag-button",children:(0,c.Y)(d.A,{id:"4idqpX",defaultMessage:"Add"})})})]})})]})}}const y={form:e=>({"& > div":{marginRight:e.spacing.sm}})},A=(0,v.Ay)(b)},68621:function(e,t,s){s.d(t,{dD:function(){return c}});var i=s(31014),n=s(10811),a=s(26458),o=s(96277),r=s(47664),l=s(50111);class d extends i.Component{constructor(...e){super(...e),this.state={shouldRender:!1,shouldRenderError:!1}}static getErrorRequests(e,t){return e.filter((e=>void 0!==e.error&&!(t&&t.includes(e.id)&&e.error.getErrorCode()===r.tG.RESOURCE_DOES_NOT_EXIST)))}static getDerivedStateFromProps(e){const t=!!e.requests.length&&e.requests.every((e=>e&&!1===e.active)),s=d.getErrorRequests(e.requests,e.requestIdsWith404sToIgnore);return{shouldRender:t,shouldRenderError:s.length>0,requestErrors:s}}getRenderedContent(){const{children:e,requests:t,customSpinner:s,permissionDeniedView:i,suppressErrorThrow:n,customRequestErrorHandlerFn:a}=this.props,{shouldRender:d,shouldRenderError:m,requestErrors:g}=this.state,h=g.filter((e=>e.error.getErrorCode()===r.tG.PERMISSION_DENIED));return"function"===typeof e?e(!d,m,t,g):d||m||this.props.shouldOptimisticallyRender?h.length>0&&i?i:(m&&!n&&(a?a(g):c(g)),e):s||(0,l.Y)(o.y,{})}render(){return this.getRenderedContent()}}d.defaultProps={requests:[],requestIdsWith404sToIgnore:[],shouldOptimisticallyRender:!1};const c=e=>{throw console.error("ERROR",e),Error(`A request error occurred.: ${e.error}`)};t.Ay=(0,n.Ng)(((e,t)=>({requests:(0,a.EW)(t.requestIds,e)})))(d)},90925:function(e,t,s){s.d(t,{K:function(){return a}});var i=s(59403),n=(s(31014),s(50111));const a=({children:e,columns:t})=>{const s=t?r.descriptionsArea(t):r.autoFitArea;return(0,n.Y)("div",{css:s,children:e})};var o={name:"1bmnxg7",styles:"white-space:nowrap"};a.Item=({label:e,labelSize:t="sm",children:s,span:a})=>(0,n.FD)("div",{"data-testid":"descriptions-item",css:r.descriptionItem(a||1),children:[(0,n.Y)("div",{"data-testid":"descriptions-item-label",css:o,children:(0,n.Y)(i.T.Text,{size:t,color:"secondary",children:e})}),(0,n.Y)("div",{"data-testid":"descriptions-item-colon",css:r.colon,children:(0,n.Y)(i.T.Text,{size:t,color:"secondary",children:":"})}),(0,n.Y)("div",{"data-testid":"descriptions-item-content",children:s})]});const r={descriptionsArea:e=>t=>({display:"grid",gridTemplateColumns:`repeat(${e}, minmax(100px, 1fr))`,columnGap:t.spacing.sm,rowGap:t.spacing.md,marginBottom:t.spacing.lg}),autoFitArea:e=>({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(350px, 1fr))",gridGap:e.spacing.md}),descriptionItem:e=>({display:"flex",gridColumn:`span ${e}`}),colon:{margin:"0 8px 0 0"}}},96034:function(e,t,s){s.d(t,{V:function(){return b}});var i=s(89555),n=s(31014),a=s(59403),o=s(68048),r=s(48624);const l=({when:e,message:t})=>{const s=n.useContext(r.jb).navigator.block;return n.useEffect((()=>{if(!e)return;return null===s||void 0===s?void 0:s((()=>window.confirm(t)))}),[t,s,e]),null};s(8844);var d=s(75703),c=s(11473),m=s(88443),g=s(64912),h=s(50111);const u=e=>(0,h.Y)(f,{name:e});class p extends n.Component{constructor(...e){super(...e),this.state={markdown:this.props.defaultMarkdown,selectedTab:this.props.defaultSelectedTab,error:null},this.converter=(0,c.OT)(),this.handleMdeValueChange=e=>{this.setState({markdown:e})},this.handleTabChange=e=>{this.setState({selectedTab:e})},this.handleSubmitClick=()=>{const{onSubmit:e}=this.props,{markdown:t}=this.state;return this.setState({confirmLoading:!0}),e?Promise.resolve(e(t)).then((()=>{this.setState({confirmLoading:!1,error:null})})).catch((e=>{this.setState({confirmLoading:!1,error:e&&e.getMessageField?e.getMessageField():this.props.intl.formatMessage({id:"SzvvXl",defaultMessage:"Failed to submit"})})})):null},this.handleCancelClick=()=>{this.setState({markdown:this.props.defaultMarkdown,selectedTab:this.props.defaultSelectedTab});const{onCancel:e}=this.props;e&&e()}}contentHasChanged(){return this.state.markdown!==this.props.defaultMarkdown}renderActions(){const{confirmLoading:e}=this.state;return(0,h.Y)("div",{className:"mlflow-editable-note-actions","data-testid":"editable-note-actions",children:(0,h.FD)("div",{children:[(0,h.Y)(a.B,{componentId:"codegen_mlflow_app_src_common_components_editablenote.tsx_114",type:"primary",className:"editable-note-save-button",onClick:this.handleSubmitClick,disabled:!this.contentHasChanged()||e,loading:e,"data-testid":"editable-note-save-button",children:this.props.saveText}),(0,h.Y)(a.B,{componentId:"codegen_mlflow_app_src_common_components_editablenote.tsx_124",htmlType:"button",className:"editable-note-cancel-button",onClick:this.handleCancelClick,disabled:e,children:(0,h.Y)(m.A,{id:"17k196",defaultMessage:"Cancel"})})]})})}getSanitizedHtmlContent(){const{markdown:e}=this.state;if(e){const t=(0,c.NW)(this.converter.makeHtml(e));return(0,c.Yc)(t)}return null}render(){const{showEditor:e}=this.props,{markdown:t,selectedTab:s,error:i}=this.state,a=this.getSanitizedHtmlContent();return(0,h.Y)("div",{className:"note-view-outer-container","data-testid":"note-view-outer-container",children:e?(0,h.FD)(n.Fragment,{children:[(0,h.Y)("div",{className:"note-view-text-area",children:(0,h.Y)(d.default,{value:t,minEditorHeight:this.props.minEditorHeight,maxEditorHeight:this.props.maxEditorHeight,minPreviewHeight:50,childProps:this.props.childProps,toolbarCommands:this.props.toolbarCommands,onChange:this.handleMdeValueChange,selectedTab:s,onTabChange:this.handleTabChange,generateMarkdownPreview:e=>Promise.resolve(this.getSanitizedHtmlContent(e)),getIcon:u})}),i&&(0,h.Y)(o.Alert,{componentId:"codegen_mlflow_app_src_common_components_editablenote.tsx_178",type:"error",message:this.props.intl.formatMessage({id:"79dD5F",defaultMessage:"There was an error submitting your note."}),description:i,closable:!0}),this.renderActions(),(0,h.Y)(l,{when:this.contentHasChanged(),message:this.props.intl.formatMessage({id:"dwTTNK",defaultMessage:"Are you sure you want to navigate away? Your pending text changes will be lost."})})]}):(0,h.Y)(v,{content:a})})}}function f(e){const{theme:t}=(0,a.u)(),{name:s}=e;return(0,h.Y)(o.LegacyTooltip,{position:"top",title:s,children:(0,h.Y)("span",{css:(0,i.AH)({color:t.colors.textPrimary},""),children:(0,h.Y)(d.SvgIcon,{icon:s})})})}function v(e){const{content:t}=e;return t?(0,h.Y)("div",{className:"note-view-outer-container","data-testid":"note-view-outer-container",children:(0,h.Y)("div",{className:"note-view-text-area",children:(0,h.Y)("div",{className:"note-view-preview note-editor-preview",children:(0,h.Y)("div",{className:"note-editor-preview-content","data-testid":"note-editor-preview-content",dangerouslySetInnerHTML:{__html:e.content}})})})}):(0,h.Y)("div",{children:(0,h.Y)(m.A,{id:"PRe/8y",defaultMessage:"None"})})}p.defaultProps={defaultMarkdown:"",defaultSelectedTab:"write",showEditor:!1,saveText:(0,h.Y)(m.A,{id:"Shv28w",defaultMessage:"Save"}),confirmLoading:!1,toolbarCommands:[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]],maxEditorHeight:500,minEditorHeight:200,childProps:{}};const b=(0,g.Ay)(p)},96277:function(e,t,s){s.d(t,{y:function(){return o}});var i=s(34860),n=s(89555),a=s(50111);function o({showImmediately:e}){return(0,a.Y)("div",{css:t=>r.spinner(t,e),children:(0,a.Y)("img",{alt:"Page loading...",src:i})})}const r={spinner:(e,t)=>({width:100,marginTop:100,marginLeft:"auto",marginRight:"auto",img:{position:"absolute",opacity:0,top:"50%",left:"50%",width:2*e.general.heightBase,height:2*e.general.heightBase,marginTop:-e.general.heightBase,marginLeft:-e.general.heightBase,animation:`${n.i7` + 0% { + opacity: 1; + } + 100% { + opacity: 1; + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } + `} 3s linear infinite`,animationDelay:t?"0s":"0.5s"}})}}}]); +//# sourceMappingURL=6791.64608625.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6791.64608625.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6791.64608625.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..74efae133aa3beed26ff679d193bb6bacee2bc86 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6791.64608625.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6791.64608625.chunk.js","mappings":"iNAUO,MAAMA,EAAUA,EAAGC,OAAMC,aAC9B,MAAM,MAAEC,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QAAS,OAAQ,SAC1B,CAAC,iBAAkB,eAAgB,iBAErCH,gBAAiB,IACjBD,gBAAiB,IACjBG,WAAY,CAAC,GA0MV,MAAMc,GAAelG,EAAAA,EAAAA,IAAW6D,E,6FCrPhC,SAAS9G,GAAQ,gBAAEoJ,IACxB,OACEzY,EAAAA,EAAAA,GAAA,OAAKhB,IAAML,GAAUqG,EAAO0T,QAAQ/Z,EAAO8Z,GAAiBhZ,UAC1DO,EAAAA,EAAAA,GAAA,OAAK2Y,IAAI,kBAAkBC,IAAKF,KAGtC,CAEA,MAAM1T,EAAS,CACb0T,QAASA,CAAC/Z,EAAcka,KAAmB,CACzClW,MAAO,IACPmW,UAAW,IACXpL,WAAY,OACZ3F,YAAa,OAEb7D,IAAK,CACHgU,SAAU,WACVa,QAAS,EACTC,IAAK,MACLC,KAAM,MACNtW,MAAkC,EAA3BhE,EAAMiE,QAAQC,WACrBI,OAAmC,EAA3BtE,EAAMiE,QAAQC,WACtBiW,WAAYna,EAAMiE,QAAQC,WAC1B6K,YAAa/O,EAAMiE,QAAQC,WAC3BqW,UAAW,GAAGC,EAAAA,EAAS;;;;;;;;;iCAUvBC,eAAgBP,EAAY,KAAO,U","sources":["common/components/TagList.tsx","common/components/CollapsibleSection.tsx","common/utils/MarkdownUtils.ts","common/components/AliasSelect.tsx","common/hooks/useEditAliasesModal.tsx","common/components/error-boundaries/SectionErrorBoundary.tsx","common/components/tables/EditableFormTable.tsx","common/components/EditableTagsTableView.tsx","common/components/RequestStateWrapper.tsx","common/components/Descriptions.tsx","common/components/Prompt.tsx","common/components/EditableNote.tsx","common/components/Spinner.tsx"],"sourcesContent":["import { useDesignSystemTheme } from '@databricks/design-system';\nimport { Tag, Button, PencilIcon } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\nimport { FormattedMessage } from 'react-intl';\n\ninterface Props {\n tags: KeyValueEntity[];\n onEdit: () => void;\n}\n\nexport const TagList = ({ tags, onEdit }: Props) => {\n const { theme } = useDesignSystemTheme();\n\n const hasTags = tags.length > 0;\n\n return (\n \n {tags?.map((tag) => (\n \n \n {tag.key}\n {tag.value ? ':' : null}\n \n  \n {tag.value}\n \n ))}\n : undefined}\n onClick={onEdit}\n >\n {hasTags ? null : (\n \n )}\n \n \n );\n};\n","import React, { useCallback } from 'react';\nimport { SectionErrorBoundary } from './error-boundaries/SectionErrorBoundary';\nimport {\n ChevronRightIcon,\n useDesignSystemTheme,\n Accordion,\n DesignSystemThemeInterface,\n importantify,\n} from '@databricks/design-system';\nimport { useIntl } from 'react-intl';\n\ninterface CollapsibleSectionProps {\n title: string | any;\n forceOpen?: boolean;\n children: React.ReactNode;\n showServerError?: boolean;\n defaultCollapsed?: boolean;\n onChange?: (key: string | string[]) => void;\n className?: string;\n componentId?: string;\n}\n\n// Custom styles to make look like previously used from antd\nconst getAccordionStyles = ({\n theme,\n getPrefixedClassName,\n}: Pick) => {\n const clsPrefix = getPrefixedClassName('collapse');\n\n const classItem = `.${clsPrefix}-item`;\n const classHeader = `.${clsPrefix}-header`;\n const classContentBox = `.${clsPrefix}-content-box`;\n\n return {\n fontSize: 14,\n [`& > ${classItem} > ${classHeader}`]: {\n paddingLeft: 0,\n paddingTop: 12,\n paddingBottom: 12,\n display: 'flex',\n alignItems: 'center',\n fontSize: 16,\n fontWeight: 'normal',\n lineHeight: theme.typography.lineHeightLg,\n },\n [classContentBox]: {\n padding: `${theme.spacing.xs}px 0 ${theme.spacing.md}px 0`,\n },\n };\n};\n\nexport function CollapsibleSection(props: CollapsibleSectionProps) {\n const {\n title,\n forceOpen,\n showServerError,\n defaultCollapsed,\n onChange,\n className,\n componentId = 'mlflow.common.generic_collapsible_section',\n } = props;\n\n // We need to spread `activeKey` into as an optional prop because its enumerability\n // affects rendering, i.e. passing `activeKey={undefined}` is different from not passing activeKey\n const activeKeyProp = forceOpen && { activeKey: ['1'] };\n const defaultActiveKey = defaultCollapsed ? null : ['1'];\n\n const { theme, getPrefixedClassName } = useDesignSystemTheme();\n const { formatMessage } = useIntl();\n\n const getExpandIcon = useCallback(\n ({ isActive }: { isActive?: boolean }) => (\n \n collapsible section > alternative label when expand',\n },\n { title },\n )\n : formatMessage(\n {\n defaultMessage: 'expand {title}',\n description: 'Common component > collapsible section > alternative label when collapsed',\n },\n { title },\n )\n }\n />\n \n ),\n [theme, title, formatMessage],\n );\n\n return (\n \n \n {props.children}\n \n \n );\n}\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport { useCallback } from 'react';\nimport sanitizeHtml from 'sanitize-html';\n// @ts-expect-error TS(7016): Could not find a declaration file for module 'show... Remove this comment to see the full error message\nimport { Converter } from 'showdown';\n\n// Use Github-like Markdown (i.e. support for tasklists, strikethrough,\n// simple line breaks, code blocks, emojis)\nconst DEFAULT_MARKDOWN_FLAVOR = 'github';\n\nlet _converter: Converter | null = null;\n\nexport const getMarkdownConverter = () => {\n // Reuse the same converter instance if available\n if (_converter) {\n return _converter;\n }\n _converter = new Converter();\n _converter.setFlavor(DEFAULT_MARKDOWN_FLAVOR);\n return _converter;\n};\n\n// Options for HTML sanitizer.\n// See https://www.npmjs.com/package/sanitize-html#what-are-the-default-options for usage.\n// These options were chosen to be similar to Github's allowlist but simpler (i.e. we don't\n// do any transforms of the contained HTML and we disallow script entirely instead of\n// removing contents).\nconst sanitizerOptions = {\n allowedTags: [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'h7',\n 'h8',\n 'blockquote',\n 'p',\n 'a',\n 'ul',\n 'ol',\n 'nl',\n 'li',\n 'ins',\n 'b',\n 'i',\n 'strong',\n 'em',\n 'strike',\n 'code',\n 'hr',\n 'br',\n 'div',\n 'table',\n 'thead',\n 'tbody',\n 'tr',\n 'th',\n 'td',\n 'pre',\n 'del',\n 'sup',\n 'sub',\n 'dl',\n 'dt',\n 'dd',\n 'kbd',\n 'q',\n 'samp',\n 'samp',\n 'var',\n 'hr',\n 'rt',\n 'rp',\n 'summary',\n 'iframe',\n 'img',\n 'caption',\n 'figure',\n ],\n allowedAttributes: {\n a: ['href', 'name', 'target'],\n img: ['src', 'longdesc'],\n div: ['itemscope', 'itemtype'],\n },\n};\n\nexport const sanitizeConvertedHtml = (dirtyHtml: any) => {\n return sanitizeHtml(dirtyHtml, sanitizerOptions);\n};\n\nexport const forceAnchorTagNewTab = (html: any) => {\n return html.replace(new RegExp('\n useCallback((markdown?: string) => {\n const converter = getMarkdownConverter();\n const html = converter.makeHtml(markdown);\n return sanitizeConvertedHtml(html);\n }, []);\n","import { Dispatch, useCallback, useState } from 'react';\n\nimport { LegacySelect, useDesignSystemTheme } from '@databricks/design-system';\n\nimport { AliasTag } from './AliasTag';\nimport { FormattedMessage, useIntl } from 'react-intl';\n\n/**\n * A specialized component used for adding and removing aliases from model versions\n */\nexport const AliasSelect = ({\n renderKey,\n setDraftAliases,\n existingAliases,\n draftAliases,\n version,\n aliasToVersionMap,\n disabled,\n}: {\n renderKey: any;\n disabled: boolean;\n setDraftAliases: Dispatch>;\n existingAliases: string[];\n draftAliases: string[];\n version: string;\n aliasToVersionMap: Record;\n}) => {\n const intl = useIntl();\n const [dropdownVisible, setDropdownVisible] = useState(false);\n\n const { theme } = useDesignSystemTheme();\n\n const removeFromEditedAliases = useCallback(\n (alias: string) => {\n setDraftAliases((aliases) => aliases.filter((existingAlias) => existingAlias !== alias));\n },\n [setDraftAliases],\n );\n\n const updateEditedAliases = useCallback(\n (aliases: string[]) => {\n const sanitizedAliases = aliases\n // Remove all characters that are not alphanumeric, underscores or hyphens\n .map((alias) =>\n alias\n .replace(/[^\\w-]/g, '')\n .toLowerCase()\n .substring(0, 255),\n )\n // After sanitization, filter out invalid aliases\n // so we won't get empty values\n .filter((alias) => alias.length > 0);\n\n // Remove duplicates that might result from varying letter case\n const uniqueAliases = Array.from(new Set(sanitizedAliases));\n setDraftAliases(uniqueAliases);\n setDropdownVisible(false);\n },\n [setDraftAliases],\n );\n\n return (\n // For the time being, we will use under the hood,\n // while is still in the design phase.\n opt?.value.toLowerCase().startsWith(val.toLowerCase())}\n placeholder={intl.formatMessage({\n defaultMessage: 'Enter aliases (champion, challenger, etc)',\n description: 'Model registry > model version alias select > Alias input placeholder',\n })}\n allowClear\n css={{ width: '100%' }}\n mode=\"tags\"\n // There's a bug with current implementation that causes the dropdown\n // to detach from input vertically when its position on screen changes (in this case, it's\n // caused by the conflict alerts). A small key={} hack ensures that the component is recreated\n // and the dropdown is repositioned each time the alerts below are changed.\n key={JSON.stringify(renderKey)}\n onChange={updateEditedAliases}\n dangerouslySetAntdProps={{\n dropdownMatchSelectWidth: true,\n tagRender: ({ value }) => (\n removeFromEditedAliases(value.toString())}\n value={value.toString()}\n />\n ),\n }}\n onDropdownVisibleChange={setDropdownVisible}\n open={dropdownVisible}\n value={draftAliases || []}\n >\n {existingAliases.map((alias) => (\n \n
\n
{alias}
\n
\n model version alias select > Indicator for alias of selected version\"\n />\n
\n
\n
\n ))}\n {Object.entries(aliasToVersionMap)\n .filter(([, otherVersion]) => otherVersion !== version)\n .map(([alias, aliasedVersion]) => (\n \n
\n
{alias}
\n
\n model version alias select > Indicator for alias of a particular version\"\n values={{ version: aliasedVersion }}\n />\n
\n
\n
\n ))}\n
\n );\n};\n","import { isEqual } from 'lodash';\nimport { useCallback, useMemo, useState } from 'react';\n\nimport { Alert, Button, LegacyForm, Modal, useDesignSystemTheme } from '@databricks/design-system';\nimport { Typography } from '@databricks/design-system';\nimport { AliasSelect } from '../components/AliasSelect';\nimport { FormattedMessage } from 'react-intl';\n\nimport { ErrorWrapper } from '../utils/ErrorWrapper';\nimport { AliasMap } from '../types';\n\nconst MAX_ALIASES_PER_MODEL_VERSION = 10;\n\n/**\n * Provides methods to initialize and display modal used to add and remove aliases from the model version\n */\nexport const useEditAliasesModal = ({\n aliases,\n onSuccess,\n onSave,\n getTitle,\n description,\n}: {\n aliases: AliasMap;\n onSuccess?: () => void;\n onSave: (currentlyEditedVersion: string, existingAliases: string[], draftAliases: string[]) => Promise;\n getTitle: (version: string) => React.ReactNode;\n description?: React.ReactNode;\n}) => {\n const [isLoading, setIsLoading] = useState(false);\n const [showModal, setShowModal] = useState(false);\n const [form] = LegacyForm.useForm();\n\n const [errorMessage, setErrorMessage] = useState('');\n const { theme } = useDesignSystemTheme();\n\n // We will keep version's existing aliases in `existingAliases` state array\n const [existingAliases, setExistingAliases] = useState([]);\n // Currently edited aliases will be kept in `draftAliases` state array\n const [draftAliases, setDraftAliases] = useState([]);\n // Currently edited version\n const [currentlyEditedVersion, setCurrentlyEditedVersion] = useState('0');\n\n /**\n * Function used to invoke the modal and start editing aliases of the particular model version\n */\n const showEditAliasesModal = useCallback(\n (versionNumber: string) => {\n const modelVersionAliases =\n aliases.filter(({ version }) => version === versionNumber).map(({ alias }) => alias) || [];\n\n if (versionNumber) {\n setExistingAliases(modelVersionAliases);\n setDraftAliases(modelVersionAliases);\n setCurrentlyEditedVersion(versionNumber);\n setShowModal(true);\n }\n },\n [aliases],\n );\n\n // // Finds and stores alias values found in other model versions\n const conflictedAliases = useMemo(() => {\n const versionsWithAliases = aliases.reduce<{ version: string; aliases: string[] }[]>((aliasMap, aliasEntry) => {\n if (!aliasMap.some(({ version }) => version === aliasEntry.version)) {\n return [...aliasMap, { version: aliasEntry.version, aliases: [aliasEntry.alias] }];\n }\n aliasMap.find(({ version }) => version === aliasEntry.version)?.aliases.push(aliasEntry.alias);\n return aliasMap;\n }, []);\n const otherVersionMappings = versionsWithAliases.filter(\n ({ version: otherVersion }) => otherVersion !== currentlyEditedVersion,\n );\n return draftAliases\n .map((alias) => ({\n alias,\n otherVersion: otherVersionMappings.find((version) =>\n version.aliases?.find((alias_name) => alias_name === alias),\n ),\n }))\n .filter(({ otherVersion }) => otherVersion);\n }, [aliases, draftAliases, currentlyEditedVersion]);\n\n // Maps particular aliases to versions\n const aliasToVersionMap = useMemo(\n () =>\n aliases.reduce>((result, { alias, version }) => {\n return { ...result, [alias]: version };\n }, {}) || {},\n [aliases],\n );\n\n const save = () => {\n setErrorMessage('');\n setIsLoading(true);\n onSave(currentlyEditedVersion, existingAliases, draftAliases)\n .then(() => {\n setIsLoading(false);\n setShowModal(false);\n onSuccess?.();\n })\n .catch((e: ErrorWrapper | Error) => {\n setIsLoading(false);\n if (e instanceof ErrorWrapper) {\n const extractedErrorMessage = e.getMessageField() || e.getUserVisibleError().toString() || e.text;\n setErrorMessage(extractedErrorMessage);\n } else {\n setErrorMessage(e.message);\n }\n });\n };\n\n // Indicates if there is any pending change to the alias set\n const isPristine = isEqual(existingAliases.slice().sort(), draftAliases.slice().sort());\n const isExceedingLimit = draftAliases.length > MAX_ALIASES_PER_MODEL_VERSION;\n\n const isInvalid = isPristine || isExceedingLimit;\n\n const EditAliasesModal = (\n \n \n \n Confirm change of aliases\" />\n \n \n }\n destroyOnClose\n title={getTitle(currentlyEditedVersion)}\n onCancel={() => setShowModal(false)}\n confirmLoading={false}\n >\n {description}\n \n \n \n \n
\n {isExceedingLimit && (\n Warning about exceeding aliases limit\"\n values={{ limit: MAX_ALIASES_PER_MODEL_VERSION }}\n />\n }\n type=\"error\"\n closable={false}\n />\n )}\n {conflictedAliases.map(({ alias, otherVersion }) => (\n Warning about reusing alias from the other version\"\n values={{ otherVersion: otherVersion?.version, alias }}\n />\n }\n type=\"info\"\n closable={false}\n />\n ))}\n {errorMessage && (\n \n )}\n
\n
\n \n );\n\n return { EditAliasesModal, showEditAliasesModal };\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport Utils from '../../utils/Utils';\n\ntype Props = {\n showServerError?: boolean;\n};\n\ntype State = any;\n\nexport class SectionErrorBoundary extends React.Component {\n state = { error: null };\n\n componentDidCatch(error: any, errorInfo: any) {\n this.setState({ error });\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(error, errorInfo);\n }\n\n renderErrorMessage(error: any) {\n return this.props.showServerError ?
Error message: {error.message}
: '';\n }\n\n render() {\n const { children } = this.props;\n const { error } = this.state;\n if (error) {\n return (\n
\n

\n \n Something went wrong with this section. \n If this error persists, please report an issue \n {/* Reported during ESLint upgrade */}\n {/* eslint-disable-next-line react/jsx-no-target-blank */}\n \n here\n \n .{this.renderErrorMessage(error)}\n

\n
\n );\n }\n\n return children;\n }\n}\n\nconst classNames = {\n wrapper: {\n marginLeft: -2, // to align the failure icon with the collapsable section caret toggle\n },\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport {\n Input,\n Button,\n LegacyForm,\n Modal,\n LegacyTable,\n PencilIcon,\n Spinner,\n TrashIcon,\n} from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\n\n// @ts-expect-error TS(2554): Expected 1 arguments, but got 0.\nconst EditableContext = React.createContext();\n\ntype EditableCellProps = {\n editing?: boolean;\n dataIndex?: string;\n title?: string;\n record?: any;\n index?: number;\n save?: (...args: any[]) => any;\n cancel?: (...args: any[]) => any;\n recordKey?: string;\n};\n\nclass EditableCell extends React.Component {\n handleKeyPress = (event: any) => {\n const { save, recordKey, cancel } = this.props;\n if (event.key === 'Enter') {\n // @ts-expect-error TS(2722): Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message\n save(recordKey);\n } else if (event.key === 'Escape') {\n // @ts-expect-error TS(2722): Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message\n cancel();\n }\n };\n\n render() {\n const { editing, dataIndex, record, children } = this.props;\n return (\n \n {/* @ts-expect-error TS(2322): Type '({ formRef }: { formRef: any; }) => Element'... Remove this comment to see the full error message */}\n {({ formRef }) => (\n
\n {editing ? (\n // @ts-expect-error TS(2322): Type '{ children: Element; ref: any; }' is not ass... Remove this comment to see the full error message\n \n {/* @ts-expect-error TS(2322): Type '{ children: Element; style: { margin: number... Remove this comment to see the full error message */}\n \n \n \n \n ) : (\n children\n )}\n
\n )}\n
\n );\n }\n}\n\ntype EditableTableProps = {\n columns: any[];\n data: any[];\n onSaveEdit: (...args: any[]) => any;\n onDelete: (...args: any[]) => any;\n intl?: any;\n};\n\ntype EditableTableState = any;\n\nexport class EditableTable extends React.Component {\n columns: any;\n form: any;\n\n constructor(props: EditableTableProps) {\n super(props);\n this.state = { editingKey: '', isRequestPending: false, deletingKey: '' };\n this.columns = this.initColumns();\n this.form = React.createRef();\n }\n\n initColumns = () => [\n ...this.props.columns.map((col) =>\n col.editable\n ? {\n ...col,\n render: (text: any, record: any) => (\n \n ),\n }\n : col,\n ),\n {\n title: (\n \n ),\n dataIndex: 'operation',\n render: (text: any, record: any) => {\n const { editingKey, isRequestPending } = this.state;\n const editing = this.isEditing(record);\n if (editing && isRequestPending) {\n return ;\n }\n return editing ? (\n \n this.save(record.key)}\n style={{ marginRight: 10 }}\n data-testid=\"editable-table-button-save\"\n >\n \n \n this.cancel(record.key)}\n data-testid=\"editable-table-button-cancel\"\n >\n \n \n \n ) : (\n \n }\n disabled={editingKey !== ''}\n onClick={() => this.edit(record.key)}\n data-testid=\"editable-table-button-edit\"\n />\n }\n disabled={editingKey !== ''}\n onClick={() => this.setState({ deletingKey: record.key })}\n data-testid=\"editable-table-button-delete\"\n />\n \n );\n },\n },\n ];\n\n // @ts-expect-error TS(4111): Property 'editingKey' comes from an index signatur... Remove this comment to see the full error message\n isEditing = (record: any) => record.key === this.state.editingKey;\n\n cancel = () => {\n this.setState({ editingKey: '' });\n };\n\n save = (key: any) => {\n this.form.current.validateFields().then((values: any) => {\n const record = this.props.data.find((r) => r.key === key);\n if (record) {\n this.setState({ isRequestPending: true });\n this.props.onSaveEdit({ ...record, ...values }).then(() => {\n this.setState({ editingKey: '', isRequestPending: false });\n });\n }\n });\n };\n\n delete = async (key: any) => {\n try {\n const record = this.props.data.find((r) => r.key === key);\n if (record) {\n this.setState({ isRequestPending: true });\n await this.props.onDelete({ ...record });\n }\n } finally {\n this.setState({ deletingKey: '', isRequestPending: false });\n }\n };\n\n edit = (key: any) => {\n this.setState({ editingKey: key });\n };\n\n render() {\n const { data } = this.props;\n return (\n \n \n ),\n }}\n scroll={{ y: 280 }}\n />\n \n }\n // @ts-expect-error TS(4111): Property 'deletingKey' comes from an index signatu... Remove this comment to see the full error message\n visible={this.state.deletingKey}\n okText={\n \n }\n cancelText={\n \n }\n // @ts-expect-error TS(4111): Property 'isRequestPending' comes from an index si... Remove this comment to see the full error message\n confirmLoading={this.state.isRequestPending}\n // @ts-expect-error TS(4111): Property 'deletingKey' comes from an index signatu... Remove this comment to see the full error message\n onOk={() => this.delete(this.state.deletingKey)}\n onCancel={() => this.setState({ deletingKey: '' })}\n />\n \n );\n }\n}\n\nexport const EditableFormTable = EditableTable;\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport Utils from '../utils/Utils';\nimport { LegacyForm, Input, Button, Spacer } from '@databricks/design-system';\nimport { EditableFormTable } from './tables/EditableFormTable';\nimport _ from 'lodash';\nimport { FormattedMessage, injectIntl } from 'react-intl';\n\ntype Props = {\n tags: any;\n handleAddTag: (...args: any[]) => any;\n handleSaveEdit: (...args: any[]) => any;\n handleDeleteTag: (...args: any[]) => any;\n isRequestPending: boolean;\n intl: {\n formatMessage: (...args: any[]) => any;\n };\n innerRef?: any;\n};\n\nclass EditableTagsTableViewImpl extends Component {\n tableColumns = [\n {\n title: this.props.intl.formatMessage({\n defaultMessage: 'Name',\n description: 'Column title for name column in editable tags table view in MLflow',\n }),\n dataIndex: 'name',\n width: 200,\n },\n {\n title: this.props.intl.formatMessage({\n defaultMessage: 'Value',\n description: 'Column title for value column in editable tags table view in MLflow',\n }),\n dataIndex: 'value',\n width: 200,\n editable: true,\n },\n ];\n\n getData = () =>\n _.sortBy(\n Utils.getVisibleTagValues(this.props.tags).map((values) => ({\n key: values[0],\n name: values[0],\n value: values[1],\n })),\n 'name',\n );\n\n getTagNamesAsSet = () => new Set(Utils.getVisibleTagValues(this.props.tags).map((values) => values[0]));\n\n tagNameValidator = (rule: any, value: any, callback: any) => {\n const tagNamesSet = this.getTagNamesAsSet();\n callback(\n tagNamesSet.has(value)\n ? this.props.intl.formatMessage(\n {\n defaultMessage: 'Tag \"{value}\" already exists.',\n description: 'Validation message for tags that already exist in tags table in MLflow',\n },\n {\n value: value,\n },\n )\n : undefined,\n );\n };\n\n render() {\n const { isRequestPending, handleSaveEdit, handleDeleteTag, handleAddTag, innerRef } = this.props;\n\n return (\n <>\n \n \n
\n {/* @ts-expect-error TS(2322): Type '{ children: Element[]; ref: any; layout: \"in... Remove this comment to see the full error message */}\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n }\n}\n\nconst styles = {\n form: (theme: any) => ({\n '& > div': { marginRight: theme.spacing.sm },\n }),\n};\n\n// @ts-expect-error TS(2769): No overload matches this call.\nexport const EditableTagsTableView = injectIntl(EditableTagsTableViewImpl);\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { getApis } from '../../experiment-tracking/reducers/Reducers';\nimport { Spinner } from './Spinner';\nimport { ErrorCodes } from '../constants';\nimport { ErrorWrapper } from '../utils/ErrorWrapper';\nimport { ReduxState } from '../../redux-types';\n\nexport const DEFAULT_ERROR_MESSAGE = 'A request error occurred.';\n\ntype RequestStateWrapperProps = {\n children?: React.ReactNode;\n customSpinner?: React.ReactNode;\n shouldOptimisticallyRender?: boolean;\n requests: any[];\n requestIds?: string[];\n requestIdsWith404sToIgnore?: string[];\n description?: any; // TODO: PropTypes.oneOf(Object.values(LoadingDescription))\n permissionDeniedView?: React.ReactNode;\n suppressErrorThrow?: boolean;\n customRequestErrorHandlerFn?: (\n failedRequests: {\n id: string;\n active?: boolean;\n error: Error | ErrorWrapper;\n }[],\n ) => void;\n};\n\ntype RequestStateWrapperState = any;\n\nexport class RequestStateWrapper extends Component {\n static defaultProps = {\n requests: [],\n requestIdsWith404sToIgnore: [],\n shouldOptimisticallyRender: false,\n };\n\n state = {\n shouldRender: false,\n shouldRenderError: false,\n };\n\n static getErrorRequests(requests: any, requestIdsWith404sToIgnore: any) {\n return requests.filter((r: any) => {\n if (r.error !== undefined) {\n return !(\n requestIdsWith404sToIgnore &&\n requestIdsWith404sToIgnore.includes(r.id) &&\n r.error.getErrorCode() === ErrorCodes.RESOURCE_DOES_NOT_EXIST\n );\n }\n return false;\n });\n }\n\n static getDerivedStateFromProps(nextProps: any) {\n const shouldRender = nextProps.requests.length\n ? nextProps.requests.every((r: any) => r && r.active === false)\n : false;\n\n const requestErrors = RequestStateWrapper.getErrorRequests(\n nextProps.requests,\n nextProps.requestIdsWith404sToIgnore,\n );\n\n return {\n shouldRender,\n shouldRenderError: requestErrors.length > 0,\n requestErrors,\n };\n }\n\n getRenderedContent() {\n const { children, requests, customSpinner, permissionDeniedView, suppressErrorThrow, customRequestErrorHandlerFn } =\n this.props;\n // @ts-expect-error TS(2339): Property 'requestErrors' does not exist on type '{... Remove this comment to see the full error message\n const { shouldRender, shouldRenderError, requestErrors } = this.state;\n const permissionDeniedErrors = requestErrors.filter((failedRequest: any) => {\n return failedRequest.error.getErrorCode() === ErrorCodes.PERMISSION_DENIED;\n });\n\n if (typeof children === 'function') {\n return children(!shouldRender, shouldRenderError, requests, requestErrors);\n } else if (shouldRender || shouldRenderError || this.props.shouldOptimisticallyRender) {\n if (permissionDeniedErrors.length > 0 && permissionDeniedView) {\n return permissionDeniedView;\n }\n if (shouldRenderError && !suppressErrorThrow) {\n customRequestErrorHandlerFn ? customRequestErrorHandlerFn(requestErrors) : triggerError(requestErrors);\n }\n\n return children;\n }\n\n return customSpinner || ;\n }\n\n render() {\n return this.getRenderedContent();\n }\n}\n\nexport const triggerError = (requests: any) => {\n // This triggers the OOPS error boundary.\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error('ERROR', requests);\n throw Error(`${DEFAULT_ERROR_MESSAGE}: ${requests.error}`);\n};\n\nconst mapStateToProps = (state: ReduxState, ownProps: Omit) => ({\n requests: getApis(ownProps.requestIds, state),\n});\n\nexport default connect(mapStateToProps)(RequestStateWrapper);\n","import { Typography } from '@databricks/design-system';\nimport { Theme } from '@emotion/react';\nimport React from 'react';\n\nexport interface DescriptionsProps {\n columns?: number;\n}\n\nexport interface DescriptionsItemProps {\n label: string | React.ReactNode;\n labelSize?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';\n span?: number;\n}\n\n/**\n * A component that displays the informative data in a key-value\n * fashion. Behaves similarly to antd's component.\n * If the number of columns is specified, then the key-values will\n * be displayed as such and will always be that number of columns\n * regardless of the width of the window.\n * If the number of columns is not specified, then the number of\n * columns will vary based on the size of the window.\n *\n * The following example will display four key-value descriptions\n * using two columns, which will result in data displayed in two rows:\n *\n * @example\n * \n * The value\n * Another value\n * A value\n * Extra value\n * \n */\nexport const Descriptions = ({ children, columns }: React.PropsWithChildren) => {\n const instanceStyles = columns ? styles.descriptionsArea(columns) : styles.autoFitArea;\n\n return
{children}
;\n};\n\nDescriptions.Item = ({ label, labelSize = 'sm', children, span }: React.PropsWithChildren) => {\n return (\n
\n
\n \n {label}\n \n
\n
\n \n :\n \n
\n
{children}
\n
\n );\n};\n\nconst styles = {\n descriptionsArea: (columnCount: number) => (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `repeat(${columnCount}, minmax(100px, 1fr))`,\n columnGap: theme.spacing.sm,\n rowGap: theme.spacing.md,\n marginBottom: theme.spacing.lg,\n }),\n autoFitArea: (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: 'repeat(auto-fill, minmax(350px, 1fr))',\n gridGap: theme.spacing.md,\n }),\n descriptionItem: (span: number) => ({\n display: 'flex',\n gridColumn: `span ${span}`,\n }),\n colon: {\n margin: '0 8px 0 0',\n },\n};\n","import React from 'react';\nimport { UNSAFE_NavigationContext } from '../utils/RoutingUtils';\n\nconst useNavigationBlock = () => {\n return (React.useContext(UNSAFE_NavigationContext) as any).navigator.block;\n};\n\nexport interface PromptProps {\n when: boolean;\n message: string;\n}\n\n/**\n * Component confirms navigating away by displaying prompt if given condition is met.\n * Uses react-router v6 API.\n */\nexport const Prompt = ({ when, message }: PromptProps) => {\n const block = useNavigationBlock();\n\n React.useEffect(() => {\n if (!when) return;\n\n const unblock = block?.(() => {\n // eslint-disable-next-line no-alert\n return window.confirm(message);\n });\n\n // eslint-disable-next-line consistent-return\n return unblock;\n }, [message, block, when]);\n\n return null;\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { Alert, Button, LegacyTooltip, useDesignSystemTheme } from '@databricks/design-system';\nimport { Prompt } from './Prompt';\nimport 'react-mde/lib/styles/css/react-mde-all.css';\nimport ReactMde, { SvgIcon } from 'react-mde';\nimport { forceAnchorTagNewTab, getMarkdownConverter, sanitizeConvertedHtml } from '../utils/MarkdownUtils';\nimport './EditableNote.css';\nimport { FormattedMessage, IntlShape, injectIntl } from 'react-intl';\n\ntype EditableNoteImplProps = {\n defaultMarkdown?: string;\n defaultSelectedTab?: string;\n onSubmit?: (...args: any[]) => any;\n onCancel?: (...args: any[]) => any;\n showEditor?: boolean;\n saveText?: any;\n toolbarCommands?: any[];\n maxEditorHeight?: number;\n minEditorHeight?: number;\n childProps?: any;\n intl: IntlShape;\n};\n\ntype EditableNoteImplState = any;\n\nconst getReactMdeIcon = (name: string) => ;\n\nexport class EditableNoteImpl extends Component {\n static defaultProps = {\n defaultMarkdown: '',\n defaultSelectedTab: 'write',\n showEditor: false,\n saveText: (\n \n ),\n confirmLoading: false,\n toolbarCommands: [\n ['header', 'bold', 'italic', 'strikethrough'],\n ['link', 'quote', 'code', 'image'],\n ['unordered-list', 'ordered-list', 'checked-list'],\n ],\n maxEditorHeight: 500,\n minEditorHeight: 200,\n childProps: {},\n };\n\n state = {\n markdown: this.props.defaultMarkdown,\n selectedTab: this.props.defaultSelectedTab,\n error: null,\n };\n\n converter = getMarkdownConverter();\n\n handleMdeValueChange = (markdown: any) => {\n this.setState({ markdown });\n };\n\n handleTabChange = (selectedTab: any) => {\n this.setState({ selectedTab });\n };\n\n handleSubmitClick = () => {\n const { onSubmit } = this.props;\n const { markdown } = this.state;\n this.setState({ confirmLoading: true });\n if (onSubmit) {\n return Promise.resolve(onSubmit(markdown))\n .then(() => {\n this.setState({ confirmLoading: false, error: null });\n })\n .catch((e) => {\n this.setState({\n confirmLoading: false,\n error:\n e && e.getMessageField\n ? e.getMessageField()\n : this.props.intl.formatMessage({\n defaultMessage: 'Failed to submit',\n description: 'Message text for failing to save changes in editable note in MLflow',\n }),\n });\n });\n }\n return null;\n };\n\n handleCancelClick = () => {\n // Reset to the last defaultMarkdown passed in as props.\n this.setState({\n markdown: this.props.defaultMarkdown,\n selectedTab: this.props.defaultSelectedTab,\n });\n const { onCancel } = this.props;\n if (onCancel) {\n onCancel();\n }\n };\n\n contentHasChanged() {\n return this.state.markdown !== this.props.defaultMarkdown;\n }\n\n renderActions() {\n // @ts-expect-error TS(2339): Property 'confirmLoading' does not exist on type '... Remove this comment to see the full error message\n const { confirmLoading } = this.state;\n return (\n
\n
\n \n {this.props.saveText}\n \n \n \n \n
\n
\n );\n }\n\n getSanitizedHtmlContent() {\n const { markdown } = this.state;\n if (markdown) {\n const sanitized = sanitizeConvertedHtml(this.converter.makeHtml(markdown));\n return forceAnchorTagNewTab(sanitized);\n }\n return null;\n }\n\n render() {\n const { showEditor } = this.props;\n const { markdown, selectedTab, error } = this.state;\n const htmlContent = this.getSanitizedHtmlContent();\n return (\n
\n {showEditor ? (\n \n
\n Promise.resolve(this.getSanitizedHtmlContent(md))}\n getIcon={getReactMdeIcon}\n />\n
\n {error && (\n \n )}\n {this.renderActions()}\n \n
\n ) : (\n \n )}\n
\n );\n }\n}\n\ntype TooltipIconProps = {\n name?: string;\n};\n\nfunction TooltipIcon(props: TooltipIconProps) {\n const { theme } = useDesignSystemTheme();\n const { name } = props;\n return (\n // @ts-expect-error TS(2322): Type '{ children: Element; position: string; title... Remove this comment to see the full error message\n \n \n {/* @ts-expect-error TS(2322): Type 'string | undefined' is not assignable to typ... Remove this comment to see the full error message */}\n \n \n \n );\n}\n\ntype HTMLNoteContentProps = {\n content?: string;\n};\n\nfunction HTMLNoteContent(props: HTMLNoteContentProps) {\n const { content } = props;\n return content ? (\n
\n
\n
\n \n
\n
\n
\n ) : (\n
\n \n
\n );\n}\n\nexport const EditableNote = injectIntl(EditableNoteImpl);\n","import spinner from '../static/mlflow-spinner.png';\nimport { Interpolation, keyframes, Theme } from '@emotion/react';\n\ntype Props = {\n showImmediately?: boolean;\n};\n\nexport function Spinner({ showImmediately }: Props) {\n return (\n
styles.spinner(theme, showImmediately)}>\n \"Page\n
\n );\n}\n\nconst styles = {\n spinner: (theme: Theme, immediate?: boolean): Interpolation => ({\n width: 100,\n marginTop: 100,\n marginLeft: 'auto',\n marginRight: 'auto',\n\n img: {\n position: 'absolute',\n opacity: 0,\n top: '50%',\n left: '50%',\n width: theme.general.heightBase * 2,\n height: theme.general.heightBase * 2,\n marginTop: -theme.general.heightBase,\n marginLeft: -theme.general.heightBase,\n animation: `${keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n `} 3s linear infinite`,\n animationDelay: immediate ? '0s' : '0.5s',\n },\n }),\n};\n"],"names":["TagList","tags","onEdit","theme","useDesignSystemTheme","hasTags","length","_jsxs","css","_css","display","flexDirection","flexWrap","alignItems","gap","spacing","xs","children","map","tag","Tag","componentId","key","value","_jsx","Button","size","icon","PencilIcon","undefined","onClick","FormattedMessage","id","defaultMessage","getAccordionStyles","getPrefixedClassName","clsPrefix","classItem","classHeader","classContentBox","fontSize","paddingLeft","paddingTop","paddingBottom","fontWeight","lineHeight","typography","lineHeightLg","padding","md","CollapsibleSection","props","title","forceOpen","showServerError","defaultCollapsed","onChange","className","activeKeyProp","activeKey","defaultActiveKey","formatMessage","useIntl","getExpandIcon","useCallback","isActive","importantify","width","general","heightBase","transform","ChevronRightIcon","svg","height","Accordion","dangerouslyAppendEmotionCSS","dangerouslySetAntdProps","expandIconPosition","expandIcon","Panel","header","SectionErrorBoundary","_converter","getMarkdownConverter","Converter","setFlavor","sanitizerOptions","allowedTags","allowedAttributes","a","img","div","sanitizeConvertedHtml","dirtyHtml","sanitizeHtml","forceAnchorTagNewTab","html","replace","RegExp","useMarkdownConverter","markdown","makeHtml","_ref","name","styles","_ref2","_ref3","_ref4","AliasSelect","renderKey","setDraftAliases","existingAliases","draftAliases","version","aliasToVersionMap","disabled","intl","dropdownVisible","setDropdownVisible","useState","removeFromEditedAliases","alias","aliases","filter","existingAlias","updateEditedAliases","sanitizedAliases","toLowerCase","substring","uniqueAliases","Array","from","Set","LegacySelect","filterOption","val","opt","startsWith","placeholder","allowClear","mode","dropdownMatchSelectWidth","tagRender","AliasTag","compact","closable","onClose","toString","onDropdownVisibleChange","open","Option","marginRight","Object","entries","otherVersion","aliasedVersion","values","JSON","stringify","useEditAliasesModal","onSuccess","onSave","getTitle","description","isLoading","setIsLoading","showModal","setShowModal","form","LegacyForm","useForm","errorMessage","setErrorMessage","setExistingAliases","currentlyEditedVersion","setCurrentlyEditedVersion","showEditAliasesModal","versionNumber","modelVersionAliases","conflictedAliases","useMemo","otherVersionMappings","reduce","aliasMap","aliasEntry","_aliasMap$find","some","find","push","_version$aliases","alias_name","result","isPristine","isEqual","slice","sort","isExceedingLimit","isInvalid","EditAliasesModal","Modal","visible","footer","loading","type","save","then","catch","e","ErrorWrapper","extractedErrorMessage","getMessageField","getUserVisibleError","text","message","destroyOnClose","onCancel","confirmLoading","Typography","Paragraph","layout","Item","Alert","role","limit","React","constructor","args","state","error","componentDidCatch","errorInfo","this","setState","console","renderErrorMessage","render","classNames","wrapper","href","Utils","getSupportPageUrl","target","marginLeft","EditableContext","EditableCell","handleKeyPress","event","recordKey","cancel","editing","dataIndex","record","Consumer","formRef","ref","style","margin","initialValue","Input","onKeyDown","EditableTable","super","columns","initColumns","col","editable","isEditing","editingKey","isRequestPending","Spinner","edit","TrashIcon","deletingKey","current","validateFields","data","r","onSaveEdit","delete","async","onDelete","Provider","LegacyTable","dataSource","tableLayout","pagination","locale","emptyText","scroll","y","okText","cancelText","onOk","EditableFormTable","EditableTagsTableViewImpl","Component","tableColumns","getData","_","getVisibleTagValues","getTagNamesAsSet","tagNameValidator","rule","callback","has","handleSaveEdit","handleDeleteTag","handleAddTag","innerRef","_Fragment","Spacer","onFinish","rules","required","validator","htmlType","sm","EditableTagsTableView","injectIntl","RequestStateWrapper","shouldRender","shouldRenderError","getErrorRequests","requests","requestIdsWith404sToIgnore","includes","getErrorCode","ErrorCodes","RESOURCE_DOES_NOT_EXIST","getDerivedStateFromProps","nextProps","every","active","requestErrors","getRenderedContent","customSpinner","permissionDeniedView","suppressErrorThrow","customRequestErrorHandlerFn","permissionDeniedErrors","failedRequest","PERMISSION_DENIED","shouldOptimisticallyRender","triggerError","defaultProps","Error","connect","mapStateToProps","ownProps","getApis","requestIds","Descriptions","instanceStyles","descriptionsArea","autoFitArea","label","labelSize","span","descriptionItem","Text","color","colon","columnCount","gridTemplateColumns","columnGap","rowGap","marginBottom","lg","gridGap","gridColumn","Prompt","when","block","UNSAFE_NavigationContext","navigator","window","confirm","getReactMdeIcon","TooltipIcon","EditableNoteImpl","defaultMarkdown","selectedTab","defaultSelectedTab","converter","handleMdeValueChange","handleTabChange","handleSubmitClick","onSubmit","Promise","resolve","handleCancelClick","contentHasChanged","renderActions","saveText","getSanitizedHtmlContent","sanitized","showEditor","htmlContent","ReactMde","minEditorHeight","maxEditorHeight","minPreviewHeight","childProps","toolbarCommands","onTabChange","generateMarkdownPreview","getIcon","HTMLNoteContent","content","LegacyTooltip","position","colors","textPrimary","SvgIcon","dangerouslySetInnerHTML","__html","EditableNote","showImmediately","spinner","alt","src","immediate","marginTop","opacity","top","left","animation","keyframes","animationDelay"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6931.db3e086e.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6931.db3e086e.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..3b6c3e98d2c044754210e7b920679925cc559906 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6931.db3e086e.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6931],{66931:function(e,t,o){o.r(t);var d=o(31014),i=o(68048),n=o(77484),a=o(50111);var l={name:"82a6rk",styles:"flex:1"};t.default=({runUuid:e,path:t,getArtifact:o=n.UQ,isLoggedModelsMode:c,loggedModelId:r})=>{const[s,u]=(0,d.useState)(),[f,h]=(0,d.useState)(!0);(0,d.useEffect)((()=>{let d;const i=c&&r?(0,n.qk)(t,r):(0,n.To)(t,e);return o(i).then((e=>{d=URL.createObjectURL(e),u(d),h(!1)})),()=>{d&&URL.revokeObjectURL(d)}}),[e,t,c,r,o]);const v={videoOuterContainer:{padding:10,overflow:"hidden",background:"black",minHeight:"100%"},hidden:{display:"none"},video:{maxWidth:"100%",maxHeight:"62.5vh",objectFit:"fit",display:"block"}};return(0,a.Y)("div",{css:l,children:(0,a.FD)("div",{css:v.videoOuterContainer,children:[f&&(0,a.Y)(i.LegacySkeleton,{active:!0}),s&&(0,a.Y)("video",{css:f?v.hidden:v.video,src:s,controls:!0,preload:"auto","aria-label":"video",children:(0,a.Y)("track",{kind:"captions",srcLang:"en",src:"",default:!0})})]})})}}}]); +//# sourceMappingURL=6931.db3e086e.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6931.db3e086e.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6931.db3e086e.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5c5e465aab9c0143c7d64d9cfb624e5d08135343 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6931.db3e086e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6931.db3e086e.chunk.js","mappings":"8KAM6C,IAAAA,EAAA,CAAAC,KAAA,SAAAC,OAAA,UA0E7C,UAjE8BC,EAC5BC,UACAC,OACAC,cAAcC,EAAAA,GACdC,qBACAC,oBAEA,MAAOC,EAAUC,IAAeC,EAAAA,EAAAA,aACzBC,EAASC,IAAcF,EAAAA,EAAAA,WAAS,IAEvCG,EAAAA,EAAAA,YAAU,KACR,IAAIC,EAEJ,MAAMC,EACJT,GAAsBC,GAClBS,EAAAA,EAAAA,IAAkCb,EAAMI,IACxCU,EAAAA,EAAAA,IAAuBd,EAAMD,GAQnC,OANAE,EAAYW,GAAaG,MAAMC,IAC7BL,EAASM,IAAIC,gBAAgBF,GAC7BV,EAAYK,GACZF,GAAW,EAAM,IAGZ,KACDE,GAAQM,IAAIE,gBAAgBR,EAAO,CACxC,GACA,CAACZ,EAASC,EAAMG,EAAoBC,EAAeH,IAEtD,MAAMmB,EAAa,CACjBC,oBAAqB,CACnBC,QAAS,GACTC,SAAU,SACVC,WAAY,QACZC,UAAW,QAEbC,OAAQ,CAAEC,QAAS,QACnBC,MAAO,CACLC,SAAU,OACVC,UAAW,SACXC,UAAW,MACXJ,QAAS,UAIb,OACEK,EAAAA,EAAAA,GAAA,OAAKC,IAAGtC,EAAcuC,UACpBC,EAAAA,EAAAA,IAAA,OAAKF,IAAKb,EAAWC,oBAAoBa,SAAA,CACtC1B,IAAWwB,EAAAA,EAAAA,GAACI,EAAAA,eAAc,CAACC,QAAM,IACjChC,IACC2B,EAAAA,EAAAA,GAAA,SACEC,IAAKzB,EAAUY,EAAWM,OAASN,EAAWQ,MAC9CU,IAAKjC,EACLkC,UAAQ,EACRC,QAAQ,OACR,aAAW,QAAON,UAElBF,EAAAA,EAAAA,GAAA,SAAOS,KAAK,WAAWC,QAAQ,KAAKJ,IAAI,GAAGK,SAAO,UAIpD,C","sources":["experiment-tracking/components/artifact-view-components/ShowArtifactVideoView.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { LegacySkeleton } from '@databricks/design-system';\nimport {\n getArtifactBlob,\n getArtifactLocationUrl,\n getLoggedModelArtifactLocationUrl,\n} from '../../../common/utils/ArtifactUtils';\nimport type { LoggedModelArtifactViewerProps } from './ArtifactViewComponents.types';\n\ntype Props = {\n runUuid: string;\n path: string;\n getArtifact?: (...args: any[]) => any;\n} & LoggedModelArtifactViewerProps;\n\nconst ShowArtifactVideoView = ({\n runUuid,\n path,\n getArtifact = getArtifactBlob,\n isLoggedModelsMode,\n loggedModelId,\n}: Props) => {\n const [videoUrl, setVideoUrl] = useState();\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n let objUrl: string | undefined;\n\n const artifactUrl =\n isLoggedModelsMode && loggedModelId\n ? getLoggedModelArtifactLocationUrl(path, loggedModelId)\n : getArtifactLocationUrl(path, runUuid);\n\n getArtifact(artifactUrl).then((blob: Blob) => {\n objUrl = URL.createObjectURL(blob);\n setVideoUrl(objUrl);\n setLoading(false);\n });\n\n return () => {\n if (objUrl) URL.revokeObjectURL(objUrl);\n };\n }, [runUuid, path, isLoggedModelsMode, loggedModelId, getArtifact]);\n\n const classNames = {\n videoOuterContainer: {\n padding: 10,\n overflow: 'hidden',\n background: 'black',\n minHeight: '100%',\n },\n hidden: { display: 'none' },\n video: {\n maxWidth: '100%',\n maxHeight: '62.5vh',\n objectFit: 'fit',\n display: 'block',\n },\n };\n\n return (\n
\n
\n {loading && }\n {videoUrl && (\n \n \n \n )}\n
\n
\n );\n};\n\nexport default ShowArtifactVideoView;\n"],"names":["_ref","name","styles","ShowArtifactVideoView","runUuid","path","getArtifact","getArtifactBlob","isLoggedModelsMode","loggedModelId","videoUrl","setVideoUrl","useState","loading","setLoading","useEffect","objUrl","artifactUrl","getLoggedModelArtifactLocationUrl","getArtifactLocationUrl","then","blob","URL","createObjectURL","revokeObjectURL","classNames","videoOuterContainer","padding","overflow","background","minHeight","hidden","display","video","maxWidth","maxHeight","objectFit","_jsx","css","children","_jsxs","LegacySkeleton","active","src","controls","preload","kind","srcLang","default"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6991.0e98e62b.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6991.0e98e62b.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..da723d012cd7d6bf5a3b81a884c287f8af1e3bef --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6991.0e98e62b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[6991],{43683:function(e,a,l){l.d(a,{Q:function(){return M}});var s=l(89555),o=l(9133),t=l(31014),n=l(59403),r=l(23823),i=l(68048),d=l(88464),c=l(88443),u=l(13369),g=l(50111);var m={name:"4zleql",styles:"display:block"};function p(e){return a=>function(e,a){const l=(0,d.A)(),{theme:r}=(0,n.u)(),c=e.props.searchValue.toLowerCase();return(0,t.useMemo)((()=>{if(!c)return e;if((0,o.sortedIndexOf)(a,c)>=0)return e;const n=/^[^,.:/=\-\s]+$/.test(c);return t.cloneElement(e,{flattenOptions:[{data:{value:c,disabled:!n,style:{color:n?r.colors.actionTertiaryTextDefault:r.colors.actionDisabledText},children:(0,g.Y)(i.LegacyTooltip,{title:n?void 0:l.formatMessage({id:"fWEvZL",defaultMessage:", . : / - = and blank spaces are not allowed"}),placement:"right",children:(0,g.FD)("span",{css:m,children:[(0,g.Y)(i.PlusIcon,{css:(0,s.AH)({marginRight:r.spacing.sm},"")}),l.formatMessage({id:"IJbauF",defaultMessage:'Add tag "{tagKey}"'},{tagKey:c})]})})},key:c,groupOption:!1},...e.props.flattenOptions]})}),[a,e,c,l,r])}(a,e)}var h={name:"1d3w5wq",styles:"width:100%"};function f({allAvailableTags:e,control:a,onKeyChangeCallback:l}){const s=(0,d.A)(),[o,n]=(0,t.useState)(!1),r=(0,t.useRef)(null),{field:c,fieldState:m}=(0,u.as)({control:a,name:"key",rules:{required:{message:s.formatMessage({id:"RlBbjb",defaultMessage:"A tag key is required"}),value:!0}}});return(0,g.Y)(i.LegacySelect,{allowClear:!0,ref:r,dangerouslySetAntdProps:{showSearch:!0,dropdownRender:p(e)},css:h,placeholder:s.formatMessage({id:"8ALhnh",defaultMessage:"Type a key"}),value:c.value,defaultValue:c.value,open:o,onDropdownVisibleChange:e=>{n(e)},filterOption:(e,a)=>null===a||void 0===a?void 0:a.value.toLowerCase().includes(e.toLowerCase()),onSelect:e=>{c.onChange(e),null===l||void 0===l||l(e)},onClear:()=>{c.onChange(void 0),null===l||void 0===l||l(void 0)},validationState:m.error?"error":void 0,children:e.map((e=>(0,g.Y)(i.LegacySelect.Option,{value:e,children:e},e)))})}var y=l(98597),v=l(52350);function _(e){return new Map(e.map((e=>[e.key,e])))}var k={name:"82a6rk",styles:"flex:1"},w={name:"82a6rk",styles:"flex:1"};const M=({onSuccess:e,saveTagsHandler:a,allAvailableTags:l,valueRequired:m=!1,title:p})=>{const h=(0,t.useRef)(),[M,x]=(0,t.useState)(""),{theme:b}=(0,n.u)(),[C,Y]=(0,t.useState)(new Map),[A,V]=(0,t.useState)(new Map),[F,I]=(0,t.useState)(!1),S=(0,u.mN)({defaultValues:{key:void 0,value:""}}),L=()=>I(!1),D=(0,t.useCallback)((e=>{h.current=e,Y(_(e.tags||[])),V(_(e.tags||[])),S.reset(),I(!0)}),[S]),K=async()=>{h.current&&(x(""),R(!0),a(h.current,Array.from(C.values()),Array.from(A.values())).then((()=>{L(),null===e||void 0===e||e(),R(!1)})).catch((e=>{var a;R(!1),x(e instanceof v.s?null===(a=e.getUserVisibleError())||void 0===a?void 0:a.message:e.message)})))},B=(0,d.A)(),H=S.watch(),[P,R]=(0,t.useState)(!1),U=(0,t.useMemo)((()=>!(0,o.isEqual)((0,o.sortBy)(Array.from(C.values()),"key"),(0,o.sortBy)(Array.from(A.values()),"key"))),[C,A]),W=H.key||H.value,E=U&&W;return{EditTagsModal:(0,g.FD)(r.d,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_135",destroyOnClose:!0,visible:F,title:null!==p&&void 0!==p?p:(0,g.Y)(c.A,{id:"TBX+Gs",defaultMessage:"Add/Edit tags"}),onCancel:L,footer:(0,g.FD)(n.y,{children:[(0,g.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_147",dangerouslyUseFocusPseudoClass:!0,onClick:L,css:(0,s.AH)({marginRight:U?0:b.spacing.sm},""),children:B.formatMessage({id:"2a/rR8",defaultMessage:"Cancel"})}),E?(0,g.Y)(T,{formValues:H,isLoading:P,onSaveTask:K}):(0,g.Y)(i.LegacyTooltip,{title:U?void 0:B.formatMessage({id:"16onEc",defaultMessage:"Please add or remove one or more tags before saving"}),children:(0,g.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_174",dangerouslyUseFocusPseudoClass:!0,disabled:!U,loading:P,type:"primary",onClick:K,children:B.formatMessage({id:"801Xh4",defaultMessage:"Save tags"})})})]}),children:[(0,g.FD)("form",{onSubmit:S.handleSubmit((()=>{if(m&&!H.value.trim())return;const e=new Map(A);e.set(H.key,H),V(e),S.reset()})),css:(0,s.AH)({display:"flex",alignItems:"flex-end",gap:b.spacing.md},""),children:[(0,g.FD)("div",{css:(0,s.AH)({minWidth:0,display:"flex",gap:b.spacing.md,flex:1},""),children:[(0,g.FD)("div",{css:k,children:[(0,g.Y)(i.FormUI.Label,{htmlFor:"key",children:B.formatMessage({id:"crTWax",defaultMessage:"Key"})}),(0,g.Y)(f,{allAvailableTags:l||[],control:S.control,onKeyChangeCallback:e=>{var a;const l=e?A.get(e):void 0;S.setValue("value",null!==(a=null===l||void 0===l?void 0:l.value)&&void 0!==a?a:"")}})]}),(0,g.FD)("div",{css:w,children:[(0,g.Y)(i.FormUI.Label,{htmlFor:"value",children:m?B.formatMessage({id:"tHrp+A",defaultMessage:"Value"}):B.formatMessage({id:"4B8k46",defaultMessage:"Value (optional)"})}),(0,g.Y)(i.RHFControlledComponents.Input,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_223",name:"value",control:S.control,"aria-label":m?B.formatMessage({id:"tHrp+A",defaultMessage:"Value"}):B.formatMessage({id:"4B8k46",defaultMessage:"Value (optional)"}),placeholder:B.formatMessage({id:"FFe+Ug",defaultMessage:"Type a value"})})]})]}),(0,g.Y)(i.LegacyTooltip,{title:B.formatMessage({id:"tx3aAM",defaultMessage:"Add tag"}),children:(0,g.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_248",htmlType:"submit","aria-label":B.formatMessage({id:"tx3aAM",defaultMessage:"Add tag"}),children:(0,g.Y)(i.PlusIcon,{})})})]}),M&&(0,g.Y)(i.FormUI.Message,{type:"error",message:M}),(0,g.Y)("div",{css:(0,s.AH)({display:"flex",rowGap:b.spacing.xs,flexWrap:"wrap",marginTop:b.spacing.sm},""),children:Array.from(A.values()).map((e=>(0,g.Y)(y.t,{isClosable:!0,tag:e,onClose:()=>(({key:e})=>{V((a=>(a.delete(e),new Map(a))))})(e)},e.key)))})]}),showEditTagsModal:D,isLoading:P}};var x={name:"1y0ex1",styles:"max-width:400px"};function T({isLoading:e,formValues:a,onSaveTask:l}){const t=(0,d.A)(),{theme:r}=(0,n.u)(),i=`${`${(0,o.truncate)(a.key,{length:20})||"_"}`}${a.value?`:${(0,o.truncate)(a.value,{length:20})}`:""}`,c=t.formatMessage({id:"wcSVYI",defaultMessage:'Are you sure you want to save and close without adding "{tag}"'},{tag:i});return(0,g.FD)(n.ax.Root,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_309",children:[(0,g.Y)(n.ax.Trigger,{asChild:!0,children:(0,g.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_306",dangerouslyUseFocusPseudoClass:!0,loading:e,type:"primary",children:t.formatMessage({id:"801Xh4",defaultMessage:"Save tags"})})}),(0,g.FD)(n.ax.Content,{align:"end","aria-label":c,children:[(0,g.Y)(n.T.Paragraph,{css:x,children:c}),(0,g.Y)(n.ax.Close,{asChild:!0,children:(0,g.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_316",onClick:l,children:t.formatMessage({id:"mv6CY3",defaultMessage:"Yes, save and close"})})}),(0,g.Y)(n.ax.Close,{asChild:!0,children:(0,g.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_324",type:"primary",css:(0,s.AH)({marginLeft:r.spacing.sm},""),children:t.formatMessage({id:"geizp1",defaultMessage:"Cancel"})})}),(0,g.Y)(n.ax.Arrow,{})]})]})}},56412:function(e,a,l){l.d(a,{i:function(){return d}});var s=l(31014),o=l(88443),t=l(68048),n=l(59403),r=l(50111);var i={name:"1739oy8",styles:"z-index:1"};const d=({copyText:e,showLabel:a=!0,componentId:l,...d})=>{const[c,u]=(0,s.useState)(!1);return(0,r.Y)(t.LegacyTooltip,{title:(0,r.Y)(o.A,{id:"X+boXI",defaultMessage:"Copied"}),dangerouslySetAntdProps:{visible:c},children:(0,r.Y)(n.B,{componentId:null!==l&&void 0!==l?l:"mlflow.shared.copy_button",type:"primary",onClick:()=>{navigator.clipboard.writeText(e),u(!0),setTimeout((()=>{u(!1)}),3e3)},onMouseLeave:()=>{u(!1)},css:i,children:a?(0,r.Y)(o.A,{id:"1Iq+NW",defaultMessage:"Copy"}):void 0,...d})})}},84069:function(e,a,l){l.d(a,{m:function(){return n}});var s=l(68048),o=l(50111);var t={name:"gmowil",styles:"height:calc(100% - 60px)"};const n=({children:e,className:a})=>(0,o.Y)(s.PageWrapper,{css:t,className:a,children:e})},98597:function(e,a,l){l.d(a,{t:function(){return f}});var s=l(89555),o=l(68048),t=l(59403),n=l(31014),r=l(88464),i=l(23823),d=l(56412),c=l(50111);const{Paragraph:u}=t.T;var g={name:"zjik7",styles:"display:flex"},m={name:"1ff36h2",styles:"flex-grow:1"};const p=n.memo((e=>{const{theme:a}=(0,t.u)();return(0,c.Y)(i.d,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetagfullviewmodal.tsx_17",title:"Tag: "+e.tagKey,visible:e.isKeyValueTagFullViewModalVisible,onCancel:()=>e.setIsKeyValueTagFullViewModalVisible(!1),children:(0,c.FD)("div",{css:g,children:[(0,c.Y)(u,{css:m,children:(0,c.Y)("pre",{css:(0,s.AH)({backgroundColor:a.colors.backgroundPrimary,marginTop:a.spacing.sm,whiteSpace:"pre-wrap",wordBreak:"break-all"},""),children:e.tagValue})}),(0,c.Y)("div",{css:(0,s.AH)({marginTop:a.spacing.sm},""),children:(0,c.Y)(d.i,{copyText:e.tagValue,showLabel:!1,icon:(0,c.Y)(o.CopyIcon,{}),"aria-label":"Copy"})})]})})}));function h(e=!0){return e?{overflow:"hidden",textOverflow:"ellipsis",textWrap:"nowrap",whiteSpace:"nowrap"}:{whiteSpace:"nowrap"}}const f=({isClosable:e=!1,onClose:a,tag:l,enableFullViewModal:i=!1,charLimit:d=30,maxWidth:u=300,className:g})=>{const m=(0,r.A)(),[f,y]=(0,n.useState)(!1),{shouldTruncateKey:v,shouldTruncateValue:_}=function(e,a=30){const{key:l,value:s}=e,o=l.length+s.length,t=l.length>s.length,n=t?s.length:l.length;return o<=a?{shouldTruncateKey:!1,shouldTruncateValue:!1}:n>a/2?{shouldTruncateKey:!0,shouldTruncateValue:!0}:{shouldTruncateKey:t,shouldTruncateValue:!t}}(l,d),k=i&&(v||_),w=m.formatMessage({id:"ZXUtU8",defaultMessage:"Click to see more"});return(0,c.FD)("div",{children:[(0,c.Y)(o.Tag,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetag.tsx_60",closable:e,onClose:a,title:l.key,className:g,children:(0,c.Y)(o.LegacyTooltip,{title:k?w:"",children:(0,c.FD)("span",{css:(0,s.AH)({maxWidth:u,display:"inline-flex"},""),onClick:()=>k?y(!0):void 0,children:[(0,c.Y)(t.T.Text,{bold:!0,title:l.key,css:h(v),children:l.key}),l.value&&(0,c.FD)(t.T.Text,{title:l.value,css:h(_),children:[": ",l.value]})]})})}),(0,c.Y)("div",{children:f&&(0,c.Y)(p,{tagKey:l.key,tagValue:l.value,isKeyValueTagFullViewModalVisible:f,setIsKeyValueTagFullViewModalVisible:y})})]})}}}]); +//# sourceMappingURL=6991.0e98e62b.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6991.0e98e62b.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6991.0e98e62b.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..78c0f6af25c7732a80e91de83ec2cc559123d10c --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/6991.0e98e62b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6991.0e98e62b.chunk.js","mappings":"wQAKwG,IAAAA,EAAA,CAAAC,KAAA,SAAAC,OAAA,iBAyExG,SAASC,EAAgBC,GACvB,OAAQC,GA/DV,SAAsBA,EAA0BD,GAC9C,MAAME,GAAOC,EAAAA,EAAAA,MACP,MAAEC,IAAUC,EAAAA,EAAAA,KACZC,EAAcL,EAAKM,MAAMD,YAAYE,cAwD3C,OAtDqBC,EAAAA,EAAAA,UAAQ,KAC3B,IAAKH,EAAa,OAAOL,EAGzB,IADsBS,EAAAA,EAAAA,eAAcV,EAAkBM,IAAgB,EACnD,OAAOL,EAE1B,MAAMU,EAAgB,kBAAkBC,KAAKN,GAG7C,OAAOO,EAAAA,aAAmBZ,EAAM,CAC9Ba,eAAgB,CACd,CACEC,KAAM,CACJC,MAAOV,EACPW,UAAWN,EACXO,MAAO,CACLC,MAAOR,EAAgBP,EAAMgB,OAAOC,0BAA4BjB,EAAMgB,OAAOE,oBAE/EC,UACEC,EAAAA,EAAAA,GAACC,EAAAA,cAAa,CACZC,MACEf,OACIgB,EACAzB,EAAK0B,cAAc,CAAAC,GAAA,SACjBC,eAAe,iDAKvBC,UAAU,QAAOR,UAEjBS,EAAAA,EAAAA,IAAA,QAAMC,IAAGrC,EAAuB2B,SAAA,EAC9BC,EAAAA,EAAAA,GAACU,EAAAA,SAAQ,CAACD,KAAGE,EAAAA,EAAAA,IAAE,CAAEC,YAAahC,EAAMiC,QAAQC,IAAI,MAC/CpC,EAAK0B,cACJ,CAAAC,GAAA,SACEC,eAAe,sBAGjB,CACES,OAAQjC,UAOpBkC,IAAKlC,EACLmC,aAAa,MAEZxC,EAAKM,MAAMO,iBAEhB,GACD,CAACd,EAAkBC,EAAMK,EAAaJ,EAAME,GAGjD,CAGuCsC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common/hooks/useEditKeyValueTagsModal.tsx","shared/building_blocks/CopyButton.tsx","common/components/ScrollablePageWrapper.tsx","common/components/KeyValueTagFullViewModal.tsx","common/components/KeyValueTag.tsx"],"sourcesContent":["import { sortedIndexOf } from 'lodash';\nimport React, { useMemo, useRef, useState } from 'react';\nimport { Control, useController } from 'react-hook-form';\nimport { useIntl } from 'react-intl';\n\nimport { PlusIcon, LegacySelect, LegacyTooltip, useDesignSystemTheme } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\n\n/**\n * Will show an extra row at the bottom of the dropdown menu to create a new tag when\n * The user has typed something in the search input\n * and either\n * 1. The search input is not an exact match for an existing tag name\n * 2. There are no tags available based on search input\n */\n\nfunction DropdownMenu(menu: React.ReactElement, allAvailableTags: string[]) {\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n const searchValue = menu.props.searchValue.toLowerCase();\n\n const resolvedMenu = useMemo(() => {\n if (!searchValue) return menu;\n\n const doesTagExists = sortedIndexOf(allAvailableTags, searchValue) >= 0;\n if (doesTagExists) return menu;\n\n const isValidTagKey = /^[^,.:/=\\-\\s]+$/.test(searchValue);\n\n // Overriding the menu to add a new option at the top\n return React.cloneElement(menu, {\n flattenOptions: [\n {\n data: {\n value: searchValue,\n disabled: !isValidTagKey,\n style: {\n color: isValidTagKey ? theme.colors.actionTertiaryTextDefault : theme.colors.actionDisabledText,\n },\n children: (\n Tag dropdown Manage Modal > Invalid characters error',\n })\n }\n placement=\"right\"\n >\n \n \n {intl.formatMessage(\n {\n defaultMessage: 'Add tag \"{tagKey}\"',\n description: 'Key-value tag editor modal > Tag dropdown Manage Modal > Add new tag button',\n },\n {\n tagKey: searchValue,\n },\n )}\n \n \n ),\n },\n key: searchValue,\n groupOption: false,\n },\n ...menu.props.flattenOptions,\n ],\n });\n }, [allAvailableTags, menu, searchValue, intl, theme]);\n\n return resolvedMenu;\n}\n\nfunction getDropdownMenu(allAvailableTags: string[]) {\n return (menu: React.ReactElement) => DropdownMenu(menu, allAvailableTags);\n}\n\n/**\n * Used in tag edit feature, allows selecting existing / adding new tag value\n */\nexport function TagKeySelectDropdown({\n allAvailableTags,\n control,\n onKeyChangeCallback,\n}: {\n allAvailableTags: string[];\n control: Control;\n onKeyChangeCallback?: (key?: string) => void;\n}) {\n const intl = useIntl();\n const [isOpen, setIsOpen] = useState(false);\n const selectRef = useRef<{ blur: () => void; focus: () => void }>(null);\n\n const { field, fieldState } = useController({\n control: control,\n name: 'key',\n rules: {\n required: {\n message: intl.formatMessage({\n defaultMessage: 'A tag key is required',\n description: 'Key-value tag editor modal > Tag dropdown > Tag key required error message',\n }),\n value: true,\n },\n },\n });\n\n const handleDropdownVisibleChange = (visible: boolean) => {\n setIsOpen(visible);\n };\n\n const handleClear = () => {\n field.onChange(undefined);\n onKeyChangeCallback?.(undefined);\n };\n\n const handleSelect = (key: string) => {\n field.onChange(key);\n onKeyChangeCallback?.(key);\n };\n\n return (\n Tag dropdown > Tag input placeholder',\n })}\n value={field.value}\n defaultValue={field.value}\n open={isOpen}\n onDropdownVisibleChange={handleDropdownVisibleChange}\n filterOption={(input, option) => option?.value.toLowerCase().includes(input.toLowerCase())}\n onSelect={handleSelect}\n onClear={handleClear}\n validationState={fieldState.error ? 'error' : undefined}\n >\n {allAvailableTags.map((tag) => (\n \n {tag}\n \n ))}\n
\n );\n}\n","import { isEqual, sortBy } from 'lodash';\nimport { useCallback, useMemo, useRef, useState } from 'react';\nimport { truncate } from 'lodash';\n\nimport {\n Button,\n FormUI,\n Modal,\n PlusIcon,\n Popover,\n RHFControlledComponents,\n RestoreAntDDefaultClsPrefix,\n LegacyTooltip,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { Typography } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { useForm } from 'react-hook-form';\nimport { TagKeySelectDropdown } from '../components/TagSelectDropdown';\nimport { KeyValueTag } from '../components/KeyValueTag';\nimport { ErrorWrapper } from '../utils/ErrorWrapper';\n\nfunction getTagsMap(tags: KeyValueEntity[]) {\n return new Map(tags.map((tag) => [tag.key, tag]));\n}\n\n/**\n * Provides methods to initialize and display modal used to add and remove tags from any compatible entity\n */\nexport const useEditKeyValueTagsModal = ({\n onSuccess,\n saveTagsHandler,\n allAvailableTags,\n valueRequired = false,\n title,\n}: {\n onSuccess?: () => void;\n saveTagsHandler: (editedEntity: T, existingTags: KeyValueEntity[], newTags: KeyValueEntity[]) => Promise;\n allAvailableTags?: string[];\n valueRequired?: boolean;\n title?: React.ReactNode;\n}) => {\n const editedEntityRef = useRef();\n const [errorMessage, setErrorMessage] = useState('');\n const { theme } = useDesignSystemTheme();\n\n const [initialTags, setInitialTags] = useState>(new Map());\n const [finalTags, setFinalTags] = useState>(new Map());\n\n const [showModal, setShowModal] = useState(false);\n\n const form = useForm({\n defaultValues: {\n key: undefined,\n value: '',\n },\n });\n\n const hideModal = () => setShowModal(false);\n\n /**\n * Function used to invoke the modal and start editing tags of the particular model version\n */\n const showEditTagsModal = useCallback(\n (editedEntity: T) => {\n editedEntityRef.current = editedEntity;\n setInitialTags(getTagsMap(editedEntity.tags || []));\n setFinalTags(getTagsMap(editedEntity.tags || []));\n form.reset();\n\n setShowModal(true);\n },\n [form],\n );\n\n const saveTags = async () => {\n if (!editedEntityRef.current) {\n return;\n }\n setErrorMessage('');\n setIsLoading(true);\n saveTagsHandler(editedEntityRef.current, Array.from(initialTags.values()), Array.from(finalTags.values()))\n .then(() => {\n hideModal();\n onSuccess?.();\n setIsLoading(false);\n })\n .catch((e: ErrorWrapper | Error) => {\n setIsLoading(false);\n setErrorMessage(e instanceof ErrorWrapper ? e.getUserVisibleError()?.message : e.message);\n });\n };\n\n const intl = useIntl();\n const formValues = form.watch();\n\n const [isLoading, setIsLoading] = useState(false);\n\n const hasNewValues = useMemo(\n () => !isEqual(sortBy(Array.from(initialTags.values()), 'key'), sortBy(Array.from(finalTags.values()), 'key')),\n [initialTags, finalTags],\n );\n const isDirty = formValues.key || formValues.value;\n const showPopoverMessage = hasNewValues && isDirty;\n\n const onKeyChangeCallback = (key: string | undefined) => {\n const tag = key ? finalTags.get(key) : undefined;\n /**\n * If a tag value exists for provided key, set the value to the existing tag value\n */\n form.setValue('value', tag?.value ?? '');\n };\n\n const handleTagDelete = ({ key }: KeyValueEntity) => {\n setFinalTags((currentFinalTags) => {\n currentFinalTags.delete(key);\n return new Map(currentFinalTags);\n });\n };\n\n const onSubmit = () => {\n // Do not accept form if no value provided while it's required\n if (valueRequired && !formValues.value.trim()) {\n return;\n }\n\n // Add new tag to existing tags leaving only one tag per key value\n const newEntries = new Map(finalTags);\n newEntries.set(formValues.key, formValues);\n\n setFinalTags(newEntries);\n form.reset();\n };\n\n const EditTagsModal = (\n Title of the update tags modal\"\n />\n )\n }\n onCancel={hideModal}\n footer={\n \n \n {intl.formatMessage({\n defaultMessage: 'Cancel',\n description: 'Key-value tag editor modal > Manage Tag cancel button',\n })}\n \n {showPopoverMessage ? (\n \n ) : (\n Tag disabled message',\n })\n : undefined\n }\n >\n \n {intl.formatMessage({\n defaultMessage: 'Save tags',\n description: 'Key-value tag editor modal > Manage Tag save button',\n })}\n \n \n )}\n \n }\n >\n \n
\n
\n \n {intl.formatMessage({\n defaultMessage: 'Key',\n description: 'Key-value tag editor modal > Key input label',\n })}\n \n \n
\n
\n \n {valueRequired\n ? intl.formatMessage({\n defaultMessage: 'Value',\n description: 'Key-value tag editor modal > Value input label (required)',\n })\n : intl.formatMessage({\n defaultMessage: 'Value (optional)',\n description: 'Key-value tag editor modal > Value input label',\n })}\n \n Value input label (required)',\n })\n : intl.formatMessage({\n defaultMessage: 'Value (optional)',\n description: 'Key-value tag editor modal > Value input label',\n })\n }\n placeholder={intl.formatMessage({\n defaultMessage: 'Type a value',\n description: 'Key-value tag editor modal > Value input placeholder',\n })}\n />\n
\n
\n Add tag button',\n })}\n >\n Add tag button',\n })}\n >\n \n \n \n \n {errorMessage && }\n \n {Array.from(finalTags.values()).map((tag) => (\n handleTagDelete(tag)} key={tag.key} />\n ))}\n \n \n );\n\n return { EditTagsModal, showEditTagsModal, isLoading };\n};\n\nfunction UnsavedTagPopoverTrigger({\n isLoading,\n formValues,\n onSaveTask,\n}: {\n isLoading: boolean;\n formValues: any;\n onSaveTask: () => void;\n}) {\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n\n const tagKeyDisplay = `${truncate(formValues.key, { length: 20 }) || '_'}`;\n const tagValueDisplay = formValues.value ? `:${truncate(formValues.value, { length: 20 })}` : '';\n const fullTagDisplay = `${tagKeyDisplay}${tagValueDisplay}`;\n\n const shownText = intl.formatMessage(\n {\n defaultMessage: 'Are you sure you want to save and close without adding \"{tag}\"',\n description: 'Key-value tag editor modal > Unsaved tag message',\n },\n {\n tag: fullTagDisplay,\n },\n );\n return (\n \n \n \n {intl.formatMessage({\n defaultMessage: 'Save tags',\n description: 'Key-value tag editor modal > Manage Tag save button',\n })}\n \n \n \n {shownText}\n \n \n {intl.formatMessage({\n defaultMessage: 'Yes, save and close',\n description: 'Key-value tag editor modal > Unsaved tag message > Yes, save and close button',\n })}\n \n \n \n \n {intl.formatMessage({\n defaultMessage: 'Cancel',\n description: 'Key-value tag editor modal > Unsaved tag message > cancel button',\n })}\n \n \n \n \n \n );\n}\n","import React, { useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { Button, type ButtonProps, LegacyTooltip } from '@databricks/design-system';\n\ninterface CopyButtonProps extends Partial {\n copyText: string;\n showLabel?: React.ReactNode;\n componentId?: string;\n}\n\nexport const CopyButton = ({ copyText, showLabel = true, componentId, ...buttonProps }: CopyButtonProps) => {\n const [showTooltip, setShowTooltip] = useState(false);\n\n const handleClick = () => {\n navigator.clipboard.writeText(copyText);\n setShowTooltip(true);\n setTimeout(() => {\n setShowTooltip(false);\n }, 3000);\n };\n\n const handleMouseLeave = () => {\n setShowTooltip(false);\n };\n\n return (\n \n }\n dangerouslySetAntdProps={{\n visible: showTooltip,\n }}\n >\n : undefined\n }\n {...buttonProps}\n />\n \n );\n};\n","import { PageWrapper } from '@databricks/design-system';\n\n/**\n * Wraps the page content in the scrollable container so e.g. constrained tables behave correctly.\n */\nexport const ScrollablePageWrapper = ({ children, className }: { children: React.ReactNode; className?: string }) => {\n return (\n \n {children}\n \n );\n};\n","import React from 'react';\nimport { Modal, Typography, CopyIcon, useDesignSystemTheme } from '@databricks/design-system';\nconst { Paragraph } = Typography;\nimport { CopyButton } from '@mlflow/mlflow/src/shared/building_blocks/CopyButton';\n\nexport interface KeyValueTagFullViewModalProps {\n tagKey: string;\n tagValue: string;\n setIsKeyValueTagFullViewModalVisible: React.Dispatch>;\n isKeyValueTagFullViewModalVisible: boolean;\n}\n\nexport const KeyValueTagFullViewModal = React.memo((props: KeyValueTagFullViewModalProps) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n props.setIsKeyValueTagFullViewModalVisible(false)}\n >\n
\n \n \n {props.tagValue}\n \n \n \n } aria-label=\"Copy\" />\n
\n \n \n );\n});\n","import { Tag, LegacyTooltip, Typography } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\nimport React, { useState } from 'react';\nimport { useIntl } from 'react-intl';\nimport { KeyValueTagFullViewModal } from './KeyValueTagFullViewModal';\nimport { Interpolation, Theme } from '@emotion/react';\n\n/**\n * An arbitrary number that is used to determine if a tag is too\n * long and should be truncated. We want to avoid short keys or values\n * in a long tag to be truncated\n * */\nconst TRUNCATE_ON_CHARS_LENGTH = 30;\n\nfunction getTruncatedStyles(shouldTruncate = true): Interpolation {\n return shouldTruncate\n ? {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textWrap: 'nowrap',\n whiteSpace: 'nowrap' as const,\n }\n : { whiteSpace: 'nowrap' as const };\n}\n\n/**\n * A wrapper used for displaying key-value entity\n */\nexport const KeyValueTag = ({\n isClosable = false,\n onClose,\n tag,\n enableFullViewModal = false,\n charLimit = TRUNCATE_ON_CHARS_LENGTH,\n maxWidth = 300,\n className,\n}: {\n isClosable?: boolean;\n onClose?: () => void;\n tag: KeyValueEntity;\n enableFullViewModal?: boolean;\n charLimit?: number;\n maxWidth?: number;\n className?: string;\n}) => {\n const intl = useIntl();\n\n const [isKeyValueTagFullViewModalVisible, setIsKeyValueTagFullViewModalVisible] = useState(false);\n\n const { shouldTruncateKey, shouldTruncateValue } = getKeyAndValueComplexTruncation(tag, charLimit);\n const allowFullViewModal = enableFullViewModal && (shouldTruncateKey || shouldTruncateValue);\n\n const fullViewModalLabel = intl.formatMessage({\n defaultMessage: 'Click to see more',\n description: 'Run page > Overview > Tags cell > Tag',\n });\n\n return (\n
\n \n \n (allowFullViewModal ? setIsKeyValueTagFullViewModalVisible(true) : undefined)}\n >\n \n {tag.key}\n \n {tag.value && (\n \n : {tag.value}\n \n )}\n \n \n \n
\n {isKeyValueTagFullViewModalVisible && (\n \n )}\n
\n
\n );\n};\n\nexport function getKeyAndValueComplexTruncation(\n tag: KeyValueEntity,\n charLimit = TRUNCATE_ON_CHARS_LENGTH,\n): { shouldTruncateKey: boolean; shouldTruncateValue: boolean } {\n const { key, value } = tag;\n const fullLength = key.length + value.length;\n const isKeyLonger = key.length > value.length;\n const shorterLength = isKeyLonger ? value.length : key.length;\n\n // No need to truncate if tag is short enough\n if (fullLength <= charLimit) return { shouldTruncateKey: false, shouldTruncateValue: false };\n // If the shorter string is too long, truncate both key and value.\n if (shorterLength > charLimit / 2) return { shouldTruncateKey: true, shouldTruncateValue: true };\n\n // Otherwise truncate the longer string\n return {\n shouldTruncateKey: isKeyLonger,\n shouldTruncateValue: !isKeyLonger,\n };\n}\n"],"names":["_ref","name","styles","getDropdownMenu","allAvailableTags","menu","intl","useIntl","theme","useDesignSystemTheme","searchValue","props","toLowerCase","useMemo","sortedIndexOf","isValidTagKey","test","React","flattenOptions","data","value","disabled","style","color","colors","actionTertiaryTextDefault","actionDisabledText","children","_jsx","LegacyTooltip","title","undefined","formatMessage","id","defaultMessage","placement","_jsxs","css","PlusIcon","_css","marginRight","spacing","sm","tagKey","key","groupOption","DropdownMenu","_ref2","TagKeySelectDropdown","control","onKeyChangeCallback","isOpen","setIsOpen","useState","selectRef","useRef","field","fieldState","useController","rules","required","message","LegacySelect","allowClear","ref","dangerouslySetAntdProps","showSearch","dropdownRender","placeholder","defaultValue","open","onDropdownVisibleChange","visible","filterOption","input","option","includes","onSelect","onChange","onClear","handleClear","validationState","error","map","tag","Option","getTagsMap","tags","Map","useEditKeyValueTagsModal","onSuccess","saveTagsHandler","valueRequired","editedEntityRef","errorMessage","setErrorMessage","initialTags","setInitialTags","finalTags","setFinalTags","showModal","setShowModal","form","useForm","defaultValues","hideModal","showEditTagsModal","useCallback","editedEntity","current","reset","saveTags","async","setIsLoading","Array","from","values","then","catch","e","_e$getUserVisibleErro","ErrorWrapper","getUserVisibleError","formValues","watch","isLoading","hasNewValues","isEqual","sortBy","isDirty","showPopoverMessage","EditTagsModal","Modal","componentId","destroyOnClose","FormattedMessage","onCancel","footer","RestoreAntDDefaultClsPrefix","Button","dangerouslyUseFocusPseudoClass","onClick","UnsavedTagPopoverTrigger","onSaveTask","loading","type","onSubmit","handleSubmit","trim","newEntries","set","display","alignItems","gap","md","minWidth","flex","FormUI","Label","htmlFor","_tag$value","get","setValue","RHFControlledComponents","Input","htmlType","Message","rowGap","xs","flexWrap","marginTop","KeyValueTag","isClosable","onClose","handleTagDelete","currentFinalTags","delete","_ref3","fullTagDisplay","truncate","length","shownText","Popover","Root","Trigger","asChild","Content","align","Typography","Paragraph","Close","marginLeft","Arrow","CopyButton","copyText","showLabel","buttonProps","showTooltip","setShowTooltip","handleClick","navigator","clipboard","writeText","setTimeout","onMouseLeave","handleMouseLeave","ScrollablePageWrapper","className","PageWrapper","KeyValueTagFullViewModal","isKeyValueTagFullViewModalVisible","setIsKeyValueTagFullViewModalVisible","backgroundColor","backgroundPrimary","whiteSpace","wordBreak","tagValue","icon","CopyIcon","getTruncatedStyles","shouldTruncate","overflow","textOverflow","textWrap","enableFullViewModal","charLimit","maxWidth","shouldTruncateKey","shouldTruncateValue","fullLength","isKeyLonger","shorterLength","getKeyAndValueComplexTruncation","allowFullViewModal","fullViewModalLabel","Tag","closable","Text","bold"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..db7a1a6ea7f9f363e254312b4eb8c44f839dc857 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 701.4cd15ac7.chunk.js.LICENSE.txt */ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[701],{3288:function(e,t,i){i.d(t,{z:function(){return r}});var s=i(59403),o=i(31014);const r=()=>{const{theme:e}=(0,s.u)(),t=!1,i=(0,o.useMemo)((()=>({})),[e,t]),r=(0,o.useMemo)((()=>({marginTop:4*e.spacing.md})),[e,t]),n=(0,o.useMemo)((()=>[{flex:"1",display:"flex",alignItems:"center",justifyContent:"center"},t]),[e,t]);return{usingUnifiedDetailsLayout:t,detailsPageTableStyles:i,detailsPageNoEntriesStyles:n,detailsPageNoResultsWrapperStyles:r}}},4874:function(e,t,i){i.d(t,{Z:function(){return n}});var s=i(89555),o=i(59403),r=i(50111);const n=({title:e,value:t})=>{const{theme:i}=(0,o.u)();return(0,r.FD)("tr",{css:(0,s.AH)({display:"flex",borderBottom:`1px solid ${i.colors.borderDecorative}`,minHeight:i.general.heightSm},""),children:[(0,r.Y)("th",{css:(0,s.AH)({flex:"0 0 240px",backgroundColor:i.colors.backgroundSecondary,color:i.colors.textSecondary,padding:i.spacing.sm,display:"flex",alignItems:"flex-start"},""),children:e}),(0,r.Y)("td",{css:(0,s.AH)({flex:1,padding:i.spacing.sm,paddingTop:0,paddingBottom:0,display:"flex",alignItems:"center"},""),children:t})]})}},5643:function(e,t,i){i.d(t,{Ay:function(){return ee}});var s=i(89555),o=i(9133),r=i.n(o),n=i(31014),a=i(88443),l=i(25869),d=i(10811),c=i(64912),h=i(48624),p=i(64408),u=i(38566),g=i(61902),m=i.n(g),f=i(85466),v=i(4036),w=i(81866),y=i(76010),M=i(69869),b=i(59403),A=i(68048),x=i(26458),I=i(65871),N=i(26809),Y=i(25866),R=i(93358),S=i(58481),C=i(50111);const _=({loggedModelId:e})=>{var t;const{data:i}=(0,R.b)({loggedModelId:e}),o=null===i||void 0===i||null===(t=i.info)||void 0===t?void 0:t.experiment_id,{theme:r}=(0,b.u)();return(0,C.Y)(A.Alert,{type:"info",componentId:"mlflow.artifacts.logged_model_fallback_info",message:(0,C.Y)(a.A,{id:"pcNJvo",defaultMessage:"You're viewing artifacts assigned to a logged model associated with this run.",values:{link:t=>o?(0,C.Y)(h.N_,{to:S.Ay.getExperimentLoggedModelDetailsPage(o,e),children:t}):(0,C.Y)(C.FK,{children:t})}}),closable:!1,css:(0,s.AH)({margin:r.spacing.xs},"")})};var T=i(77484),k=i(17275),F=i(98590),L=i(56412);const{Text:D}=b.T;var E={name:"ou8xsw",styles:"flex:0 0 auto"},H={name:"1l0i7xs",styles:"flex:1 1;overflow:hidden"},P={name:"i3oi5p",styles:"flex:0 1"};class z extends n.Component{constructor(...e){super(...e),this.state={activeNodeId:void 0,toggledNodeIds:{},requestedNodeIds:new Set,viewAsTable:!0},this.onToggleTreebeard=(e,t)=>{const{id:i,loading:s}=e,o=this.props.isLoggedModelsMode,r=new Set(this.state.requestedNodeIds);s&&!this.state.requestedNodeIds.has(i)&&(o&&this.props.loggedModelId?this.props.listArtifactsLoggedModelApi(this.props.loggedModelId,i,this.props.experimentId,void 0,this.props.entityTags):this.props.listArtifactsApi(this.props.runUuid,i)),this.setState({activeNodeId:i,toggledNodeIds:{...this.state.toggledNodeIds,[i]:t},requestedNodeIds:r})},this.getTreebeardData=e=>{const{isRoot:t}=e;if(t){if(e.children)return Object.values(e.children).map((e=>this.getTreebeardData(e)));throw Error("unreachable code.")}let i,s,o,r,n;if(e.fileInfo){const{path:t}=e.fileInfo;i=t,s=(0,p.hA)(t)}const a=this.state.toggledNodeIds[i];a&&(o=a),e.children&&(r=Object.values(e.children).map((e=>this.getTreebeardData(e)))),this.state.activeNodeId===i&&(n=!0);return{id:i,name:s,toggled:o,children:r,active:n,loading:void 0!==e.children&&!e.isLoaded}}}getExistingModelVersions(){const{modelVersionsBySource:e}=this.props;return e[y.A.normalize(this.getActiveNodeRealPath())]}renderRegisterModelButton(){const{runUuid:e}=this.props,{activeNodeId:t}=this.state,i=this.getActiveNodeRealPath();return(0,C.Y)(f.vR,{runUuid:e,modelPath:i,modelRelativePath:String(t),disabled:void 0===t,showButton:!0,buttonType:void 0})}renderModelVersionInfoSection(e,t){return(0,C.Y)(U,{modelVersion:r().last(e),intl:this.props.intl})}renderPathAndSizeInfo(){const e=u.x.findChild(this.props.artifactNode,this.state.activeNodeId),t=this.getActiveNodeRealPath();return(0,C.FD)("div",{className:"mlflow-artifact-info-left",children:[(0,C.FD)("div",{className:"mlflow-artifact-info-path",children:[(0,C.Y)("label",{children:(0,C.Y)(a.A,{id:"axF2gD",defaultMessage:"Full Path:"})})," ",(0,C.Y)(D,{className:"mlflow-artifact-info-text",ellipsis:!0,copyable:!0,children:t})]}),!1===e.fileInfo.is_dir?(0,C.FD)("div",{className:"mlflow-artifact-info-size",children:[(0,C.Y)("label",{children:(0,C.Y)(a.A,{id:"mpHsCg",defaultMessage:"Size:"})})," ",m()(this.getActiveNodeSize())]}):null]})}renderSizeInfo(){const e=u.x.findChild(this.props.artifactNode,this.state.activeNodeId),{theme:t}=this.props.designSystemThemeApi;return(0,C.FD)("div",{style:{display:"flex",alignItems:"center",gap:t.spacing.sm,overflow:"hidden",textOverflow:"ellipsis"},children:[(0,C.Y)(b.T.Text,{bold:!0,size:"lg",ellipsis:!0,title:this.state.activeNodeId,children:this.state.activeNodeId}),!1===e.fileInfo.is_dir&&(0,C.Y)(b.T.Text,{color:"secondary",children:m()(this.getActiveNodeSize())})]})}renderPathInfo(){const e=this.getActiveNodeRealPath(),{theme:t}=this.props.designSystemThemeApi;return(0,C.FD)("div",{css:(0,s.AH)({display:"flex",overflow:"hidden",alignItems:"center",gap:t.spacing.sm},""),children:[(0,C.FD)("div",{css:(0,s.AH)({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:"0 auto",color:t.colors.textSecondary},""),title:e,children:[(0,C.Y)(a.A,{id:"YZDyOo",defaultMessage:"Path:"})," ",e]}),(0,C.Y)(L.i,{css:E,showLabel:!1,size:"small",type:"tertiary",copyText:e,icon:(0,C.Y)(A.CopyIcon,{})})]})}onDownloadClick(e,t,i,s){e&&!s?window.location.href=(0,T.To)(t,e):i&&(window.location.href=(0,T.qk)(t,i))}renderControls(){const{runUuid:e,loggedModelId:t,isFallbackToLoggedModelArtifacts:i}=this.props,{activeNodeId:s}=this.state;return(0,C.Y)("div",{style:{display:"flex",alignItems:"flex-start"},children:(0,C.FD)("div",{style:{display:"inline-flex",alignItems:"center"},children:[this.shouldShowViewAsTableCheckbox&&(0,C.Y)(A.Checkbox,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_artifactview.tsx_288",isChecked:this.state.viewAsTable,onChange:()=>this.setState({viewAsTable:!this.state.viewAsTable}),children:(0,C.Y)(a.A,{id:"zv4Ycc",defaultMessage:"View as table"})}),(0,C.Y)(A.LegacyTooltip,{arrowPointAtCenter:!0,placement:"topLeft",title:this.props.intl.formatMessage({id:"Y9ZFyN",defaultMessage:"Download artifact"}),children:(0,C.Y)(b.B,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_artifactview.tsx_337",icon:(0,C.Y)(A.DownloadIcon,{}),onClick:()=>this.onDownloadClick(e,s,t,i)})})]})})}renderArtifactInfo(){const e=this.getExistingModelVersions();let t;t=e&&y.A.isModelRegistryEnabled()?this.renderModelVersionInfoSection(e,this.props.intl):this.activeNodeCanBeRegistered()&&y.A.isModelRegistryEnabled()?this.renderRegisterModelButton():this.activeNodeIsDirectory()?null:this.renderControls();const{theme:i}=this.props.designSystemThemeApi;return(0,C.FD)("div",{css:(0,s.AH)({padding:`${i.spacing.xs}px ${i.spacing.sm}px ${i.spacing.sm}px ${i.spacing.md}px`,display:"flex",flexDirection:"column",gap:i.spacing.xs},""),children:[(0,C.FD)("div",{css:(0,s.AH)({whiteSpace:"nowrap",display:"flex",justifyContent:"space-between",alignItems:"center",gap:i.spacing.md},""),children:[(0,C.Y)("div",{css:H,children:this.renderSizeInfo()}),(0,C.Y)("div",{css:P,children:t})]}),this.renderPathInfo()]})}getActiveNodeRealPath(){return this.state.activeNodeId?`${this.props.artifactRootUri}/${this.state.activeNodeId}`:this.props.artifactRootUri}getActiveNodeSize(){if(this.state.activeNodeId){const e=u.x.findChild(this.props.artifactNode,this.state.activeNodeId).fileInfo.file_size||"0";return parseInt(e,10)}return 0}activeNodeIsDirectory(){if(this.state.activeNodeId){return u.x.findChild(this.props.artifactNode,this.state.activeNodeId).fileInfo.is_dir}return!0}activeNodeCanBeRegistered(){if(this.state.activeNodeId){const e=u.x.findChild(this.props.artifactNode,this.state.activeNodeId);if(e&&e.children&&Y.eh in e.children)return!0}return!1}componentDidUpdate(e,t){const{activeNodeId:i}=this.state;t.activeNodeId!==i&&this.props.handleActiveNodeChange(this.activeNodeIsDirectory())}componentDidMount(){if(this.props.initialSelectedArtifactPath){const t=this.props.initialSelectedArtifactPath.split("/");if(t)try{u.x.findChild(this.props.artifactNode,this.props.initialSelectedArtifactPath)}catch(e){return void console.error(e)}let i="";const s={activeNodeId:this.props.initialSelectedArtifactPath,toggledNodeIds:{}};t.forEach((e=>{i+=e,s.toggledNodeIds[i]=!0,i+="/"})),this.setArtifactState(s)}}setArtifactState(e){this.setState(e)}get shouldShowViewAsTableCheckbox(){return this.state.activeNodeId&&this.props.runTags&&(0,F.L9)(this.props.runTags).includes(this.state.activeNodeId)}render(){if(!this.props.artifactNode||u.x.isEmpty(this.props.artifactNode))return(0,C.Y)(q,{useAutoHeight:this.props.useAutoHeight});const{theme:e}=this.props.designSystemThemeApi,{loggedModelId:t,isLoggedModelsMode:i}=this.props;return(0,C.FD)("div",{className:"mlflow-artifact-view",css:(0,s.AH)({flex:this.props.useAutoHeight?1:"unset",height:this.props.useAutoHeight?"auto":void 0,[e.responsive.mediaQueries.xs]:{overflowX:"auto"}},""),children:[(0,C.Y)("div",{style:{minWidth:"200px",maxWidth:"400px",flex:1,whiteSpace:"nowrap",borderRight:`1px solid ${e.colors.borderDecorative}`},children:(0,C.Y)(k.K,{data:this.getTreebeardData(this.props.artifactNode),onToggleTreebeard:this.onToggleTreebeard})}),(0,C.FD)("div",{className:"mlflow-artifact-right",children:[this.props.isFallbackToLoggedModelArtifacts&&this.props.loggedModelId&&(0,C.Y)(_,{loggedModelId:this.props.loggedModelId}),this.state.activeNodeId?this.renderArtifactInfo():null,(0,C.Y)(v.A,{experimentId:this.props.experimentId,runUuid:this.props.runUuid,path:this.state.activeNodeId,isDirectory:this.activeNodeIsDirectory(),size:this.getActiveNodeSize(),runTags:this.props.runTags,artifactRootUri:this.props.artifactRootUri,modelVersions:this.props.modelVersions,showArtifactLoggedTableView:this.state.viewAsTable&&this.shouldShowViewAsTableCheckbox,loggedModelId:t,isLoggedModelsMode:i,entityTags:this.props.entityTags})]})]})}}const V={listArtifactsApi:N.cN,listArtifactsLoggedModelApi:N.bb},B=(0,d.Ng)(((e,t)=>{var i;const{runUuid:s,loggedModelId:o,isLoggedModelsMode:n}=t,{apis:a}=e,l=n&&o?(0,x.ej)(o,e):(0,x.ej)(s,e),d=null!==(i=null===t||void 0===t?void 0:t.artifactRootUri)&&void 0!==i?i:(0,x.vb)(s,e),c=(0,I.U_)(e),h=r().flatMap(c,(e=>({...e,source:y.A.normalize(e.source)})));return{artifactNode:l,artifactRootUri:d,modelVersions:c,modelVersionsBySource:r().groupBy(h,"source"),apis:a}}),V)((0,b.au)((0,c.Ay)(z)));function U(e){const{modelVersion:t,intl:i}=e,{name:s,version:o,status:r,status_message:l}=t;let d=M.fM.getModelVersionPageRoute(s,o);const c=(0,C.Y)(A.LegacyTooltip,{title:`${s} version ${o}`,children:(0,C.FD)(h.N_,{to:d,className:"model-version-link",target:"_blank",rel:"noreferrer",children:[(0,C.Y)("span",{className:"model-name",children:s}),(0,C.FD)("span",{children:[",\xa0v",o,"\xa0"]}),(0,C.Y)("i",{className:"fa fa-external-link-o"})]})});return(0,C.FD)("div",{className:"model-version-info",children:[(0,C.FD)("div",{className:"model-version-link-section",children:[(0,C.Y)(A.LegacyTooltip,{title:l||w.zr[r],children:(0,C.Y)("div",{children:w.UA[r]})}),c]}),(0,C.Y)("div",{className:"model-version-status-text",children:r===w.IP.READY?(0,C.Y)(n.Fragment,{children:(0,C.Y)(a.A,{id:"nVndit",defaultMessage:"Registered on {registeredDate}",values:{registeredDate:y.A.formatTimestamp(t.creation_timestamp,i)}})}):l||w.zA[r]})]})}function q({useAutoHeight:e}){const{theme:t}=(0,b.u)();return(0,C.Y)("div",{css:(0,s.AH)({flex:e?1:"unset",height:e?"auto":void 0,paddingTop:t.spacing.md,display:"flex",justifyContent:"center",alignItems:"center"},""),children:(0,C.Y)(A.Empty,{image:(0,C.Y)(A.LayerIcon,{}),title:(0,C.Y)(a.A,{id:"X3F7x3",defaultMessage:"No Artifacts Recorded"}),description:(0,C.Y)(a.A,{id:"3geT+I",defaultMessage:"Use the log artifact APIs to store file outputs from MLflow runs."})})})}var $=i(69708),O=i(68621),K=i(7204),j=i(8220),W=i(57596),G=i(52350);class Q extends n.Component{constructor(...e){super(...e),this.pollIntervalId=void 0,this.getFailedtoListArtifactsMsg=()=>(0,C.Y)("span",{children:(0,C.Y)(a.A,{id:"V4CsL/",defaultMessage:"Unable to list artifacts stored under {artifactUri} for the current run. Please contact your tracking server administrator to notify them of this error, which can happen when the tracking server lacks permission to list artifacts under the current run's root artifact directory.",values:{artifactUri:this.props.artifactRootUri}})}),this.state={activeNodeIsDirectory:!1,errorThrown:!1},this.searchRequestId=(0,K.yk)(),this.listArtifactRequestIds=[(0,K.yk)()].concat(this.props.initialSelectedArtifactPath?this.props.initialSelectedArtifactPath.split("/").map((e=>(0,K.yk)())):[]),this.pollModelVersionsForCurrentRun=async()=>{const{apis:e,runUuid:t,isLoggedModelsMode:i}=this.props,{activeNodeIsDirectory:s}=this.state,o=e[this.searchRequestId];if((!i||t)&&s&&(!o||!o.active))try{await this.props.searchModelVersionsApi({run_id:t},this.searchRequestId)}catch(r){if(!this.state.errorThrown){const e=`Error while fetching model version for run: ${r instanceof Error?r.toString():JSON.stringify(r)}`;y.A.logErrorAndNotifyUser(e),this.setState({errorThrown:!0})}}},this.handleActiveNodeChange=e=>{this.setState({activeNodeIsDirectory:e})},this.pollArtifactsForCurrentRun=async()=>{const{runUuid:e,loggedModelId:t,isFallbackToLoggedModelArtifacts:i}=this.props,s=this.props.isLoggedModelsMode;let o;if(s&&t){var r;if(i){var n,a;const e=await(0,R.E)(t,!0);o=null===e||void 0===e||null===(n=e.model)||void 0===n||null===(a=n.info)||void 0===a?void 0:a.tags,this.setState({fallbackEntityTags:o})}await this.props.listArtifactsLoggedModelApi(this.props.loggedModelId,void 0,this.props.experimentId,this.listArtifactRequestIds[0],null!==(r=o)&&void 0!==r?r:this.props.entityTags)}else await this.props.listArtifactsApi(e,void 0,this.listArtifactRequestIds[0]);if(this.props.initialSelectedArtifactPath){const i=this.props.initialSelectedArtifactPath.split("/");let r="";for(let n=0;ne,this.renderArtifactView=(e,t,i)=>{var o;if(e&&!t)return(0,C.Y)(j.d,{});if(this.renderErrorCondition(t)){const e=i[0];e&&e.error&&console.error(e.error);const t=(()=>{const t=null===e||void 0===e?void 0:e.error;return t instanceof G.s?t.getMessageField():this.getFailedtoListArtifactsMsg()})();return(0,C.Y)(W.F,{css:(0,s.AH)({flex:this.props.useAutoHeight?1:"unset",height:this.props.useAutoHeight?"auto":void 0},""),"data-testid":"artifact-view-error",description:t})}return(0,C.Y)(B,{...this.props,entityTags:null!==(o=this.state.fallbackEntityTags)&&void 0!==o?o:this.props.entityTags,handleActiveNodeChange:this.handleActiveNodeChange,useAutoHeight:this.props.useAutoHeight})}}componentDidMount(){y.A.isModelRegistryEnabled()&&(this.pollModelVersionsForCurrentRun(),this.pollIntervalId=setInterval(this.pollModelVersionsForCurrentRun,w.Gs)),this.pollArtifactsForCurrentRun()}componentDidUpdate(e){e.runUuid!==this.props.runUuid&&this.setState({errorThrown:!1}),!e.isFallbackToLoggedModelArtifacts&&this.props.isFallbackToLoggedModelArtifacts&&this.pollArtifactsForCurrentRun()}componentWillUnmount(){y.A.isModelRegistryEnabled()&&clearInterval(this.pollIntervalId)}render(){return(0,C.Y)(O.Ay,{requestIds:this.listArtifactRequestIds,children:this.renderArtifactView})}}const X=["/Volumes/","dbfs:/Volumes/"],J={listArtifactsApi:N.cN,listArtifactsLoggedModelApi:N.bb,searchModelVersionsApi:$.hY},Z=(0,d.Ng)(((e,t)=>{var i;const{runUuid:s,location:n,runOutputs:a}=t,l=((null===n||void 0===n?void 0:n.pathname)||"").match(/\/(?:artifactPath|artifacts)\/(.+)/),{isFallbackToLoggedModelArtifacts:d,fallbackLoggedModelId:c}=((e,t)=>{if(X.some((e=>{var i;return null===(i=t.artifactRootUri)||void 0===i?void 0:i.startsWith(e)})),!t.isLoggedModelsMode){var i,s;const r=(0,x.ej)(t.runUuid,e),n=r&&!r.fileInfo&&(0,o.isEmpty)(r.children),a=null===(i=(0,o.first)(null===(s=t.runOutputs)||void 0===s?void 0:s.modelOutputs))||void 0===i?void 0:i.modelId;if(n&&a)return{isFallbackToLoggedModelArtifacts:!0,fallbackLoggedModelId:a}}return{isFallbackToLoggedModelArtifacts:!1}})(e,t),h=(null===l||void 0===l?void 0:l[1])||void 0,{apis:p}=e,u=null!==(i=t.artifactRootUri)&&void 0!==i?i:(0,x.vb)(s,e);let g=h;if(!g){var m;const e=(0,F.x1)(null!==(m=t.runTags)&&void 0!==m?m:{});e.length>0&&(g=r().first(e))}return{artifactRootUri:u,apis:p,initialSelectedArtifactPath:g,isLoggedModelsMode:!!d||t.isLoggedModelsMode,loggedModelId:d?c:t.loggedModelId,isFallbackToLoggedModelArtifacts:d}}),J)(Q);var ee=(0,l.h)(Z)},14830:function(e,t,i){i.d(t,{N:function(){return a}});var s=i(89555),o=i(59403),r=i(50111);var n={name:"4zleql",styles:"display:block"};const a=({children:e})=>{const{theme:t}=(0,o.u)();return(0,r.Y)("table",{css:(0,s.AH)({display:"block",border:`1px solid ${t.colors.borderDecorative}`,borderBottom:"none",borderRadius:t.general.borderRadiusBase,width:"50%",minWidth:640,marginBottom:t.spacing.lg,overflow:"hidden"},""),children:(0,r.Y)("tbody",{css:n,children:e})})}},59508:function(e,t,i){i.d(t,{_C:function(){return a},pc:function(){return r},so:function(){return n}});var s=i(81866),o=i(69708);function r(e){return e?`${s.Qs} ilike ${(0,o.GP)(e,!0)}`:""}function n({query:e=""}={}){const t=[],i=e.includes("tags.")?e:r(e);return i&&t.push(i),t.join(" AND ")}function a(e){return"searchInput"in e?e.searchInput:"nameSearchInput"in e&&"tagSearchInput"in e?r(e.nameSearchInput)+" AND "+e.tagSearchInput:"tagSearchInput"in e?e.tagSearchInput:"nameSearchInput"in e?e.nameSearchInput:""}},61902:function(e){e.exports=function(e,t){if("string"===typeof e)return n(e);if("number"===typeof e)return r(e,t);return null},e.exports.format=r,e.exports.parse=n;var t=/\B(?=(\d{3})+(?!\d))/g,i=/(?:\.0*|(\.[^0]+)0+)$/,s={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:1024*(1<<30)},o=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i;function r(e,o){if(!Number.isFinite(e))return null;var r=Math.abs(e),n=o&&o.thousandsSeparator||"",a=o&&o.unitSeparator||"",l=o&&void 0!==o.decimalPlaces?o.decimalPlaces:2,d=Boolean(o&&o.fixedDecimals),c=o&&o.unit||"";c&&s[c.toLowerCase()]||(c=r>=s.tb?"TB":r>=s.gb?"GB":r>=s.mb?"MB":r>=s.kb?"KB":"B");var h=(e/s[c.toLowerCase()]).toFixed(l);return d||(h=h.replace(i,"$1")),n&&(h=h.replace(t,n)),h+a+c}function n(e){if("number"===typeof e&&!isNaN(e))return e;if("string"!==typeof e)return null;var t,i=o.exec(e),r="b";return i?(t=parseFloat(i[1]),r=i[4].toLowerCase()):(t=parseInt(e,10),r="b"),Math.floor(s[r]*t)}},65287:function(e,t,i){i.d(t,{a:function(){return r}});var s=i(81313),o=i(50111);const r=({children:e,className:t,secondarySections:i=[],usingSidebarLayout:r})=>r?(0,o.Y)("div",{className:t,children:(0,o.Y)(s.u8,{asideSections:i,isTabLayout:!0,sidebarSize:"lg",verticalStackOrder:"aside-first",children:e})}):(0,o.Y)("div",{className:t,children:e})},67212:function(e,t,i){i.d(t,{t:function(){return c}});var s=i(89555),o=i(59403),r=i(68048),n=i(56412),a=i(50111);var l={name:"l8l8b8",styles:"white-space:nowrap;overflow:hidden;text-overflow:ellipsis"},d={name:"ozd7xs",styles:"flex-shrink:0"};const c=({value:e,className:t,element:i})=>{const{theme:c}=(0,o.u)();return(0,a.FD)("div",{css:(0,s.AH)({display:"flex",gap:c.spacing.xs,alignItems:"center"},""),className:t,children:[(0,a.Y)("span",{css:l,children:null!==i&&void 0!==i?i:e}),(0,a.Y)(n.i,{showLabel:!1,copyText:e,icon:(0,a.Y)(r.CopyIcon,{}),size:"small",css:d})]})}},68109:function(e,t,i){i.d(t,{y:function(){return M}});var s=i(89555),o=i(59403),r=i(68048),n=i(70169),a=i(9133),l=i(31014),d=i(88443),c=i(88464),h=i(70618),p=i(9856),u=i(50111);const g=({value:e})=>{const t=(0,l.useMemo)((()=>{try{const t=JSON.parse(e);return JSON.stringify(t,null,2)}catch(t){return null}}),[e]);return(0,u.Y)("div",{css:(0,s.AH)({whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:t?"monospace":void 0},""),children:t||e})};var m=i(91144),f=i(3288);var v={name:"ozd7xs",styles:"flex-shrink:0"};const w=({name:e,value:t,toggleExpanded:i,isExpanded:n,autoExpandedRowsList:d})=>{const{theme:c}=(0,o.u)(),h=(0,l.useRef)(null),[p,m]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{d[e]||p&&(i(),d[e]=!0)}),[d,p,e,i]),(0,l.useEffect)((()=>{if(!h.current)return;const e=(0,a.throttle)((([e])=>{const t=e.target.scrollHeight>e.target.clientHeight;m(t)}),500,{trailing:!0}),t=new ResizeObserver(e);return t.observe(h.current),()=>t.disconnect()}),[h,i]),(0,l.useEffect)((()=>{if(h.current&&!n){h.current.scrollHeight>h.current.clientHeight&&m(!0)}}),[n]),(0,u.FD)("div",{css:(0,s.AH)({display:"flex",gap:c.spacing.xs},""),children:[(p||n)&&(0,u.Y)(o.B,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_run-page_overview_runviewparamstable.tsx_74",size:"small",icon:n?(0,u.Y)(r.ChevronDownIcon,{}):(0,u.Y)(o.q,{}),onClick:()=>i(),css:v}),(0,u.Y)("div",{title:t,css:(0,s.AH)({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:n?void 0:"3"},""),ref:h,children:n?(0,u.Y)(g,{value:t}):t})]})},y=[{id:"key",accessorKey:"key",header:()=>(0,u.Y)(d.A,{id:"r+KCRg",defaultMessage:"Parameter"}),enableResizing:!0,size:240},{id:"value",header:()=>(0,u.Y)(d.A,{id:"qIsNL0",defaultMessage:"Value"}),accessorKey:"value",enableResizing:!1,meta:{styles:{paddingLeft:0}},cell:({row:{original:e,getIsExpanded:t,toggleExpanded:i},table:{options:{meta:s}}})=>{const{autoExpandedRowsList:o}=s;return(0,u.Y)(w,{name:e.key,value:e.value,isExpanded:t(),toggleExpanded:i,autoExpandedRowsList:o.current})}}],M=({params:e})=>{const{theme:t}=(0,o.u)(),i=(0,c.A)(),[g,v]=(0,l.useState)(""),M=(0,l.useRef)({}),{detailsPageTableStyles:b,detailsPageNoEntriesStyles:A,detailsPageNoResultsWrapperStyles:x,usingUnifiedDetailsLayout:I}=(0,f.z)(),N=(0,l.useMemo)((()=>(0,a.values)(e)),[e]),Y=(0,l.useMemo)((()=>N.filter((({key:e,value:t})=>{const i=g.toLowerCase();return e.toLowerCase().includes(i)||t.toLowerCase().includes(i)}))),[g,N]),R=(0,l.useMemo)((()=>(0,m.rR)()?y:[{id:"key",accessorKey:"key",header:()=>(0,u.Y)(d.A,{id:"r+KCRg",defaultMessage:"Parameter"}),enableResizing:!0,size:240},{id:"value",header:()=>(0,u.Y)(d.A,{id:"qIsNL0",defaultMessage:"Value"}),accessorKey:"value",enableResizing:!1,meta:{styles:{paddingLeft:0}},cell:({row:{original:e,getIsExpanded:t,toggleExpanded:i}})=>(0,u.Y)(w,{name:e.key,value:e.value,isExpanded:t(),toggleExpanded:i,autoExpandedRowsList:M.current})}]),[]),S=(0,h.N4)({data:Y,getCoreRowModel:(0,p.HT)(),getExpandedRowModel:(0,p.D0)(),getRowId:e=>e.key,enableColumnResizing:!0,columnResizeMode:"onChange",columns:R,meta:{autoExpandedRowsList:M}});return(0,u.FD)("div",{css:(0,s.AH)({flex:I?"0 0 auto":1,display:"flex",flexDirection:"column",overflow:"hidden"},""),children:[(0,u.Y)(o.T.Title,{level:4,children:(0,u.Y)(d.A,{id:"Q/evEc",defaultMessage:"Parameters ({length})",values:{length:Y.length}})}),(0,u.Y)("div",{css:(0,s.AH)({padding:t.spacing.sm,border:`1px solid ${t.colors.borderDecorative}`,borderRadius:t.general.borderRadiusBase,flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},""),children:(()=>{if(!N.length)return(0,u.Y)("div",{css:A,children:(0,u.Y)(r.Empty,{description:(0,u.Y)(d.A,{id:"6UqPlE",defaultMessage:"No parameters recorded"})})});const e=Y.length<1;return(0,u.FD)(u.FK,{children:[(0,u.Y)("div",{css:(0,s.AH)({marginBottom:t.spacing.sm},""),children:(0,u.Y)(n.I,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_run-page_overview_runviewparamstable.tsx_213",prefix:(0,u.Y)(n.S,{}),placeholder:i.formatMessage({id:"SLHSXV",defaultMessage:"Search parameters"}),value:g,onChange:e=>v(e.target.value),allowClear:!0})}),(0,u.FD)(r.Table,{scrollable:!0,empty:e?(0,u.Y)("div",{css:x,children:(0,u.Y)(r.Empty,{description:(0,u.Y)(d.A,{id:"QD6iZA",defaultMessage:"No parameters match the search filter"})})}):null,css:b,children:[(0,u.Y)(r.TableRow,{isHeader:!0,children:S.getLeafHeaders().map(((e,t)=>(0,u.Y)(r.TableHeader,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_run-page_overview_runviewparamstable.tsx_244",header:e,column:e.column,setColumnSizing:S.setColumnSizing,isResizing:e.column.getIsResizing(),css:(0,s.AH)({flexGrow:e.column.getCanResize()?0:1},""),style:{flexBasis:e.column.getCanResize()?e.column.getSize():void 0},children:(0,h.Kv)(e.column.columnDef.header,e.getContext())},e.id)))}),S.getRowModel().rows.map((e=>(0,u.Y)(r.TableRow,{children:e.getAllCells().map((e=>{var t;return(0,u.Y)(r.TableCell,{css:null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.styles,style:{flexGrow:e.column.getCanResize()?0:1,flexBasis:e.column.getCanResize()?e.column.getSize():void 0},multiline:!0,children:(0,h.Kv)(e.column.columnDef.cell,e.getContext())},e.id)}))},e.id)))]})]})})()})]})}},85466:function(e,t,i){i.d(t,{vR:function(){return b}});var s=i(31014),o=i(9133),r=i.n(o),n=i(59403),a=i(68048),l=i(23823),d=i(64912),c=i(88443),h=i(87665),p=i(69708),u=i(10811),g=i(76010),m=i(7204),f=i(59508),v=i(50111);class w extends s.Component{constructor(){super(),this.form=void 0,this.state={visible:!1,confirmLoading:!1,modelByName:{}},this.createRegisteredModelRequestId=(0,m.yk)(),this.createModelVersionRequestId=(0,m.yk)(),this.searchModelVersionRequestId=(0,m.yk)(),this.showRegisterModal=()=>{this.setState({visible:!0})},this.hideRegisterModal=()=>{var e,t;this.setState({visible:!1}),null===(e=(t=this.props).onCloseModal)||void 0===e||e.call(t)},this.resetAndClearModalForm=()=>{var e,t,i;this.setState({visible:!1,confirmLoading:!1}),null===(e=this.form.current)||void 0===e||e.resetFields(),null===(t=(i=this.props).onCloseModal)||void 0===t||t.call(i)},this.handleRegistrationFailure=e=>{this.setState({confirmLoading:!1}),g.A.logErrorAndNotifyUser(e)},this.handleSearchRegisteredModels=e=>{this.props.searchRegisteredModelsApi((0,f.pc)(e),5)},this.reloadModelVersionsForCurrentRun=()=>{const{runUuid:e}=this.props;return this.props.searchModelVersionsApi({run_id:e},this.searchModelVersionRequestId)},this.handleRegisterModel=()=>this.form.current.validateFields().then((e=>{this.setState({confirmLoading:!0});const{runUuid:t,modelPath:i}=this.props,s=e[h.BE];var r,n,a,l;return s===h.QN?this.props.createRegisteredModelApi(e[h.F3],this.createRegisteredModelRequestId).then((()=>this.props.createModelVersionApi(e[h.F3],i,t,[],this.createModelVersionRequestId,this.props.loggedModelId))).then(null!==(r=this.props.onRegisterSuccess)&&void 0!==r?r:o.identity).then(this.resetAndClearModalForm).catch(null!==(n=this.props.onRegisterFailure)&&void 0!==n?n:this.handleRegistrationFailure).then(this.reloadModelVersionsForCurrentRun).catch(g.A.logErrorAndNotifyUser):this.props.createModelVersionApi(s,i,t,[],this.createModelVersionRequestId,this.props.loggedModelId).then(null!==(a=this.props.onRegisterSuccess)&&void 0!==a?a:o.identity).then(this.resetAndClearModalForm).catch(null!==(l=this.props.onRegisterFailure)&&void 0!==l?l:this.handleRegistrationFailure).then(this.reloadModelVersionsForCurrentRun).catch(g.A.logErrorAndNotifyUser)})),this.form=s.createRef()}componentDidMount(){this.props.searchRegisteredModelsApi()}componentDidUpdate(e,t){!1===t.visible&&!0===this.state.visible&&this.props.searchRegisteredModelsApi()}renderRegisterModelForm(){const{modelByName:e}=this.props;return(0,v.Y)(h.xH,{modelByName:e,innerRef:this.form,onSearchRegisteredModels:r().debounce(this.handleSearchRegisteredModels,300)})}renderFooter(){return[(0,v.Y)(n.B,{componentId:"codegen_mlflow_app_src_model-registry_components_registermodel.tsx_242",onClick:this.hideRegisterModal,children:(0,v.Y)(c.A,{id:"iwD/Dv",defaultMessage:"Cancel"})},"back"),(0,v.Y)(n.B,{componentId:"codegen_mlflow_app_src_model-registry_components_registermodel.tsx_248",type:"primary",onClick:()=>this.handleRegisterModel(),"data-testid":"confirm-register-model",children:(0,v.Y)(c.A,{id:"wBFfWW",defaultMessage:"Register"})},"submit")]}renderHelper(e,t,i){const{visible:s,confirmLoading:o}=this.state,{showButton:r=!0,buttonType:d}=this.props;return(0,v.FD)("div",{className:"register-model-btn-wrapper",children:[r&&(0,v.Y)(a.LegacyTooltip,{title:this.props.tooltip||null,placement:"left",children:(0,v.Y)(n.B,{componentId:"codegen_mlflow_app_src_model-registry_components_registermodel.tsx_261",className:"register-model-btn",type:d,onClick:this.showRegisterModal,disabled:e,htmlType:"button",children:(0,v.Y)(c.A,{id:"YQ+Eon",defaultMessage:"Register model"})})}),(0,v.Y)(l.d,{title:this.props.intl.formatMessage({id:"qSpgg/",defaultMessage:"Register model"}),width:540,visible:this.props.modalVisible||s,onOk:()=>this.handleRegisterModel(),okText:this.props.intl.formatMessage({id:"9W3kev",defaultMessage:"Register"}),confirmLoading:o,onCancel:this.hideRegisterModal,centered:!0,footer:i,children:t})]})}render(){const{disabled:e}=this.props;return this.renderHelper(e,this.renderRegisterModelForm(),this.renderFooter())}}const y={createRegisteredModelApi:p.eF,createModelVersionApi:p.Ey,searchModelVersionsApi:p.hY,searchRegisteredModelsApi:p.JK},M=(0,d.Ay)(w),b=(0,u.Ng)((e=>({modelByName:e.entities.modelByName})),y)(M)},87665:function(e,t,i){i.d(t,{QN:function(){return h},F3:function(){return u},xH:function(){return g},BE:function(){return p}});var s=i(31014),o=i(68048),r=i(70169),n=i(88443),a=i(50111);const{Option:l,OptGroup:d}=o.LegacySelect,c="Create New Model",h=`$$$__${c}__$$$`,p="selectedModel",u="modelName";class g extends s.Component{constructor(...e){super(...e),this.state={selectedModel:null},this.handleModelSelectChange=e=>{this.setState({selectedModel:e})},this.modelNameValidator=(e,t,i)=>{const{modelByName:s}=this.props;i(s[t]?`Model "${t}" already exists.`:void 0)},this.handleFilterOption=(e,t)=>-1!==(t&&t.value||"").toLowerCase().indexOf(e.toLowerCase())}renderExplanatoryText(){const{isCopy:e}=this.props,{selectedModel:t}=this.state;if(!t||t===h)return null;const i=e?(0,a.Y)(n.A,{id:"hxMEqi",defaultMessage:"The model version will be copied to {selectedModel} as a new version.",values:{selectedModel:t}}):(0,a.Y)(n.A,{id:"zjXq2X",defaultMessage:"The model will be registered as a new version of {selectedModel}.",values:{selectedModel:t}});return(0,a.Y)("p",{className:"modal-explanatory-text",children:i})}renderModel(e){return(0,a.Y)(l,{value:e.name,children:e.name},e.name)}render(){const{modelByName:e,innerRef:t,isCopy:i}=this.props,{selectedModel:s}=this.state,n=s===h;return(0,a.FD)(o.LegacyForm,{ref:t,layout:"vertical",className:"mlflow-register-model-form",children:[(0,a.Y)(o.LegacyForm.Item,{label:i?(0,a.Y)("b",{children:"Copy to model"}):"Model",name:p,rules:[{required:!0,message:"Please select a model or create a new one."}],children:(0,a.FD)(o.LegacySelect,{dropdownClassName:"mlflow-model-select-dropdown",onChange:this.handleModelSelectChange,placeholder:"Select a model",filterOption:this.handleFilterOption,onSearch:this.props.onSearchRegisteredModels,showSearch:!0,children:[(0,a.FD)(l,{value:h,className:"mlflow-create-new-model-option",children:[(0,a.Y)("i",{className:"fa fa-plus fa-fw",style:{fontSize:13}})," ",c]}),(0,a.Y)(d,{label:"Models",children:Object.values(e).map((e=>this.renderModel(e)))})]})}),n?(0,a.Y)(o.LegacyForm.Item,{label:"Model Name",name:u,rules:[{required:!0,message:"Please input a name for the new model."},{validator:this.modelNameValidator}],children:(0,a.Y)(r.I,{componentId:"codegen_mlflow_app_src_model-registry_components_registermodelform.tsx_132",placeholder:"Input a model name"})}):null,this.renderExplanatoryText()]})}}},93358:function(e,t,i){i.d(t,{E:function(){return d},b:function(){return l}});var s=i(41261),o=i(8986),r=i(53962);const n=e=>["GET_LOGGED_MODEL",e],a=async({queryKey:[,e]})=>(0,o.G)((0,r.we)(`ajax-api/2.0/mlflow/logged-models/${e}`),"GET"),l=({loggedModelId:e,enabled:t=!0})=>{const{data:i,isLoading:o,isFetching:r,refetch:l,error:d}=(0,s.I)({queryKey:n(null!==e&&void 0!==e?e:""),queryFn:a,cacheTime:0,refetchOnWindowFocus:!1,retry:!1,enabled:t});return{isLoading:o,isFetching:r,data:null===i||void 0===i?void 0:i.model,refetch:l,error:d}},d=async(e,t=!1)=>{try{return await(0,o.G)((0,r.we)(`ajax-api/2.0/mlflow/logged-models/${e}`),"GET")}catch(i){if(t)return;throw i}}},96034:function(e,t,i){i.d(t,{V:function(){return w}});var s=i(89555),o=i(31014),r=i(59403),n=i(68048),a=i(48624);const l=({when:e,message:t})=>{const i=o.useContext(a.jb).navigator.block;return o.useEffect((()=>{if(!e)return;return null===i||void 0===i?void 0:i((()=>window.confirm(t)))}),[t,i,e]),null};i(8844);var d=i(75703),c=i(11473),h=i(88443),p=i(64912),u=i(50111);const g=e=>(0,u.Y)(f,{name:e});class m extends o.Component{constructor(...e){super(...e),this.state={markdown:this.props.defaultMarkdown,selectedTab:this.props.defaultSelectedTab,error:null},this.converter=(0,c.OT)(),this.handleMdeValueChange=e=>{this.setState({markdown:e})},this.handleTabChange=e=>{this.setState({selectedTab:e})},this.handleSubmitClick=()=>{const{onSubmit:e}=this.props,{markdown:t}=this.state;return this.setState({confirmLoading:!0}),e?Promise.resolve(e(t)).then((()=>{this.setState({confirmLoading:!1,error:null})})).catch((e=>{this.setState({confirmLoading:!1,error:e&&e.getMessageField?e.getMessageField():this.props.intl.formatMessage({id:"SzvvXl",defaultMessage:"Failed to submit"})})})):null},this.handleCancelClick=()=>{this.setState({markdown:this.props.defaultMarkdown,selectedTab:this.props.defaultSelectedTab});const{onCancel:e}=this.props;e&&e()}}contentHasChanged(){return this.state.markdown!==this.props.defaultMarkdown}renderActions(){const{confirmLoading:e}=this.state;return(0,u.Y)("div",{className:"mlflow-editable-note-actions","data-testid":"editable-note-actions",children:(0,u.FD)("div",{children:[(0,u.Y)(r.B,{componentId:"codegen_mlflow_app_src_common_components_editablenote.tsx_114",type:"primary",className:"editable-note-save-button",onClick:this.handleSubmitClick,disabled:!this.contentHasChanged()||e,loading:e,"data-testid":"editable-note-save-button",children:this.props.saveText}),(0,u.Y)(r.B,{componentId:"codegen_mlflow_app_src_common_components_editablenote.tsx_124",htmlType:"button",className:"editable-note-cancel-button",onClick:this.handleCancelClick,disabled:e,children:(0,u.Y)(h.A,{id:"17k196",defaultMessage:"Cancel"})})]})})}getSanitizedHtmlContent(){const{markdown:e}=this.state;if(e){const t=(0,c.NW)(this.converter.makeHtml(e));return(0,c.Yc)(t)}return null}render(){const{showEditor:e}=this.props,{markdown:t,selectedTab:i,error:s}=this.state,r=this.getSanitizedHtmlContent();return(0,u.Y)("div",{className:"note-view-outer-container","data-testid":"note-view-outer-container",children:e?(0,u.FD)(o.Fragment,{children:[(0,u.Y)("div",{className:"note-view-text-area",children:(0,u.Y)(d.default,{value:t,minEditorHeight:this.props.minEditorHeight,maxEditorHeight:this.props.maxEditorHeight,minPreviewHeight:50,childProps:this.props.childProps,toolbarCommands:this.props.toolbarCommands,onChange:this.handleMdeValueChange,selectedTab:i,onTabChange:this.handleTabChange,generateMarkdownPreview:e=>Promise.resolve(this.getSanitizedHtmlContent(e)),getIcon:g})}),s&&(0,u.Y)(n.Alert,{componentId:"codegen_mlflow_app_src_common_components_editablenote.tsx_178",type:"error",message:this.props.intl.formatMessage({id:"79dD5F",defaultMessage:"There was an error submitting your note."}),description:s,closable:!0}),this.renderActions(),(0,u.Y)(l,{when:this.contentHasChanged(),message:this.props.intl.formatMessage({id:"dwTTNK",defaultMessage:"Are you sure you want to navigate away? Your pending text changes will be lost."})})]}):(0,u.Y)(v,{content:r})})}}function f(e){const{theme:t}=(0,r.u)(),{name:i}=e;return(0,u.Y)(n.LegacyTooltip,{position:"top",title:i,children:(0,u.Y)("span",{css:(0,s.AH)({color:t.colors.textPrimary},""),children:(0,u.Y)(d.SvgIcon,{icon:i})})})}function v(e){const{content:t}=e;return t?(0,u.Y)("div",{className:"note-view-outer-container","data-testid":"note-view-outer-container",children:(0,u.Y)("div",{className:"note-view-text-area",children:(0,u.Y)("div",{className:"note-view-preview note-editor-preview",children:(0,u.Y)("div",{className:"note-editor-preview-content","data-testid":"note-editor-preview-content",dangerouslySetInnerHTML:{__html:e.content}})})})}):(0,u.Y)("div",{children:(0,u.Y)(h.A,{id:"PRe/8y",defaultMessage:"None"})})}m.defaultProps={defaultMarkdown:"",defaultSelectedTab:"write",showEditor:!1,saveText:(0,u.Y)(h.A,{id:"Shv28w",defaultMessage:"Save"}),confirmLoading:!1,toolbarCommands:[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]],maxEditorHeight:500,minEditorHeight:200,childProps:{}};const w=(0,p.Ay)(m)}}]); +//# sourceMappingURL=701.4cd15ac7.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js.LICENSE.txt b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..f4840b99b9b4f44864fd107d4b48088f9b2a3dbb --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*! + * bytes + * Copyright(c) 2012-2014 TJ Holowaychuk + * Copyright(c) 2015 Jed Watson + * MIT Licensed + */ diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..25a1ec35bd4eee5549f4c5992bc5e7fe7ef0be08 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/701.4cd15ac7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/701.4cd15ac7.chunk.js","mappings":";+KAQO,MAAMA,EAA+CA,KAC1D,MAAM,MAAEC,IAAUC,EAAAA,EAAAA,KACZC,GAA4B,EAE5BC,GAAyBC,EAAAA,EAAAA,UAC7B,KASM,CAAC,IACP,CAACJ,EAAOE,IAGJG,GAAoCD,EAAAA,EAAAA,UACxC,KAAwC,CAAEE,UAA8B,EAAnBN,EAAMO,QAAQC,MACnE,CAACR,EAAOE,IAGJO,GAA6BL,EAAAA,EAAAA,UACjC,IAAM,CACJ,CACEM,KAAM,IACNC,QAAS,OACTC,WAAY,SACZC,eAAgB,UAElBX,IAIF,CAACF,EAAOE,IAGV,MAAO,CACLA,4BACAC,yBACAM,6BACAJ,oCACD,C,4FC9CI,MAAMS,EAA6BA,EAAGC,QAAOC,YAClD,MAAM,MAAEhB,IAAUC,EAAAA,EAAAA,KAClB,OACEgB,EAAAA,EAAAA,IAAA,MACEC,KAAGC,EAAAA,EAAAA,IAAE,CACHR,QAAS,OACTS,aAAc,aAAapB,EAAMqB,OAAOC,mBACxCC,UAAWvB,EAAMwB,QAAQC,UAC1B,IAACC,SAAA,EAEFC,EAAAA,EAAAA,GAAA,MACET,KAAGC,EAAAA,EAAAA,IAAE,CACHT,KAAM,YACNkB,gBAAiB5B,EAAMqB,OAAOQ,oBAC9BC,MAAO9B,EAAMqB,OAAOU,cACpBC,QAAShC,EAAMO,QAAQ0B,GACvBtB,QAAS,OAC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,QAAEgiB,GAAYhiB,EACpB,OAAOgiB,GACL3lB,EAAAA,EAAAA,GAAA,OAAKyG,UAAU,4BAA4B,cAAY,4BAA2B1G,UAChFC,EAAAA,EAAAA,GAAA,OAAKyG,UAAU,sBAAqB1G,UAClCC,EAAAA,EAAAA,GAAA,OAAKyG,UAAU,wCAAuC1G,UACpDC,EAAAA,EAAAA,GAAA,OACEyG,UAAU,8BACV,cAAY,8BAGZsf,wBAAyB,CAAEC,OAAQriB,EAAMgiB,kBAMjD3lB,EAAAA,EAAAA,GAAA,OAAAD,UACEC,EAAAA,EAAAA,GAACqB,EAAAA,EAAgB,CAAAC,GAAA,SAACC,eAAe,UAGvC,CAxNakiB,EACJwC,aAAe,CACpBtC,gBAAiB,GACjBE,mBAAoB,QACpBkB,YAAY,EACZN,UACEzkB,EAAAA,EAAAA,GAACqB,EAAAA,EAAgB,CAAAC,GAAA,SAACC,eAAe,SAEnCwb,gBAAgB,EAChBuI,gBAAiB,CACf,CAAC,SAAU,OAAQ,SAAU,iBAC7B,CAAC,OAAQ,QAAS,OAAQ,SAC1B,CAAC,iBAAkB,eAAgB,iBAErCH,gBAAiB,IACjBD,gBAAiB,IACjBG,WAAY,CAAC,GA0MV,MAAMa,GAAepZ,EAAAA,EAAAA,IAAW2W,E","sources":["experiment-tracking/hooks/useExperimentTrackingDetailsPageLayoutStyles.tsx","experiment-tracking/components/DetailsOverviewMetadataRow.tsx","experiment-tracking/components/artifact-view-components/FallbackToLoggedModelArtifactsInfo.tsx","experiment-tracking/components/ArtifactView.tsx","experiment-tracking/components/ArtifactPage.tsx","experiment-tracking/components/DetailsOverviewMetadataTable.tsx","model-registry/utils/SearchUtils.ts","../node_modules/bytes/index.js","common/components/details-page-layout/DetailsPageLayout.tsx","experiment-tracking/components/DetailsOverviewCopyableIdBox.tsx","common/components/ExpandableCell.tsx","experiment-tracking/components/DetailsOverviewParamsTable.tsx","model-registry/components/RegisterModel.tsx","model-registry/components/RegisterModelForm.tsx","experiment-tracking/hooks/logged-models/useGetLoggedModelQuery.tsx","common/components/Prompt.tsx","common/components/EditableNote.tsx"],"sourcesContent":["import { getBottomOnlyShadowScrollStyles, useDesignSystemTheme } from '@databricks/design-system';\nimport type { Interpolation, Theme } from '@emotion/react';\nimport { useMemo } from 'react';\n\n/**\n * Provides CSS styles for details pages (logged model details page, run details page)\n * depending on currently enabled layout, based on the feature flag.\n */\nexport const useExperimentTrackingDetailsPageLayoutStyles = () => {\n const { theme } = useDesignSystemTheme();\n const usingUnifiedDetailsLayout = false;\n\n const detailsPageTableStyles = useMemo>(\n () =>\n usingUnifiedDetailsLayout\n ? {\n height: 200,\n overflow: 'hidden',\n '& > div': {\n ...getBottomOnlyShadowScrollStyles(theme),\n },\n }\n : {},\n [theme, usingUnifiedDetailsLayout],\n );\n\n const detailsPageNoResultsWrapperStyles = useMemo>(\n () => (usingUnifiedDetailsLayout ? {} : { marginTop: theme.spacing.md * 4 }),\n [theme, usingUnifiedDetailsLayout],\n );\n\n const detailsPageNoEntriesStyles = useMemo>(\n () => [\n {\n flex: '1',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n usingUnifiedDetailsLayout && {\n marginTop: theme.spacing.md,\n },\n ],\n [theme, usingUnifiedDetailsLayout],\n );\n\n return {\n usingUnifiedDetailsLayout,\n detailsPageTableStyles,\n detailsPageNoEntriesStyles,\n detailsPageNoResultsWrapperStyles,\n };\n};\n","import { useDesignSystemTheme } from '@databricks/design-system';\n\n/**\n * Generic table row component for displaying metadata row in the details overview table (used in runs, logged models etc.)\n */\nexport const DetailsOverviewMetadataRow = ({ title, value }: { title: React.ReactNode; value: React.ReactNode }) => {\n const { theme } = useDesignSystemTheme();\n return (\n \n \n {title}\n \n \n {value}\n \n \n );\n};\n","import { Alert, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { Link } from '../../../common/utils/RoutingUtils';\nimport { useGetLoggedModelQuery } from '../../hooks/logged-models/useGetLoggedModelQuery';\nimport Routes from '../../routes';\n\nexport const FallbackToLoggedModelArtifactsInfo = ({ loggedModelId }: { loggedModelId: string }) => {\n const { data } = useGetLoggedModelQuery({ loggedModelId });\n const experimentId = data?.info?.experiment_id;\n const { theme } = useDesignSystemTheme();\n return (\n logged model associated with this run.\"\n description=\"Alert message to inform the user that they are viewing artifacts assigned to a logged model associated with this run.\"\n values={{\n link: (chunks) =>\n experimentId ? (\n {chunks}\n ) : (\n <>{chunks}\n ),\n }}\n />\n }\n closable={false}\n css={{ margin: theme.spacing.xs }}\n />\n );\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { injectIntl, FormattedMessage, IntlShape, useIntl } from 'react-intl';\nimport { Link } from '../../common/utils/RoutingUtils';\nimport { getBasename } from '../../common/utils/FileUtils';\nimport { ArtifactNode as ArtifactUtils, ArtifactNode } from '../utils/ArtifactUtils';\n// @ts-expect-error TS(7016): Could not find a declaration file for module 'byte... Remove this comment to see the full error message\nimport bytes from 'bytes';\nimport { RegisterModel } from '../../model-registry/components/RegisterModel';\nimport ShowArtifactPage from './artifact-view-components/ShowArtifactPage';\nimport {\n ModelVersionStatus,\n ModelVersionStatusIcons,\n DefaultModelVersionStatusMessages,\n modelVersionStatusIconTooltips,\n} from '../../model-registry/constants';\nimport Utils from '../../common/utils/Utils';\nimport _, { first } from 'lodash';\nimport { ModelRegistryRoutes } from '../../model-registry/routes';\nimport {\n Alert,\n DesignSystemHocProps,\n Empty,\n LayerIcon,\n LegacyTooltip,\n Typography,\n WithDesignSystemThemeHoc,\n} from '@databricks/design-system';\nimport './ArtifactView.css';\nimport { getArtifactRootUri, getArtifacts } from '../reducers/Reducers';\nimport { getAllModelVersions } from '../../model-registry/reducers';\nimport { listArtifactsApi, listArtifactsLoggedModelApi } from '../actions';\nimport { MLMODEL_FILE_NAME } from '../constants';\nimport { FallbackToLoggedModelArtifactsInfo } from './artifact-view-components/FallbackToLoggedModelArtifactsInfo';\nimport { getArtifactLocationUrl, getLoggedModelArtifactLocationUrl } from '../../common/utils/ArtifactUtils';\nimport { ArtifactViewTree } from './ArtifactViewTree';\nimport { useDesignSystemTheme } from '@databricks/design-system';\nimport { Button } from '@databricks/design-system';\nimport { CopyIcon } from '@databricks/design-system';\nimport { DownloadIcon } from '@databricks/design-system';\nimport { Checkbox } from '@databricks/design-system';\nimport { getLoggedTablesFromTags } from '@mlflow/mlflow/src/common/utils/TagUtils';\nimport { CopyButton } from '../../shared/building_blocks/CopyButton';\nimport type { LoggedModelArtifactViewerProps } from './artifact-view-components/ArtifactViewComponents.types';\nimport { MlflowService } from '../sdk/MlflowService';\nimport { KeyValueEntity } from '../../common/types';\n\nconst { Text } = Typography;\n\ntype ArtifactViewImplProps = DesignSystemHocProps & {\n experimentId: string;\n runUuid: string;\n loggedModelId?: string;\n initialSelectedArtifactPath?: string;\n artifactNode: any; // TODO: PropTypes.instanceOf(ArtifactNode)\n artifactRootUri: string;\n listArtifactsApi: (...args: any[]) => any;\n listArtifactsLoggedModelApi: typeof listArtifactsLoggedModelApi;\n modelVersionsBySource: any;\n handleActiveNodeChange: (...args: any[]) => any;\n runTags?: any;\n modelVersions?: any[];\n intl: IntlShape;\n getCredentialsForArtifactReadApi: (...args: any[]) => any;\n entityTags?: Partial[];\n\n /**\n * If true, the artifact browser will try to use all available height\n */\n useAutoHeight?: boolean;\n} & LoggedModelArtifactViewerProps;\n\ntype ArtifactViewImplState = any;\n\nexport class ArtifactViewImpl extends Component {\n state = {\n activeNodeId: undefined,\n toggledNodeIds: {},\n requestedNodeIds: new Set(),\n viewAsTable: true,\n };\n\n getExistingModelVersions() {\n const { modelVersionsBySource } = this.props;\n const activeNodeRealPath = Utils.normalize(this.getActiveNodeRealPath());\n return modelVersionsBySource[activeNodeRealPath];\n }\n\n renderRegisterModelButton() {\n const { runUuid } = this.props;\n const { activeNodeId } = this.state;\n const activeNodeRealPath = this.getActiveNodeRealPath();\n return (\n \n );\n }\n\n renderModelVersionInfoSection(existingModelVersions: any, intl: IntlShape) {\n return ;\n }\n\n renderPathAndSizeInfo() {\n // We will only be in this function if this.state.activeNodeId is defined\n const node = ArtifactUtils.findChild(this.props.artifactNode, this.state.activeNodeId);\n const activeNodeRealPath = this.getActiveNodeRealPath();\n\n return (\n
\n
\n {' '}\n {/* @ts-expect-error TS(2322): Type '{ children: string; className: string; ellip... Remove this comment to see the full error message */}\n \n {activeNodeRealPath}\n \n
\n {node.fileInfo.is_dir === false ? (\n
\n {' '}\n {bytes(this.getActiveNodeSize())}\n
\n ) : null}\n
\n );\n }\n\n renderSizeInfo() {\n // We will only be in this function if this.state.activeNodeId is defined\n const node = ArtifactUtils.findChild(this.props.artifactNode, this.state.activeNodeId);\n const { theme } = this.props.designSystemThemeApi;\n\n return (\n \n \n {this.state.activeNodeId}\n \n {node.fileInfo.is_dir === false && (\n {bytes(this.getActiveNodeSize())}\n )}\n \n );\n }\n\n renderPathInfo() {\n const activeNodeRealPath = this.getActiveNodeRealPath();\n const { theme } = this.props.designSystemThemeApi;\n\n return (\n \n \n {' '}\n {activeNodeRealPath}\n \n\n }\n />\n \n );\n }\n\n onDownloadClick(runUuid: any, artifactPath: any, loggedModelId?: string, isFallbackToLoggedModelArtifacts?: boolean) {\n // Logged model artifact API should be used when falling back to logged model artifacts on the run artifact page.\n if (runUuid && !isFallbackToLoggedModelArtifacts) {\n window.location.href = getArtifactLocationUrl(artifactPath, runUuid);\n } else if (loggedModelId) {\n window.location.href = getLoggedModelArtifactLocationUrl(artifactPath, loggedModelId);\n }\n }\n\n renderControls() {\n const { runUuid, loggedModelId, isFallbackToLoggedModelArtifacts } = this.props;\n const { activeNodeId } = this.state;\n return (\n
\n
\n {this.shouldShowViewAsTableCheckbox && (\n \n this.setState({\n viewAsTable: !this.state.viewAsTable,\n })\n }\n >\n Artifact view > View as table checkbox\"\n />\n \n )}\n \n }\n onClick={() =>\n this.onDownloadClick(runUuid, activeNodeId, loggedModelId, isFallbackToLoggedModelArtifacts)\n }\n />\n \n
\n
\n );\n }\n\n renderArtifactInfo() {\n const existingModelVersions = this.getExistingModelVersions();\n let toRender;\n if (existingModelVersions && Utils.isModelRegistryEnabled()) {\n // note that this case won't trigger for files inside a registered model/model version folder\n // React searches for existing model versions under the path of the file, which won't exist.\n toRender = this.renderModelVersionInfoSection(existingModelVersions, this.props.intl);\n } else if (this.activeNodeCanBeRegistered() && Utils.isModelRegistryEnabled()) {\n toRender = this.renderRegisterModelButton();\n } else if (this.activeNodeIsDirectory()) {\n toRender = null;\n } else {\n toRender = this.renderControls();\n }\n const { theme } = this.props.designSystemThemeApi;\n return (\n \n \n
{this.renderSizeInfo()}
\n
{toRender}
\n \n\n {this.renderPathInfo()}\n \n );\n }\n\n onToggleTreebeard = (\n dataNode: {\n id: string;\n loading: boolean;\n },\n toggled: boolean,\n ) => {\n const { id, loading } = dataNode;\n\n const usingLoggedModels = this.props.isLoggedModelsMode;\n\n const newRequestedNodeIds = new Set(this.state.requestedNodeIds);\n // - loading indicates that this node is a directory and has not been loaded yet.\n // - requestedNodeIds keeps track of in flight requests.\n if (loading && !this.state.requestedNodeIds.has(id)) {\n // Call relevant API based on the mode we are in\n if (usingLoggedModels && this.props.loggedModelId) {\n this.props.listArtifactsLoggedModelApi(\n this.props.loggedModelId,\n id,\n this.props.experimentId,\n undefined,\n this.props.entityTags,\n );\n } else {\n this.props.listArtifactsApi(this.props.runUuid, id);\n }\n }\n this.setState({\n activeNodeId: id,\n toggledNodeIds: {\n ...this.state.toggledNodeIds,\n [id]: toggled,\n },\n requestedNodeIds: newRequestedNodeIds,\n });\n };\n\n getTreebeardData = (artifactNode: any): any => {\n const { isRoot } = artifactNode;\n if (isRoot) {\n if (artifactNode.children) {\n return Object.values(artifactNode.children).map((c) => this.getTreebeardData(c));\n }\n // This case should never happen since we should never call this function on an empty root.\n throw Error('unreachable code.');\n }\n\n let id;\n let name;\n let toggled;\n let children;\n let active;\n\n if (artifactNode.fileInfo) {\n const { path } = artifactNode.fileInfo;\n id = path;\n name = getBasename(path);\n }\n\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n const toggleState = this.state.toggledNodeIds[id];\n if (toggleState) {\n toggled = toggleState;\n }\n\n if (artifactNode.children) {\n children = Object.values(artifactNode.children).map((c) => this.getTreebeardData(c));\n }\n\n if (this.state.activeNodeId === id) {\n active = true;\n }\n\n const loading = artifactNode.children !== undefined && !artifactNode.isLoaded;\n\n return {\n id,\n name,\n toggled,\n children,\n active,\n loading,\n };\n };\n\n getActiveNodeRealPath() {\n if (this.state.activeNodeId) {\n return `${this.props.artifactRootUri}/${this.state.activeNodeId}`;\n }\n return this.props.artifactRootUri;\n }\n\n getActiveNodeSize() {\n if (this.state.activeNodeId) {\n const node = ArtifactUtils.findChild(this.props.artifactNode, this.state.activeNodeId);\n const size = node.fileInfo.file_size || '0';\n return parseInt(size, 10);\n }\n return 0;\n }\n\n activeNodeIsDirectory() {\n if (this.state.activeNodeId) {\n const node = ArtifactUtils.findChild(this.props.artifactNode, this.state.activeNodeId);\n return node.fileInfo.is_dir;\n } else {\n // No node is highlighted so we're displaying the root, which is a directory.\n return true;\n }\n }\n\n activeNodeCanBeRegistered() {\n if (this.state.activeNodeId) {\n const node = ArtifactUtils.findChild(this.props.artifactNode, this.state.activeNodeId);\n if (node && node.children && MLMODEL_FILE_NAME in node.children) {\n return true;\n }\n }\n return false;\n }\n\n componentDidUpdate(prevProps: ArtifactViewImplProps, prevState: ArtifactViewImplState) {\n const { activeNodeId } = this.state;\n if (prevState.activeNodeId !== activeNodeId) {\n this.props.handleActiveNodeChange(this.activeNodeIsDirectory());\n }\n }\n\n componentDidMount() {\n if (this.props.initialSelectedArtifactPath) {\n const artifactPathParts = this.props.initialSelectedArtifactPath.split('/');\n if (artifactPathParts) {\n try {\n // Check if valid artifactId was supplied in URL. If not, don't select\n // or expand anything.\n ArtifactUtils.findChild(this.props.artifactNode, this.props.initialSelectedArtifactPath);\n } catch (err) {\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(err);\n return;\n }\n }\n let pathSoFar = '';\n const toggledArtifactState = {\n activeNodeId: this.props.initialSelectedArtifactPath,\n toggledNodeIds: {},\n };\n artifactPathParts.forEach((part) => {\n pathSoFar += part;\n // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message\n toggledArtifactState['toggledNodeIds'][pathSoFar] = true;\n pathSoFar += '/';\n });\n this.setArtifactState(toggledArtifactState);\n }\n }\n\n setArtifactState(artifactState: any) {\n this.setState(artifactState);\n }\n\n get shouldShowViewAsTableCheckbox() {\n return (\n this.state.activeNodeId &&\n this.props.runTags &&\n getLoggedTablesFromTags(this.props.runTags).includes(this.state.activeNodeId)\n );\n }\n\n render() {\n if (!this.props.artifactNode || ArtifactUtils.isEmpty(this.props.artifactNode)) {\n return ;\n }\n const { theme } = this.props.designSystemThemeApi;\n\n const { loggedModelId, isLoggedModelsMode } = this.props;\n\n return (\n \n \n \n \n
\n {this.props.isFallbackToLoggedModelArtifacts && this.props.loggedModelId && (\n \n )}\n {this.state.activeNodeId ? this.renderArtifactInfo() : null}\n \n
\n \n );\n }\n}\n\nconst mapStateToProps = (state: any, ownProps: any) => {\n const { runUuid, loggedModelId, isLoggedModelsMode } = ownProps;\n const { apis } = state;\n const artifactNode =\n isLoggedModelsMode && loggedModelId ? getArtifacts(loggedModelId, state) : getArtifacts(runUuid, state);\n const artifactRootUri = ownProps?.artifactRootUri ?? getArtifactRootUri(runUuid, state);\n const modelVersions = getAllModelVersions(state);\n const modelVersionsWithNormalizedSource = _.flatMap(modelVersions, (version) => {\n // @ts-expect-error TS(2698): Spread types may only be created from object types... Remove this comment to see the full error message\n return { ...version, source: Utils.normalize((version as any).source) };\n });\n const modelVersionsBySource = _.groupBy(modelVersionsWithNormalizedSource, 'source');\n return { artifactNode, artifactRootUri, modelVersions, modelVersionsBySource, apis };\n};\n\nconst mapDispatchToProps = {\n listArtifactsApi,\n listArtifactsLoggedModelApi,\n};\n\nexport const ArtifactView = connect(\n mapStateToProps,\n mapDispatchToProps,\n)(WithDesignSystemThemeHoc(injectIntl(ArtifactViewImpl)));\n\ntype ModelVersionInfoSectionProps = {\n modelVersion: any;\n intl: IntlShape;\n};\n\nfunction ModelVersionInfoSection(props: ModelVersionInfoSectionProps) {\n const { modelVersion, intl } = props;\n const { name, version, status, status_message } = modelVersion;\n\n // eslint-disable-next-line prefer-const\n let mvPageRoute = ModelRegistryRoutes.getModelVersionPageRoute(name, version);\n const modelVersionLink = (\n \n \n {name}\n , v{version} \n \n \n \n );\n\n return (\n
\n
\n \n
{ModelVersionStatusIcons[status]}
\n
\n {modelVersionLink}\n
\n
\n {status === ModelVersionStatus.READY ? (\n \n \n \n ) : (\n status_message || DefaultModelVersionStatusMessages[status]\n )}\n
\n
\n );\n}\n\nfunction NoArtifactView({ useAutoHeight }: { useAutoHeight?: boolean }) {\n const { theme } = useDesignSystemTheme();\n return (\n \n }\n title={\n \n }\n description={\n \n }\n />\n \n );\n}\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport _, { first, isEmpty } from 'lodash';\nimport React, { Component } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { WithRouterNextProps, withRouterNext } from '../../common/utils/withRouterNext';\nimport { ArtifactView } from './ArtifactView';\nimport { Spinner } from '../../common/components/Spinner';\nimport { listArtifactsApi, listArtifactsLoggedModelApi } from '../actions';\nimport { searchModelVersionsApi } from '../../model-registry/actions';\nimport { connect } from 'react-redux';\nimport { getArtifactRootUri, getArtifacts } from '../reducers/Reducers';\nimport { MODEL_VERSION_STATUS_POLL_INTERVAL as POLL_INTERVAL } from '../../model-registry/constants';\nimport RequestStateWrapper from '../../common/components/RequestStateWrapper';\nimport Utils from '../../common/utils/Utils';\nimport { getUUID } from '../../common/utils/ActionUtils';\nimport { getLoggedModelPathsFromTags } from '../../common/utils/TagUtils';\nimport { ArtifactViewBrowserSkeleton } from './artifact-view-components/ArtifactViewSkeleton';\nimport { DangerIcon, Empty } from '@databricks/design-system';\nimport { ArtifactViewErrorState } from './artifact-view-components/ArtifactViewErrorState';\nimport type { LoggedModelArtifactViewerProps } from './artifact-view-components/ArtifactViewComponents.types';\nimport { ErrorWrapper } from '../../common/utils/ErrorWrapper';\nimport { UseGetRunQueryResponseOutputs } from './run-page/hooks/useGetRunQuery';\nimport { ReduxState } from '../../redux-types';\nimport { asyncGetLoggedModel } from '../hooks/logged-models/useGetLoggedModelQuery';\nimport { KeyValueEntity } from '../../common/types';\n\ntype ArtifactPageImplProps = {\n runUuid?: string;\n initialSelectedArtifactPath?: string;\n artifactRootUri?: string;\n apis: any;\n listArtifactsApi: (...args: any[]) => any;\n listArtifactsLoggedModelApi: typeof listArtifactsLoggedModelApi;\n searchModelVersionsApi: (...args: any[]) => any;\n runTags?: any;\n runOutputs?: UseGetRunQueryResponseOutputs;\n entityTags?: Partial[];\n\n /**\n * If true, the artifact browser will try to use all available height\n */\n useAutoHeight?: boolean;\n} & LoggedModelArtifactViewerProps;\n\ntype ArtifactPageImplState = {\n errorThrown: boolean;\n activeNodeIsDirectory: boolean;\n fallbackEntityTags?: Partial[];\n};\n\nexport class ArtifactPageImpl extends Component {\n pollIntervalId: any;\n\n getFailedtoListArtifactsMsg = () => {\n return (\n \n \n \n );\n };\n\n state: ArtifactPageImplState = { activeNodeIsDirectory: false, errorThrown: false };\n\n searchRequestId = getUUID();\n\n listArtifactRequestIds = [getUUID()].concat(\n this.props.initialSelectedArtifactPath\n ? this.props.initialSelectedArtifactPath.split('/').map((s) => getUUID())\n : [],\n );\n\n pollModelVersionsForCurrentRun = async () => {\n const { apis, runUuid, isLoggedModelsMode } = this.props;\n const { activeNodeIsDirectory } = this.state;\n const searchRequest = apis[this.searchRequestId];\n // Do not poll for run's model versions if we are in the logged models mode\n if (isLoggedModelsMode && !runUuid) {\n return;\n }\n if (activeNodeIsDirectory && !(searchRequest && searchRequest.active)) {\n try {\n // searchModelVersionsApi may be sync or async so we're not using .catch() syntax\n await this.props.searchModelVersionsApi({ run_id: runUuid }, this.searchRequestId);\n } catch (error) {\n // We're not reporting errors more than once when polling\n // in order to avoid flooding logs\n if (!this.state.errorThrown) {\n const errorString = error instanceof Error ? error.toString() : JSON.stringify(error);\n const errorMessage = `Error while fetching model version for run: ${errorString}`;\n Utils.logErrorAndNotifyUser(errorMessage);\n this.setState({ errorThrown: true });\n }\n }\n }\n };\n\n handleActiveNodeChange = (activeNodeIsDirectory: any) => {\n this.setState({ activeNodeIsDirectory });\n };\n\n pollArtifactsForCurrentRun = async () => {\n const { runUuid, loggedModelId, isFallbackToLoggedModelArtifacts } = this.props;\n\n const usingLoggedModels = this.props.isLoggedModelsMode;\n\n let fallbackEntityTags: Partial[] | undefined = undefined;\n\n // In the logged models mode, fetch artifacts for the model instead of the run\n if (usingLoggedModels && loggedModelId) {\n // If falling back from run artifacts to logged model artifacts, fetch the logged model's tags\n // in order to correctly resolve artifact storage path.\n if (isFallbackToLoggedModelArtifacts) {\n const loggedModelData = await asyncGetLoggedModel(loggedModelId, true);\n fallbackEntityTags = loggedModelData?.model?.info?.tags;\n this.setState({\n fallbackEntityTags,\n });\n }\n await this.props.listArtifactsLoggedModelApi(\n this.props.loggedModelId,\n undefined,\n this.props.experimentId,\n this.listArtifactRequestIds[0],\n fallbackEntityTags ?? this.props.entityTags,\n );\n } else {\n await this.props.listArtifactsApi(runUuid, undefined, this.listArtifactRequestIds[0]);\n }\n if (this.props.initialSelectedArtifactPath) {\n const parts = this.props.initialSelectedArtifactPath.split('/');\n let pathSoFar = '';\n for (let i = 0; i < parts.length; i++) {\n pathSoFar += parts[i];\n // ML-12477: ListArtifacts API requests need to be sent and fulfilled for parent\n // directories before nested child directories, as our Reducers assume that parent\n // directories are listed before their children to construct the correct artifact tree.\n // Index i + 1 because listArtifactRequestIds[0] would have been used up by\n // root-level artifact API call above.\n\n // In the logged models mode, fetch artifacts for the model instead of the run\n if (usingLoggedModels && loggedModelId) {\n await this.props.listArtifactsLoggedModelApi(\n this.props.loggedModelId,\n pathSoFar,\n this.props.experimentId,\n this.listArtifactRequestIds[i + 1],\n fallbackEntityTags ?? this.props.entityTags,\n );\n } else {\n await this.props.listArtifactsApi(runUuid, pathSoFar, this.listArtifactRequestIds[i + 1]);\n }\n pathSoFar += '/';\n }\n }\n };\n\n componentDidMount() {\n if (Utils.isModelRegistryEnabled()) {\n this.pollModelVersionsForCurrentRun();\n this.pollIntervalId = setInterval(this.pollModelVersionsForCurrentRun, POLL_INTERVAL);\n }\n this.pollArtifactsForCurrentRun();\n }\n\n componentDidUpdate(prevProps: ArtifactPageImplProps) {\n if (prevProps.runUuid !== this.props.runUuid) {\n this.setState({\n errorThrown: false,\n });\n }\n // If the component eventually falls back to logged model artifacts, poll artifacts for the current run\n if (!prevProps.isFallbackToLoggedModelArtifacts && this.props.isFallbackToLoggedModelArtifacts) {\n this.pollArtifactsForCurrentRun();\n }\n }\n\n componentWillUnmount() {\n if (Utils.isModelRegistryEnabled()) {\n clearInterval(this.pollIntervalId);\n }\n }\n\n renderErrorCondition = (shouldRenderError: any) => {\n return shouldRenderError;\n };\n\n renderArtifactView = (isLoading: any, shouldRenderError: any, requests: any) => {\n if (isLoading && !shouldRenderError) {\n return ;\n }\n if (this.renderErrorCondition(shouldRenderError)) {\n const failedReq = requests[0];\n if (failedReq && failedReq.error) {\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(failedReq.error);\n }\n const errorDescription = (() => {\n const error = failedReq?.error;\n if (error instanceof ErrorWrapper) {\n return error.getMessageField();\n }\n\n return this.getFailedtoListArtifactsMsg();\n })();\n return (\n \n );\n }\n return (\n \n );\n };\n\n render() {\n return (\n \n {this.renderArtifactView}\n \n );\n }\n}\n\ntype ArtifactPageOwnProps = Omit<\n ArtifactPageImplProps,\n | 'apis'\n | 'initialSelectedArtifactPath'\n | 'listArtifactsApi'\n | 'listArtifactsLoggedModelApi'\n | 'searchModelVersionsApi'\n /* prettier-ignore */\n>;\n\nconst validVolumesPrefix = ['/Volumes/', 'dbfs:/Volumes/'];\n\n// Internal utility function to determine if the component should fallback to logged model artifacts\n// if there are no run artifacts available\nconst shouldFallbackToLoggedModelArtifacts = (\n state: ReduxState,\n ownProps: ArtifactPageOwnProps & WithRouterNextProps,\n): {\n isFallbackToLoggedModelArtifacts: boolean;\n fallbackLoggedModelId?: string;\n} => {\n const isVolumePath = validVolumesPrefix.some((prefix) => ownProps.artifactRootUri?.startsWith(prefix));\n\n // Execute only if feature is enabled and we are currently fetching >run< artifacts.\n // Also, do not fallback to logged model artifacts for Volume-based artifact paths.\n if (!ownProps.isLoggedModelsMode) {\n // Let's check if the root artifact is already present (i.e. run artifacts are fetched)\n const rootArtifact = getArtifacts(ownProps.runUuid, state);\n const isRunArtifactsEmpty = rootArtifact && !rootArtifact.fileInfo && isEmpty(rootArtifact.children);\n\n // Check if we have a logged model id to fallback to\n const loggedModelId = first(ownProps.runOutputs?.modelOutputs)?.modelId;\n\n // If true, return relevant information to the component\n if (isRunArtifactsEmpty && loggedModelId) {\n return {\n isFallbackToLoggedModelArtifacts: true,\n fallbackLoggedModelId: loggedModelId,\n };\n }\n }\n // Otherwise, do not fallback to logged model artifacts\n return {\n isFallbackToLoggedModelArtifacts: false,\n };\n};\n\nconst mapStateToProps = (state: any, ownProps: ArtifactPageOwnProps & WithRouterNextProps) => {\n const { runUuid, location, runOutputs } = ownProps;\n const currentPathname = location?.pathname || '';\n\n const initialSelectedArtifactPathMatch = currentPathname.match(/\\/(?:artifactPath|artifacts)\\/(.+)/);\n\n // Check the conditions to fallback to logged model artifacts\n const { isFallbackToLoggedModelArtifacts, fallbackLoggedModelId } = shouldFallbackToLoggedModelArtifacts(\n state,\n ownProps,\n );\n\n // The dot (\"*\") parameter behavior is not stable between implementations\n // so we'll extract the catch-all after /artifactPath, e.g.\n // `/experiments/123/runs/321/artifactPath/models/requirements.txt`\n // is getting transformed into\n // `models/requirements.txt`\n const initialSelectedArtifactPath = initialSelectedArtifactPathMatch?.[1] || undefined;\n\n const { apis } = state;\n const artifactRootUri = ownProps.artifactRootUri ?? getArtifactRootUri(runUuid, state);\n\n // Autoselect most recently created logged model\n let selectedPath = initialSelectedArtifactPath;\n if (!selectedPath) {\n const loggedModelPaths = getLoggedModelPathsFromTags(ownProps.runTags ?? {});\n if (loggedModelPaths.length > 0) {\n selectedPath = _.first(loggedModelPaths);\n }\n }\n return {\n artifactRootUri,\n apis,\n initialSelectedArtifactPath: selectedPath,\n\n // Use the run outputs if available, otherwise fallback to the run outputs from the Redux store\n isLoggedModelsMode: isFallbackToLoggedModelArtifacts ? true : ownProps.isLoggedModelsMode,\n loggedModelId: isFallbackToLoggedModelArtifacts ? fallbackLoggedModelId : ownProps.loggedModelId,\n isFallbackToLoggedModelArtifacts,\n };\n};\n\nconst mapDispatchToProps = {\n listArtifactsApi,\n listArtifactsLoggedModelApi,\n searchModelVersionsApi,\n};\n\nexport const ConnectedArtifactPage = connect(mapStateToProps, mapDispatchToProps)(ArtifactPageImpl);\n\nexport default withRouterNext(ConnectedArtifactPage);\n","import { useDesignSystemTheme } from '@databricks/design-system';\nimport { ReactNode } from 'react';\n\n/**\n * Generic table component for displaying metadata in the details overview section (used in runs, logged models etc.)\n */\nexport const DetailsOverviewMetadataTable = ({ children }: { children: ReactNode | ReactNode[] }) => {\n const { theme } = useDesignSystemTheme();\n return (\n \n {children}\n \n );\n};\n","import { REGISTERED_MODELS_SEARCH_NAME_FIELD } from '../constants';\nimport { resolveFilterValue } from '../actions';\n\nexport function getModelNameFilter(query: string): string {\n if (query) {\n return `${REGISTERED_MODELS_SEARCH_NAME_FIELD} ilike ${resolveFilterValue(query, true)}`;\n } else {\n return '';\n }\n}\n\nexport function getCombinedSearchFilter({\n query = '',\n}: {\n query?: string;\n} = {}) {\n const filters = [];\n const initialFilter = query.includes('tags.') ? query : getModelNameFilter(query);\n if (initialFilter) filters.push(initialFilter);\n return filters.join(' AND ');\n}\n\nexport function constructSearchInputFromURLState(urlState: Record): string {\n if ('searchInput' in urlState) {\n return urlState['searchInput'];\n }\n if ('nameSearchInput' in urlState && 'tagSearchInput' in urlState) {\n return getModelNameFilter(urlState['nameSearchInput']) + ` AND ` + urlState['tagSearchInput'];\n }\n if ('tagSearchInput' in urlState) {\n return urlState['tagSearchInput'];\n }\n if ('nameSearchInput' in urlState) {\n return urlState['nameSearchInput'];\n }\n return '';\n}\n","/*!\n * bytes\n * Copyright(c) 2012-2014 TJ Holowaychuk\n * Copyright(c) 2015 Jed Watson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = bytes;\nmodule.exports.format = format;\nmodule.exports.parse = parse;\n\n/**\n * Module variables.\n * @private\n */\n\nvar formatThousandsRegExp = /\\B(?=(\\d{3})+(?!\\d))/g;\n\nvar formatDecimalsRegExp = /(?:\\.0*|(\\.[^0]+)0+)$/;\n\nvar map = {\n b: 1,\n kb: 1 << 10,\n mb: 1 << 20,\n gb: 1 << 30,\n tb: ((1 << 30) * 1024)\n};\n\nvar parseRegExp = /^((-|\\+)?(\\d+(?:\\.\\d+)?)) *(kb|mb|gb|tb)$/i;\n\n/**\n * Convert the given value in bytes into a string or parse to string to an integer in bytes.\n *\n * @param {string|number} value\n * @param {{\n * case: [string],\n * decimalPlaces: [number]\n * fixedDecimals: [boolean]\n * thousandsSeparator: [string]\n * unitSeparator: [string]\n * }} [options] bytes options.\n *\n * @returns {string|number|null}\n */\n\nfunction bytes(value, options) {\n if (typeof value === 'string') {\n return parse(value);\n }\n\n if (typeof value === 'number') {\n return format(value, options);\n }\n\n return null;\n}\n\n/**\n * Format the given value in bytes into a string.\n *\n * If the value is negative, it is kept as such. If it is a float,\n * it is rounded.\n *\n * @param {number} value\n * @param {object} [options]\n * @param {number} [options.decimalPlaces=2]\n * @param {number} [options.fixedDecimals=false]\n * @param {string} [options.thousandsSeparator=]\n * @param {string} [options.unit=]\n * @param {string} [options.unitSeparator=]\n *\n * @returns {string|null}\n * @public\n */\n\nfunction format(value, options) {\n if (!Number.isFinite(value)) {\n return null;\n }\n\n var mag = Math.abs(value);\n var thousandsSeparator = (options && options.thousandsSeparator) || '';\n var unitSeparator = (options && options.unitSeparator) || '';\n var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2;\n var fixedDecimals = Boolean(options && options.fixedDecimals);\n var unit = (options && options.unit) || '';\n\n if (!unit || !map[unit.toLowerCase()]) {\n if (mag >= map.tb) {\n unit = 'TB';\n } else if (mag >= map.gb) {\n unit = 'GB';\n } else if (mag >= map.mb) {\n unit = 'MB';\n } else if (mag >= map.kb) {\n unit = 'KB';\n } else {\n unit = 'B';\n }\n }\n\n var val = value / map[unit.toLowerCase()];\n var str = val.toFixed(decimalPlaces);\n\n if (!fixedDecimals) {\n str = str.replace(formatDecimalsRegExp, '$1');\n }\n\n if (thousandsSeparator) {\n str = str.replace(formatThousandsRegExp, thousandsSeparator);\n }\n\n return str + unitSeparator + unit;\n}\n\n/**\n * Parse the string value into an integer in bytes.\n *\n * If no unit is given, it is assumed the value is in bytes.\n *\n * @param {number|string} val\n *\n * @returns {number|null}\n * @public\n */\n\nfunction parse(val) {\n if (typeof val === 'number' && !isNaN(val)) {\n return val;\n }\n\n if (typeof val !== 'string') {\n return null;\n }\n\n // Test if the string passed is valid\n var results = parseRegExp.exec(val);\n var floatValue;\n var unit = 'b';\n\n if (!results) {\n // Nothing could be extracted from the given string\n floatValue = parseInt(val, 10);\n unit = 'b'\n } else {\n // Retrieve the value and the unit\n floatValue = parseFloat(results[1]);\n unit = results[4].toLowerCase();\n }\n\n return Math.floor(map[unit] * floatValue);\n}\n","import { type ReactNode } from 'react';\nimport { OverviewLayout, AsideSections } from '@databricks/web-shared/utils';\n\n/**\n * A wrapper for the details page layout, conditionally rendering sidebar-enabled layout based on prop.\n */\nexport const DetailsPageLayout = ({\n children,\n className,\n secondarySections = [],\n usingSidebarLayout,\n}: {\n children: ReactNode;\n className?: string;\n secondarySections?: AsideSections;\n usingSidebarLayout?: boolean;\n}) => {\n if (usingSidebarLayout) {\n return (\n
\n {/* prettier-ignore */}\n \n {children}\n \n
\n );\n }\n return
{children}
;\n};\n","import { CopyIcon, useDesignSystemTheme } from '@databricks/design-system';\nimport { CopyButton } from '../../shared/building_blocks/CopyButton';\n\nexport const DetailsOverviewCopyableIdBox = ({\n value,\n className,\n element,\n}: {\n value: string;\n element?: React.ReactNode;\n className?: string;\n}) => {\n const { theme } = useDesignSystemTheme();\n return (\n
\n {element ?? value}\n } size=\"small\" css={{ flexShrink: 0 }} />\n
\n );\n};\n","import { useMemo } from 'react';\nimport { Button, ChevronDownIcon, ChevronRightIcon, useDesignSystemTheme } from '@databricks/design-system';\n\nexport const ExpandedJSONValueCell = ({ value }: { value: string }) => {\n const structuredJSONValue = useMemo(() => {\n // Attempts to parse the value as JSON and returns a pretty printed version if successful.\n // If JSON structure is not found, returns null.\n try {\n const objectData = JSON.parse(value);\n return JSON.stringify(objectData, null, 2);\n } catch (e) {\n return null;\n }\n }, [value]);\n return (\n \n {structuredJSONValue || value}\n \n );\n};\n\nconst ExpandableCell = ({\n value,\n isExpanded,\n toggleExpanded,\n hideCollapseButton,\n}: {\n value: string;\n isExpanded: boolean;\n toggleExpanded: () => void;\n hideCollapseButton?: boolean;\n}) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n \n {!hideCollapseButton && (\n : }\n onClick={() => toggleExpanded()}\n css={{ flexShrink: 0 }}\n />\n )}\n \n {isExpanded ? : value}\n \n \n );\n};\n","import {\n Button,\n ChevronDownIcon,\n ChevronRightIcon,\n Empty,\n Input,\n SearchIcon,\n Table,\n TableCell,\n TableHeader,\n TableRow,\n Typography,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { KeyValueEntity } from '../../common/types';\nimport { throttle, values } from 'lodash';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { ColumnDef, flexRender, getCoreRowModel, getExpandedRowModel, useReactTable } from '@tanstack/react-table';\nimport { Interpolation, Theme } from '@emotion/react';\nimport { ExpandedJSONValueCell } from '@mlflow/mlflow/src/common/components/ExpandableCell';\nimport { isUnstableNestedComponentsMigrated } from '../../common/utils/FeatureUtils';\nimport { useExperimentTrackingDetailsPageLayoutStyles } from '../hooks/useExperimentTrackingDetailsPageLayoutStyles';\n\ntype ParamsColumnDef = ColumnDef & {\n meta?: { styles?: Interpolation; multiline?: boolean };\n};\n\n/**\n * Displays cell with expandable parameter value.\n */\nconst ExpandableParamValueCell = ({\n name,\n value,\n toggleExpanded,\n isExpanded,\n autoExpandedRowsList,\n}: {\n name: string;\n value: string;\n toggleExpanded: () => void;\n isExpanded: boolean;\n autoExpandedRowsList: Record;\n}) => {\n const { theme } = useDesignSystemTheme();\n const cellRef = useRef(null);\n const [isOverflowing, setIsOverflowing] = useState(false);\n\n useEffect(() => {\n if (autoExpandedRowsList[name]) {\n return;\n }\n if (isOverflowing) {\n toggleExpanded();\n autoExpandedRowsList[name] = true;\n }\n }, [autoExpandedRowsList, isOverflowing, name, toggleExpanded]);\n\n // Check if cell is overflowing using resize observer\n useEffect(() => {\n if (!cellRef.current) return;\n\n const resizeObserverCallback: ResizeObserverCallback = throttle(\n ([entry]) => {\n const isOverflowing = entry.target.scrollHeight > entry.target.clientHeight;\n setIsOverflowing(isOverflowing);\n },\n 500,\n { trailing: true },\n );\n\n const resizeObserver = new ResizeObserver(resizeObserverCallback);\n resizeObserver.observe(cellRef.current);\n return () => resizeObserver.disconnect();\n }, [cellRef, toggleExpanded]);\n\n // Re-check if cell is overflowing after collapse\n useEffect(() => {\n if (!cellRef.current) return;\n if (!isExpanded) {\n const isOverflowing = cellRef.current.scrollHeight > cellRef.current.clientHeight;\n if (isOverflowing) {\n setIsOverflowing(true);\n }\n }\n }, [isExpanded]);\n\n return (\n
\n {(isOverflowing || isExpanded) && (\n : }\n onClick={() => toggleExpanded()}\n css={{ flexShrink: 0 }}\n />\n )}\n \n {isExpanded ? : value}\n
\n \n );\n};\n\ntype DetailsOverviewParamsTableMeta = {\n autoExpandedRowsList: React.MutableRefObject>;\n};\n\nconst staticColumns: ParamsColumnDef[] = [\n {\n id: 'key',\n accessorKey: 'key',\n header: () => (\n Overview > Parameters table > Key column header\"\n />\n ),\n enableResizing: true,\n size: 240,\n },\n {\n id: 'value',\n header: () => (\n Overview > Parameters table > Value column header\"\n />\n ),\n accessorKey: 'value',\n enableResizing: false,\n meta: { styles: { paddingLeft: 0 } },\n cell: ({\n row: { original, getIsExpanded, toggleExpanded },\n table: {\n options: { meta },\n },\n }) => {\n const { autoExpandedRowsList } = meta as DetailsOverviewParamsTableMeta;\n return (\n \n );\n },\n },\n];\n\n/**\n * Displays filterable table with parameter key/values.\n */\nexport const DetailsOverviewParamsTable = ({ params }: { params: Record }) => {\n const { theme } = useDesignSystemTheme();\n const intl = useIntl();\n const [filter, setFilter] = useState('');\n const autoExpandedRowsList = useRef>({});\n const {\n detailsPageTableStyles,\n detailsPageNoEntriesStyles,\n detailsPageNoResultsWrapperStyles,\n usingUnifiedDetailsLayout,\n } = useExperimentTrackingDetailsPageLayoutStyles();\n const paramsValues = useMemo(() => values(params), [params]);\n\n const paramsList = useMemo(\n () =>\n paramsValues.filter(({ key, value }) => {\n const filterLower = filter.toLowerCase();\n return key.toLowerCase().includes(filterLower) || value.toLowerCase().includes(filterLower);\n }),\n [filter, paramsValues],\n );\n\n const columns = useMemo(\n () =>\n isUnstableNestedComponentsMigrated()\n ? staticColumns\n : [\n {\n id: 'key',\n accessorKey: 'key',\n header: () => (\n Overview > Parameters table > Key column header\"\n />\n ),\n enableResizing: true,\n size: 240,\n },\n {\n id: 'value',\n header: () => (\n Overview > Parameters table > Value column header\"\n />\n ),\n accessorKey: 'value',\n enableResizing: false,\n meta: { styles: { paddingLeft: 0 } },\n cell: ({ row: { original, getIsExpanded, toggleExpanded } }) => (\n \n ),\n },\n ],\n [],\n );\n\n const table = useReactTable({\n data: paramsList,\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getRowId: (row) => row.key,\n enableColumnResizing: true,\n columnResizeMode: 'onChange',\n columns,\n meta: { autoExpandedRowsList } satisfies DetailsOverviewParamsTableMeta,\n });\n\n const renderTableContent = () => {\n if (!paramsValues.length) {\n return (\n
\n Overview > Parameters table > No parameters recorded\"\n />\n }\n />\n
\n );\n }\n\n const areAllResultsFiltered = paramsList.length < 1;\n\n return (\n <>\n
\n }\n placeholder={intl.formatMessage({\n defaultMessage: 'Search parameters',\n description: 'Run page > Overview > Parameters table > Filter input placeholder',\n })}\n value={filter}\n onChange={(e) => setFilter(e.target.value)}\n allowClear\n />\n
\n \n Overview > Parameters table > No results after filtering\"\n />\n }\n />\n \n ) : null\n }\n css={detailsPageTableStyles}\n >\n \n {table.getLeafHeaders().map((header, index) => (\n \n {flexRender(header.column.columnDef.header, header.getContext())}\n \n ))}\n \n {table.getRowModel().rows.map((row) => (\n \n {row.getAllCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))}\n \n \n );\n };\n\n return (\n \n \n Overview > Parameters table > Section title\"\n values={{ length: paramsList.length }}\n />\n \n \n {renderTableContent()}\n \n \n );\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport _, { identity, isUndefined } from 'lodash';\nimport { Button, ButtonProps, Modal, Spacer, LegacyTooltip, Typography, ModalProps } from '@databricks/design-system';\nimport { FormattedMessage, injectIntl, type IntlShape } from 'react-intl';\nimport {\n CREATE_NEW_MODEL_OPTION_VALUE,\n MODEL_NAME_FIELD,\n RegisterModelForm,\n SELECTED_MODEL_FIELD,\n} from './RegisterModelForm';\nimport {\n createModelVersionApi,\n createRegisteredModelApi,\n searchModelVersionsApi,\n searchRegisteredModelsApi,\n} from '../actions';\nimport { connect } from 'react-redux';\nimport Utils from '../../common/utils/Utils';\nimport { getUUID } from '../../common/utils/ActionUtils';\nimport { getModelNameFilter } from '../utils/SearchUtils';\n\nconst MAX_SEARCH_REGISTERED_MODELS = 5;\n\ntype RegisterModelImplProps = {\n disabled: boolean;\n runUuid?: string;\n loggedModelId?: string;\n modelPath: string;\n modelRelativePath?: string;\n modelByName: any;\n createRegisteredModelApi: (...args: any[]) => any;\n createModelVersionApi: (...args: any[]) => any;\n searchModelVersionsApi: (...args: any[]) => any;\n searchRegisteredModelsApi: (...args: any[]) => any;\n intl: IntlShape;\n /**\n * Type of button to display (\"primary\", \"link\", etc.)\n */\n buttonType?: ButtonProps['type'];\n /**\n * Tooltip to display on hover\n */\n tooltip?: React.ReactNode;\n /**\n * Whether to show the button. If set to true, only modal will be used and button will not be shown.\n */\n showButton?: boolean;\n /**\n * Whether the modal is visible. If set, modal visibility will be controlled by the props.\n */\n modalVisible?: boolean;\n /**\n * Callback to close the modal. If set, modal visibility will be controlled by the parent component.\n */\n onCloseModal?: () => void;\n /**\n * Callback to run after the model is registered.\n */\n onRegisterSuccess?: (data?: { value: { status?: string } }) => void;\n /**\n * Callback to run after the model is registered.\n */\n onRegisterFailure?: (reason?: any) => void;\n};\n\ntype RegisterModelImplState = any; // used in drop-down list so not many are visible at once\n\n/**\n * Component with a set of controls used to register a logged model.\n * Includes register modal and optional \"Register\" button.\n */\nexport class RegisterModelImpl extends React.Component {\n form: any;\n\n state = {\n visible: false,\n confirmLoading: false,\n modelByName: {},\n };\n\n createRegisteredModelRequestId = getUUID();\n\n createModelVersionRequestId = getUUID();\n\n searchModelVersionRequestId = getUUID();\n constructor() {\n // @ts-expect-error TS(2554): Expected 1-2 arguments, but got 0.\n super();\n this.form = React.createRef();\n }\n\n showRegisterModal = () => {\n this.setState({ visible: true });\n };\n\n hideRegisterModal = () => {\n this.setState({ visible: false });\n this.props.onCloseModal?.();\n };\n\n resetAndClearModalForm = () => {\n this.setState({ visible: false, confirmLoading: false });\n this.form.current?.resetFields();\n this.props.onCloseModal?.();\n };\n\n handleRegistrationFailure = (e: any) => {\n this.setState({ confirmLoading: false });\n Utils.logErrorAndNotifyUser(e);\n };\n\n handleSearchRegisteredModels = (input: any) => {\n this.props.searchRegisteredModelsApi(getModelNameFilter(input), MAX_SEARCH_REGISTERED_MODELS);\n };\n\n reloadModelVersionsForCurrentRun = () => {\n const { runUuid } = this.props;\n return this.props.searchModelVersionsApi({ run_id: runUuid }, this.searchModelVersionRequestId);\n };\n\n handleRegisterModel = () => {\n return this.form.current.validateFields().then((values: any) => {\n this.setState({ confirmLoading: true });\n const { runUuid, modelPath } = this.props;\n const selectedModelName = values[SELECTED_MODEL_FIELD];\n if (selectedModelName === CREATE_NEW_MODEL_OPTION_VALUE) {\n // When user choose to create a new registered model during the registration, we need to\n // 1. Create a new registered model\n // 2. Create model version #1 in the new registered model\n return this.props\n .createRegisteredModelApi(values[MODEL_NAME_FIELD], this.createRegisteredModelRequestId)\n .then(() =>\n this.props.createModelVersionApi(\n values[MODEL_NAME_FIELD],\n modelPath,\n runUuid,\n [],\n this.createModelVersionRequestId,\n this.props.loggedModelId,\n ),\n )\n .then(this.props.onRegisterSuccess ?? identity)\n .then(this.resetAndClearModalForm)\n .catch(this.props.onRegisterFailure ?? this.handleRegistrationFailure)\n .then(this.reloadModelVersionsForCurrentRun)\n .catch(Utils.logErrorAndNotifyUser);\n } else {\n return this.props\n .createModelVersionApi(\n selectedModelName,\n modelPath,\n runUuid,\n [],\n this.createModelVersionRequestId,\n this.props.loggedModelId,\n )\n .then(this.props.onRegisterSuccess ?? identity)\n .then(this.resetAndClearModalForm)\n .catch(this.props.onRegisterFailure ?? this.handleRegistrationFailure)\n .then(this.reloadModelVersionsForCurrentRun)\n .catch(Utils.logErrorAndNotifyUser);\n }\n });\n };\n\n componentDidMount() {\n this.props.searchRegisteredModelsApi();\n }\n\n componentDidUpdate(prevProps: RegisterModelImplProps, prevState: RegisterModelImplState) {\n // Repopulate registered model list every time user launch the modal\n if (prevState.visible === false && this.state.visible === true) {\n this.props.searchRegisteredModelsApi();\n }\n }\n renderRegisterModelForm() {\n const { modelByName } = this.props;\n return (\n \n );\n }\n\n renderFooter() {\n return [\n \n \n ,\n this.handleRegisterModel()}\n data-testid=\"confirm-register-model\"\n >\n \n ,\n ];\n }\n\n renderHelper(disableButton: boolean, form: React.ReactNode, footer: React.ReactNode) {\n const { visible, confirmLoading } = this.state;\n const { showButton = true, buttonType } = this.props;\n return (\n
\n {showButton && (\n \n \n \n \n \n )}\n this.handleRegisterModel()}\n okText={this.props.intl.formatMessage({\n defaultMessage: 'Register',\n description: 'Confirmation text to register the model',\n })}\n confirmLoading={confirmLoading}\n onCancel={this.hideRegisterModal}\n centered\n footer={footer}\n >\n {form}\n \n
\n );\n }\n\n render() {\n const { disabled } = this.props;\n return this.renderHelper(disabled, this.renderRegisterModelForm(), this.renderFooter());\n }\n}\n\nconst mapStateToProps = (state: any) => {\n return {\n modelByName: state.entities.modelByName,\n };\n};\n\nconst mapDispatchToProps = {\n createRegisteredModelApi,\n createModelVersionApi,\n searchModelVersionsApi,\n searchRegisteredModelsApi,\n};\n\nexport const RegisterModelWithIntl = injectIntl(RegisterModelImpl);\nexport const RegisterModel = connect(mapStateToProps, mapDispatchToProps)(RegisterModelWithIntl);\n\n// ..\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport { LegacyForm, Input, LegacySelect } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\n\nimport './RegisterModelForm.css';\n\nconst { Option, OptGroup } = LegacySelect;\n\nconst CREATE_NEW_MODEL_LABEL = 'Create New Model';\n// Include 'CREATE_NEW_MODEL_LABEL' as part of the value for filtering to work properly. Also added\n// prefix and postfix to avoid value conflict with actual model names.\nexport const CREATE_NEW_MODEL_OPTION_VALUE = `$$$__${CREATE_NEW_MODEL_LABEL}__$$$`;\nexport const SELECTED_MODEL_FIELD = 'selectedModel';\nexport const MODEL_NAME_FIELD = 'modelName';\nconst DESCRIPTION_FIELD = 'description';\n\ntype Props = {\n modelByName?: any;\n isCopy?: boolean;\n onSearchRegisteredModels: (...args: any[]) => any;\n innerRef: any;\n};\n\ntype State = any;\n\nexport class RegisterModelForm extends React.Component {\n state = {\n selectedModel: null,\n };\n\n handleModelSelectChange = (selectedModel: any) => {\n this.setState({ selectedModel });\n };\n\n modelNameValidator = (rule: any, value: any, callback: any) => {\n const { modelByName } = this.props;\n callback(modelByName[value] ? `Model \"${value}\" already exists.` : undefined);\n };\n\n handleFilterOption = (input: any, option: any) => {\n const value = (option && option.value) || '';\n return value.toLowerCase().indexOf(input.toLowerCase()) !== -1;\n };\n\n renderExplanatoryText() {\n const { isCopy } = this.props;\n const { selectedModel } = this.state;\n const creatingNewModel = selectedModel === CREATE_NEW_MODEL_OPTION_VALUE;\n\n if (!selectedModel || creatingNewModel) {\n return null;\n }\n\n const explanation = isCopy ? (\n OSS Promote model modal > copy explanatory text\"\n values={{ selectedModel: selectedModel }}\n />\n ) : (\n \n );\n\n return

{explanation}

;\n }\n\n renderModel(model: any) {\n return (\n \n );\n }\n render() {\n const { modelByName, innerRef, isCopy } = this.props;\n const { selectedModel } = this.state;\n const creatingNewModel = selectedModel === CREATE_NEW_MODEL_OPTION_VALUE;\n return (\n // @ts-expect-error TS(2322): Type '{ children: (Element | null)[]; ref: any; la... Remove this comment to see the full error message\n \n {/* \"+ Create new model\" OR \"Select existing model\" */}\n Copy to model
: 'Model'}\n name={SELECTED_MODEL_FIELD}\n rules={[{ required: true, message: 'Please select a model or create a new one.' }]}\n >\n \n \n {Object.values(modelByName).map((model) => this.renderModel(model))}\n \n \n\n {/* Name the new model when \"+ Create new model\" is selected */}\n {creatingNewModel ? (\n \n \n \n ) : null}\n\n {/* Explanatory text shown when existing model is selected */}\n {this.renderExplanatoryText()}\n \n );\n }\n}\n","import { type QueryFunctionContext, useQuery } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { LoggedModelProto } from '../../types';\nimport { loggedModelsDataRequest } from './request.utils';\nimport { getAjaxUrl } from '@mlflow/mlflow/src/common/utils/FetchUtils';\n\ntype UseGetLoggedModelQueryResponseType = {\n model: LoggedModelProto;\n};\n\ntype UseGetLoggedModelQueryKey = ['GET_LOGGED_MODEL', string];\n\nconst getQueryKey = (loggedModelId: string): UseGetLoggedModelQueryKey => ['GET_LOGGED_MODEL', loggedModelId] as const;\n\nconst queryFn = async ({\n queryKey: [, loggedModelId],\n}: QueryFunctionContext): Promise =>\n loggedModelsDataRequest(getAjaxUrl(`ajax-api/2.0/mlflow/logged-models/${loggedModelId}`), 'GET');\n\n/**\n * Retrieve logged model from API based on its ID\n */\nexport const useGetLoggedModelQuery = ({\n loggedModelId,\n enabled = true,\n}: {\n loggedModelId?: string;\n enabled?: boolean;\n}) => {\n const { data, isLoading, isFetching, refetch, error } = useQuery<\n UseGetLoggedModelQueryResponseType,\n Error,\n UseGetLoggedModelQueryResponseType,\n UseGetLoggedModelQueryKey\n >({\n queryKey: getQueryKey(loggedModelId ?? ''),\n queryFn,\n cacheTime: 0,\n refetchOnWindowFocus: false,\n retry: false,\n enabled,\n });\n\n return {\n isLoading,\n isFetching,\n data: data?.model,\n refetch,\n error,\n } as const;\n};\n\n/**\n * A non-hook version of useGetLoggedModelQuery that can be used in async functions.\n * @deprecated Use useGetLoggedModelQuery instead. This function is provided for backward compatibility for legacy class-based components.\n */\nexport const asyncGetLoggedModel = async (\n loggedModelId: string,\n failSilently = false,\n): Promise => {\n try {\n const data = await loggedModelsDataRequest(getAjaxUrl(`ajax-api/2.0/mlflow/logged-models/${loggedModelId}`), 'GET');\n return data;\n } catch (error) {\n if (failSilently) {\n return undefined;\n }\n throw error;\n }\n};\n","import React from 'react';\nimport { UNSAFE_NavigationContext } from '../utils/RoutingUtils';\n\nconst useNavigationBlock = () => {\n return (React.useContext(UNSAFE_NavigationContext) as any).navigator.block;\n};\n\nexport interface PromptProps {\n when: boolean;\n message: string;\n}\n\n/**\n * Component confirms navigating away by displaying prompt if given condition is met.\n * Uses react-router v6 API.\n */\nexport const Prompt = ({ when, message }: PromptProps) => {\n const block = useNavigationBlock();\n\n React.useEffect(() => {\n if (!when) return;\n\n const unblock = block?.(() => {\n // eslint-disable-next-line no-alert\n return window.confirm(message);\n });\n\n // eslint-disable-next-line consistent-return\n return unblock;\n }, [message, block, when]);\n\n return null;\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { Alert, Button, LegacyTooltip, useDesignSystemTheme } from '@databricks/design-system';\nimport { Prompt } from './Prompt';\nimport 'react-mde/lib/styles/css/react-mde-all.css';\nimport ReactMde, { SvgIcon } from 'react-mde';\nimport { forceAnchorTagNewTab, getMarkdownConverter, sanitizeConvertedHtml } from '../utils/MarkdownUtils';\nimport './EditableNote.css';\nimport { FormattedMessage, IntlShape, injectIntl } from 'react-intl';\n\ntype EditableNoteImplProps = {\n defaultMarkdown?: string;\n defaultSelectedTab?: string;\n onSubmit?: (...args: any[]) => any;\n onCancel?: (...args: any[]) => any;\n showEditor?: boolean;\n saveText?: any;\n toolbarCommands?: any[];\n maxEditorHeight?: number;\n minEditorHeight?: number;\n childProps?: any;\n intl: IntlShape;\n};\n\ntype EditableNoteImplState = any;\n\nconst getReactMdeIcon = (name: string) => ;\n\nexport class EditableNoteImpl extends Component {\n static defaultProps = {\n defaultMarkdown: '',\n defaultSelectedTab: 'write',\n showEditor: false,\n saveText: (\n \n ),\n confirmLoading: false,\n toolbarCommands: [\n ['header', 'bold', 'italic', 'strikethrough'],\n ['link', 'quote', 'code', 'image'],\n ['unordered-list', 'ordered-list', 'checked-list'],\n ],\n maxEditorHeight: 500,\n minEditorHeight: 200,\n childProps: {},\n };\n\n state = {\n markdown: this.props.defaultMarkdown,\n selectedTab: this.props.defaultSelectedTab,\n error: null,\n };\n\n converter = getMarkdownConverter();\n\n handleMdeValueChange = (markdown: any) => {\n this.setState({ markdown });\n };\n\n handleTabChange = (selectedTab: any) => {\n this.setState({ selectedTab });\n };\n\n handleSubmitClick = () => {\n const { onSubmit } = this.props;\n const { markdown } = this.state;\n this.setState({ confirmLoading: true });\n if (onSubmit) {\n return Promise.resolve(onSubmit(markdown))\n .then(() => {\n this.setState({ confirmLoading: false, error: null });\n })\n .catch((e) => {\n this.setState({\n confirmLoading: false,\n error:\n e && e.getMessageField\n ? e.getMessageField()\n : this.props.intl.formatMessage({\n defaultMessage: 'Failed to submit',\n description: 'Message text for failing to save changes in editable note in MLflow',\n }),\n });\n });\n }\n return null;\n };\n\n handleCancelClick = () => {\n // Reset to the last defaultMarkdown passed in as props.\n this.setState({\n markdown: this.props.defaultMarkdown,\n selectedTab: this.props.defaultSelectedTab,\n });\n const { onCancel } = this.props;\n if (onCancel) {\n onCancel();\n }\n };\n\n contentHasChanged() {\n return this.state.markdown !== this.props.defaultMarkdown;\n }\n\n renderActions() {\n // @ts-expect-error TS(2339): Property 'confirmLoading' does not exist on type '... Remove this comment to see the full error message\n const { confirmLoading } = this.state;\n return (\n
\n
\n \n {this.props.saveText}\n \n \n \n \n
\n
\n );\n }\n\n getSanitizedHtmlContent() {\n const { markdown } = this.state;\n if (markdown) {\n const sanitized = sanitizeConvertedHtml(this.converter.makeHtml(markdown));\n return forceAnchorTagNewTab(sanitized);\n }\n return null;\n }\n\n render() {\n const { showEditor } = this.props;\n const { markdown, selectedTab, error } = this.state;\n const htmlContent = this.getSanitizedHtmlContent();\n return (\n
\n {showEditor ? (\n \n
\n Promise.resolve(this.getSanitizedHtmlContent(md))}\n getIcon={getReactMdeIcon}\n />\n
\n {error && (\n \n )}\n {this.renderActions()}\n \n
\n ) : (\n \n )}\n
\n );\n }\n}\n\ntype TooltipIconProps = {\n name?: string;\n};\n\nfunction TooltipIcon(props: TooltipIconProps) {\n const { theme } = useDesignSystemTheme();\n const { name } = props;\n return (\n // @ts-expect-error TS(2322): Type '{ children: Element; position: string; title... Remove this comment to see the full error message\n \n \n {/* @ts-expect-error TS(2322): Type 'string | undefined' is not assignable to typ... Remove this comment to see the full error message */}\n \n \n \n );\n}\n\ntype HTMLNoteContentProps = {\n content?: string;\n};\n\nfunction HTMLNoteContent(props: HTMLNoteContentProps) {\n const { content } = props;\n return content ? (\n
\n
\n
\n \n
\n
\n
\n ) : (\n
\n \n
\n );\n}\n\nexport const EditableNote = injectIntl(EditableNoteImpl);\n"],"names":["useExperimentTrackingDetailsPageLayoutStyles","theme","useDesignSystemTheme","usingUnifiedDetailsLayout","detailsPageTableStyles","useMemo","detailsPageNoResultsWrapperStyles","marginTop","spacing","md","detailsPageNoEntriesStyles","flex","display","alignItems","justifyContent","DetailsOverviewMetadataRow","title","value","_jsxs","css","_css","borderBottom","colors","borderDecorative","minHeight","general","heightSm","children","_jsx","backgroundColor","backgroundSecondary","color","textSecondary","padding","sm","paddingTop","paddingBottom","FallbackToLoggedModelArtifactsInfo","loggedModelId","_data$info","data","useGetLoggedModelQuery","experimentId","info","experiment_id","Alert","type","componentId","message","FormattedMessage","id","defaultMessage","values","link","chunks","Link","to","Routes","getExperimentLoggedModelDetailsPage","_Fragment","closable","margin","xs","Text","Typography","_ref","name","styles","_ref2","_ref3","ArtifactViewImpl","Component","constructor","args","state","activeNodeId","undefined","toggledNodeIds","requestedNodeIds","Set","viewAsTable","onToggleTreebeard","dataNode","toggled","loading","usingLoggedModels","this","props","isLoggedModelsMode","newRequestedNodeIds","has","listArtifactsLoggedModelApi","entityTags","listArtifactsApi","runUuid","setState","getTreebeardData","artifactNode","isRoot","Object","map","c","Error","active","fileInfo","path","getBasename","toggleState","isLoaded","getExistingModelVersions","modelVersionsBySource","Utils","normalize","getActiveNodeRealPath","renderRegisterModelButton","activeNodeRealPath","RegisterModel","modelPath","modelRelativePath","String","disabled","showButton","buttonType","renderModelVersionInfoSection","existingModelVersions","intl","ModelVersionInfoSection","modelVersion","_","renderPathAndSizeInfo","node","ArtifactUtils","findChild","className","ellipsis","copyable","is_dir","bytes","getActiveNodeSize","renderSizeInfo","designSystemThemeApi","style","gap","overflow","textOverflow","bold","size","renderPathInfo","whiteSpace","CopyButton","showLabel","copyText","icon","CopyIcon","onDownloadClick","artifactPath","isFallbackToLoggedModelArtifacts","window","location","href","getArtifactLocationUrl","getLoggedModelArtifactLocationUrl","renderControls","shouldShowViewAsTableCheckbox","Checkbox","isChecked","onChange","LegacyTooltip","arrowPointAtCenter","placement","formatMessage","Button","DownloadIcon","onClick","renderArtifactInfo","toRender","isModelRegistryEnabled","activeNodeCanBeRegistered","activeNodeIsDirectory","flexDirection","artifactRootUri","file_size","parseInt","MLMODEL_FILE_NAME","componentDidUpdate","prevProps","prevState","handleActiveNodeChange","componentDidMount","initialSelectedArtifactPath","artifactPathParts","split","err","console","error","pathSoFar","toggledArtifactState","forEach","part","setArtifactState","artifactState","runTags","getLoggedTablesFromTags","includes","render","isEmpty","NoArtifactView","useAutoHeight","height","responsive","mediaQueries","overflowX","minWidth","maxWidth","borderRight","ArtifactViewTree","ShowArtifactPage","isDirectory","modelVersions","showArtifactLoggedTableView","mapDispatchToProps","ArtifactView","connect","mapStateToProps","ownProps","_ownProps$artifactRoo","apis","getArtifacts","getArtifactRootUri","getAllModelVersions","modelVersionsWithNormalizedSource","version","source","WithDesignSystemThemeHoc","injectIntl","status","status_message","mvPageRoute","ModelRegistryRoutes","getModelVersionPageRoute","modelVersionLink","target","rel","modelVersionStatusIconTooltips","ModelVersionStatusIcons","ModelVersionStatus","READY","React","registeredDate","formatTimestamp","creation_timestamp","DefaultModelVersionStatusMessages","Empty","image","LayerIcon","description","ArtifactPageImpl","pollIntervalId","getFailedtoListArtifactsMsg","artifactUri","errorThrown","searchRequestId","getUUID","listArtifactRequestIds","concat","s","pollModelVersionsForCurrentRun","async","searchRequest","searchModelVersionsApi","run_id","errorMessage","toString","JSON","stringify","logErrorAndNotifyUser","pollArtifactsForCurrentRun","fallbackEntityTags","_fallbackEntityTags","_loggedModelData$mode","_loggedModelData$mode2","loggedModelData","asyncGetLoggedModel","model","tags","parts","i","length","_fallbackEntityTags2","renderErrorCondition","shouldRenderError","renderArtifactView","isLoading","requests","_this$state$fallbackE","ArtifactViewBrowserSkeleton","failedReq","errorDescription","ErrorWrapper","getMessageField","ArtifactViewErrorState","setInterval","POLL_INTERVAL","componentWillUnmount","clearInterval","RequestStateWrapper","requestIds","validVolumesPrefix","ConnectedArtifactPage","_ownProps$artifactRoo2","runOutputs","initialSelectedArtifactPathMatch","pathname","match","fallbackLoggedModelId","shouldFallbackToLoggedModelArtifacts","some","prefix","startsWith","_first","_ownProps$runOutputs","rootArtifact","isRunArtifactsEmpty","first","modelOutputs","modelId","selectedPath","_ownProps$runTags","loggedModelPaths","getLoggedModelPathsFromTags","withRouterNext","DetailsOverviewMetadataTable","border","borderRadius","borderRadiusBase","width","marginBottom","lg","getModelNameFilter","query","REGISTERED_MODELS_SEARCH_NAME_FIELD","resolveFilterValue","getCombinedSearchFilter","filters","initialFilter","push","join","constructSearchInputFromURLState","urlState","module","exports","options","parse","format","formatThousandsRegExp","formatDecimalsRegExp","b","kb","mb","gb","tb","parseRegExp","Number","isFinite","mag","Math","abs","thousandsSeparator","unitSeparator","decimalPlaces","fixedDecimals","Boolean","unit","toLowerCase","str","toFixed","replace","val","isNaN","floatValue","results","exec","parseFloat","floor","DetailsPageLayout","secondarySections","usingSidebarLayout","OverviewLayout","asideSections","isTabLayout","sidebarSize","verticalStackOrder","DetailsOverviewCopyableIdBox","element","ExpandedJSONValueCell","structuredJSONValue","objectData","e","wordBreak","fontFamily","ExpandableParamValueCell","toggleExpanded","isExpanded","autoExpandedRowsList","cellRef","useRef","isOverflowing","setIsOverflowing","useState","useEffect","current","resizeObserverCallback","throttle","entry","scrollHeight","clientHeight","trailing","resizeObserver","ResizeObserver","observe","disconnect","ChevronDownIcon","ChevronRightIcon","WebkitBoxOrient","WebkitLineClamp","ref","staticColumns","accessorKey","header","enableResizing","meta","paddingLeft","cell","row","original","getIsExpanded","table","key","DetailsOverviewParamsTable","params","useIntl","filter","setFilter","paramsValues","paramsList","filterLower","columns","isUnstableNestedComponentsMigrated","useReactTable","getCoreRowModel","getExpandedRowModel","getRowId","enableColumnResizing","columnResizeMode","Title","level","renderTableContent","areAllResultsFiltered","Input","SearchIcon","placeholder","allowClear","Table","scrollable","empty","TableRow","isHeader","getLeafHeaders","index","TableHeader","column","setColumnSizing","isResizing","getIsResizing","flexGrow","getCanResize","flexBasis","getSize","flexRender","columnDef","getContext","getRowModel","rows","getAllCells","_meta","TableCell","multiline","RegisterModelImpl","super","form","visible","confirmLoading","modelByName","createRegisteredModelRequestId","createModelVersionRequestId","searchModelVersionRequestId","showRegisterModal","hideRegisterModal","_this$props$onCloseMo","_this$props","onCloseModal","call","resetAndClearModalForm","_this$form$current","_this$props$onCloseMo2","_this$props2","resetFields","handleRegistrationFailure","handleSearchRegisteredModels","input","searchRegisteredModelsApi","reloadModelVersionsForCurrentRun","handleRegisterModel","validateFields","then","selectedModelName","SELECTED_MODEL_FIELD","_this$props$onRegiste","_this$props$onRegiste2","_this$props$onRegiste3","_this$props$onRegiste4","CREATE_NEW_MODEL_OPTION_VALUE","createRegisteredModelApi","MODEL_NAME_FIELD","createModelVersionApi","onRegisterSuccess","identity","catch","onRegisterFailure","renderRegisterModelForm","RegisterModelForm","innerRef","onSearchRegisteredModels","renderFooter","renderHelper","disableButton","footer","tooltip","htmlType","Modal","modalVisible","onOk","okText","onCancel","centered","RegisterModelWithIntl","entities","Option","OptGroup","LegacySelect","CREATE_NEW_MODEL_LABEL","selectedModel","handleModelSelectChange","modelNameValidator","rule","callback","handleFilterOption","option","indexOf","renderExplanatoryText","isCopy","explanation","renderModel","creatingNewModel","LegacyForm","layout","Item","label","rules","required","dropdownClassName","filterOption","onSearch","showSearch","fontSize","validator","getQueryKey","queryFn","queryKey","loggedModelsDataRequest","getAjaxUrl","enabled","isFetching","refetch","useQuery","cacheTime","refetchOnWindowFocus","retry","failSilently","Prompt","when","block","UNSAFE_NavigationContext","navigator","confirm","getReactMdeIcon","TooltipIcon","EditableNoteImpl","markdown","defaultMarkdown","selectedTab","defaultSelectedTab","converter","getMarkdownConverter","handleMdeValueChange","handleTabChange","handleSubmitClick","onSubmit","Promise","resolve","handleCancelClick","contentHasChanged","renderActions","saveText","getSanitizedHtmlContent","sanitized","sanitizeConvertedHtml","makeHtml","forceAnchorTagNewTab","showEditor","htmlContent","ReactMde","minEditorHeight","maxEditorHeight","minPreviewHeight","childProps","toolbarCommands","onTabChange","generateMarkdownPreview","getIcon","HTMLNoteContent","content","position","textPrimary","SvgIcon","dangerouslySetInnerHTML","__html","defaultProps","EditableNote"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7021.21cfd230.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7021.21cfd230.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..ec774b311386c0424d471a1edd1ee2a74ba5cd29 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7021.21cfd230.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 7021.21cfd230.chunk.js.LICENSE.txt */ +(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7021],{33:function(e,t,r){"use strict";e.exports=r(91595)()?WeakMap:r(45830)},77:function(e,t,r){"use strict";var n=r(72599).convert,i=r(72599).convertOnSelect,a=r(82949).traceLayerPrefix;function o(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",a+t+"-fill"],["line",a+t+"-line"]],this.below=null}var s=o.prototype;s.update=function(e){this._update(n(e))},s.updateOnSelect=function(e){this._update(i(e))},s._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])},s.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},e.exports=function(e,t){var r=t[0].trace,i=new o(e,r.uid),a=i.sourceId,s=n(t),l=i.below=e.belowLookup["trace-"+r.uid];return e.map.addSource(a,{type:"geojson",data:s.geojson}),i._addLayers(s,l),t[0].trace._glTrace=i,i}},166:function(e){"use strict";e.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},461:function(e,t,r){"use strict";var n=r(80717),i=r(18205),a=r(83759),o=r(91365);function s(e,t){for(var r=new Array(e.length-1),n=1;n>1;return["sum(",c(e.slice(0,t)),",",c(e.slice(t)),")"].join("")}function u(e){if(2===e.length)return["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("");for(var t=[],r=0;r=e[1]||i[1]<=e[0])&&(a[0]t[0]))return!0}return!1}function w(e){var r,i,s,u,p,g,m=e._fullLayout,v=m._size,y=v.p,x=f.list(e,"",!0);if(m._paperdiv.style({width:e._context.responsive&&m.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":m.width+"px",height:e._context.responsive&&m.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":m.height+"px"}).selectAll(".main-svg").call(c.setSize,m.width,m.height),e._context.setBackground(e,m.paper_bgcolor),t.drawMainTitle(e),h.manage(e),!m._has("cartesian"))return a.previousPromises(e);function b(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-y-n:t._offset+t._length+y+n:v.t+v.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+y+n:t._offset-y-n:v.l+v.w*(e.position||0)+n%1}for(r=0;r0){var v=r*u;o.drawBox(h-v,f-v,d+v,f+v,a),o.drawBox(h-v,p-v,d+v,p+v,a),o.drawBox(h-v,f-v,h+v,p+v,a),o.drawBox(d-v,f-v,d+v,p+v,a)}}}},s.update=function(e){e=e||{},this.innerFill=!!e.innerFill,this.outerFill=!!e.outerFill,this.innerColor=(e.innerColor||[0,0,0,.5]).slice(),this.outerColor=(e.outerColor||[0,0,0,.5]).slice(),this.borderColor=(e.borderColor||[0,0,0,1]).slice(),this.borderWidth=e.borderWidth||0,this.selectBox=(e.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},1042:function(e,t,r){"use strict";var n=r(37514);e.exports=function(e){if(!n(e))throw new TypeError(e+" is not an Object");return e}},1101:function(e,t,r){"use strict";var n=r(87396),i=r(22483);e.exports=function(e,t){var r=i(e),a=i(t);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a<0&&(e=e.neg(),t=t.neg());var o=e.gcd(t);if(o.cmpn(1))return[e.div(o),t.div(o)];return[e,t]}},1115:function(e,t,r){"use strict";var n=r(47401),i=r(37762);function a(e,t){var r=t.fullSceneLayout.domain,a=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},n.extendFlat(e._xa,o),i.setConvert(e._xa),e._xa._offset=a.l+r.x[0]*a.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*a.w*(r.x[1]-r.x[0])},e._ya={},n.extendFlat(e._ya,o),i.setConvert(e._ya),e._ya._offset=a.t+(1-r.y[1])*a.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,r=0;r0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},1470:function(e){e.exports=function(){"use strict";var e=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray},t=function(e,t){for(var r=Object.keys(t),n=0;n=0&&(0|e)===e||i("invalid parameter type, ("+e+")"+o(t)+". must be a nonnegative integer")}function f(e,t,r){t.indexOf(e)<0&&i("invalid value"+o(r)+". must be one of: "+t)}var d=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function p(e){Object.keys(e).forEach((function(e){d.indexOf(e)<0&&i('invalid regl constructor argument "'+e+'". must be one of '+d)}))}function g(e,t){for(e+="";e.length0&&t.push(new y("unknown",0,e))}})),t}function T(e,t){t.forEach((function(t){var r=e[t.file];if(r){var n=r.index[t.line];if(n)return n.errors.push(t),void(r.hasErrors=!0)}e.unknown.hasErrors=!0,e.unknown.lines[0].errors.push(t)}))}function k(e,t,n,i,o){if(!e.getShaderParameter(t,e.COMPILE_STATUS)){var s=e.getShaderInfoLog(t),l=i===e.FRAGMENT_SHADER?"fragment":"vertex";I(n,"string",l+" shader source must be a string",o);var c=_(n,o),u=w(s);T(c,u),Object.keys(c).forEach((function(e){var t=c[e];if(t.hasErrors){var n=[""],i=[""];a("file number "+e+": "+t.name+"\n","color:red;text-decoration:underline;font-weight:bold"),t.lines.forEach((function(e){if(e.errors.length>0){a(g(e.number,4)+"| ","background-color:yellow; font-weight:bold"),a(e.line+r,"color:red; background-color:yellow; font-weight:bold");var t=0;e.errors.forEach((function(n){var i=n.message,o=/^\s*'(.*)'\s*:\s*(.*)$/.exec(i);if(o){var s=o[1];i=o[2],"assign"===s&&(s="="),t=Math.max(e.line.indexOf(s,t),0)}else t=0;a(g("| ",6)),a(g("^^^",t+3)+r,"font-weight:bold"),a(g("| ",6)),a(i+r,"font-weight:bold")})),a(g("| ",6)+r)}else a(g(e.number,4)+"| "),a(e.line+r,"color:red")})),"undefined"===typeof document||window.chrome?console.log(n.join("")):(i[0]=n.join("%c"),console.log.apply(console,i))}function a(e,t){n.push(e),i.push(t||"")}})),a.raise("Error compiling "+l+" shader, "+c[0].name)}}function A(e,t,n,i,o){if(!e.getProgramParameter(t,e.LINK_STATUS)){var s=e.getProgramInfoLog(t),l=_(n,o),c='Error linking program with vertex shader, "'+_(i,o)[0].name+'", and fragment shader "'+l[0].name+'"';"undefined"!==typeof document?console.log("%c"+c+r+"%c"+s,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(c+r+s),a.raise(c)}}function M(e){e._commandRef=x()}function S(e,t,r,n){function i(e){return e?n.id(e):0}function a(e,t){Object.keys(t).forEach((function(t){e[n.id(t)]=!0}))}M(e),e._fragId=i(e.static.frag),e._vertId=i(e.static.vert);var o=e._uniformSet={};a(o,t.static),a(o,t.dynamic);var s=e._attributeSet={};a(s,r.static),a(s,r.dynamic),e._hasCount="count"in e.static||"count"in e.dynamic||"elements"in e.static||"elements"in e.dynamic}function E(e,t){var r=b();i(e+" in command "+(t||x())+("unknown"===r?"":" called from "+r))}function L(e,t,r){e||E(t,r||x())}function C(e,t,r,n){e in t||E("unknown parameter ("+e+")"+o(r)+". possible values: "+Object.keys(t).join(),n||x())}function I(e,t,r,n){c(e,t)||E("invalid parameter type"+o(r)+". expected "+t+", got "+typeof e,n||x())}function D(e){e()}function P(e,t,r){e.texture?f(e.texture._texture.internalformat,t,"unsupported texture format for attachment"):f(e.renderbuffer._renderbuffer.format,r,"unsupported renderbuffer format for attachment")}var O=33071,z=9728,R=9984,F=9985,j=9986,N=9987,B=5121,U=5122,V=5123,q=5124,H=5125,G=5126,W=32819,Y=32820,Z=33635,X=34042,K=36193,J={};function Q(e,t){return e===Y||e===W||e===Z?2:e===X?4:J[e]*t}function $(e){return!(e&e-1)&&!!e}function ee(e,t,r){var n,i=t.width,o=t.height,s=t.channels;a(i>0&&i<=r.maxTextureSize&&o>0&&o<=r.maxTextureSize,"invalid texture shape"),e.wrapS===O&&e.wrapT===O||a($(i)&&$(o),"incompatible wrap mode for texture, both width and height must be power of 2"),1===t.mipmask?1!==i&&1!==o&&a(e.minFilter!==R&&e.minFilter!==j&&e.minFilter!==F&&e.minFilter!==N,"min filter requires mipmap"):(a($(i)&&$(o),"texture must be a square power of 2 to support mipmapping"),a(t.mipmask===(i<<1)-1,"missing or incomplete mipmap data")),t.type===G&&(r.extensions.indexOf("oes_texture_float_linear")<0&&a(e.minFilter===z&&e.magFilter===z,"filter not supported, must enable oes_texture_float_linear"),a(!e.genMipmaps,"mipmap generation not supported with float textures"));var l=t.images;for(n=0;n<16;++n)if(l[n]){var c=i>>n,u=o>>n;a(t.mipmask&1<0&&i<=n.maxTextureSize&&o>0&&o<=n.maxTextureSize,"invalid texture shape"),a(i===o,"cube map must be square"),a(t.wrapS===O&&t.wrapT===O,"wrap mode not supported by cube map");for(var l=0;l>h,p=o>>h;a(c.mipmask&1<1&&t===r&&('"'===t||"'"===t))return['"'+le(e.substr(1,e.length-2))+'"'];var n=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e);if(n)return ce(e.substr(0,n.index)).concat(ce(n[1])).concat(ce(e.substr(n.index+n[0].length)));var i=e.split(".");if(1===i.length)return['"'+le(e)+'"'];for(var a=[],o=0;o0,"invalid pixel ratio"))):re.raise("invalid arguments to regl"),t&&("canvas"===t.nodeName.toLowerCase()?n=t:r=t),!i){if(!n){re("undefined"!==typeof document,"must manually specify webgl context outside of DOM environments");var d=ye(r||document.body,h,c);if(!d)return null;n=d.canvas,f=d.onDestroy}void 0===o.premultipliedAlpha&&(o.premultipliedAlpha=!0),i=xe(n,o)}return i?{gl:i,canvas:n,container:r,extensions:s,optionalExtensions:l,pixelRatio:c,profile:u,onDone:h,onDestroy:f}:(f(),h("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Ae(e,t){var r={};function n(t){re.type(t,"string","extension name must be string");var n,i=t.toLowerCase();try{n=r[i]=e.getExtension(i)}catch(a){}return!!n}for(var i=0;i65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1}function Re(){var e=Me(8,(function(){return[]}));function t(t){var r=Oe(t),n=e[ze(r)>>2];return n.length>0?n.pop():new ArrayBuffer(r)}function r(t){e[ze(t.byteLength)>>2].push(t)}function n(e,r){var n=null;switch(e){case Se:n=new Int8Array(t(r),0,r);break;case Ee:n=new Uint8Array(t(r),0,r);break;case Le:n=new Int16Array(t(2*r),0,r);break;case Ce:n=new Uint16Array(t(2*r),0,r);break;case Ie:n=new Int32Array(t(4*r),0,r);break;case De:n=new Uint32Array(t(4*r),0,r);break;case Pe:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n}function i(e){r(e.buffer)}return{alloc:t,free:r,allocType:n,freeType:i}}var Fe=Re();Fe.zero=Re();var je=3408,Ne=3410,Be=3411,Ue=3412,Ve=3413,qe=3414,He=3415,Ge=33901,We=33902,Ye=3379,Ze=3386,Xe=34921,Ke=36347,Je=36348,Qe=35661,$e=35660,et=34930,tt=36349,rt=34076,nt=34024,it=7936,at=7937,ot=7938,st=35724,lt=34047,ct=36063,ut=34852,ht=3553,ft=34067,dt=34069,pt=33984,gt=6408,mt=5126,vt=5121,yt=36160,xt=36053,bt=36064,_t=16384,wt=function(e,t){var r=1;t.ext_texture_filter_anisotropic&&(r=e.getParameter(lt));var n=1,i=1;t.webgl_draw_buffers&&(n=e.getParameter(ut),i=e.getParameter(ct));var a=!!t.oes_texture_float;if(a){var o=e.createTexture();e.bindTexture(ht,o),e.texImage2D(ht,0,gt,1,1,0,gt,mt,null);var s=e.createFramebuffer();if(e.bindFramebuffer(yt,s),e.framebufferTexture2D(yt,bt,ht,o,0),e.bindTexture(ht,null),e.checkFramebufferStatus(yt)!==xt)a=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(_t);var l=Fe.allocType(mt,4);e.readPixels(0,0,1,1,gt,mt,l),e.getError()?a=!1:(e.deleteFramebuffer(s),e.deleteTexture(o),a=1===l[0]),Fe.freeType(l)}}var c=!0;if("undefined"===typeof navigator||!(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))){var u=e.createTexture(),h=Fe.allocType(vt,36);e.activeTexture(pt),e.bindTexture(ft,u),e.texImage2D(dt,0,gt,3,3,0,gt,vt,h),Fe.freeType(h),e.bindTexture(ft,null),e.deleteTexture(u),c=!e.getError()}return{colorBits:[e.getParameter(Ne),e.getParameter(Be),e.getParameter(Ue),e.getParameter(Ve)],depthBits:e.getParameter(qe),stencilBits:e.getParameter(He),subpixelBits:e.getParameter(je),extensions:Object.keys(t).filter((function(e){return!!t[e]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:e.getParameter(Ge),lineWidthDims:e.getParameter(We),maxViewportDims:e.getParameter(Ze),maxCombinedTextureUnits:e.getParameter(Qe),maxCubeMapSize:e.getParameter(rt),maxRenderbufferSize:e.getParameter(nt),maxTextureUnits:e.getParameter(et),maxTextureSize:e.getParameter(Ye),maxAttributes:e.getParameter(Xe),maxVertexUniforms:e.getParameter(Ke),maxVertexTextureUnits:e.getParameter($e),maxVaryingVectors:e.getParameter(Je),maxFragmentUniforms:e.getParameter(tt),glsl:e.getParameter(st),renderer:e.getParameter(at),vendor:e.getParameter(it),version:e.getParameter(ot),readFloat:a,npotTextureCube:c}};function Tt(t){return!!t&&"object"===typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&"number"===typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||e(t.data))}var kt=function(e){return Object.keys(e).map((function(t){return e[t]}))},At={shape:It,flatten:Ct};function Mt(e,t,r){for(var n=0;n0)if(Array.isArray(r[0])){s=Rt(r);for(var c=1,u=1;u0)if("number"===typeof t[0]){var a=Fe.allocType(u.dtype,t.length);qt(a,t),p(a,i),Fe.freeType(a)}else if(Array.isArray(t[0])||e(t[0])){n=Rt(t);var o=zt(t,n,u.dtype);p(o,i),Fe.freeType(o)}else re.raise("invalid buffer data")}else if(Tt(t)){n=t.shape;var s=t.stride,l=0,c=0,f=0,d=0;1===n.length?(l=n[0],c=1,f=s[0],d=0):2===n.length?(l=n[0],c=n[1],f=s[0],d=s[1]):re.raise("invalid shape");var g=Array.isArray(t.data)?u.dtype:Vt(t.data),m=Fe.allocType(g,l*c);Ht(m,t.data,l,c,f,d,t.offset),p(m,i),Fe.freeType(m)}else re.raise("invalid data for buffer subdata");return h}return o[u.id]=u,l||h(i),h._reglType="buffer",h._buffer=u,h.subdata=g,n.profile&&(h.stats=u.stats),h.destroy=function(){d(u)},h}function g(){kt(o).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))}return n.profile&&(r.getTotalBufferSize=function(){var e=0;return Object.keys(o).forEach((function(t){e+=o[t].stats.size})),e}),{create:p,createStream:c,destroyStream:u,clear:function(){kt(o).forEach(d),l.forEach(d)},getBuffer:function(e){return e&&e._buffer instanceof s?e._buffer:null},restore:g,_initBuffer:f}}Ut[5120]=1,Ut[5122]=2,Ut[5124]=4,Ut[5121]=1,Ut[5123]=2,Ut[5125]=4,Ut[5126]=4;var Wt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yt=0,Zt=1,Xt=4,Kt=5120,Jt=5121,Qt=5122,$t=5123,er=5124,tr=5125,rr=34963,nr=35040,ir=35044;function ar(t,r,n,i){var a={},o=0,s={uint8:Jt,uint16:$t};function l(e){this.id=o++,a[this.id]=this,this.buffer=e,this.primType=Xt,this.vertCount=0,this.type=0}r.oes_element_index_uint&&(s.uint32=tr),l.prototype.bind=function(){this.buffer.bind()};var c=[];function u(e){var t=c.pop();return t||(t=new l(n.create(null,rr,!0,!1)._buffer)),f(t,e,nr,-1,-1,0,0),t}function h(e){c.push(e)}function f(i,a,o,s,l,c,u){var h;if(i.buffer.bind(),a){var f=u;u||e(a)&&(!Tt(a)||e(a.data))||(f=r.oes_element_index_uint?tr:$t),n._initBuffer(i.buffer,a,o,f,3)}else t.bufferData(rr,c,o),i.buffer.dtype=h||Jt,i.buffer.usage=o,i.buffer.dimension=3,i.buffer.byteLength=c;if(h=u,!u){switch(i.buffer.dtype){case Jt:case Kt:h=Jt;break;case $t:case Qt:h=$t;break;case tr:case er:h=tr;break;default:re.raise("unsupported type for element array")}i.buffer.dtype=h}i.type=h,re(h!==tr||!!r.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var d=l;d<0&&(d=i.buffer.byteLength,h===$t?d>>=1:h===tr&&(d>>=2)),i.vertCount=d;var p=s;if(s<0){p=Xt;var g=i.buffer.dimension;1===g&&(p=Yt),2===g&&(p=Zt),3===g&&(p=Xt)}i.primType=p}function d(e){i.elementsCount--,re(null!==e.buffer,"must not double destroy elements"),delete a[e.id],e.buffer.destroy(),e.buffer=null}function p(t,r){var a=n.create(null,rr,!0),o=new l(a._buffer);function c(t){if(t)if("number"===typeof t)a(t),o.primType=Xt,o.vertCount=0|t,o.type=Jt;else{var r=null,n=ir,i=-1,l=-1,u=0,h=0;Array.isArray(t)||e(t)||Tt(t)?r=t:(re.type(t,"object","invalid arguments for elements"),"data"in t&&(r=t.data,re(Array.isArray(r)||e(r)||Tt(r),"invalid data for element buffer")),"usage"in t&&(re.parameter(t.usage,Ot,"invalid element buffer usage"),n=Ot[t.usage]),"primitive"in t&&(re.parameter(t.primitive,Wt,"invalid element buffer primitive"),i=Wt[t.primitive]),"count"in t&&(re("number"===typeof t.count&&t.count>=0,"invalid vertex count for elements"),l=0|t.count),"type"in t&&(re.parameter(t.type,s,"invalid buffer type"),h=s[t.type]),"length"in t?u=0|t.length:(u=l,h===$t||h===Qt?u*=2:h!==tr&&h!==er||(u*=4))),f(o,r,n,i,l,u,h)}else a(),o.primType=Xt,o.vertCount=0,o.type=Jt;return c}return i.elementsCount++,c(t),c._reglType="elements",c._elements=o,c.subdata=function(e,t){return a.subdata(e,t),c},c.destroy=function(){d(o)},c}return{create:p,createStream:u,destroyStream:h,getElements:function(e){return"function"===typeof e&&e._elements instanceof l?e._elements:null},clear:function(){kt(a).forEach(d)}}}var or=new Float32Array(1),sr=new Uint32Array(or.buffer),lr=5123;function cr(e){for(var t=Fe.allocType(lr,e.length),r=0;r>>31<<15,a=(n<<1>>>24)-127,o=n>>13&1023;if(a<-24)t[r]=i;else if(a<-14){var s=-14-a;t[r]=i+(o+1024>>s)}else t[r]=a>15?i+31744:i+(a+15<<10)+o}return t}function ur(t){return Array.isArray(t)||e(t)}var hr=function(e){return!(e&e-1)&&!!e},fr=34467,dr=3553,pr=34067,gr=34069,mr=6408,vr=6406,yr=6407,xr=6409,br=6410,_r=32854,wr=32855,Tr=36194,kr=32819,Ar=32820,Mr=33635,Sr=34042,Er=6402,Lr=34041,Cr=35904,Ir=35906,Dr=36193,Pr=33776,Or=33777,zr=33778,Rr=33779,Fr=35986,jr=35987,Nr=34798,Br=35840,Ur=35841,Vr=35842,qr=35843,Hr=36196,Gr=5121,Wr=5123,Yr=5125,Zr=5126,Xr=10242,Kr=10243,Jr=10497,Qr=33071,$r=33648,en=10240,tn=10241,rn=9728,nn=9729,an=9984,on=9985,sn=9986,ln=9987,cn=33170,un=4352,hn=4353,fn=4354,dn=34046,pn=3317,gn=37440,mn=37441,vn=37443,yn=37444,xn=33984,bn=[an,sn,on,ln],_n=[0,xr,br,yr,mr],wn={};function Tn(e){return"[object "+e+"]"}wn[xr]=wn[vr]=wn[Er]=1,wn[Lr]=wn[br]=2,wn[yr]=wn[Cr]=3,wn[mr]=wn[Ir]=4;var kn=Tn("HTMLCanvasElement"),An=Tn("OffscreenCanvas"),Mn=Tn("CanvasRenderingContext2D"),Sn=Tn("ImageBitmap"),En=Tn("HTMLImageElement"),Ln=Tn("HTMLVideoElement"),Cn=Object.keys(Dt).concat([kn,An,Mn,Sn,En,Ln]),In=[];In[Gr]=1,In[Zr]=4,In[Dr]=2,In[Wr]=2,In[Yr]=4;var Dn=[];function Pn(e){return Array.isArray(e)&&(0===e.length||"number"===typeof e[0])}function On(e){return!!Array.isArray(e)&&!(0===e.length||!ur(e[0]))}function zn(e){return Object.prototype.toString.call(e)}function Rn(e){return zn(e)===kn}function Fn(e){return zn(e)===An}function jn(e){return zn(e)===Mn}function Nn(e){return zn(e)===Sn}function Bn(e){return zn(e)===En}function Un(e){return zn(e)===Ln}function Vn(e){if(!e)return!1;var t=zn(e);return Cn.indexOf(t)>=0||Pn(e)||On(e)||Tt(e)}function qn(e){return 0|Dt[Object.prototype.toString.call(e)]}function Hn(e,t){var r=t.length;switch(e.type){case Gr:case Wr:case Yr:case Zr:var n=Fe.allocType(e.type,r);n.set(t),e.data=n;break;case Dr:e.data=cr(t);break;default:re.raise("unsupported texture type, must specify a typed array")}}function Gn(e,t){return Fe.allocType(e.type===Dr?Zr:e.type,t)}function Wn(e,t){e.type===Dr?(e.data=cr(t),Fe.freeType(t)):e.data=t}function Yn(e,t,r,n,i,a){for(var o=e.width,s=e.height,l=e.channels,c=Gn(e,o*s*l),u=0,h=0;h=1;)s+=o*l*l,l/=2;return s}return o*r*n}function Xn(r,n,i,a,o,s,l){var c={"don't care":un,"dont care":un,nice:fn,fast:hn},u={repeat:Jr,clamp:Qr,mirror:$r},h={nearest:rn,linear:nn},f=t({mipmap:ln,"nearest mipmap nearest":an,"linear mipmap nearest":on,"nearest mipmap linear":sn,"linear mipmap linear":ln},h),d={none:0,browser:yn},p={uint8:Gr,rgba4:kr,rgb565:Mr,"rgb5 a1":Ar},g={alpha:vr,luminance:xr,"luminance alpha":br,rgb:yr,rgba:mr,rgba4:_r,"rgb5 a1":wr,rgb565:Tr},m={};n.ext_srgb&&(g.srgb=Cr,g.srgba=Ir),n.oes_texture_float&&(p.float32=p.float=Zr),n.oes_texture_half_float&&(p.float16=p["half float"]=Dr),n.webgl_depth_texture&&(t(g,{depth:Er,"depth stencil":Lr}),t(p,{uint16:Wr,uint32:Yr,"depth stencil":Sr})),n.webgl_compressed_texture_s3tc&&t(m,{"rgb s3tc dxt1":Pr,"rgba s3tc dxt1":Or,"rgba s3tc dxt3":zr,"rgba s3tc dxt5":Rr}),n.webgl_compressed_texture_atc&&t(m,{"rgb atc":Fr,"rgba atc explicit alpha":jr,"rgba atc interpolated alpha":Nr}),n.webgl_compressed_texture_pvrtc&&t(m,{"rgb pvrtc 4bppv1":Br,"rgb pvrtc 2bppv1":Ur,"rgba pvrtc 4bppv1":Vr,"rgba pvrtc 2bppv1":qr}),n.webgl_compressed_texture_etc1&&(m["rgb etc1"]=Hr);var v=Array.prototype.slice.call(r.getParameter(fr));Object.keys(m).forEach((function(e){var t=m[e];v.indexOf(t)>=0&&(g[e]=t)}));var y=Object.keys(g);i.textureFormats=y;var x=[];Object.keys(g).forEach((function(e){var t=g[e];x[t]=e}));var b=[];Object.keys(p).forEach((function(e){var t=p[e];b[t]=e}));var _=[];Object.keys(h).forEach((function(e){var t=h[e];_[t]=e}));var w=[];Object.keys(f).forEach((function(e){var t=f[e];w[t]=e}));var T=[];Object.keys(u).forEach((function(e){var t=u[e];T[t]=e}));var k=y.reduce((function(e,t){var r=g[t];return r===xr||r===vr||r===xr||r===br||r===Er||r===Lr||n.ext_srgb&&(r===Cr||r===Ir)?e[r]=r:r===wr||t.indexOf("rgba")>=0?e[r]=mr:e[r]=yr,e}),{});function A(){this.internalformat=mr,this.format=mr,this.type=Gr,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=yn,this.width=0,this.height=0,this.channels=0}function M(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function S(e,t){if("object"===typeof t&&t){if("premultiplyAlpha"in t&&(re.type(t.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),e.premultiplyAlpha=t.premultiplyAlpha),"flipY"in t&&(re.type(t.flipY,"boolean","invalid texture flip"),e.flipY=t.flipY),"alignment"in t&&(re.oneOf(t.alignment,[1,2,4,8],"invalid texture unpack alignment"),e.unpackAlignment=t.alignment),"colorSpace"in t&&(re.parameter(t.colorSpace,d,"invalid colorSpace"),e.colorSpace=d[t.colorSpace]),"type"in t){var r=t.type;re(n.oes_texture_float||!("float"===r||"float32"===r),"you must enable the OES_texture_float extension in order to use floating point textures."),re(n.oes_texture_half_float||!("half float"===r||"float16"===r),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),re(n.webgl_depth_texture||!("uint16"===r||"uint32"===r||"depth stencil"===r),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),re.parameter(r,p,"invalid texture type"),e.type=p[r]}var a=e.width,o=e.height,s=e.channels,l=!1;"shape"in t?(re(Array.isArray(t.shape)&&t.shape.length>=2,"shape must be an array"),a=t.shape[0],o=t.shape[1],3===t.shape.length&&(s=t.shape[2],re(s>0&&s<=4,"invalid number of channels"),l=!0),re(a>=0&&a<=i.maxTextureSize,"invalid width"),re(o>=0&&o<=i.maxTextureSize,"invalid height")):("radius"in t&&(a=o=t.radius,re(a>=0&&a<=i.maxTextureSize,"invalid radius")),"width"in t&&(a=t.width,re(a>=0&&a<=i.maxTextureSize,"invalid width")),"height"in t&&(o=t.height,re(o>=0&&o<=i.maxTextureSize,"invalid height")),"channels"in t&&(s=t.channels,re(s>0&&s<=4,"invalid number of channels"),l=!0)),e.width=0|a,e.height=0|o,e.channels=0|s;var c=!1;if("format"in t){var u=t.format;re(n.webgl_depth_texture||!("depth"===u||"depth stencil"===u),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),re.parameter(u,g,"invalid texture format");var h=e.internalformat=g[u];e.format=k[h],u in p&&("type"in t||(e.type=p[u])),u in m&&(e.compressed=!0),c=!0}!l&&c?e.channels=wn[e.format]:l&&!c?e.channels!==_n[e.format]&&(e.format=e.internalformat=_n[e.channels]):c&&l&&re(e.channels===wn[e.format],"number of channels inconsistent with specified format")}}function E(e){r.pixelStorei(gn,e.flipY),r.pixelStorei(mn,e.premultiplyAlpha),r.pixelStorei(vn,e.colorSpace),r.pixelStorei(pn,e.unpackAlignment)}function L(){A.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function C(t,r){var n=null;if(Vn(r)?n=r:r&&(re.type(r,"object","invalid pixel data type"),S(t,r),"x"in r&&(t.xOffset=0|r.x),"y"in r&&(t.yOffset=0|r.y),Vn(r.data)&&(n=r.data)),re(!t.compressed||n instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),r.copy){re(!n,"can not specify copy and data field for the same texture");var a=o.viewportWidth,s=o.viewportHeight;t.width=t.width||a-t.xOffset,t.height=t.height||s-t.yOffset,t.needsCopy=!0,re(t.xOffset>=0&&t.xOffset=0&&t.yOffset0&&t.width<=a&&t.height>0&&t.height<=s,"copy texture read out of bounds")}else if(n){if(e(n))t.channels=t.channels||4,t.data=n,"type"in r||t.type!==Gr||(t.type=qn(n));else if(Pn(n))t.channels=t.channels||4,Hn(t,n),t.alignment=1,t.needsFree=!0;else if(Tt(n)){var l=n.data;Array.isArray(l)||t.type!==Gr||(t.type=qn(l));var c,u,h,f,d,p,g=n.shape,m=n.stride;3===g.length?(h=g[2],p=m[2]):(re(2===g.length,"invalid ndarray pixel data, must be 2 or 3D"),h=1,p=1),c=g[0],u=g[1],f=m[0],d=m[1],t.alignment=1,t.width=c,t.height=u,t.channels=h,t.format=t.internalformat=_n[h],t.needsFree=!0,Yn(t,l,f,d,p,n.offset)}else if(Rn(n)||Fn(n)||jn(n))Rn(n)||Fn(n)?t.element=n:t.element=n.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(Nn(n))t.element=n,t.width=n.width,t.height=n.height,t.channels=4;else if(Bn(n))t.element=n,t.width=n.naturalWidth,t.height=n.naturalHeight,t.channels=4;else if(Un(n))t.element=n,t.width=n.videoWidth,t.height=n.videoHeight,t.channels=4;else if(On(n)){var v=t.width||n[0].length,y=t.height||n.length,x=t.channels;x=ur(n[0][0])?x||n[0][0].length:x||1;for(var b=At.shape(n),_=1,w=0;w=0,"oes_texture_float extension not enabled"):t.type===Dr&&re(i.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function I(e,t,n){var i=e.element,o=e.data,s=e.internalformat,l=e.format,c=e.type,u=e.width,h=e.height;E(e),i?r.texImage2D(t,n,l,l,c,i):e.compressed?r.compressedTexImage2D(t,n,s,u,h,0,o):e.needsCopy?(a(),r.copyTexImage2D(t,n,l,e.xOffset,e.yOffset,u,h,0)):r.texImage2D(t,n,l,u,h,0,l,c,o||null)}function D(e,t,n,i,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,f=e.width,d=e.height;E(e),s?r.texSubImage2D(t,o,n,i,u,h,s):e.compressed?r.compressedTexSubImage2D(t,o,n,i,c,f,d,l):e.needsCopy?(a(),r.copyTexSubImage2D(t,o,n,i,e.xOffset,e.yOffset,f,d)):r.texSubImage2D(t,o,n,i,f,d,u,h,l)}var P=[];function O(){return P.pop()||new L}function z(e){e.needsFree&&Fe.freeType(e.data),L.call(e),P.push(e)}function R(){A.call(this),this.genMipmaps=!1,this.mipmapHint=un,this.mipmask=0,this.images=Array(16)}function F(e,t,r){var n=e.images[0]=O();e.mipmask=1,n.width=e.width=t,n.height=e.height=r,n.channels=e.channels=4}function j(e,t){var r=null;if(Vn(t))M(r=e.images[0]=O(),e),C(r,t),e.mipmask=1;else if(S(e,t),Array.isArray(t.mipmap))for(var n=t.mipmap,i=0;i>=i,r.height>>=i,C(r,n[i]),e.mipmask|=1<=0&&!("faces"in t)&&(e.genMipmaps=!0)}if("mag"in t){var n=t.mag;re.parameter(n,h),e.magFilter=h[n]}var a=e.wrapS,o=e.wrapT;if("wrap"in t){var s=t.wrap;"string"===typeof s?(re.parameter(s,u),a=o=u[s]):Array.isArray(s)&&(re.parameter(s[0],u),re.parameter(s[1],u),a=u[s[0]],o=u[s[1]])}else{if("wrapS"in t){var l=t.wrapS;re.parameter(l,u),a=u[l]}if("wrapT"in t){var d=t.wrapT;re.parameter(d,u),o=u[d]}}if(e.wrapS=a,e.wrapT=o,"anisotropic"in t){var p=t.anisotropic;re("number"===typeof p&&p>=1&&p<=i.maxAnisotropic,"aniso samples must be between 1 and "),e.anisotropic=t.anisotropic}if("mipmap"in t){var g=!1;switch(typeof t.mipmap){case"string":re.parameter(t.mipmap,c,"invalid mipmap hint"),e.mipmapHint=c[t.mipmap],e.genMipmaps=!0,g=!0;break;case"boolean":g=e.genMipmaps=t.mipmap;break;case"object":re(Array.isArray(t.mipmap),"invalid mipmap type"),e.genMipmaps=!1,g=!0;break;default:re.raise("invalid mipmap type")}g&&!("min"in t)&&(e.minFilter=an)}}function G(e,t){r.texParameteri(t,tn,e.minFilter),r.texParameteri(t,en,e.magFilter),r.texParameteri(t,Xr,e.wrapS),r.texParameteri(t,Kr,e.wrapT),n.ext_texture_filter_anisotropic&&r.texParameteri(t,dn,e.anisotropic),e.genMipmaps&&(r.hint(cn,e.mipmapHint),r.generateMipmap(t))}var W=0,Y={},Z=i.maxTextureUnits,X=Array(Z).map((function(){return null}));function K(e){A.call(this),this.mipmask=0,this.internalformat=mr,this.id=W++,this.refCount=1,this.target=e,this.texture=r.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new q,l.profile&&(this.stats={size:0})}function J(e){r.activeTexture(xn),r.bindTexture(e.target,e.texture)}function Q(){var e=X[0];e?r.bindTexture(e.target,e.texture):r.bindTexture(dr,null)}function $(e){var t=e.texture;re(t,"must not double destroy texture");var n=e.unit,i=e.target;n>=0&&(r.activeTexture(xn+n),r.bindTexture(i,null),X[n]=null),r.deleteTexture(t),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete Y[e.id],s.textureCount--}function ee(e,t){var n=new K(dr);function a(e,t){var r=n.texInfo;q.call(r);var o=U();return"number"===typeof e?F(o,0|e,"number"===typeof t?0|t:0|e):e?(re.type(e,"object","invalid arguments to regl.texture"),H(r,e),j(o,e)):F(o,1,1),r.genMipmaps&&(o.mipmask=(o.width<<1)-1),n.mipmask=o.mipmask,M(n,o),re.texture2D(r,o,i),n.internalformat=o.internalformat,a.width=o.width,a.height=o.height,J(n),N(o,dr),G(r,dr),Q(),V(o),l.profile&&(n.stats.size=Zn(n.internalformat,n.type,o.width,o.height,r.genMipmaps,!1)),a.format=x[n.internalformat],a.type=b[n.type],a.mag=_[r.magFilter],a.min=w[r.minFilter],a.wrapS=T[r.wrapS],a.wrapT=T[r.wrapT],a}function o(e,t,r,i){re(!!e,"must specify image data");var o=0|t,s=0|r,l=0|i,c=O();return M(c,n),c.width=0,c.height=0,C(c,e),c.width=c.width||(n.width>>l)-o,c.height=c.height||(n.height>>l)-s,re(n.type===c.type&&n.format===c.format&&n.internalformat===c.internalformat,"incompatible format for texture.subimage"),re(o>=0&&s>=0&&o+c.width<=n.width&&s+c.height<=n.height,"texture.subimage write out of bounds"),re(n.mipmask&1<>s;++s){var c=i>>s,u=o>>s;if(!c||!u)break;r.texImage2D(dr,s,n.format,c,u,0,n.format,n.type,null)}return Q(),l.profile&&(n.stats.size=Zn(n.internalformat,n.type,i,o,!1,!1)),a}return Y[n.id]=n,s.textureCount++,a(e,t),a.subimage=o,a.resize=c,a._reglType="texture2d",a._texture=n,l.profile&&(a.stats=n.stats),a.destroy=function(){n.decRef()},a}function te(e,t,n,a,o,c){var u=new K(pr);Y[u.id]=u,s.cubeCount++;var h=new Array(6);function f(e,t,r,n,a,o){var s,c=u.texInfo;for(q.call(c),s=0;s<6;++s)h[s]=U();if("number"!==typeof e&&e)if("object"===typeof e)if(t)j(h[0],e),j(h[1],t),j(h[2],r),j(h[3],n),j(h[4],a),j(h[5],o);else if(H(c,e),S(u,e),"faces"in e){var d=e.faces;for(re(Array.isArray(d)&&6===d.length,"cube faces must be a length 6 array"),s=0;s<6;++s)re("object"===typeof d[s]&&!!d[s],"invalid input for cube map face"),M(h[s],u),j(h[s],d[s])}else for(s=0;s<6;++s)j(h[s],e);else re.raise("invalid arguments to cube map");else{var p=0|e||1;for(s=0;s<6;++s)F(h[s],p,p)}for(M(u,h[0]),re.optional((function(){i.npotTextureCube||re(hr(u.width)&&hr(u.height),"your browser does not support non power or two texture dimensions")})),c.genMipmaps?u.mipmask=(h[0].width<<1)-1:u.mipmask=h[0].mipmask,re.textureCube(u,c,h,i),u.internalformat=h[0].internalformat,f.width=h[0].width,f.height=h[0].height,J(u),s=0;s<6;++s)N(h[s],gr+s);for(G(c,pr),Q(),l.profile&&(u.stats.size=Zn(u.internalformat,u.type,f.width,f.height,c.genMipmaps,!0)),f.format=x[u.internalformat],f.type=b[u.type],f.mag=_[c.magFilter],f.min=w[c.minFilter],f.wrapS=T[c.wrapS],f.wrapT=T[c.wrapT],s=0;s<6;++s)V(h[s]);return f}function d(e,t,r,n,i){re(!!t,"must specify image data"),re("number"===typeof e&&e===(0|e)&&e>=0&&e<6,"invalid face");var a=0|r,o=0|n,s=0|i,l=O();return M(l,u),l.width=0,l.height=0,C(l,t),l.width=l.width||(u.width>>s)-a,l.height=l.height||(u.height>>s)-o,re(u.type===l.type&&u.format===l.format&&u.internalformat===l.internalformat,"incompatible format for texture.subimage"),re(a>=0&&o>=0&&a+l.width<=u.width&&o+l.height<=u.height,"texture.subimage write out of bounds"),re(u.mipmask&1<>i;++i)r.texImage2D(gr+n,i,u.format,t>>i,t>>i,0,u.format,u.type,null);return Q(),l.profile&&(u.stats.size=Zn(u.internalformat,u.type,f.width,f.height,!1,!0)),f}}return f(e,t,n,a,o,c),f.subimage=d,f.resize=p,f._reglType="textureCube",f._texture=u,l.profile&&(f.stats=u.stats),f.destroy=function(){u.decRef()},f}function ne(){for(var e=0;e>t,e.height>>t,0,e.internalformat,e.type,null);else for(var n=0;n<6;++n)r.texImage2D(gr+n,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);G(e.texInfo,e.target)}))}function ae(){for(var e=0;e0)continue;i.unit=-1}X[n]=e,t=n;break}t>=Z&&re.raise("insufficient number of texture units"),l.profile&&s.maxTextureUnits=2,"invalid renderbuffer shape"),s=0|d[0],l=0|d[1]}else"radius"in f&&(s=l=0|f.radius),"width"in f&&(s=0|f.width),"height"in f&&(l=0|f.height);"format"in f&&(re.parameter(f.format,a,"invalid renderbuffer format"),c=a[f.format])}else"number"===typeof t?(s=0|t,l="number"===typeof n?0|n:s):t?re.raise("invalid arguments to renderbuffer constructor"):s=l=1;if(re(s>0&&l>0&&s<=r.maxRenderbufferSize&&l<=r.maxRenderbufferSize,"invalid renderbuffer size"),s!==u.width||l!==u.height||c!==u.format)return h.width=u.width=s,h.height=u.height=l,u.format=c,e.bindRenderbuffer(Kn,u.renderbuffer),e.renderbufferStorage(Kn,c,s,l),re(0===e.getError(),"invalid render buffer format"),i.profile&&(u.stats.size=li(u.format,u.width,u.height)),h.format=o[u.format],h}function f(t,n){var a=0|t,o=0|n||a;return a===u.width&&o===u.height||(re(a>0&&o>0&&a<=r.maxRenderbufferSize&&o<=r.maxRenderbufferSize,"invalid renderbuffer size"),h.width=u.width=a,h.height=u.height=o,e.bindRenderbuffer(Kn,u.renderbuffer),e.renderbufferStorage(Kn,u.format,a,o),re(0===e.getError(),"invalid render buffer format"),i.profile&&(u.stats.size=li(u.format,u.width,u.height))),h}return l[u.id]=u,n.renderbufferCount++,h(t,s),h.resize=f,h._reglType="renderbuffer",h._renderbuffer=u,i.profile&&(h.stats=u.stats),h.destroy=function(){u.decRef()},h}function f(){kt(l).forEach((function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(Kn,t.renderbuffer),e.renderbufferStorage(Kn,t.format,t.width,t.height)})),e.bindRenderbuffer(Kn,null)}return c.prototype.decRef=function(){--this.refCount<=0&&u(this)},i.profile&&(n.getTotalRenderbufferSize=function(){var e=0;return Object.keys(l).forEach((function(t){e+=l[t].stats.size})),e}),{create:h,clear:function(){kt(l).forEach(u)},restore:f}},ui=36160,hi=36161,fi=3553,di=34069,pi=36064,gi=36096,mi=36128,vi=33306,yi=36053,xi=36054,bi=36055,_i=36057,wi=36061,Ti=36193,ki=5121,Ai=5126,Mi=6407,Si=6408,Ei=6402,Li=[Mi,Si],Ci=[];Ci[Si]=4,Ci[Mi]=3;var Ii=[];Ii[ki]=1,Ii[Ai]=4,Ii[Ti]=2;var Di=33189,Pi=36168,Oi=34041,zi=[32854,32855,36194,35907,34842,34843,34836],Ri={};function Fi(e,r,n,i,a,o){var s={cur:null,next:null,dirty:!1,setFBO:null},l=["rgba"],c=["rgba4","rgb565","rgb5 a1"];r.ext_srgb&&c.push("srgba"),r.ext_color_buffer_half_float&&c.push("rgba16f","rgb16f"),r.webgl_color_buffer_float&&c.push("rgba32f");var u=["uint8"];function h(e,t,r){this.target=e,this.texture=t,this.renderbuffer=r;var n=0,i=0;t?(n=t.width,i=t.height):r&&(n=r.width,i=r.height),this.width=n,this.height=i}function f(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function d(e,t,r){if(e)if(e.texture){var n=e.texture._texture,i=Math.max(1,n.width),a=Math.max(1,n.height);re(i===t&&a===r,"inconsistent width/height for supplied texture"),n.refCount+=1}else{var o=e.renderbuffer._renderbuffer;re(o.width===t&&o.height===r,"inconsistent width/height for renderbuffer"),o.refCount+=1}}function p(t,r){r&&(r.texture?e.framebufferTexture2D(ui,t,r.target,r.texture._texture.texture,0):e.framebufferRenderbuffer(ui,t,hi,r.renderbuffer._renderbuffer.renderbuffer))}function g(e){var t=fi,r=null,n=null,i=e;"object"===typeof e&&(i=e.data,"target"in e&&(t=0|e.target)),re.type(i,"function","invalid attachment data");var a=i._reglType;return"texture2d"===a?(r=i,re(t===fi)):"textureCube"===a?(r=i,re(t>=di&&t=2,"invalid shape for framebuffer"),o=I[0],f=I[1]}else"radius"in C&&(o=f=C.radius),"width"in C&&(o=C.width),"height"in C&&(f=C.height);("color"in C||"colors"in C)&&(x=C.color||C.colors,Array.isArray(x)&&re(1===x.length||r.webgl_draw_buffers,"multiple render targets not supported")),x||("colorCount"in C&&(A=0|C.colorCount,re(A>0,"invalid color buffer count")),"colorTexture"in C&&(b=!!C.colorTexture,_="rgba4"),"colorType"in C&&(T=C.colorType,b?(re(r.oes_texture_float||!("float"===T||"float32"===T),"you must enable OES_texture_float in order to use floating point framebuffer objects"),re(r.oes_texture_half_float||!("half float"===T||"float16"===T),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===T||"float16"===T?(re(r.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),_="rgba16f"):"float"!==T&&"float32"!==T||(re(r.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),_="rgba32f"),re.oneOf(T,u,"invalid color type")),"colorFormat"in C&&(_=C.colorFormat,l.indexOf(_)>=0?b=!0:c.indexOf(_)>=0?b=!1:re.optional((function(){b?re.oneOf(C.colorFormat,l,"invalid color format for texture"):re.oneOf(C.colorFormat,c,"invalid color format for renderbuffer")})))),("depthTexture"in C||"depthStencilTexture"in C)&&(L=!(!C.depthTexture&&!C.depthStencilTexture),re(!L||r.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in C&&("boolean"===typeof C.depth?p=C.depth:(M=C.depth,y=!1)),"stencil"in C&&("boolean"===typeof C.stencil?y=C.stencil:(S=C.stencil,p=!1)),"depthStencil"in C&&("boolean"===typeof C.depthStencil?p=y=C.depthStencil:(E=C.depthStencil,p=!1,y=!1))}else o=f=1;var D=null,P=null,O=null,z=null;if(Array.isArray(x))D=x.map(g);else if(x)D=[g(x)];else for(D=new Array(A),i=0;i=0||D[i].renderbuffer&&zi.indexOf(D[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),D[i]&&D[i].texture){var F=Ci[D[i].texture._texture.format]*Ii[D[i].texture._texture.type];null===R?R=F:re(R===F,"all color attachments much have the same number of bits per pixel.")}return d(P,o,f),re(!P||P.texture&&P.texture._texture.format===Ei||P.renderbuffer&&P.renderbuffer._renderbuffer.format===Di,"invalid depth attachment for framebuffer object"),d(O,o,f),re(!O||O.renderbuffer&&O.renderbuffer._renderbuffer.format===Pi,"invalid stencil attachment for framebuffer object"),d(z,o,f),re(!z||z.texture&&z.texture._texture.format===Oi||z.renderbuffer&&z.renderbuffer._renderbuffer.format===Oi,"invalid depth-stencil attachment for framebuffer object"),w(a),a.width=o,a.height=f,a.colorAttachments=D,a.depthAttachment=P,a.stencilAttachment=O,a.depthStencilAttachment=z,h.color=D.map(v),h.depth=v(P),h.stencil=v(O),h.depthStencil=v(z),h.width=a.width,h.height=a.height,k(a),h}function f(e,t){re(s.next!==a,"can not resize a framebuffer which is currently in use");var r=Math.max(0|e,1),n=Math.max(0|t||r,1);if(r===a.width&&n===a.height)return h;for(var i=a.colorAttachments,o=0;o=2,"invalid shape for framebuffer"),re(y[0]===y[1],"cube framebuffer must be square"),f=y[0]}else"radius"in v&&(f=0|v.radius),"width"in v?(f=0|v.width,"height"in v&&re(v.height===f,"must be square")):"height"in v&&(f=0|v.height);("color"in v||"colors"in v)&&(d=v.color||v.colors,Array.isArray(d)&&re(1===d.length||r.webgl_draw_buffers,"multiple render targets not supported")),d||("colorCount"in v&&(m=0|v.colorCount,re(m>0,"invalid color buffer count")),"colorType"in v&&(re.oneOf(v.colorType,u,"invalid color type"),g=v.colorType),"colorFormat"in v&&(p=v.colorFormat,re.oneOf(v.colorFormat,l,"invalid color format for texture"))),"depth"in v&&(h.depth=v.depth),"stencil"in v&&(h.stencil=v.stencil),"depthStencil"in v&&(h.depthStencil=v.depthStencil)}else f=1;if(d)if(Array.isArray(d))for(c=[],n=0;n0&&(h.depth=a[0].depth,h.stencil=a[0].stencil,h.depthStencil=a[0].depthStencil),a[n]?a[n](h):a[n]=A(h)}return t(o,{width:f,height:f,color:c})}function c(e){var t,r=0|e;if(re(r>0&&r<=n.maxCubeMapSize,"invalid radius for cube fbo"),r===o.width)return o;var i=o.color;for(t=0;t{for(var e=Object.keys(t),r=0;r=0,'invalid option for vao: "'+e[r]+'" valid options are '+Ui)})),re(Array.isArray(i),"attributes must be an array")}re(i.length0,"must specify at least one attribute");var u={},h=n.attributes;h.length=i.length;for(var f=0;f=m.byteLength?d.subdata(m):(d.destroy(),n.buffers[f]=null)),n.buffers[f]||(d=n.buffers[f]=a.create(p,Ni,!1,!0)),g.buffer=a.getBuffer(d),g.size=0|g.buffer.dimension,g.normalized=!1,g.type=g.buffer.dtype,g.offset=0,g.stride=0,g.divisor=0,g.state=1,u[f]=1):a.getBuffer(p)?(g.buffer=a.getBuffer(p),g.size=0|g.buffer.dimension,g.normalized=!1,g.type=g.buffer.dtype,g.offset=0,g.stride=0,g.divisor=0,g.state=1):a.getBuffer(p.buffer)?(g.buffer=a.getBuffer(p.buffer),g.size=0|(+p.size||g.buffer.dimension),g.normalized=!!p.normalized||!1,"type"in p?(re.parameter(p.type,Pt,"invalid buffer type"),g.type=Pt[p.type]):g.type=g.buffer.dtype,g.offset=0|(p.offset||0),g.stride=0|(p.stride||0),g.divisor=0|(p.divisor||0),g.state=1,re(g.size>=1&&g.size<=4,"size must be between 1 and 4"),re(g.offset>=0,"invalid offset"),re(g.stride>=0&&g.stride<=255,"stride must be between 0 and 255"),re(g.divisor>=0,"divisor must be positive"),re(!g.divisor||!!r.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in p?(re(f>0,"first attribute must not be a constant"),g.x=+p.x||0,g.y=+p.y||0,g.z=+p.z||0,g.w=+p.w||0,g.state=2):re(!1,"invalid attribute spec for location "+f)}for(var v=0;v1)for(var v=0;v1&&(x=x.replace("[0]","")),l(m,new s(x,r.id(x),e.getUniformLocation(d,x),u))}var b=e.getProgramParameter(d,Yi);i.profile&&(t.stats.attributesCount=b);var _=t.attributes;for(o=0;oe&&(e=t.stats.uniformsCount)})),e},n.getMaxAttributesCount=function(){var e=0;return h.forEach((function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)})),e}),{clear:function(){var t=e.deleteShader.bind(e);kt(a).forEach(t),a={},kt(o).forEach(t),o={},h.forEach((function(t){e.deleteProgram(t.program)})),h.length=0,u={},n.shaderCount=0},program:function(r,i,s,l){re.command(r>=0,"missing vertex shader",s),re.command(i>=0,"missing fragment shader",s);var c=u[i];c||(c=u[i]={});var f=c[r];if(f&&(f.refCount++,!l))return f;var g=new d(i,r);return n.shaderCount++,p(g,s,l),f||(c[r]=g),h.push(g),t(g,{destroy:function(){if(g.refCount--,g.refCount<=0){e.deleteProgram(g.program);var t=h.indexOf(g);h.splice(t,1),n.shaderCount--}c[g.vertId].refCount<=0&&(e.deleteShader(o[g.vertId]),delete o[g.vertId],delete u[g.fragId][g.vertId]),Object.keys(u[g.fragId]).length||(e.deleteShader(a[g.fragId]),delete a[g.fragId],delete u[g.fragId])}})},restore:g,shader:c,frag:-1,vert:-1}}var Xi=6408,Ki=5121,Ji=3333,Qi=5126;function $i(t,r,n,i,a,o,s){function l(l){var c;null===r.next?(re(a.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),c=Ki):(re(null!==r.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),c=r.next.colorAttachments[0].texture._texture.type,re.optional((function(){o.oes_texture_float?(re(c===Ki||c===Qi,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),c===Qi&&re(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):re(c===Ki,"Reading from a framebuffer is only allowed for the type 'uint8'")})));var u=0,h=0,f=i.framebufferWidth,d=i.framebufferHeight,p=null;e(l)?p=l:l&&(re.type(l,"object","invalid arguments to regl.read()"),u=0|l.x,h=0|l.y,re(u>=0&&u=0&&h0&&f+u<=i.framebufferWidth,"invalid width for read pixels"),re(d>0&&d+h<=i.framebufferHeight,"invalid height for read pixels"),n();var g=f*d*4;return p||(c===Ki?p=new Uint8Array(g):c===Qi&&(p=p||new Float32Array(g))),re.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),re(p.byteLength>=g,"data buffer for regl.read() too small"),t.pixelStorei(Ji,4),t.readPixels(u,h,f,d,Xi,c,p),p}function c(e){var t;return r.setFBO({framebuffer:e.framebuffer},(function(){t=l(e)})),t}function u(e){return e&&"framebuffer"in e?c(e):l(e)}return u}function ea(e){return Array.prototype.slice.call(e)}function ta(e){return ea(e).join("")}function ra(){var e=0,r=[],n=[];function i(t){for(var i=0;i0&&(r.push(t,"="),r.push.apply(r,ea(arguments)),r.push(";")),t}return t(n,{def:a,toString:function(){return ta([i.length>0?"var "+i.join(",")+";":"",ta(r)])}})}function o(){var e=a(),r=a(),n=e.toString,i=r.toString;function o(t,n){r(t,n,"=",e.def(t,n),";")}return t((function(){e.apply(e,ea(arguments))}),{def:e.def,entry:e,exit:r,save:o,set:function(t,r,n){o(t,r),e(t,r,"=",n,";")},toString:function(){return n()+i()}})}function s(){var e=ta(arguments),r=o(),n=o(),i=r.toString,a=n.toString;return t(r,{then:function(){return r.apply(r,ea(arguments)),this},else:function(){return n.apply(n,ea(arguments)),this},toString:function(){var t=a();return t&&(t="else{"+t+"}"),ta(["if(",e,"){",i(),"}",t])}})}var l=a(),c={};function u(e,r){var n=[];function i(){var e="a"+n.length;return n.push(e),e}r=r||0;for(var a=0;a":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},rs={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ns={frag:35632,vert:35633},is={cw:Uo,ccw:Vo};function as(t){return Array.isArray(t)||e(t)||Tt(t)}function os(e){return e.sort((function(e,t){return e===Ba?-1:t===Ba?1:e=1,n>=2,t)}if(r===ha){var i=e.data;return new ss(i.thisDep,i.contextDep,i.propDep,t)}if(r===fa)return new ss(!1,!1,!1,t);if(r===da){for(var a=!1,o=!1,s=!1,l=0;l=1&&(o=!0),u>=2&&(s=!0)}else c.type===ha&&(a=a||c.data.thisDep,o=o||c.data.contextDep,s=s||c.data.propDep)}return new ss(a,o,s,t)}return new ss(r===ua,r===ca,r===la,t)}var hs=new ss(!1,!1,!1,(function(){}));function fs(e,r,n,i,a,o,s,l,c,u,h,f,d,p,g){var m=u.Record,v={add:32774,subtract:32778,"reverse subtract":32779};n.ext_blend_minmax&&(v.min=qo,v.max=Ho);var y=n.angle_instanced_arrays,x=n.webgl_draw_buffers,b=n.oes_vertex_array_object,_={dirty:!0,profile:g.profile},w={},T=[],k={},A={};function M(e){return e.replace(".","_")}function S(e,t,r){var n=M(e);T.push(e),w[n]=_[n]=!!r,k[n]=t}function E(e,t,r){var n=M(e);T.push(e),Array.isArray(r)?(_[n]=r.slice(),w[n]=r.slice()):_[n]=w[n]=r,A[n]=t}S(pa,po),S(ga,fo),E(ma,"blendColor",[0,0,0,0]),E(va,"blendEquationSeparate",[Xo,Xo]),E(ya,"blendFuncSeparate",[Zo,Yo,Zo,Yo]),S(xa,mo,!0),E(ba,"depthFunc",Ko),E(_a,"depthRange",[0,1]),E(wa,"depthMask",!0),E(Ta,Ta,[!0,!0,!0,!0]),S(ka,ho),E(Aa,"cullFace",Bo),E(Ma,Ma,Vo),E(Sa,Sa,1),S(Ea,yo),E(La,"polygonOffset",[0,0]),S(Ca,xo),S(Ia,bo),E(Da,"sampleCoverage",[1,!1]),S(Pa,go),E(Oa,"stencilMask",-1),E(za,"stencilFunc",[Go,0,-1]),E(Ra,"stencilOpSeparate",[No,Wo,Wo,Wo]),E(Fa,"stencilOpSeparate",[Bo,Wo,Wo,Wo]),S(ja,vo),E(Na,"scissor",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]),E(Ba,Ba,[0,0,e.drawingBufferWidth,e.drawingBufferHeight]);var L={gl:e,context:d,strings:r,next:w,current:_,draw:f,elements:o,buffer:a,shader:h,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:n,timer:p,isBufferArgs:as},C={primTypes:Wt,compareFuncs:ts,blendFuncs:$o,blendEquations:v,stencilOps:rs,glTypes:Pt,orientationType:is};re.optional((function(){L.isArrayLike=ur})),x&&(C.backBuffer=[Bo],C.drawBuffer=Me(i.maxDrawbuffers,(function(e){return 0===e?[0]:Me(e,(function(e){return Qo+e}))})));var I=0;function D(){var e=ra(),t=e.link,n=e.global;e.id=I++,e.batchId="0";var i=t(L),a=e.shared={props:"a0"};Object.keys(L).forEach((function(e){a[e]=n.def(i,".",e)})),re.optional((function(){e.CHECK=t(re),e.commandStr=re.guessCommand(),e.command=t(e.commandStr),e.assert=function(e,r,n){e("if(!(",r,"))",this.CHECK,".commandRaise(",t(n),",",this.command,");")},C.invalidBlendCombinations=es}));var o=e.next={},s=e.current={};Object.keys(A).forEach((function(e){Array.isArray(_[e])&&(o[e]=n.def(a.next,".",e),s[e]=n.def(a.current,".",e))}));var l=e.constants={};Object.keys(C).forEach((function(e){l[e]=n.def(JSON.stringify(C[e]))})),e.invoke=function(r,n){switch(n.type){case sa:var i=["this",a.context,a.props,e.batchId];return r.def(t(n.data),".call(",i.slice(0,Math.max(n.data.length+1,4)),")");case la:return r.def(a.props,n.data);case ca:return r.def(a.context,n.data);case ua:return r.def("this",n.data);case ha:return n.data.append(e,r),n.data.ref;case fa:return n.data.toString();case da:return n.data.map((function(t){return e.invoke(r,t)}))}},e.attribCache={};var c={};return e.scopeAttrib=function(e){var n=r.id(e);if(n in c)return c[n];var i=u.scope[n];return i||(i=u.scope[n]=new m),c[n]=t(i)},e}function P(e){var t,r=e.static,n=e.dynamic;if(Ua in r){var i=!!r[Ua];(t=cs((function(e,t){return i}))).enable=i}else if(Ua in n){var a=n[Ua];t=us(a,(function(e,t){return e.invoke(t,a)}))}return t}function O(e,t){var r=e.static,n=e.dynamic;if(Va in r){var i=r[Va];return i?(i=l.getFramebuffer(i),re.command(i,"invalid framebuffer object"),cs((function(e,t){var r=e.link(i),n=e.shared;t.set(n.framebuffer,".next",r);var a=n.context;return t.set(a,"."+$a,r+".width"),t.set(a,"."+eo,r+".height"),r}))):cs((function(e,t){var r=e.shared;t.set(r.framebuffer,".next","null");var n=r.context;return t.set(n,"."+$a,n+"."+io),t.set(n,"."+eo,n+"."+ao),"null"}))}if(Va in n){var a=n[Va];return us(a,(function(e,t){var r=e.invoke(t,a),n=e.shared,i=n.framebuffer,o=t.def(i,".getFramebuffer(",r,")");re.optional((function(){e.assert(t,"!"+r+"||"+o,"invalid framebuffer object")})),t.set(i,".next",o);var s=n.context;return t.set(s,"."+$a,o+"?"+o+".width:"+s+"."+io),t.set(s,"."+eo,o+"?"+o+".height:"+s+"."+ao),o}))}return null}function z(e,t,r){var n=e.static,i=e.dynamic;function a(e){if(e in n){var a=n[e];re.commandType(a,"object","invalid "+e,r.commandStr);var o,s,l=!0,c=0|a.x,u=0|a.y;return"width"in a?(o=0|a.width,re.command(o>=0,"invalid "+e,r.commandStr)):l=!1,"height"in a?(s=0|a.height,re.command(s>=0,"invalid "+e,r.commandStr)):l=!1,new ss(!l&&t&&t.thisDep,!l&&t&&t.contextDep,!l&&t&&t.propDep,(function(e,t){var r=e.shared.context,n=o;"width"in a||(n=t.def(r,".",$a,"-",c));var i=s;return"height"in a||(i=t.def(r,".",eo,"-",u)),[c,u,n,i]}))}if(e in i){var h=i[e],f=us(h,(function(t,r){var n=t.invoke(r,h);re.optional((function(){t.assert(r,n+"&&typeof "+n+'==="object"',"invalid "+e)}));var i=t.shared.context,a=r.def(n,".x|0"),o=r.def(n,".y|0"),s=r.def('"width" in ',n,"?",n,".width|0:","(",i,".",$a,"-",a,")"),l=r.def('"height" in ',n,"?",n,".height|0:","(",i,".",eo,"-",o,")");return re.optional((function(){t.assert(r,s+">=0&&"+l+">=0","invalid "+e)})),[a,o,s,l]}));return t&&(f.thisDep=f.thisDep||t.thisDep,f.contextDep=f.contextDep||t.contextDep,f.propDep=f.propDep||t.propDep),f}return t?new ss(t.thisDep,t.contextDep,t.propDep,(function(e,t){var r=e.shared.context;return[0,0,t.def(r,".",$a),t.def(r,".",eo)]})):null}var o=a(Ba);if(o){var s=o;o=new ss(o.thisDep,o.contextDep,o.propDep,(function(e,t){var r=s.append(e,t),n=e.shared.context;return t.set(n,"."+to,r[2]),t.set(n,"."+ro,r[3]),r}))}return{viewport:o,scissor_box:a(Na)}}function R(e,t){var r=e.static;if("string"===typeof r[Ha]&&"string"===typeof r[qa]){if(Object.keys(t.dynamic).length>0)return null;var n=t.static,i=Object.keys(n);if(i.length>0&&"number"===typeof n[i[0]]){for(var a=[],o=0;o=0,"invalid "+e,t.commandStr),cs((function(e,t){return o&&(e.OFFSET=s),s}))}if(e in n){var u=n[e];return us(u,(function(t,r){var n=t.invoke(r,u);return o&&(t.OFFSET=n,re.optional((function(){t.assert(r,n+">=0","invalid "+e)}))),n}))}if(o){if(c)return cs((function(e,t){return e.OFFSET=0,0}));if(a)return new ss(l.thisDep,l.contextDep,l.propDep,(function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.offset:0")}))}else if(a)return new ss(l.thisDep,l.contextDep,l.propDep,(function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.instances:-1")}));return null}var g=p(Za,!0);function m(){if(Ya in r){var e=0|r[Ya];return i.count=e,re.command("number"===typeof e&&e>=0,"invalid vertex count",t.commandStr),cs((function(){return e}))}if(Ya in n){var o=n[Ya];return us(o,(function(e,t){var r=e.invoke(t,o);return re.optional((function(){e.assert(t,"typeof "+r+'==="number"&&'+r+">=0&&"+r+"===("+r+"|0)","invalid vertex count")})),r}))}if(c){if(ls(f)){if(f)return g?new ss(g.thisDep,g.contextDep,g.propDep,(function(e,t){var r=t.def(e.ELEMENTS,".vertCount-",e.OFFSET);return re.optional((function(){e.assert(t,r+">=0","invalid vertex offset/element buffer too small")})),r})):cs((function(e,t){return t.def(e.ELEMENTS,".vertCount")}));var s=cs((function(){return-1}));return re.optional((function(){s.MISSING=!0})),s}var u=new ss(f.thisDep||g.thisDep,f.contextDep||g.contextDep,f.propDep||g.propDep,(function(e,t){var r=e.ELEMENTS;return e.OFFSET?t.def(r,"?",r,".vertCount-",e.OFFSET,":-1"):t.def(r,"?",r,".vertCount:-1")}));return re.optional((function(){u.DYNAMIC=!0})),u}if(a){var h=new ss(l.thisDep,l.contextDep,l.propDep,(function(e,t){return t.def(e.shared.vao,".currentVAO?",e.shared.vao,".currentVAO.count:-1")}));return h}return null}var v=d(),y=m(),x=p(Xa,!1);return{elements:f,primitive:v,count:y,instances:x,offset:g,vao:l,vaoActive:a,elementsActive:c,static:i}}function N(e,t){var r=e.static,n=e.dynamic,a={};return T.forEach((function(e){var o=M(e);function s(t,i){if(e in r){var s=t(r[e]);a[o]=cs((function(){return s}))}else if(e in n){var l=n[e];a[o]=us(l,(function(e,t){return i(e,t,e.invoke(t,l))}))}}switch(e){case ka:case ga:case pa:case Pa:case xa:case ja:case Ea:case Ca:case Ia:case wa:return s((function(r){return re.commandType(r,"boolean",e,t.commandStr),r}),(function(t,r,n){return re.optional((function(){t.assert(r,"typeof "+n+'==="boolean"',"invalid flag "+e,t.commandStr)})),n}));case ba:return s((function(r){return re.commandParameter(r,ts,"invalid "+e,t.commandStr),ts[r]}),(function(t,r,n){var i=t.constants.compareFuncs;return re.optional((function(){t.assert(r,n+" in "+i,"invalid "+e+", must be one of "+Object.keys(ts))})),r.def(i,"[",n,"]")}));case _a:return s((function(e){return re.command(ur(e)&&2===e.length&&"number"===typeof e[0]&&"number"===typeof e[1]&&e[0]<=e[1],"depth range is 2d array",t.commandStr),e}),(function(e,t,r){return re.optional((function(){e.assert(t,e.shared.isArrayLike+"("+r+")&&"+r+".length===2&&typeof "+r+'[0]==="number"&&typeof '+r+'[1]==="number"&&'+r+"[0]<="+r+"[1]","depth range must be a 2d array")})),[t.def("+",r,"[0]"),t.def("+",r,"[1]")]}));case ya:return s((function(e){re.commandType(e,"object","blend.func",t.commandStr);var r="srcRGB"in e?e.srcRGB:e.src,n="srcAlpha"in e?e.srcAlpha:e.src,i="dstRGB"in e?e.dstRGB:e.dst,a="dstAlpha"in e?e.dstAlpha:e.dst;return re.commandParameter(r,$o,o+".srcRGB",t.commandStr),re.commandParameter(n,$o,o+".srcAlpha",t.commandStr),re.commandParameter(i,$o,o+".dstRGB",t.commandStr),re.commandParameter(a,$o,o+".dstAlpha",t.commandStr),re.command(-1===es.indexOf(r+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+r+", "+i+")",t.commandStr),[$o[r],$o[i],$o[n],$o[a]]}),(function(t,r,n){var i=t.constants.blendFuncs;function a(a,o){var s=r.def('"',a,o,'" in ',n,"?",n,".",a,o,":",n,".",a);return re.optional((function(){t.assert(r,s+" in "+i,"invalid "+e+"."+a+o+", must be one of "+Object.keys($o))})),s}re.optional((function(){t.assert(r,n+"&&typeof "+n+'==="object"',"invalid blend func, must be an object")}));var o=a("src","RGB"),s=a("dst","RGB");re.optional((function(){var e=t.constants.invalidBlendCombinations;t.assert(r,e+".indexOf("+o+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")}));var l=r.def(i,"[",o,"]"),c=r.def(i,"[",a("src","Alpha"),"]");return[l,r.def(i,"[",s,"]"),c,r.def(i,"[",a("dst","Alpha"),"]")]}));case va:return s((function(r){return"string"===typeof r?(re.commandParameter(r,v,"invalid "+e,t.commandStr),[v[r],v[r]]):"object"===typeof r?(re.commandParameter(r.rgb,v,e+".rgb",t.commandStr),re.commandParameter(r.alpha,v,e+".alpha",t.commandStr),[v[r.rgb],v[r.alpha]]):void re.commandRaise("invalid blend.equation",t.commandStr)}),(function(t,r,n){var i=t.constants.blendEquations,a=r.def(),o=r.def(),s=t.cond("typeof ",n,'==="string"');return re.optional((function(){function r(e,r,n){t.assert(e,n+" in "+i,"invalid "+r+", must be one of "+Object.keys(v))}r(s.then,e,n),t.assert(s.else,n+"&&typeof "+n+'==="object"',"invalid "+e),r(s.else,e+".rgb",n+".rgb"),r(s.else,e+".alpha",n+".alpha")})),s.then(a,"=",o,"=",i,"[",n,"];"),s.else(a,"=",i,"[",n,".rgb];",o,"=",i,"[",n,".alpha];"),r(s),[a,o]}));case ma:return s((function(e){return re.command(ur(e)&&4===e.length,"blend.color must be a 4d array",t.commandStr),Me(4,(function(t){return+e[t]}))}),(function(e,t,r){return re.optional((function(){e.assert(t,e.shared.isArrayLike+"("+r+")&&"+r+".length===4","blend.color must be a 4d array")})),Me(4,(function(e){return t.def("+",r,"[",e,"]")}))}));case Oa:return s((function(e){return re.commandType(e,"number",o,t.commandStr),0|e}),(function(e,t,r){return re.optional((function(){e.assert(t,"typeof "+r+'==="number"',"invalid stencil.mask")})),t.def(r,"|0")}));case za:return s((function(r){re.commandType(r,"object",o,t.commandStr);var n=r.cmp||"keep",i=r.ref||0,a="mask"in r?r.mask:-1;return re.commandParameter(n,ts,e+".cmp",t.commandStr),re.commandType(i,"number",e+".ref",t.commandStr),re.commandType(a,"number",e+".mask",t.commandStr),[ts[n],i,a]}),(function(e,t,r){var n=e.constants.compareFuncs;return re.optional((function(){function i(){e.assert(t,Array.prototype.join.call(arguments,""),"invalid stencil.func")}i(r+"&&typeof ",r,'==="object"'),i('!("cmp" in ',r,")||(",r,".cmp in ",n,")")})),[t.def('"cmp" in ',r,"?",n,"[",r,".cmp]",":",Wo),t.def(r,".ref|0"),t.def('"mask" in ',r,"?",r,".mask|0:-1")]}));case Ra:case Fa:return s((function(r){re.commandType(r,"object",o,t.commandStr);var n=r.fail||"keep",i=r.zfail||"keep",a=r.zpass||"keep";return re.commandParameter(n,rs,e+".fail",t.commandStr),re.commandParameter(i,rs,e+".zfail",t.commandStr),re.commandParameter(a,rs,e+".zpass",t.commandStr),[e===Fa?Bo:No,rs[n],rs[i],rs[a]]}),(function(t,r,n){var i=t.constants.stencilOps;function a(a){return re.optional((function(){t.assert(r,'!("'+a+'" in '+n+")||("+n+"."+a+" in "+i+")","invalid "+e+"."+a+", must be one of "+Object.keys(rs))})),r.def('"',a,'" in ',n,"?",i,"[",n,".",a,"]:",Wo)}return re.optional((function(){t.assert(r,n+"&&typeof "+n+'==="object"',"invalid "+e)})),[e===Fa?Bo:No,a("fail"),a("zfail"),a("zpass")]}));case La:return s((function(e){re.commandType(e,"object",o,t.commandStr);var r=0|e.factor,n=0|e.units;return re.commandType(r,"number",o+".factor",t.commandStr),re.commandType(n,"number",o+".units",t.commandStr),[r,n]}),(function(t,r,n){return re.optional((function(){t.assert(r,n+"&&typeof "+n+'==="object"',"invalid "+e)})),[r.def(n,".factor|0"),r.def(n,".units|0")]}));case Aa:return s((function(e){var r=0;return"front"===e?r=No:"back"===e&&(r=Bo),re.command(!!r,o,t.commandStr),r}),(function(e,t,r){return re.optional((function(){e.assert(t,r+'==="front"||'+r+'==="back"',"invalid cull.face")})),t.def(r,'==="front"?',No,":",Bo)}));case Sa:return s((function(e){return re.command("number"===typeof e&&e>=i.lineWidthDims[0]&&e<=i.lineWidthDims[1],"invalid line width, must be a positive number between "+i.lineWidthDims[0]+" and "+i.lineWidthDims[1],t.commandStr),e}),(function(e,t,r){return re.optional((function(){e.assert(t,"typeof "+r+'==="number"&&'+r+">="+i.lineWidthDims[0]+"&&"+r+"<="+i.lineWidthDims[1],"invalid line width")})),r}));case Ma:return s((function(e){return re.commandParameter(e,is,o,t.commandStr),is[e]}),(function(e,t,r){return re.optional((function(){e.assert(t,r+'==="cw"||'+r+'==="ccw"',"invalid frontFace, must be one of cw,ccw")})),t.def(r+'==="cw"?'+Uo+":"+Vo)}));case Ta:return s((function(e){return re.command(ur(e)&&4===e.length,"color.mask must be length 4 array",t.commandStr),e.map((function(e){return!!e}))}),(function(e,t,r){return re.optional((function(){e.assert(t,e.shared.isArrayLike+"("+r+")&&"+r+".length===4","invalid color.mask")})),Me(4,(function(e){return"!!"+r+"["+e+"]"}))}));case Da:return s((function(e){re.command("object"===typeof e&&e,o,t.commandStr);var r="value"in e?e.value:1,n=!!e.invert;return re.command("number"===typeof r&&r>=0&&r<=1,"sample.coverage.value must be a number between 0 and 1",t.commandStr),[r,n]}),(function(e,t,r){return re.optional((function(){e.assert(t,r+"&&typeof "+r+'==="object"',"invalid sample.coverage")})),[t.def('"value" in ',r,"?+",r,".value:1"),t.def("!!",r,".invert")]}))}})),a}function B(e,t){var r=e.static,n=e.dynamic,i={};return Object.keys(r).forEach((function(e){var n,a=r[e];if("number"===typeof a||"boolean"===typeof a)n=cs((function(){return a}));else if("function"===typeof a){var o=a._reglType;"texture2d"===o||"textureCube"===o?n=cs((function(e){return e.link(a)})):"framebuffer"===o||"framebufferCube"===o?(re.command(a.color.length>0,'missing color attachment for framebuffer sent to uniform "'+e+'"',t.commandStr),n=cs((function(e){return e.link(a.color[0])}))):re.commandRaise('invalid data for uniform "'+e+'"',t.commandStr)}else ur(a)?n=cs((function(t){return t.global.def("[",Me(a.length,(function(r){return re.command("number"===typeof a[r]||"boolean"===typeof a[r],"invalid uniform "+e,t.commandStr),a[r]})),"]")})):re.commandRaise('invalid or missing data for uniform "'+e+'"',t.commandStr);n.value=a,i[e]=n})),Object.keys(n).forEach((function(e){var t=n[e];i[e]=us(t,(function(e,r){return e.invoke(r,t)}))})),i}function U(e,t){var n=e.static,i=e.dynamic,o={};return Object.keys(n).forEach((function(e){var i=n[e],s=r.id(e),l=new m;if(as(i))l.state=aa,l.buffer=a.getBuffer(a.create(i,so,!1,!0)),l.type=0;else{var c=a.getBuffer(i);if(c)l.state=aa,l.buffer=c,l.type=0;else if(re.command("object"===typeof i&&i,"invalid data for attribute "+e,t.commandStr),"constant"in i){var u=i.constant;l.buffer="null",l.state=oa,"number"===typeof u?l.x=u:(re.command(ur(u)&&u.length>0&&u.length<=4,"invalid constant for attribute "+e,t.commandStr),na.forEach((function(e,t){t=0,'invalid offset for attribute "'+e+'"',t.commandStr);var f=0|i.stride;re.command(f>=0&&f<256,'invalid stride for attribute "'+e+'", must be integer betweeen [0, 255]',t.commandStr);var d=0|i.size;re.command(!("size"in i)||d>0&&d<=4,'invalid size for attribute "'+e+'", must be 1,2,3,4',t.commandStr);var p=!!i.normalized,g=0;"type"in i&&(re.commandParameter(i.type,Pt,"invalid type for attribute "+e,t.commandStr),g=Pt[i.type]);var v=0|i.divisor;re.optional((function(){"divisor"in i&&(re.command(0===v||y,'cannot specify divisor for attribute "'+e+'", instancing not supported',t.commandStr),re.command(v>=0,'invalid divisor for attribute "'+e+'"',t.commandStr));var r=t.commandStr,n=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(i).forEach((function(t){re.command(n.indexOf(t)>=0,'unknown parameter "'+t+'" for attribute pointer "'+e+'" (valid parameters are '+n+")",r)}))})),l.buffer=c,l.state=aa,l.size=d,l.normalized=p,l.type=g||c.dtype,l.offset=h,l.stride=f,l.divisor=v}}o[e]=cs((function(e,t){var r=e.attribCache;if(s in r)return r[s];var n={isStream:!1};return Object.keys(l).forEach((function(e){n[e]=l[e]})),l.buffer&&(n.buffer=e.link(l.buffer),n.type=n.type||n.buffer+".dtype"),r[s]=n,n}))})),Object.keys(i).forEach((function(e){var t=i[e];function r(r,n){var i=r.invoke(n,t),a=r.shared,o=r.constants,s=a.isBufferArgs,l=a.buffer;re.optional((function(){r.assert(n,i+"&&(typeof "+i+'==="object"||typeof '+i+'==="function")&&('+s+"("+i+")||"+l+".getBuffer("+i+")||"+l+".getBuffer("+i+".buffer)||"+s+"("+i+'.buffer)||("constant" in '+i+"&&(typeof "+i+'.constant==="number"||'+a.isArrayLike+"("+i+".constant))))",'invalid dynamic attribute "'+e+'"')}));var c={isStream:n.def(!1)},u=new m;u.state=aa,Object.keys(u).forEach((function(e){c[e]=n.def(""+u[e])}));var h=c.buffer,f=c.type;function d(e){n(c[e],"=",i,".",e,"|0;")}return n("if(",s,"(",i,")){",c.isStream,"=true;",h,"=",l,".createStream(",so,",",i,");",f,"=",h,".dtype;","}else{",h,"=",l,".getBuffer(",i,");","if(",h,"){",f,"=",h,".dtype;",'}else if("constant" in ',i,"){",c.state,"=",oa,";","if(typeof "+i+'.constant === "number"){',c[na[0]],"=",i,".constant;",na.slice(1).map((function(e){return c[e]})).join("="),"=0;","}else{",na.map((function(e,t){return c[e]+"="+i+".constant.length>"+t+"?"+i+".constant["+t+"]:0;"})).join(""),"}}else{","if(",s,"(",i,".buffer)){",h,"=",l,".createStream(",so,",",i,".buffer);","}else{",h,"=",l,".getBuffer(",i,".buffer);","}",f,'="type" in ',i,"?",o.glTypes,"[",i,".type]:",h,".dtype;",c.normalized,"=!!",i,".normalized;"),d("size"),d("offset"),d("stride"),d("divisor"),n("}}"),n.exit("if(",c.isStream,"){",l,".destroyStream(",h,");","}"),c}o[e]=us(t,r)})),o}function V(e){var t=e.static,r=e.dynamic,n={};return Object.keys(t).forEach((function(e){var r=t[e];n[e]=cs((function(e,t){return"number"===typeof r||"boolean"===typeof r?""+r:e.link(r)}))})),Object.keys(r).forEach((function(e){var t=r[e];n[e]=us(t,(function(e,r){return e.invoke(r,t)}))})),n}function q(e,t,r,i,a){var o=e.static,s=e.dynamic;re.optional((function(){var e=[Va,qa,Ha,Ga,Wa,Za,Ya,Xa,Ua,Ka].concat(T);function t(t){Object.keys(t).forEach((function(t){re.command(e.indexOf(t)>=0,'unknown parameter "'+t+'"',a.commandStr)}))}t(o),t(s)}));var l=R(e,t),c=O(e,a),h=z(e,c,a),f=j(e,a),d=N(e,a),p=F(e,a,l);function g(e){var t=h[e];t&&(d[e]=t)}g(Ba),g(M(Na));var m=Object.keys(d).length>0,v={framebuffer:c,draw:f,shader:p,state:d,dirty:m,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(v.profile=P(e,a),v.uniforms=B(r,a),v.drawVAO=v.scopeVAO=f.vao,!v.drawVAO&&p.program&&!l&&n.angle_instanced_arrays&&f.static.elements){var y=!0,x=p.program.attributes.map((function(e){var r=t.static[e];return y=y&&!!r,r}));if(y&&x.length>0){var b=u.getVAO(u.createVAO({attributes:x,elements:f.static.elements}));v.drawVAO=new ss(null,null,null,(function(e,t){return e.link(b)})),v.useVAO=!0}}return l?v.useVAO=!0:v.attributes=U(t,a),v.context=V(i,a),v}function H(e,t,r){var n=e.shared.context,i=e.scope();Object.keys(r).forEach((function(a){t.save(n,"."+a);var o=r[a].append(e,t);Array.isArray(o)?i(n,".",a,"=[",o.join(),"];"):i(n,".",a,"=",o,";")})),t(i)}function G(e,t,r,n){var i,a=e.shared,o=a.gl,s=a.framebuffer;x&&(i=t.def(a.extensions,".webgl_draw_buffers"));var l,c=e.constants,u=c.drawBuffer,h=c.backBuffer;l=r?r.append(e,t):t.def(s,".next"),n||t("if(",l,"!==",s,".cur){"),t("if(",l,"){",o,".bindFramebuffer(",Jo,",",l,".framebuffer);"),x&&t(i,".drawBuffersWEBGL(",u,"[",l,".colorAttachments.length]);"),t("}else{",o,".bindFramebuffer(",Jo,",null);"),x&&t(i,".drawBuffersWEBGL(",h,");"),t("}",s,".cur=",l,";"),n||t("}")}function W(e,t,r){var n=e.shared,i=n.gl,a=e.current,o=e.next,s=n.current,l=n.next,c=e.cond(s,".dirty");T.forEach((function(t){var n,u,h=M(t);if(!(h in r.state))if(h in o){n=o[h],u=a[h];var f=Me(_[h].length,(function(e){return c.def(n,"[",e,"]")}));c(e.cond(f.map((function(e,t){return e+"!=="+u+"["+t+"]"})).join("||")).then(i,".",A[h],"(",f,");",f.map((function(e,t){return u+"["+t+"]="+e})).join(";"),";"))}else{n=c.def(l,".",h);var d=e.cond(n,"!==",s,".",h);c(d),h in k?d(e.cond(n).then(i,".enable(",k[h],");").else(i,".disable(",k[h],");"),s,".",h,"=",n,";"):d(i,".",A[h],"(",n,");",s,".",h,"=",n,";")}})),0===Object.keys(r.state).length&&c(s,".dirty=false;"),t(c)}function Y(e,t,r,n){var i=e.shared,a=e.current,o=i.current,s=i.gl;os(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(e,t);if(k[i]){var u=k[i];ls(l)?t(s,c?".enable(":".disable(",u,");"):t(e.cond(c).then(s,".enable(",u,");").else(s,".disable(",u,");")),t(o,".",i,"=",c,";")}else if(ur(c)){var h=a[i];t(s,".",A[i],"(",c,");",c.map((function(e,t){return h+"["+t+"]="+e})).join(";"),";")}else t(s,".",A[i],"(",c,");",o,".",i,"=",c,";")}}))}function Z(e,t){y&&(e.instancing=t.def(e.shared.extensions,".angle_instanced_arrays"))}function X(e,t,r,n,i){var a,o,s,l=e.shared,c=e.stats,u=l.current,h=l.timer,f=r.profile;function d(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function g(e){e(a=t.def(),"=",d(),";"),"string"===typeof i?e(c,".count+=",i,";"):e(c,".count++;"),p&&(n?e(o=t.def(),"=",h,".getNumPendingQueries();"):e(h,".beginQuery(",c,");"))}function m(e){e(c,".cpuTime+=",d(),"-",a,";"),p&&(n?e(h,".pushScopeStats(",o,",",h,".getNumPendingQueries(),",c,");"):e(h,".endQuery();"))}function v(e){var r=t.def(u,".profile");t(u,".profile=",e,";"),t.exit(u,".profile=",r,";")}if(f){if(ls(f))return void(f.enable?(g(t),m(t.exit),v("true")):v("false"));v(s=f.append(e,t))}else s=t.def(u,".profile");var y=e.block();g(y),t("if(",s,"){",y,"}");var x=e.block();m(x),t.exit("if(",s,"){",x,"}")}function K(e,t,r,n,i){var a=e.shared;function o(e){switch(e){case wo:case Mo:case Co:return 2;case To:case So:case Io:return 3;case ko:case Eo:case Do:return 4;default:return 1}}function s(r,n,i){var o=a.gl,s=t.def(r,".location"),l=t.def(a.attributes,"[",s,"]"),c=i.state,u=i.buffer,h=[i.x,i.y,i.z,i.w],f=["buffer","normalized","offset","stride"];function d(){t("if(!",l,".buffer){",o,".enableVertexAttribArray(",s,");}");var r,a=i.type;if(r=i.size?t.def(i.size,"||",n):n,t("if(",l,".type!==",a,"||",l,".size!==",r,"||",f.map((function(e){return l+"."+e+"!=="+i[e]})).join("||"),"){",o,".bindBuffer(",so,",",u,".buffer);",o,".vertexAttribPointer(",[s,r,a,i.normalized,i.stride,i.offset],");",l,".type=",a,";",l,".size=",r,";",f.map((function(e){return l+"."+e+"="+i[e]+";"})).join(""),"}"),y){var c=i.divisor;t("if(",l,".divisor!==",c,"){",e.instancing,".vertexAttribDivisorANGLE(",[s,c],");",l,".divisor=",c,";}")}}function p(){t("if(",l,".buffer){",o,".disableVertexAttribArray(",s,");",l,".buffer=null;","}if(",na.map((function(e,t){return l+"."+e+"!=="+h[t]})).join("||"),"){",o,".vertexAttrib4f(",s,",",h,");",na.map((function(e,t){return l+"."+e+"="+h[t]+";"})).join(""),"}")}c===aa?d():c===oa?p():(t("if(",c,"===",aa,"){"),d(),t("}else{"),p(),t("}"))}n.forEach((function(n){var a,l=n.name,c=r.attributes[l];if(c){if(!i(c))return;a=c.append(e,t)}else{if(!i(hs))return;var u=e.scopeAttrib(l);re.optional((function(){e.assert(t,u+".state","missing attribute "+l)})),a={},Object.keys(new m).forEach((function(e){a[e]=t.def(u,".",e)}))}s(e.link(n),o(n.info.type),a)}))}function J(e,t,n,i,a,o){for(var s,l=e.shared,c=l.gl,u={},h=0;h1){if(!m)continue;var v=d.replace("[0]","");if(u[v])continue;u[v]=1}var y,x=e.link(f)+".location";if(m){if(!a(m))continue;if(ls(m)){var b=m.value;if(re.command(null!==b&&"undefined"!==typeof b,'missing uniform "'+d+'"',e.commandStr),p===Ro||p===Fo){re.command("function"===typeof b&&(p===Ro&&("texture2d"===b._reglType||"framebuffer"===b._reglType)||p===Fo&&("textureCube"===b._reglType||"framebufferCube"===b._reglType)),"invalid texture for uniform "+d,e.commandStr);var _=e.link(b._texture||b.color[0]._texture);t(c,".uniform1i(",x,",",_+".bind());"),t.exit(_,".unbind();")}else if(p===Po||p===Oo||p===zo){re.optional((function(){re.command(ur(b),"invalid matrix for uniform "+d,e.commandStr),re.command(p===Po&&4===b.length||p===Oo&&9===b.length||p===zo&&16===b.length,"invalid length for matrix uniform "+d,e.commandStr)}));var w=e.global.def("new Float32Array(["+Array.prototype.slice.call(b)+"])"),T=2;p===Oo?T=3:p===zo&&(T=4),t(c,".uniformMatrix",T,"fv(",x,",false,",w,");")}else{switch(p){case _o:1===g?re.commandType(b,"number","uniform "+d,e.commandStr):re.command(ur(b)&&b.length===g,"uniform "+d,e.commandStr),s="1f";break;case wo:re.command(ur(b)&&b.length&&b.length%2===0&&b.length<=2*g,"uniform "+d,e.commandStr),s="2f";break;case To:re.command(ur(b)&&b.length&&b.length%3===0&&b.length<=3*g,"uniform "+d,e.commandStr),s="3f";break;case ko:re.command(ur(b)&&b.length&&b.length%4===0&&b.length<=4*g,"uniform "+d,e.commandStr),s="4f";break;case Lo:1===g?re.commandType(b,"boolean","uniform "+d,e.commandStr):re.command(ur(b)&&b.length===g,"uniform "+d,e.commandStr),s="1i";break;case Ao:1===g?re.commandType(b,"number","uniform "+d,e.commandStr):re.command(ur(b)&&b.length===g,"uniform "+d,e.commandStr),s="1i";break;case Co:case Mo:re.command(ur(b)&&b.length&&b.length%2===0&&b.length<=2*g,"uniform "+d,e.commandStr),s="2i";break;case Io:case So:re.command(ur(b)&&b.length&&b.length%3===0&&b.length<=3*g,"uniform "+d,e.commandStr),s="3i";break;case Do:case Eo:re.command(ur(b)&&b.length&&b.length%4===0&&b.length<=4*g,"uniform "+d,e.commandStr),s="4i"}g>1?(s+="v",b=e.global.def("["+Array.prototype.slice.call(b)+"]")):b=ur(b)?Array.prototype.slice.call(b):b,t(c,".uniform",s,"(",x,",",b,");")}continue}y=m.append(e,t)}else{if(!a(hs))continue;y=t.def(l.uniforms,"[",r.id(d),"]")}p===Ro?(re(!Array.isArray(y),"must specify a scalar prop for textures"),t("if(",y,"&&",y,'._reglType==="framebuffer"){',y,"=",y,".color[0];","}")):p===Fo&&(re(!Array.isArray(y),"must specify a scalar prop for cube maps"),t("if(",y,"&&",y,'._reglType==="framebufferCube"){',y,"=",y,".color[0];","}")),re.optional((function(){function r(r,n){e.assert(t,r,'bad data or missing for uniform "'+d+'". '+n)}function n(e,t){1===t&&re(!Array.isArray(y),"must not specify an array type for uniform"),r("Array.isArray("+y+") && typeof "+y+'[0]===" '+e+'" || typeof '+y+'==="'+e+'"',"invalid type, expected "+e)}function i(t,n,i){Array.isArray(y)?re(y.length&&y.length%t===0&&y.length<=t*i,"must have length of "+(1===i?"":"n * ")+t):r(l.isArrayLike+"("+y+")&&"+y+".length && "+y+".length % "+t+" === 0 && "+y+".length<="+t*i,"invalid vector, should have length of "+(1===i?"":"n * ")+t,e.commandStr)}function a(t){re(!Array.isArray(y),"must not specify a value type"),r("typeof "+y+'==="function"&&'+y+'._reglType==="texture'+(t===co?"2d":"Cube")+'"',"invalid texture type",e.commandStr)}switch(p){case Ao:n("number",g);break;case Mo:i(2,"number",g);break;case So:i(3,"number",g);break;case Eo:i(4,"number",g);break;case _o:n("number",g);break;case wo:i(2,"number",g);break;case To:i(3,"number",g);break;case ko:i(4,"number",g);break;case Lo:n("boolean",g);break;case Co:i(2,"boolean",g);break;case Io:i(3,"boolean",g);break;case Do:i(4,"boolean",g);break;case Po:i(4,"number",g);break;case Oo:i(9,"number",g);break;case zo:i(16,"number",g);break;case Ro:a(co);break;case Fo:a(uo)}}));var k=1;switch(p){case Ro:case Fo:var A=t.def(y,"._texture");t(c,".uniform1i(",x,",",A,".bind());"),t.exit(A,".unbind();");continue;case Ao:case Lo:s="1i";break;case Mo:case Co:s="2i",k=2;break;case So:case Io:s="3i",k=3;break;case Eo:case Do:s="4i",k=4;break;case _o:s="1f";break;case wo:s="2f",k=2;break;case To:s="3f",k=3;break;case ko:s="4f",k=4;break;case Po:s="Matrix2fv";break;case Oo:s="Matrix3fv";break;case zo:s="Matrix4fv"}if(-1===s.indexOf("Matrix")&&g>1&&(s+="v",k=1),"M"===s.charAt(0)){t(c,".uniform",s,"(",x,",");var M=Math.pow(p-Po+2,2),S=e.global.def("new Float32Array(",M,")");Array.isArray(y)?t("false,(",Me(M,(function(e){return S+"["+e+"]="+y[e]})),",",S,")"):t("false,(Array.isArray(",y,")||",y," instanceof Float32Array)?",y,":(",Me(M,(function(e){return S+"["+e+"]="+y+"["+e+"]"})),",",S,")"),t(");")}else if(k>1){for(var E=[],L=[],C=0;C=0","missing vertex count")}))):(i=l.def(o,".",Ya),re.optional((function(){e.assert(l,i+">=0","missing vertex count")}))),i}var u=l();function h(i){var a=s[i];return a?a.contextDep&&n.contextDynamic||a.propDep?a.append(e,r):a.append(e,t):t.def(o,".",i)}var f,d,p=h(Wa),g=h(Za),m=c();if("number"===typeof m){if(0===m)return}else r("if(",m,"){"),r.exit("}");y&&(f=h(Xa),d=e.instancing);var v=u+".type",x=s.elements&&ls(s.elements)&&!s.vaoActive;function _(){function e(){r(d,".drawElementsInstancedANGLE(",[p,m,v,g+"<<(("+v+"-"+ia+")>>1)",f],");")}function t(){r(d,".drawArraysInstancedANGLE(",[p,g,m,f],");")}u&&"null"!==u?x?e():(r("if(",u,"){"),e(),r("}else{"),t(),r("}")):t()}function w(){function e(){r(a+".drawElements("+[p,m,v,g+"<<(("+v+"-"+ia+")>>1)"]+");")}function t(){r(a+".drawArrays("+[p,g,m]+");")}u&&"null"!==u?x?e():(r("if(",u,"){"),e(),r("}else{"),t(),r("}")):t()}y&&("number"!==typeof f||f>=0)?"string"===typeof f?(r("if(",f,">0){"),_(),r("}else if(",f,"<0){"),w(),r("}")):_():w()}function $(e,t,r,n,i){var a=D(),o=a.proc("body",i);return re.optional((function(){a.commandStr=t.commandStr,a.command=a.link(t.commandStr)})),y&&(a.instancing=o.def(a.shared.extensions,".angle_instanced_arrays")),e(a,o,r,n),a.compile().body}function ee(e,t,r,n){Z(e,t),r.useVAO?r.drawVAO?t(e.shared.vao,".setVAO(",r.drawVAO.append(e,t),");"):t(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(t(e.shared.vao,".setVAO(null);"),K(e,t,r,n.attributes,(function(){return!0}))),J(e,t,r,n.uniforms,(function(){return!0}),!1),Q(e,t,t,r)}function te(e,t){var r=e.proc("draw",1);Z(e,r),H(e,r,t.context),G(e,r,t.framebuffer),W(e,r,t),Y(e,r,t.state),X(e,r,t,!1,!0);var n=t.shader.progVar.append(e,r);if(r(e.shared.gl,".useProgram(",n,".program);"),t.shader.program)ee(e,r,t,t.shader.program);else{r(e.shared.vao,".setVAO(null);");var i=e.global.def("{}"),a=r.def(n,".id"),o=r.def(i,"[",a,"]");r(e.cond(o).then(o,".call(this,a0);").else(o,"=",i,"[",a,"]=",e.link((function(r){return $(ee,e,t,r,1)})),"(",n,");",o,".call(this,a0);"))}Object.keys(t.state).length>0&&r(e.shared.current,".dirty=true;"),e.shared.vao&&r(e.shared.vao,".setVAO(null);")}function ne(e,t,r,n){function i(){return!0}e.batchId="a1",Z(e,t),K(e,t,r,n.attributes,i),J(e,t,r,n.uniforms,i,!1),Q(e,t,t,r)}function ie(e,t,r,n){Z(e,t);var i=r.contextDep,a=t.def(),o="a0",s="a1",l=t.def();e.shared.props=l,e.batchId=a;var c=e.scope(),u=e.scope();function h(e){return e.contextDep&&i||e.propDep}function f(e){return!h(e)}if(t(c.entry,"for(",a,"=0;",a,"<",s,";++",a,"){",l,"=",o,"[",a,"];",u,"}",c.exit),r.needsContext&&H(e,u,r.context),r.needsFramebuffer&&G(e,u,r.framebuffer),Y(e,u,r.state,h),r.profile&&h(r.profile)&&X(e,u,r,!1,!0),n)r.useVAO?r.drawVAO?h(r.drawVAO)?u(e.shared.vao,".setVAO(",r.drawVAO.append(e,u),");"):c(e.shared.vao,".setVAO(",r.drawVAO.append(e,c),");"):c(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(c(e.shared.vao,".setVAO(null);"),K(e,c,r,n.attributes,f),K(e,u,r,n.attributes,h)),J(e,c,r,n.uniforms,f,!1),J(e,u,r,n.uniforms,h,!0),Q(e,c,u,r);else{var d=e.global.def("{}"),p=r.shader.progVar.append(e,u),g=u.def(p,".id"),m=u.def(d,"[",g,"]");u(e.shared.gl,".useProgram(",p,".program);","if(!",m,"){",m,"=",d,"[",g,"]=",e.link((function(t){return $(ne,e,r,t,2)})),"(",p,");}",m,".call(this,a0[",a,"],",a,");")}}function ae(e,t){var r=e.proc("batch",2);e.batchId="0",Z(e,r);var n=!1,i=!0;Object.keys(t.context).forEach((function(e){n=n||t.context[e].propDep})),n||(H(e,r,t.context),i=!1);var a=t.framebuffer,o=!1;function s(e){return e.contextDep&&n||e.propDep}a?(a.propDep?n=o=!0:a.contextDep&&n&&(o=!0),o||G(e,r,a)):G(e,r,null),t.state.viewport&&t.state.viewport.propDep&&(n=!0),W(e,r,t),Y(e,r,t.state,(function(e){return!s(e)})),t.profile&&s(t.profile)||X(e,r,t,!1,"a1"),t.contextDep=n,t.needsContext=i,t.needsFramebuffer=o;var l=t.shader.progVar;if(l.contextDep&&n||l.propDep)ie(e,r,t,null);else{var c=l.append(e,r);if(r(e.shared.gl,".useProgram(",c,".program);"),t.shader.program)ie(e,r,t,t.shader.program);else{r(e.shared.vao,".setVAO(null);");var u=e.global.def("{}"),h=r.def(c,".id"),f=r.def(u,"[",h,"]");r(e.cond(f).then(f,".call(this,a0,a1);").else(f,"=",u,"[",h,"]=",e.link((function(r){return $(ie,e,t,r,2)})),"(",c,");",f,".call(this,a0,a1);"))}}Object.keys(t.state).length>0&&r(e.shared.current,".dirty=true;"),e.shared.vao&&r(e.shared.vao,".setVAO(null);")}function oe(e,t){var n=e.proc("scope",3);e.batchId="a2";var i=e.shared,a=i.current;function o(r){var a=t.shader[r];a&&n.set(i.shader,"."+r,a.append(e,n))}H(e,n,t.context),t.framebuffer&&t.framebuffer.append(e,n),os(Object.keys(t.state)).forEach((function(r){var a=t.state[r].append(e,n);ur(a)?a.forEach((function(t,i){n.set(e.next[r],"["+i+"]",t)})):n.set(i.next,"."+r,a)})),X(e,n,t,!0,!0),[Ga,Za,Ya,Xa,Wa].forEach((function(r){var a=t.draw[r];a&&n.set(i.draw,"."+r,""+a.append(e,n))})),Object.keys(t.uniforms).forEach((function(a){var o=t.uniforms[a].append(e,n);Array.isArray(o)&&(o="["+o.join()+"]"),n.set(i.uniforms,"["+r.id(a)+"]",o)})),Object.keys(t.attributes).forEach((function(r){var i=t.attributes[r].append(e,n),a=e.scopeAttrib(r);Object.keys(new m).forEach((function(e){n.set(a,"."+e,i[e])}))})),t.scopeVAO&&n.set(i.vao,".targetVAO",t.scopeVAO.append(e,n)),o(qa),o(Ha),Object.keys(t.state).length>0&&(n(a,".dirty=true;"),n.exit(a,".dirty=true;")),n("a1(",e.shared.context,",a0,",e.batchId,");")}function se(e){if("object"===typeof e&&!ur(e)){for(var t=Object.keys(e),r=0;r=0;--e){var t=C[e];t&&t(p,null,0)}n.flush(),u&&u.update()}function R(){!O&&C.length>0&&(O=ge.next(z))}function F(){O&&(ge.cancel(z),O=null)}function j(e){e.preventDefault(),a=!0,F(),I.forEach((function(e){e()}))}function N(e){n.getError(),a=!1,o.restore(),w.restore(),y.restore(),T.restore(),k.restore(),A.restore(),b.restore(),u&&u.restore(),M.procs.refresh(),R(),D.forEach((function(e){e()}))}function B(){C.length=0,F(),L&&(L.removeEventListener(ws,j),L.removeEventListener(Ts,N)),w.clear(),A.clear(),k.clear(),b.clear(),T.clear(),x.clear(),y.clear(),u&&u.clear(),P.forEach((function(e){e()}))}function U(e){function r(e){var r=t({},e);function n(e){if(e in r){var t=r[e];delete r[e],Object.keys(t).forEach((function(n){r[e+"."+n]=t[n]}))}}return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,"stencil"in r&&r.stencil.op&&(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),n("blend"),n("depth"),n("cull"),n("stencil"),n("polygonOffset"),n("scissor"),n("sample"),"vao"in e&&(r.vao=e.vao),r}function n(e,t){var r={},n={};return Object.keys(e).forEach((function(i){var a=e[i];if(pe.isDynamic(a))n[i]=pe.unbox(a,i);else{if(t&&Array.isArray(a))for(var o=0;o0)return f.call(this,g(0|e),0|e)}else{if(!Array.isArray(e))return h.call(this,e);if(e.length)return f.call(this,e,e.length)}}return t(m,{stats:c,destroy:function(){u.destroy()}})}L&&(L.addEventListener(ws,j,!1),L.addEventListener(Ts,N,!1));var V=A.setFBO=U({framebuffer:pe.define.call(null,ks,"framebuffer")});function q(e,t){var r=0;M.procs.poll();var i=t.color;i&&(n.clearColor(+i[0]||0,+i[1]||0,+i[2]||0,+i[3]||0),r|=ys),"depth"in t&&(n.clearDepth(+t.depth),r|=xs),"stencil"in t&&(n.clearStencil(0|t.stencil),r|=bs),re(!!r,"called regl.clear with no buffer specified"),n.clear(r)}function H(e){if(re("object"===typeof e&&e,"regl.clear() takes an object as input"),"framebuffer"in e)if(e.framebuffer&&"framebufferCube"===e.framebuffer_reglType)for(var r=0;r<6;++r)V(t({framebuffer:e.framebuffer.faces[r]},e),q);else V(e,q);else q(null,e)}function G(e){function t(){var t=Ss(C,e);function r(){var e=Ss(C,r);C[e]=C[C.length-1],C.length-=1,C.length<=0&&F()}re(t>=0,"cannot cancel a frame twice"),C[t]=r}return re.type(e,"function","regl.frame() callback must be a function"),C.push(e),R(),{cancel:t}}function W(){var e=E.viewport,t=E.scissor_box;e[0]=e[1]=t[0]=t[1]=0,p.viewportWidth=p.framebufferWidth=p.drawingBufferWidth=e[2]=t[2]=n.drawingBufferWidth,p.viewportHeight=p.framebufferHeight=p.drawingBufferHeight=e[3]=t[3]=n.drawingBufferHeight}function Y(){p.tick+=1,p.time=X(),W(),M.procs.poll()}function Z(){T.refresh(),W(),M.procs.refresh(),u&&u.update()}function X(){return(me()-h)/1e3}function K(e,t){var r;switch(re.type(t,"function","listener callback must be a function"),e){case"frame":return G(t);case"lost":r=I;break;case"restore":r=D;break;case"destroy":r=P;break;default:re.raise("invalid event, must be one of frame,lost,restore,destroy")}return r.push(t),{cancel:function(){for(var e=0;e=0},read:S,destroy:B,_gl:n,_refresh:Z,poll:function(){Y(),u&&u.update()},now:X,stats:l});return r.onDone(null,J),J}return Es}()},1589:function(e){"use strict";function t(e){return"number"===typeof e&&isFinite(e)&&e>0}var r=/<[-_.:a-zA-Z0-9][^>]*>/,n=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,i=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,a=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,o=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,s=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function l(e){return s.test(e)?e.match(s)[0]:"px"}e.exports=function(e){if(function(e){var t,r=0,n=e.length;for(239===e[0]&&187===e[1]&&191===e[2]&&(r=3);r0?"start":"end","data-notex":1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,e),y=i.bBox(this);v.attr("transform",h(f.p[0],f.p[1])+u(f.angle)+h(o.axis.labelpadding*p,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),p.exit().remove(),m.maxExtent=g,m}e.exports=function(e,t,r,i){var l=t.xaxis,u=t.yaxis,h=e._fullLayout._clips;c.makeTraceGroups(i,r,"trace").each((function(t){var r=n.select(this),i=t[0],f=i.trace,g=f.aaxis,m=f.baxis,y=c.ensureSingle(r,"g","minorlayer"),x=c.ensureSingle(r,"g","majorlayer"),b=c.ensureSingle(r,"g","boundarylayer"),_=c.ensureSingle(r,"g","labellayer");r.style("opacity",f.opacity),d(l,u,x,g,"a",g._gridlines),d(l,u,x,m,"b",m._gridlines),d(l,u,y,g,"a",g._minorgridlines),d(l,u,y,m,"b",m._minorgridlines),d(l,u,b,g,"a-boundary",g._boundarylines),d(l,u,b,m,"b-boundary",m._boundarylines);var w=p(e,l,u,f,i,_,g._labels,"a-label"),T=p(e,l,u,f,i,_,m._labels,"b-label");!function(e,t,r,n,i,a,o,l){var u,h,f,d,p=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(p+g),h=m,f=r.ab2xy(u,h,!0),d=r.dxyda_rough(u,h),void 0===o.angle&&c.extendFlat(o,s(r,i,a,f,r.dxydb_rough(u,h)));v(e,t,r,n,f,d,r.aaxis,i,a,o,"a-title"),u=p,h=.5*(m+y),f=r.ab2xy(u,h,!0),d=r.dxydb_rough(u,h),void 0===l.angle&&c.extendFlat(l,s(r,i,a,f,r.dxyda_rough(u,h)));v(e,t,r,n,f,d,r.baxis,i,a,l,"b-title")}(e,_,f,i,l,u,w,T),function(e,t,r,n,i){var s,l,u,h,f=r.select("#"+e._clipPathId);f.size()||(f=r.append("clipPath").classed("carpetclip",!0));var d=c.ensureSingle(f,"path","carpetboundary"),p=t.clipsegments,g=[];for(h=0;h90&&y<270,b=n.select(this);b.text(f.title.text).call(l.convertToTspans,e),x&&(_=(-l.lineCount(b)+m)*g*a-_),b.attr("transform",h(t.p[0],t.p[1])+u(t.angle)+h(0,_)).attr("text-anchor","middle").call(i.font,f.title.font)})),b.exit().remove()}},1860:function(e){e.exports=function(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}},2057:function(e,t,r){"use strict";var n=r(10731),i=r(18205);function a(e,t){var r=i(n(e,t),[t[t.length-1]]);return r[r.length-1]}function o(e,t,r,n){var i=-t/(n-t);i<0?i=0:i>1&&(i=1);for(var a=1-i,o=e.length,s=new Array(o),l=0;l0||i>0&&u<0){var h=o(s,u,l,i);r.push(h),n.push(h.slice())}u<0?n.push(l.slice()):u>0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(e,t){for(var r=[],n=a(e[e.length-1],t),i=e[e.length-1],s=e[0],l=0;l0||n>0&&c<0)&&r.push(o(i,c,s,n)),c>=0&&r.push(s.slice()),n=c}return r},e.exports.negative=function(e,t){for(var r=[],n=a(e[e.length-1],t),i=e[e.length-1],s=e[0],l=0;l0||n>0&&c<0)&&r.push(o(i,c,s,n)),c<=0&&r.push(s.slice()),n=c}return r}},2275:function(e,t,r){e.exports=r(67009)},2313:function(e,t,r){"use strict";var n=r(62258),i=r(91771),a=r(35722),o=r(62282),s=r(37762),l=r(52783),c=r(47401),u=c.strTranslate,h=r(87241).extendFlat,f=r(82559),d=r(41707),p=r(31454),g=r(72456),m=r(43995),v=r(8757).flipScale,y=r(90407),x=r(84269),b=r(33333),_=r(60482),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,A=r(64906).cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(e){var t,r,n,i,a=e._fullLayout,o=e.calcdata,s=[];function l(e){return h(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"===typeof i.calc?i.calc(e,n,t):(t._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,t._zrange=[r[i.min],r[i.max]])}for(var u=0;u0?n>=l:n<=l));i++)n>u&&n0?n>=l:n<=l));i++)n>r[0]&&n1){var K=Math.pow(10,Math.floor(Math.log(X)/Math.LN10));Y*=K*c.roundUp(X/K,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=Y}W.domain=[q+B,q+F-B],W.setScale(),e.attr("transform",u(Math.round(l.l),Math.round(l.t)));var J,Q=e.select("."+A.cbtitleunshift).attr("transform",u(-Math.round(l.l),-Math.round(l.t))),$=e.select("."+A.cbaxis),ee=0;function te(n,i){var a={propContainer:W,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:o._dfltTitle.colorbar,containerGroup:e.select("."+A.cbtitle)},s="h"===n.charAt(0)?n.substr(1):"h"+n;e.selectAll("."+s+",."+s+"-math-group").remove(),g.draw(r,n,h(a,i||{}))}function re(){if(-1!==["top","bottom"].indexOf(M)){var e,r=l.l+(t.x+j)*l.w,n=W.title.font.size;e="top"===M?(1-(q+F-B))*l.h+l.t+3+.75*n:(1-(q+B))*l.h+l.t-3-.25*n,te(W._id+"title",{attributes:{x:r,y:e,"text-anchor":"start"}})}}function ne(){if(-1===["top","bottom"].indexOf(M)){var e=W.title.font.size,t=W._offset+W._length/2,i=l.l+(W.position||0)*l.w+("right"===W.side?10+e*(W.showticklabels?1:.5):-10-e*(W.showticklabels?.5:0));te("h"+W._id+"title",{avoid:{selection:n.select(r).selectAll("g."+W._id+"tick"),side:M,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}function ie(){if(-1!==["top","bottom"].indexOf(M)){var a=e.select("."+A.cbtitle),o=a.select("text"),h=[-t.outlinewidth/2,t.outlinewidth/2],f=a.select(".h"+W._id+"title-math-group").node(),p=15.6;if(o.node()&&(p=parseInt(o.node().style.fontSize,10)*w),f?(ee=d.bBox(f).height)>p&&(h[1]-=(ee-p)/2):o.node()&&!o.classed(A.jsPlaceholder)&&(ee=d.bBox(o.node()).height),ee){if(ee+=5,"top"===M)W.domain[1]-=ee/l.h,h[1]*=-1;else{W.domain[0]+=ee/l.h;var g=m.lineCount(o);h[1]+=(1-g)*p}a.attr("transform",u(h[0],h[1])),W.setScale()}}e.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",u(0,Math.round(l.h*(1-W.domain[1])))),$.attr("transform",u(0,Math.round(-l.t)));var y=e.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(D);y.enter().append("rect").classed(A.cbfill,!0).style("stroke","none"),y.exit().remove();var x=S.map(W.c2p).map(Math.round).sort((function(e,t){return e-t}));y.each((function(e,a){var o=[0===a?S[0]:(D[a]+D[a-1])/2,a===D.length-1?S[1]:(D[a]+D[a+1])/2].map(W.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(t._fillgradient)d.gradient(s,r,t._id,"vertical",t._fillgradient,"fill");else{var l=L(e).replace("e-","");s.attr("fill",i(l).toHexString())}}));var b=e.select("."+A.cblines).selectAll("path."+A.cbline).data(v.color&&v.width?P:[]);b.enter().append("path").classed(A.cbline,!0),b.exit().remove(),b.each((function(e){n.select(this).attr("d","M"+U+","+(Math.round(W.c2p(e))+v.width/2%1)+"h"+O).call(d.lineGroupStyle,v.width,E(e),v.dash)})),$.selectAll("g."+W._id+"tick,path").remove();var _=U+O+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),T=s.calcTicks(W),k=s.getTickSigns(W)[2];return s.drawTicks(r,W,{vals:"inside"===W.ticks?s.clipEnds(W,T):T,layer:$,path:s.makeTickPath(W,_,k),transFn:s.makeTransTickFn(W)}),s.drawLabels(r,W,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(W),labelFns:s.makeLabelFns(W,_)})}function ae(){var n=O+t.outlinewidth/2;if(-1===W.ticklabelposition.indexOf("inside")&&(n+=d.bBox($.node()).width),(J=Q.select("text")).node()&&!J.classed(A.jsPlaceholder)){var i,o=Q.select(".h"+W._id+"title-math-group").node();i=o&&-1!==["top","bottom"].indexOf(M)?d.bBox(o).width:d.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*t.xpad+n+t.borderwidth+t.outlinewidth/2,c=H-G;e.select("."+A.cbbg).attr({x:U-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(p.fill,t.bgcolor).call(p.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+A.cboutline).attr({x:U,y:G+t.ypad+("top"===M?ee:0),width:Math.max(O,2),height:Math.max(c-2*t.ypad-ee,2)}).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var h=({center:.5,right:1}[t.xanchor]||0)*s;e.attr("transform",u(l.l-h,l.t));var f={},g=T[t.yanchor],m=k[t.yanchor];"pixels"===t.lenmode?(f.y=t.y,f.t=c*g,f.b=c*m):(f.t=f.b=0,f.yt=t.y+t.len*g,f.yb=t.y-t.len*m);var v=T[t.xanchor],y=k[t.xanchor];if("pixels"===t.thicknessmode)f.x=t.x,f.l=s*v,f.r=s*y;else{var x=s-O;f.l=x*v,f.r=x*y,f.xl=t.x-t.thickness*v,f.xr=t.x+t.thickness*y}a.autoMargin(r,t._id,f)}return c.syncOrAsync([a.previousPromises,re,ie,ne,a.previousPromises,ae],r)}(r,t,e);v&&v.then&&(e._promises||[]).push(v),e._context.edits.colorbarPosition&&function(e,t,r){var n,i,a,s=r._fullLayout,c=s._size;l.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),f(e)},moveFn:function(r,o){e.attr("transform",n+u(r,o)),i=l.align(t._xLeftFrac+r/c.w,t._thickFrac,0,1,t.xanchor),a=l.align(t._yBottomFrac-o/c.h,t._lenFrac,0,1,t.yanchor);var s=l.getCursor(i,a,t.xanchor,t.yanchor);f(e,s)},doneFn:function(){if(f(e),void 0!==i&&void 0!==a){var n={};n[t._propPrefix+"x"]=i,n[t._propPrefix+"y"]=a,void 0!==t._traceIndex?o.call("_guiRestyle",r,n,t._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,t,e)})),t.exit().each((function(t){a.autoMargin(e,t._id)})).remove(),t.order()}}},2362:function(e){"use strict";e.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},2470:function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call(r(69313));e.exports=function(e){return"function"===typeof e&&n.call(e)===i}},2639:function(e,t,r){"use strict";var n=r(61842);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(14126),supplyLayoutDefaults:r(64889),draw:r(48913)}},2724:function(e,t,r){"use strict";e.exports=r(96763)},2815:function(e){"use strict";e.exports=function(e,t,r){!1===r("zsmooth")&&(r("xgap"),r("ygap")),r("zhoverformat")}},2859:function(e){"use strict";e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xb0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xb0","%","%",""]}},pixelatedStyle:["image-rendering: optimizeSpeed","image-rendering: -moz-crisp-edges","image-rendering: -o-crisp-edges","image-rendering: -webkit-optimize-contrast","image-rendering: optimize-contrast","image-rendering: crisp-edges","image-rendering: pixelated",""].join("; ")}},2951:function(e,t,r){"use strict";function n(){}r.d(t,{A:function(){return n}})},3046:function(e,t,r){"use strict";var n=r(97451),i=r(20184).axisHoverFormat,a=r(4216).r,o=r(49762),s=r(42837),l=r(87241).extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the x coordinates of the vector field."},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the y coordinates of the vector field."},z:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the z coordinates of the vector field."},u:{valType:"data_array",editType:"calc",description:"Sets the x components of the vector field."},v:{valType:"data_array",editType:"calc",description:"Sets the y components of the vector field."},w:{valType:"data_array",editType:"calc",description:"Sets the z components of the vector field."},starts:{x:{valType:"data_array",editType:"calc",description:["Sets the x components of the starting position of the streamtubes"].join(" ")},y:{valType:"data_array",editType:"calc",description:["Sets the y components of the starting position of the streamtubes"].join(" ")},z:{valType:"data_array",editType:"calc",description:["Sets the z components of the starting position of the streamtubes"].join(" ")},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc",description:["The maximum number of displayed segments in a streamtube."].join(" ")},sizeref:{valType:"number",editType:"calc",min:0,dflt:1,description:["The scaling factor for the streamtubes.","The default is 1, which avoids two max divergence tubes from touching","at adjacent starting positions."].join(" ")},text:{valType:"string",dflt:"",editType:"calc",description:["Sets a text element associated with this trace.","If trace `hoverinfo` contains a *text* flag,","this text element will be seen in all hover labels.","Note that streamtube traces do not support array `text` values."].join(" ")},hovertext:{valType:"string",dflt:"",editType:"calc",description:"Same as `text`."},hovertemplate:a({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:i("u",1),vhoverformat:i("v",1),whoverformat:i("w",1),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach((function(e){c[e]=o[e]})),c.hoverinfo=l({},s.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),c.transforms=void 0,e.exports=c},3057:function(e){"use strict";e.exports=function(e,t,r,n,i){var a=n[i];return e.a=a.a,e.b=a.b,e.y=a.y,e}},3217:function(e,t,r){"use strict";var n=r(47401),i=r(62282),a=r(37762),o=r(90062).z,s=r(166),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;t.moduleType="transform",t.name="filter",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this filter transform is enabled or disabled."].join(" ")},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the filter target by which the filter is applied.","If a string, `target` is assumed to be a reference to a data array","in the parent trace object.","To filter about nested variables, use *.* to access them.","For example, set `target` to *marker.color* to filter","about the marker color array.","If an array, `target` is then the data array by which the filter is applied."].join(" ")},operation:{valType:"enumerated",values:[].concat(l).concat(c).concat(u),dflt:"=",editType:"calc",description:["Sets the filter operation.","*=* keeps items equal to `value`","*!=* keeps items not equal to `value`","*<* keeps items less than `value`","*<=* keeps items less than or equal to `value`","*>* keeps items greater than `value`","*>=* keeps items greater than or equal to `value`","*[]* keeps items inside `value[0]` to `value[1]` including both bounds","*()* keeps items inside `value[0]` to `value[1]` excluding both bounds","*[)* keeps items inside `value[0]` to `value[1]` including `value[0]` but excluding `value[1]","*(]* keeps items inside `value[0]` to `value[1]` excluding `value[0]` but including `value[1]","*][* keeps items outside `value[0]` to `value[1]` and equal to both bounds","*)(* keeps items outside `value[0]` to `value[1]`","*](* keeps items outside `value[0]` to `value[1]` and equal to `value[0]`","*)[* keeps items outside `value[0]` to `value[1]` and equal to `value[1]`","*{}* keeps items present in a set of values","*}{* keeps items not present in a set of values"].join(" ")},value:{valType:"any",dflt:0,editType:"calc",description:["Sets the value or values by which to filter.","Values are expected to be in the same type as the data linked","to `target`.","When `operation` is set to one of","the comparison values ("+l+")","`value` is expected to be a number or a string.","When `operation` is set to one of the interval values","("+c+")","`value` is expected to be 2-item array where the first item","is the lower bound and the second item is the upper bound.","When `operation`, is set to one of the set values","("+u+")","`value` is expected to be an array with as many items as","the desired set elements."].join(" ")},preservegaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps in data arrays produced by the filter operation","are preserved.","Setting this to *true* might be useful when plotting a line chart","with `connectgaps` set to *false*."].join(" ")},editType:"calc"},t.supplyDefaults=function(e){var r={};function a(i,a){return n.coerce(e,r,t.attributes,i,a)}if(a("enabled")){var o=a("target");if(n.isArrayOrTypedArray(o)&&0===o.length)return r.enabled=!1,r;a("preservegaps"),a("operation"),a("value");var s=i.getComponentMethod("calendars","handleDefaults");s(e,r,"valuecalendar",null),s(e,r,"targetcalendar",null)}return r},t.calcTransform=function(e,t,r){if(r.enabled){var i=n.getTargetArray(t,r);if(i){var s=r.target,h=i.length;t._length&&(h=Math.min(h,t._length));var f=r.targetcalendar,d=t._arrayAttrs,p=r.preservegaps;if("string"===typeof s){var g=n.nestedProperty(t,s+"calendar").get();g&&(f=g)}var m,v,y=function(e,t,r){var n=e.operation,i=e.value,a=Array.isArray(i);function o(e){return-1!==e.indexOf(n)}var s,h=function(r){return t(r,0,e.valuecalendar)},f=function(e){return t(e,0,r)};o(l)?s=h(a?i[0]:i):o(c)?s=a?[h(i[0]),h(i[1])]:[h(i),h(i)]:o(u)&&(s=a?i.map(h):[h(i)]);switch(n){case"=":return function(e){return f(e)===s};case"!=":return function(e){return f(e)!==s};case"<":return function(e){return f(e)":return function(e){return f(e)>s};case">=":return function(e){return f(e)>=s};case"[]":return function(e){var t=f(e);return t>=s[0]&&t<=s[1]};case"()":return function(e){var t=f(e);return t>s[0]&&t=s[0]&&ts[0]&&t<=s[1]};case"][":return function(e){var t=f(e);return t<=s[0]||t>=s[1]};case")(":return function(e){var t=f(e);return ts[1]};case"](":return function(e){var t=f(e);return t<=s[0]||t>s[1]};case")[":return function(e){var t=f(e);return t=s[1]};case"{}":return function(e){return-1!==s.indexOf(f(e))};case"}{":return function(e){return-1===s.indexOf(f(e))}}}(r,a.getDataToCoordFunc(e,t,s,i),f),x={},b={},_=0;p?(m=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set(new Array(h))},v=function(e,t){var r=x[e.astr][t];e.get()[t]=r}):(m=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set([])},v=function(e,t){var r=x[e.astr][t];e.get().push(r)}),k(m);for(var w=o(t.transforms,r),T=0;T0){for(var n=[],i=0;i` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return!1!==e.arrayOk&&(n.arrayOk=!0),n},t.a=function(e,t){e=e||{};var r=s(t=t||{}),n={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",o(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return!1!==e.arrayOk&&(n.arrayOk=!0),n}},4361:function(e,t,r){"use strict";var n=r(14612);function i(e,t){var r=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===r||10===r?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(e){var t,r,a,o,s,l,c,u,h,f=e[0].z,d=f.length,p=f[0].length,g=2===d||2===p;for(r=0;r1)for(r=0;r-1&&v(t.originalEvent,n,[r.xaxis],[r.yaxis],r.id,e),i.indexOf("event")>-1&&c.click(n,t.originalEvent)}}},_.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(!t.isStatic){var a,o=e.dragmode;a=h(o)?function(e,r){(e.range={})[t.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(e,r,n){(e.lassoPoints={})[t.id]=n.filtered.map(c)};var s=t.dragOptions;t.dragOptions=i.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:a},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),d(o)||f(o)?(r.dragPan.disable(),r.on("zoomstart",t.clearSelect),t.dragOptions.prepFn=function(e,r,n){p(e,r,n,t.dragOptions,o)},l.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearSelect),t.div.onmousedown=null,t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))}function c(e){var r=t.map.unproject(e);return[r.lng,r.lat]}},_.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])},_.updateLayers=function(e){var t,r=e[this.id].layers,n=this.layerList;if(r.length!==n.length){for(t=0;t>>1;t.dtype||(t.dtype="array"),"string"===typeof t.dtype?p=new(h(t.dtype))(m):t.dtype&&(p=t.dtype,Array.isArray(p)&&(p.length=m));for(let n=0;nr||s>1073741824){for(let e=0;er+i||_>l||T=A)return;if(o===s)return;let u=v[a];void 0===s&&(s=u.length);for(let m=o;m=c&&r<=p&&n>=h&&n<=g&&M.push(t)}let f=y[a],d=f[4*o+0],x=f[4*o+1],b=f[4*o+2],w=f[4*o+3],S=function(e,t){let r=null,n=0;for(;null===r;)if(r=e[4*t+n],n++,n>e.length)return null;return r}(f,o+1),E=.5*i,L=a+1;t(r,n,E,L,d,x||b||w||S),t(r,n+E,E,L,x,b||w||S),t(r+E,n,E,L,b,w||S),t(r+E,n+E,E,L,w,S)}(0,0,1,0,0,1),M},p;function w(e,t,r){let n=1,i=.5,a=.5,o=.5;for(let s=0;s(null==t&&(t=e()),t)}r.r(n),r.d(n,{FILE:function(){return f},HTML:function(){return g},TEXT:function(){return p},URL:function(){return d}});class a{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const i=[];return r.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter((e=>e!==n))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}const o=i((()=>/firefox/i.test(navigator.userAgent))),s=i((()=>Boolean(window.safari)));class l{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:i,c3s:a}=this;let o=t.length-1;if(e===t[o])return r[o];let s,l=0,c=a.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const n=t[s];if(ne))return r[s];c=s-1}}o=Math.max(0,c);const u=e-t[o],h=u*u;return r[o]+n[o]*u+i[o]*h+a[o]*u*h}constructor(e,t){const{length:r}=e,n=[];for(let d=0;de[t]{let e=new l([0,.5,1],[h.y,h.y/d*v,h.y+v-d]).interpolate(g);return s()&&a&&(e+=(window.devicePixelRatio-1)*v),e})()}}const f="__NATIVE_FILE__",d="__NATIVE_URL__",p="__NATIVE_TEXT__",g="__NATIVE_HTML__";function m(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const v={[f]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[g]:{exposeProperties:{html:(e,t)=>m(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[d]:{exposeProperties:{urls:(e,t)=>m(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[p]:{exposeProperties:{text:(e,t)=>m(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};class y{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}function x(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(v).filter((e=>{const r=v[e];return!!(null===r||void 0===r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}class b{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){for(var t=1;t{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return w({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return w({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(n).some((t=>n[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=v[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new y(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&c(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag()},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=u(e);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,i=x(n);if(this.monitor.isDragging()){if(n&&"function"===typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=h(t,i,r,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});n.setDragImage(i,l.x,l.y)}}try{null===n||void 0===n||n.setData("application/json",{})}catch(a){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=x(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:u(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=u(e),null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(t||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})));(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0)},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):x(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:u(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new b(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}}const k=function(e,t,r){return new T(e,t,r)}},4621:function(e,t,r){"use strict";var n=r(66999),i=r(15234),a=r(23213),o=r(43848);e.exports=function(e){Array.isArray(e)&&1===e.length&&"string"===typeof e[0]&&(e=e[0]);if("string"===typeof e){if(!o(e))throw Error("String is not an SVG path.");e=n(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=i(e),!(e=a(e)).length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,s=e.length;rt[2]&&(t[2]=l[c+0]),l[c+1]>t[3]&&(t[3]=l[c+1]);return t}},4850:function(e,t,r){"use strict";var n=r(5040),i=r(61149).makeHoverPointText;e.exports={hoverPoints:function(e,t,r,a){var o=e.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(e,t,r,a);if(c&&!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var h=e.subplot,f=u.cd[u.index],d=u.trace;if(f.r=s[u.index],f.theta=l[u.index],h.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(f,d,h,u),c}}}},4860:function(e,t,r){"use strict";var n=r(56890),i=r(92704).templatedArray,a=r(24729);e.exports=i("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",a.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",a.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})},4957:function(e){"use strict";function t(e,r,n){var i=0|e[n];if(i<=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a0)return function(e,t){var r,n;for(r=new Array(e),n=0;n")?"":t.html(e).text()}));return t.remove(),r}(k),k=(k=k.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(u,"'"),i.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},5033:function(e,t,r){"use strict";var n=r(47401),i={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:#fff;","X .select-outline-2":"stroke:#000;stroke-dasharray:2px 2px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var a in i){var o=a.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,i[a])}},5040:function(e,t,r){"use strict";var n=r(62282),i=r(47401),a=r(56035);function o(e,t,r,o){var s=e.xa,l=e.ya,c=e.distance,u=e.dxy,h=e.index,f={pointNumber:h,x:t[h],y:r[h]};f.tx=Array.isArray(o.text)?o.text[h]:o.text,f.htx=Array.isArray(o.hovertext)?o.hovertext[h]:o.hovertext,f.data=Array.isArray(o.customdata)?o.customdata[h]:o.customdata,f.tp=Array.isArray(o.textposition)?o.textposition[h]:o.textposition;var d=o.textfont;d&&(f.ts=i.isArrayOrTypedArray(d.size)?d.size[h]:d.size,f.tc=Array.isArray(d.color)?d.color[h]:d.color,f.tf=Array.isArray(d.family)?d.family[h]:d.family);var p=o.marker;p&&(f.ms=i.isArrayOrTypedArray(p.size)?p.size[h]:p.size,f.mo=i.isArrayOrTypedArray(p.opacity)?p.opacity[h]:p.opacity,f.mx=i.isArrayOrTypedArray(p.symbol)?p.symbol[h]:p.symbol,f.mc=i.isArrayOrTypedArray(p.color)?p.color[h]:p.color);var g=p&&p.line;g&&(f.mlc=Array.isArray(g.color)?g.color[h]:g.color,f.mlw=i.isArrayOrTypedArray(g.width)?g.width[h]:g.width);var m=p&&p.gradient;m&&"none"!==m.type&&(f.mgt=Array.isArray(m.type)?m.type[h]:m.type,f.mgc=Array.isArray(m.color)?m.color[h]:m.color);var v=s.c2p(f.x,!0),y=l.c2p(f.y,!0),x=f.mrc||1,b=o.hoverlabel;b&&(f.hbg=Array.isArray(b.bgcolor)?b.bgcolor[h]:b.bgcolor,f.hbc=Array.isArray(b.bordercolor)?b.bordercolor[h]:b.bordercolor,f.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[h]:b.font.size,f.htc=Array.isArray(b.font.color)?b.font.color[h]:b.font.color,f.htf=Array.isArray(b.font.family)?b.font.family[h]:b.font.family,f.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[h]:b.namelength);var _=o.hoverinfo;_&&(f.hi=Array.isArray(_)?_[h]:_);var w=o.hovertemplate;w&&(f.ht=Array.isArray(w)?w[h]:w);var T={};T[e.index]=f;var k=o._origX,A=o._origY,M=i.extendFlat({},e,{color:a(o,f),x0:v-x,x1:v+x,xLabelVal:k?k[h]:f.x,y0:y-x,y1:y+x,yLabelVal:A?A[h]:f.y,cd:T,distance:c,spikeDistance:u,hovertemplate:f.ht});return f.htx?M.text=f.htx:f.tx?M.text=f.tx:o.text&&(M.text=o.text),i.fillText(f,o,M),n.getComponentMethod("errorbars","hoverInfo")(f,o,M),M}e.exports={hoverPoints:function(e,t,r,n){var i,a,s,l,c,u,h,f,d,p,g=e.cd,m=g[0].t,v=g[0].trace,y=e.xa,x=e.ya,b=m.x,_=m.y,w=y.c2p(t),T=x.c2p(r),k=e.distance;if(m.tree){var A=y.p2c(w-k),M=y.p2c(w+k),S=x.p2c(T-k),E=x.p2c(T+k);i="x"===n?m.tree.range(Math.min(A,M),Math.min(x._rl[0],x._rl[1]),Math.max(A,M),Math.max(x._rl[0],x._rl[1])):m.tree.range(Math.min(A,M),Math.min(S,E),Math.max(A,M),Math.max(S,E))}else i=m.ids;var L=k;if("x"===n){var C=!!v.xperiodalignment,I=!!v.yperiodalignment;for(u=0;u=Math.min(D,P)&&w<=Math.max(D,P)?0:1/0}if(h=Math.min(O,z)&&T<=Math.max(O,z)?0:1/0}p=Math.sqrt(h*h+f*f),s=i[u]}}}else for(u=i.length-1;u>-1;u--)l=b[a=i[u]],c=_[a],h=y.c2p(l)-w,f=x.c2p(c)-T,(d=Math.sqrt(h*h+f*f))=e.length)return!1;if(void 0!==t[e[r]])return!1;t[e[r]]=!0}return!0}(r))for(t=0;t0&&(a=n.size),n.lineSpacing&&n.lineSpacing>0&&(o=n.lineSpacing),n.styletags&&n.styletags.breaklines&&(s.breaklines=!!n.styletags.breaklines),n.styletags&&n.styletags.bolds&&(s.bolds=!!n.styletags.bolds),n.styletags&&n.styletags.italics&&(s.italics=!!n.styletags.italics),n.styletags&&n.styletags.subscripts&&(s.subscripts=!!n.styletags.subscripts),n.styletags&&n.styletags.superscripts&&(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+"px",n.font].filter((function(e){return e})).join(" "),r.textAlign="start",r.textBaseline="alphabetic",r.direction="ltr",w(function(e,t,r,n,a,o){r=r.replace(/\n/g,""),r=!0===o.breaklines?r.replace(/\/g,"\n"):r.replace(/\/g," ");var s="",l=[];for(T=0;T-1?parseInt(e[1+i]):0,l=a>-1?parseInt(r[1+a]):0;s!==l&&(n=n.replace(F(),"?px "),M*=Math.pow(.75,l-s),n=n.replace("?px ",F())),A+=.25*L*(l-s)}if(!0===o.superscripts){var c=e.indexOf(p),h=r.indexOf(p),d=c>-1?parseInt(e[1+c]):0,g=h>-1?parseInt(r[1+h]):0;d!==g&&(n=n.replace(F(),"?px "),M*=Math.pow(.75,g-d),n=n.replace("?px ",F())),A-=.25*L*(g-d)}if(!0===o.bolds){var m=e.indexOf(u)>-1,y=r.indexOf(u)>-1;!m&&y&&(n=x?n.replace("italic ","italic bold "):"bold "+n),m&&!y&&(n=n.replace("bold ",""))}if(!0===o.italics){var x=e.indexOf(f)>-1,b=r.indexOf(f)>-1;!x&&b&&(n="italic "+n),x&&!b&&(n=n.replace("italic ",""))}t.font=n}for(w=0;w",a="",o=i.length,s=a.length,l=t[0]===p||t[0]===v,c=0,u=-s;c>-1&&-1!==(c=r.indexOf(i,c))&&-1!==(u=r.indexOf(a,c+o))&&!(u<=c);){for(var h=c;h=u)n[h]=null,r=r.substr(0,h)+" "+r.substr(h+1);else if(null!==n[h]){var f=n[h].indexOf(t[0]);-1===f?n[h]+=t:l&&(n[h]=n[h].substr(0,f+1)+(1+parseInt(n[h][f+1]))+n[h].substr(f+2))}var d=c+o,g=r.substr(d,u-d).indexOf(i);c=-1!==g?g:u+s}return n}function b(e,t){var r=n(e,128);return t?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function _(e,t,r,n){var i=b(e,n),a=function(e,t,r){for(var n=t.textAlign||"start",i=t.textBaseline||"alphabetic",a=[1<<30,1<<30],o=[0,0],s=e.length,l=0;l1||0===e[0])&&(e[1]>1||0===e[1])&&(e[2]>1||0===e[2])&&(!e[3]||e[3]>1))}(e)?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=null!=e[3]?e[3]:255,o&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=null!=e[3]?e[3]:1):(r[0]=i(Math.floor(255*e[0]),0,255),r[1]=i(Math.floor(255*e[1]),0,255),r[2]=i(Math.floor(255*e[2]),0,255),r[3]=null==e[3]?255:i(Math.floor(255*e[3]),0,255)),r)}},5615:function(e,t,r){"use strict";var n=r(47401),i=r(37762),a=r(26800),o=r(4024),s=r(80464);function l(e,t,r){function a(r,i){return n.coerce(e,t,o,r,i)}if(a("visible")){var l=a("path"),c=a("type",l?"path":"rect");"path"!==t.type&&delete t.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule"),a("line.width")&&(a("line.color"),a("line.dash"));for(var u=a("xsizemode"),h=a("ysizemode"),f=["x","y"],d=0;d<2;d++){var p,g,m,v=f[d],y=v+"anchor",x="x"===v?u:h,b={_fullLayout:r},_=i.coerceRef(e,t,b,v,void 0,"paper");if("range"===i.getRefType(_)?((p=i.getFromId(b,_))._shapeIndices.push(t._index),m=s.rangeToShapePosition(p),g=s.shapePositionToRange(p)):g=m=n.identity,"path"!==c){var w=v+"0",T=v+"1",k=e[w],A=e[T];e[w]=g(e[w],!0),e[T]=g(e[T],!0),"pixel"===x?(a(w,0),a(T,10)):(i.coercePosition(t,b,a,_,w,.25),i.coercePosition(t,b,a,_,T,.75)),t[w]=m(t[w]),t[T]=m(t[T]),e[w]=k,e[T]=A}if("pixel"===x){var M=e[y];e[y]=g(e[y],!0),i.coercePosition(t,b,a,_,y,.25),t[y]=m(t[y]),e[y]=M}}"path"===c?a("path"):n.noneOrAll(e,t,["x0","x1","y0","y1"])}}e.exports=function(e,t){a(e,t,{name:"shapes",handleItemDefaults:l})}},5708:function(e,t,r){var n=r(13880);e.exports=function(e){return n[e]}},5738:function(e,t,r){"use strict";var n=r(47216),i=r(42837),a=r(20184).axisHoverFormat,o=r(4216).r,s=r(97451),l=r(87241).extendFlat;e.exports=l({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:l({},n.x,{impliedEdits:{xtype:"array"}}),x0:l({},n.x0,{impliedEdits:{xtype:"scaled"}}),dx:l({},n.dx,{impliedEdits:{xtype:"scaled"}}),y:l({},n.y,{impliedEdits:{ytype:"array"}}),y0:l({},n.y0,{impliedEdits:{ytype:"scaled"}}),dy:l({},n.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:l({},n.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:l({},n.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:l({},n.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:l({},n.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:l({},n.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:l({},n.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"calc",description:"Same as `text`."},transpose:{valType:"boolean",dflt:!1,editType:"calc",description:"Transposes the z data."},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's x coordinates are given by *x*","(the default behavior when `x` is provided).","If *scaled*, the heatmap's x coordinates are given by *x0* and *dx*","(the default behavior when `x` is not provided)."].join(" ")},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's y coordinates are given by *y*","(the default behavior when `y` is provided)","If *scaled*, the heatmap's y coordinates are given by *y0* and *dy*","(the default behavior when `y` is not provided)"].join(" ")},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc",description:["Picks a smoothing algorithm use to smooth `z` data."].join(" ")},hoverongaps:{valType:"boolean",dflt:!0,editType:"none",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data have hover labels associated with them."].join(" ")},connectgaps:{valType:"boolean",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array and `zsmooth` is not false;","otherwise it is defaulted to false."].join(" ")},xgap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the horizontal gap (in pixels) between bricks."},ygap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the vertical gap (in pixels) between bricks."},xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z",1),hovertemplate:o(),showlegend:l({},i.showlegend,{dflt:!1})},{transforms:void 0},s("",{cLetter:"z",autoColorDflt:!1}))},5763:function(e){"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},5829:function(e){"use strict";e.exports=function(e){if("function"!==typeof e)throw new TypeError(e+" is not a function");return e}},5950:function(e,t,r){var n=r(68570);e.exports=function(e){return n("webgl",e)}},5980:function(e,t,r){"use strict";const n=r(81128),i=r(76266),a=r(69726),o=r(14955),s=r(40973),l=r(88927),c=r(25501),u=r(91018),{float32:h,fract32:f}=r(69968),d=r(33),p=r(94947),g=r(1789);function m(e,t){if(!(this instanceof m))return new m(e,t);if("function"===typeof e?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),!(e=t.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=m.shaders.has(e)?m.shaders.get(e):m.shaders.set(e,m.createShaders(e)).get(e),this.update(t)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(e){let t,r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),n={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(e,t)=>"round"===t.join?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(e,t)=>[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(e,t)=>!t.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},i=e(a({vert:o("./rect-vert.glsl"),frag:o("./rect-frag.glsl"),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},n));try{t=e(a({cull:{enable:!0,face:"back"},vert:o("./miter-vert.glsl"),frag:o("./miter-frag.glsl"),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},n))}catch(s){t=i}return{fill:e({primitive:"triangle",elements:(e,t)=>t.triangles,offset:0,vert:o("./fill-vert.glsl"),frag:o("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(e,t)=>[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:t}},m.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(...e){e.length&&this.update(...e),this.draw()},m.prototype.draw=function(...e){return(e.length?e:this.passes).forEach(((e,t)=>{if(e&&Array.isArray(e))return this.draw(...e);"number"===typeof e&&(e=this.passes[e]),e&&e.count>1&&e.opacity&&(this.regl._refresh(),e.fill&&e.triangles&&e.triangles.length>2&&this.shaders.fill(e),e.thickness&&(e.scale[0]*e.viewport.width>m.precisionThreshold||e.scale[1]*e.viewport.height>m.precisionThreshold||"rect"===e.join||!e.join&&(e.thickness<=2||e.count>=m.maxPoints)?this.shaders.rect(e):this.shaders.miter(e)))})),this},m.prototype.update=function(e){if(!e)return;null!=e.length?"number"===typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach(((e,o)=>{let d=this.passes[o];if(void 0!==e)if(null!==e){if("number"===typeof e[0]&&(e={positions:e}),e=s(e,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),d||(this.passes[o]=d={id:o,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},e=a({},m.defaults,e)),null!=e.thickness&&(d.thickness=parseFloat(e.thickness)),null!=e.opacity&&(d.opacity=parseFloat(e.opacity)),null!=e.miterLimit&&(d.miterLimit=parseFloat(e.miterLimit)),null!=e.overlay&&(d.overlay=!!e.overlay,oe-t)),t=[],i=0,a=null!=d.hole?d.hole[0]:null;if(null!=a){let t=g(e,(e=>e>=a));e=e.slice(0,t),e.push(a)}for(let n=0;nt-a+(e[n]-i))),l=c(o,s);l=l.map((t=>t+i+(t+i{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()})),this.passes.length=0,this}},5996:function(e,t,r){"use strict";e.exports=function(e){for(var t=e.axesOptions,r=e.glplot.axesPixels,s=e.fullSceneLayout,l=[[],[],[]],c=0;c<3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/e.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/e.dataScale[c],u.range[1]=r[c].hi/e.dataScale[c],u._m=1/(e.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&&(u.range[0]-=1,u.range[1]+=1);var h=u.tickmode;if("auto"===u.tickmode){u.tickmode="linear";var f=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/f)}for(var d=n.calcTicks(u,{msUTC:!0}),p=0;p/g," "));l[c]=d,u.tickmode=h}}t.ticks=l;for(c=0;c<3;++c){o[c]=.5*(e.glplot.bounds[0][c]+e.glplot.bounds[1][c]);for(p=0;p<2;++p)t.bounds[p][c]=e.glplot.bounds[p][c]}e.contourLevels=function(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a0)return function(e){if((e=String(e)).length>100)return;var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o)return;var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return s.long?o(l=e,i,"day")||o(l,n,"hour")||o(l,r,"minute")||o(l,t,"second")||l+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=n)return Math.round(e/n)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6412:function(e,t){"use strict";t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}},6424:function(e){"use strict";e.exports=function(e,t,r){return t&&r?function(t,r,n,i,a){var o,s,l,c,u,h;t||(t=[]),r*=3,n*=3;var f=i*i,d=1-i,p=d*d,g=d*i*2,m=-3*p,v=3*(p-g),y=3*(g-f),x=3*f,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(h=0;h>8*d&255;this.pickOffset=r,i.bind();var p=i.uniforms;p.viewTransform=e,p.pickOffset=t,p.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),u.pick=function(e,t,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},u.update=function(e){var t=(e=e||{}).shape||[0,0],r=e.x||i(t[0]),o=e.y||i(t[1]),s=e.z||new Float32Array(t[0]*t[1]),l=!1!==e.zsmooth;this.xData=r,this.yData=o;var c,u,f,d,p=e.colorLevels||[0],g=e.colorValues||[0,0,0,1],m=p.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],d=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,d=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(d-u),b=t[0],_=t[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length>>>1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),A=a.mallocUint8(2*w),M=a.mallocUint32(w),S=0,E=l?b-1:b,L=l?_-1:_,C=0;C")),u.color=function(e,t){var r=e[t.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&&o)return a}(f,m),[u]}function k(e){return n(g,e,f[p+"hoverformat"])}}},6993:function(e,t,r){"use strict";r.d(t,{Q:function(){return u}});var n=r(46550),i=r(31014),a=r(42380),o=r(14159);function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let l=0;const c=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var u=(0,i.memo)((function(e){var{children:t}=e,r=s(e,["children"]);const[u,f]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=h(),r,n){const i=t;i[c]||(i[c]={dragDropManager:(0,a.b)(e,t,r,n)});return i[c]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(r);return(0,i.useEffect)((()=>{if(f){const e=h();return++l,()=>{0===--l&&(e[c]=null)}}}),[]),(0,n.jsx)(o.M.Provider,{value:u,children:t})}));function h(){return"undefined"!==typeof global?global:window}},7277:function(e,t,r){"use strict";var n=r(31575),i=r(47401),a=r(77063),o=r(9319).findExtremes,s=r(48128),l=r(28864),c=l.calcMarkerSize,u=l.calcAxisExpansion,h=l.setFirstScatter,f=r(54952),d=r(60465),p=r(92240),g=r(9405).BADNUM,m=r(47163).TOO_MANY_POINTS;function v(e,t,r){var n=e._extremes[t._id],i=o(t,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(e,t){var r,o=e._fullLayout,l=a.getFromId(e,t.xaxis),y=a.getFromId(e,t.yaxis),x=o._plots[t.xaxis+t.yaxis],b=t._length,_=b>=m,w=2*b,T={},k=l.makeCalcdata(t,"x"),A=y.makeCalcdata(t,"y"),M=s(t,l,"x",k),S=s(t,y,"y",A),E=M.vals,L=S.vals;t._x=E,t._y=L,t.xperiodalignment&&(t._origX=k,t._xStarts=M.starts,t._xEnds=M.ends),t.yperiodalignment&&(t._origY=A,t._yStarts=S.starts,t._yEnds=S.ends);var C=new Array(w),I=new Array(b);for(r=0;r1&&i.extendFlat(s.line,d.linePositions(e,r,n));if(s.errorX||s.errorY){var l=d.errorBarPositions(e,r,n,a,o);s.errorX&&i.extendFlat(s.errorX,l.x),s.errorY&&i.extendFlat(s.errorY,l.y)}s.text&&(i.extendFlat(s.text,{positions:n},d.textPosition(e,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},d.textPosition(e,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},d.textPosition(e,r,s.text,s.markerUnsel)));return s}(e,0,t,C,E,L),O=p(e,x);return h(o,t),_?P.marker&&(D=P.marker.sizeAvg||Math.max(P.marker.size,3)):D=c(t,b),u(e,t,l,y,E,L,D),P.errorX&&v(t,l,P.errorX),P.errorY&&v(t,y,P.errorY),P.fill&&!O.fill2d&&(O.fill2d=!0),P.marker&&!O.scatter2d&&(O.scatter2d=!0),P.line&&!O.line2d&&(O.line2d=!0),!P.errorX&&!P.errorY||O.error2d||(O.error2d=!0),P.text&&!O.glText&&(O.glText=!0),P.marker&&(P.marker.snap=b),O.lineOptions.push(P.line),O.errorXOptions.push(P.errorX),O.errorYOptions.push(P.errorY),O.fillOptions.push(P.fill),O.markerOptions.push(P.marker),O.markerSelectedOptions.push(P.markerSel),O.markerUnselectedOptions.push(P.markerUnsel),O.textOptions.push(P.text),O.textSelectedOptions.push(P.textSel),O.textUnselectedOptions.push(P.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),T._scene=O,T.index=O.count,T.x=E,T.y=L,T.positions=C,O.count++,[{x:!1,y:!1,t:T,trace:t}]}},7287:function(e,t,r){"use strict";e.exports=function(e,t){for(var r=0|t.length,i=e.length,a=[new Array(r),new Array(r)],o=0;o0){o=a[u][r][0],l=u;break}s=o[1^l];for(var h=0;h<2;++h)for(var f=a[h][r],d=0;d0&&(o=p,s=g,l=h)}return i||o&&c(o,l),s}function h(e,r){var i=a[r][e][0],o=[e];c(i,r);for(var s=i[1^r];;){for(;s!==e;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][e].length+a[1][e].length===0)break;var l=o[o.length-1],h=e,f=o[1],d=u(l,h,!0);if(n(t[l],t[h],t[f],t[d])<0)break;o.push(e),s=u(l,h)}return o}function f(e,t){return t[1]===t[t.length-1]}for(o=0;o0;){a[0][o].length;var g=h(o,d);f(0,g)?p.push.apply(p,g):(p.length>0&&l.push(p),p=g)}p.length>0&&l.push(p)}return l};var n=r(29269)},7327:function(e,t,r){"use strict";var n=r(77063).list,i=r(9319).getAutoRange,a=r(8204);e.exports=function(e){for(var t=n(e,"x",!0),r=0;r0&&(a=!0);for(var l=0;l=0;--c)l.point((p=d[c])[0],p[1]);else o(m.x,m.p.x,-1,l);m=m.p}d=(m=m.o).z,v=!v}while(!m.v);l.lineEnd()}}}function s(e){if(t=e.length){for(var t,r,n=0,i=e[0];++nnew l(e,t)),[t]);return(0,s.useEffect)((()=>{r.spec=e}),[e]),r}(e,t),h=function(e){const{accept:t}=e;return(0,s.useMemo)((()=>((0,o.V)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,a.E)((function(){const[e,i]=(0,n.l)(h,u,c);return t.receiveHandlerId(e),r.receiveHandlerId(e),i}),[c,t,u,r,h.map((e=>e.toString())).join("|")])}var u=r(82498);let h=!1;class f{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,o.V)(!h,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return h=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{h=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var d=r(45737),p=r(92306),g=r(32888);class m{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,d.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,p.i)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,g.i)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var v=r(86520);function y(e){return(0,s.useMemo)((()=>e.hooks.dropTarget()),[e])}function x(e,t){const r=(0,u.I)(e,t),n=function(){const e=(0,i.u)();return(0,s.useMemo)((()=>new f(e)),[e])}(),o=function(e){const t=(0,i.u)(),r=(0,s.useMemo)((()=>new m(t.getBackend())),[t]);return(0,a.E)((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return c(r,n,o),[(0,v.j)(r.collect,n,o),y(o)]}},7899:function(e){"use strict";function t(e,t){var r=new Error(e);return r.code=t,r}function r(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function n(e,r,n){this.input=e.subarray(r,n),this.start=r;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==i&&"MM\0*"!==i)throw t("invalid TIFF signature","EBADDATA");this.big_endian="M"===i[0]}n.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}},n.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?256*r[e]+r[e+1]:r[e]+256*r[e+1]},n.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw t("unexpected EOF","EBADDATA");return this.big_endian?16777216*r[e]+65536*r[e+1]+256*r[e+2]+r[e+3]:r[e]+256*r[e+1]+65536*r[e+2]+16777216*r[e+3]},n.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},n.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},n.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t];case 6:return(r=this.input[t])|33554430*(128&r);case 3:return r=this.read_uint16(t);case 8:return(r=this.read_uint16(t))|131070*(32768&r);case 4:return r=this.read_uint32(t);case 9:return 0|(r=this.read_uint32(t));default:return null}},n.prototype.scan_ifd=function(e,n,i){var a=this.read_uint16(n);n+=2;for(var o=0;othis.input.length)throw t("unexpected EOF","EBADDATA");for(var p=[],g=f,m=0;m0&&(this.ifds_to_read.push({id:s,offset:p[0]}),d=!0),!1===i({is_big_endian:this.big_endian,ifd:e,tag:s,format:l,count:c,entry_offset:n+this.start,data_length:h,data_offset:f+this.start,value:p,is_subifd_link:d}))return void(this.aborted=!0);n+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(n)})},e.exports.ExifParser=n,e.exports.get_orientation=function(e){var t=0;try{return new n(e,0,e.length).each((function(e){if(0===e.ifd&&274===e.tag&&Array.isArray(e.value))return t=e.value[0],!1})),t}catch(r){return-1}}},7908:function(e){"use strict";e.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},8036:function(e,t,r){"use strict";r.d(t,{A:function(){return a}});var n=new Date,i=new Date;function a(e,t,r,o){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},s.round=function(e){var t=s(e),r=s.ceil(e);return e-t0))return o;do{o.push(a=new Date(+r)),t(r,i),e(r)}while(a=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(s.count=function(t,a){return n.setTime(+t),i.setTime(+a),e(n),e(i),Math.floor(r(n,i))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(o?function(t){return o(t)%e===0}:function(t){return s.count(0,t)%e===0}):s:null}),s}},8073:function(e){"use strict";function t(e,t,r,n,i,a){var o=["function ",e,"(a,l,h,",n.join(","),"){",a?"":"var i=",r?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",i?".get(m)":"[m]"];return a?t.indexOf("c")<0?o.push(";if(x===y){return m}else if(x<=y){"):o.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):o.push(";if(",t,"){i=m;"),r?o.push("l=m+1}else{h=m-1}"):o.push("h=m-1}else{l=m+1}"),o.push("}"),a?o.push("return -1};"):o.push("return i};"),o.join("")}function r(e,r,n,i){return new Function([t("A","x"+e+"y",r,["y"],!1,i),t("B","x"+e+"y",r,["y"],!0,i),t("P","c(x,y)"+e+"0",r,["y","c"],!1,i),t("Q","c(x,y)"+e+"0",r,["y","c"],!0,i),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""))()}e.exports={ge:r(">=",!1,"GE"),gt:r(">",!1,"GT"),lt:r("<",!0,"LT"),le:r("<=",!0,"LE"),eq:r("-",!0,"EQ",!0)}},8084:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(l){i=!0,a=l}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),c.vert=f(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(palette,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),m&&(c.frag=c.frag.replace("smoothstep","smoothStep"),l.frag=l.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(c)}b.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nn)?t.tree=u(e,{bounds:h}):n&&n.length&&(t.tree=n),t.tree){var f={primitive:"points",usage:"static",data:t.tree,type:"uint32"};t.elements?t.elements(f):t.elements=o.elements(f)}return i({data:v.float(e),usage:"dynamic"}),a({data:v.fract(e),usage:"dynamic"}),s({data:new Uint8Array(c),type:"uint8",usage:"stream"}),e}},{marker:function(t,r,n){var i=r.activation;if(i.forEach((function(e){return e&&e.destroy&&e.destroy()})),i.length=0,t&&"number"!==typeof t[0]){for(var a=[],s=0,l=Math.min(t.length,r.count);s=0)return a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)t=e;else{t=new Uint8Array(e.length);for(var o=0,s=e.length;o4*n&&(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*e.length/t);if(n>1)for(var i=.25*(e=e.slice()).length%t;i0){r=p[n];break}return r}function y(e,t){if(!(e<1||t<1)){for(var r=m(e),n=m(t),i=1,a=0;a_;)r--,r/=v(r),++r1?n:1},d.refineCoords=function(e){for(var t=this.dataScaleX,r=this.dataScaleY,n=e[0].shape[0],a=e[0].shape[1],o=0|Math.floor(e[0].shape[0]*t+1),s=0|Math.floor(e[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),h=[1/t,0,0,0,1/r,0,0,0,1],f=0;f0&&null!==this.contourStart[e]&&null!==this.contourEnd[e]&&this.contourEnd[e]>this.contourStart[e]))for(i[e]=!0,t=this.contourStart[e];ta&&(this.minValues[t]=a),this.maxValues[t]=0&&(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(e*t*a),s=o+"";if(s.indexOf("e")>=0)return s;var l=o/a,c=o%a;o<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=""+l;if(o<0&&(u="-"+u),i){for(var h=""+c;h.length=e[0][i];--o)a.push({x:o*t[i],text:r(t[i],o)});n.push(a)}return n},t.equal=function(e,t){for(var r=0;r<3;++r){if(e[r].length!==t[r].length)return!1;for(var n=0;n19||r>0&&n<0)throw"Invalid Mayan year";t=20*t+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate).day()},weekDay:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){var t=o((e-=this.jdEpoch)+8+340,365);return[Math.floor(t/20)+1,o(t,20)]},_toTzolkin:function(e){return[s((e-=this.jdEpoch)+20,20),s(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}}),n.calendars.mayan=a},8559:function(e){e.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},8644:function(e,t,r){"use strict";var n=r(47401),i=r(94060),a=r(12899);e.exports=function(e,t,r,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("locations"),c=s("z"),u=s("geojson");n.isArrayOrTypedArray(l)&&l.length&&n.isArrayOrTypedArray(c)&&c.length&&("string"===typeof u&&""!==u||n.isPlainObject(u))?(s("featureidkey"),t._length=Math.min(l.length,c.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("marker.line.width")&&s("marker.line.color"),s("marker.opacity"),i(e,t,o,s,{prefix:"",cLetter:"z"}),n.coerceSelectionMarkerOpacity(t,s)):t.visible=!1}},8695:function(e,t,r){var n=r(97615),i=r(69726);function a(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()<0?t.year()+1:t.year())%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5)+1524,r=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((t-n)/30.6001),a=i-Math.floor(i<14?1:13),o=r-Math.floor(a>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,a,s)}}),n.calendars.julian=a},8757:function(e,t,r){"use strict";var n=r(62258),i=r(91771),a=r(83491),o=r(47401),s=r(31454),l=r(39257).isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function h(e){var t,r,n,i=e._colorAx,a=i||e,o={};for(r=0;r=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function p(e,t){t=t||{};for(var r=e.domain,o=e.range,l=o.length,c=new Array(l),u=0;u0&&((T=E-s(x)-l(b))>L?k/T>C&&(_=x,w=b,C=k/T):k/E>C&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},C=k/E));if(f===g){var I=f-1,D=f+1;if(M)if(0===f)i=[0,1];else{var P=(f>0?h:u).reduce((function(e,t){return Math.max(e,l(t))}),0),O=f/(1-Math.min(.5,P/E));i=f>0?[0,O]:[O,0]}else i=S?[Math.max(0,I),Math.max(1,D)]:[I,D]}else M?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):S&&(_.val-C*s(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),C=(w.val-_.val-d(t,x.val,b.val))/(E-s(_)-l(w)),i=[_.val-C*s(_),w.val+C*l(w)];return v&&i.reverse(),a.simpleMap(i,t.l2r||Number)}function d(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),E=A(r.vpadplus||r.vpad),L=A(r.vpadminus||r.vpad);if(!T){if(f=1/0,d=-1/0,w)for(n=0;n0&&(f=a),a>d&&a-o&&(f=a),a>d&&a=D;n--)I(n);return{min:p,max:g,opts:r}},concatExtremes:m};var g=3;function m(e,t,r){var n,i,a,o=t._id,s=e._fullData,l=e._fullLayout,c=[],h=[];function f(e,t){for(n=0;n=r&&(c.extrapad||!o)){s=!1;break}i(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(l,1),l--)}if(s){var u=a&&0===t;e.push({val:t,pad:u?0:r,extrapad:!u&&o})}}function b(e){return i(e)&&Math.abs(e)=t}},9405:function(e){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},9438:function(e,t,r){var n=r(79810),i=r(14955),a=i("./perspective.glsl"),o=i("./orthographic.glsl"),s=i("./projection.glsl"),l=i("./draw-fragment.glsl"),c=i("./pick-fragment.glsl"),u=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],h={vertex:a,fragment:l,attributes:u},f={vertex:o,fragment:l,attributes:u},d={vertex:s,fragment:l,attributes:u},p={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(e,t){var r=n(e,t),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}t.createPerspective=function(e){return v(e,h)},t.createOrtho=function(e){return v(e,f)},t.createProject=function(e){return v(e,d)},t.createPickPerspective=function(e){return v(e,p)},t.createPickOrtho=function(e){return v(e,g)},t.createPickProject=function(e){return v(e,m)}},9636:function(e,t,r){"use strict";var n=r(62258),i=r(21661),a=r(52783),o=r(82559),s=r(15696).makeDragBox,l=r(56890).DRAGGERSIZE;t.initInteractions=function(e){var r=e._fullLayout;if(e._context.staticPlot)n.select(e).selectAll(".drag").remove();else if(r._has("cartesian")||r._has("splom")){Object.keys(r._plots||{}).sort((function(e,t){if((r._plots[e].mainplot&&!0)===(r._plots[t].mainplot&&!0)){var n=e.split("y"),i=t.split("y");return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return r._plots[e].mainplot?1:-1})).forEach((function(t){var n=r._plots[t],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(e,n,o._offset,c._offset,o._length,c._length,"ns","ew");u.onmousemove=function(r){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&i.hover(e,r,t)},i.hover(e,r,t),e._fullLayout._lasthover=u,e._fullLayout._hoversubplot=t},u.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,a.unhover(e,t))},e._context.showAxisDragHandles&&(s(e,n,o._offset-l,c._offset-l,l,l,"n","w"),s(e,n,o._offset+o._length,c._offset-l,l,l,"n","e"),s(e,n,o._offset-l,c._offset+c._length,l,l,"s","w"),s(e,n,o._offset+o._length,c._offset+c._length,l,l,"s","e"))}if(e._context.showAxisDragHandles){if(t===o._mainSubplot){var h=o._mainLinePosition;"top"===o.side&&(h-=l),s(e,n,o._offset+.1*o._length,h,.8*o._length,l,"","ew"),s(e,n,o._offset,h,.1*o._length,l,"","w"),s(e,n,o._offset+.9*o._length,h,.1*o._length,l,"","e")}if(t===c._mainSubplot){var f=c._mainLinePosition;"right"!==c.side&&(f-=l),s(e,n,f,c._offset+.1*c._length,l,.8*c._length,"ns",""),s(e,n,f,c._offset+.9*c._length,l,.1*c._length,"s",""),s(e,n,f,c._offset,l,.1*c._length,"n","")}}}));var o=r._hoverlayer.node();o.onmousemove=function(t){t.target=e._fullLayout._lasthover,i.hover(e,t,r._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,i.click(e,t)},o.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},t.updateFx(e)}},t.updateFx=function(e){var t=e._fullLayout,r="pan"===t.dragmode?"move":"crosshair";o(t._draggers,r)}},9663:function(e){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},9746:function(e,t,r){"use strict";var n=r(62258);e.exports={circle:{n:0,f:function(e){var t=n.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=n.round(.4*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H"+t+"V"+r+"H-"+t+"V"+t+"H-"+r+"V-"+t+"H-"+t+"V-"+r+"H"+t+"V-"+t+"H"+r+"Z"}},x:{n:4,f:function(e){var t=n.round(.8*e/Math.sqrt(2),2),r="l"+t+","+t,i="l"+t+",-"+t,a="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+r+i+a+i+a+o+a+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+","+n.round(e/2,2)+"H"+t+"L0,-"+n.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+n.round(e/2,2)+"H"+t+"L0,"+n.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M"+n.round(e/2,2)+",-"+t+"V"+t+"L-"+n.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+n.round(e/2,2)+",-"+t+"V"+t+"L"+n.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+r+",-"+t+"H"+t+"V"+r+"Z"}},"triangle-se":{n:10,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+t+",-"+r+"V"+t+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H-"+t+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+t+","+r+"V-"+t+"H"+r+"Z"}},pentagon:{n:13,f:function(e){var t=n.round(.951*e,2),r=n.round(.588*e,2),i=n.round(-e,2),a=n.round(-.309*e,2);return"M"+t+","+a+"L"+r+","+n.round(.809*e,2)+"H-"+r+"L-"+t+","+a+"L0,"+i+"Z"}},hexagon:{n:14,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),i=n.round(e*Math.sqrt(3)/2,2);return"M"+i+",-"+r+"V"+r+"L0,"+t+"L-"+i+","+r+"V-"+r+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),i=n.round(e*Math.sqrt(3)/2,2);return"M-"+r+","+i+"H"+r+"L"+t+",0L"+r+",-"+i+"H-"+r+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=n.round(.924*e,2),r=n.round(.383*e,2);return"M-"+r+",-"+t+"H"+r+"L"+t+",-"+r+"V"+r+"L"+r+","+t+"H-"+r+"L-"+t+","+r+"V-"+r+"Z"}},star:{n:17,f:function(e){var t=1.4*e,r=n.round(.225*t,2),i=n.round(.951*t,2),a=n.round(.363*t,2),o=n.round(.588*t,2),s=n.round(-t,2),l=n.round(-.309*t,2),c=n.round(.118*t,2),u=n.round(.809*t,2);return"M"+r+","+l+"H"+i+"L"+a+","+c+"L"+o+","+u+"L0,"+n.round(.382*t,2)+"L-"+o+","+u+"L-"+a+","+c+"L-"+i+","+l+"H-"+r+"L0,"+s+"Z"}},hexagram:{n:18,f:function(e){var t=n.round(.66*e,2),r=n.round(.38*e,2),i=n.round(.76*e,2);return"M-"+i+",0l-"+r+",-"+t+"h"+i+"l"+r+",-"+t+"l"+r+","+t+"h"+i+"l-"+r+","+t+"l"+r+","+t+"h-"+i+"l-"+r+","+t+"l-"+r+",-"+t+"h-"+i+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),i=n.round(1.6*e,2),a=n.round(4*e,2),o="A "+a+","+a+" 0 0 1 ";return"M-"+t+","+r+o+t+","+r+o+"0,-"+i+o+"-"+t+","+r+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),i=n.round(1.6*e,2),a=n.round(4*e,2),o="A "+a+","+a+" 0 0 1 ";return"M"+t+",-"+r+o+"-"+t+",-"+r+o+"0,"+i+o+t+",-"+r+"Z"}},"star-square":{n:21,f:function(e){var t=n.round(1.1*e,2),r=n.round(2*e,2),i="A "+r+","+r+" 0 0 1 ";return"M-"+t+",-"+t+i+"-"+t+","+t+i+t+","+t+i+t+",-"+t+i+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=n.round(1.4*e,2),r=n.round(1.9*e,2),i="A "+r+","+r+" 0 0 1 ";return"M-"+t+",0"+i+"0,"+t+i+t+",0"+i+"0,-"+t+i+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=n.round(.7*e,2),r=n.round(1.4*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=n.round(1.4*e,2),r=n.round(.7*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=n.round(e,2),r=n.round(e/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=n.round(1.3*e,2),r=n.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=n.round(1.2*e,2),r=n.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=n.round(e/2,2),r=n.round(e,2);return"M"+t+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+t+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),i=n.round(.8*e,2);return"M-"+t+","+i+"L0,0M"+t+","+i+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),i=n.round(.8*e,2);return"M-"+t+",-"+i+"L0,0M"+t+",-"+i+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),i=n.round(.8*e,2);return"M"+i+","+t+"L0,0M"+i+",-"+t+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),i=n.round(.8*e,2);return"M-"+i+","+t+"L0,0M-"+i+",-"+t+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=n.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=n.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L-"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L-"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},9766:function(e,t,r){"use strict";var n=r(47401),i=r(62282),a=r(31454),o=r(75781),s=r(18878).handleGroupingDefaults,l=r(60210),c=r(69089);function u(e,t,r,a){function o(e){var t=0;return e&&e.length&&(t+=1,n.isArrayOrTypedArray(e[0])&&e[0].length&&(t+=1)),t}function s(t){return n.validate(e[t],c[t])}var u,h=r("y"),f=r("x");if("box"===t.type){var d=r("q1"),p=r("median"),g=r("q3");t._hasPreCompStats=d&&d.length&&p&&p.length&&g&&g.length,u=Math.min(n.minRowLength(d),n.minRowLength(p),n.minRowLength(g))}var m,v,y=o(h),x=o(f),b=y&&n.minRowLength(h),_=x&&n.minRowLength(f),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(t._hasPreCompStats)switch(String(x)+String(y)){case"00":var k=s("x0")||s("dx");m=(s("y0")||s("dy"))&&!k?"h":"v",v=u;break;case"10":m="v",v=Math.min(u,_);break;case"20":m="h",v=Math.min(u,f.length);break;case"01":m="h",v=Math.min(u,b);break;case"02":m="v",v=Math.min(u,h.length);break;case"12":m="v",v=Math.min(u,_,h.length);break;case"21":m="h",v=Math.min(u,f.length,b);break;case"11":v=0;break;case"22":var A,M=!1;for(A=0;A0?(m="v",v=x>0?Math.min(_,b):Math.min(b)):x>0?(m="h",v=Math.min(_)):v=0;if(v){t._length=v;var S=r("orientation",m);t._hasPreCompStats?"v"===S&&0===x?(r("x0",0),r("dx",1)):"h"===S&&0===y&&(r("y0",0),r("dy",1)):"v"===S&&0===x?r("x0"):"h"===S&&0===y&&r("y0"),i.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],a)}else t.visible=!1}function h(e,t,r,i){var a=i.prefix,o=n.coerce2(e,t,c,"marker.outliercolor"),s=r("marker.line.outliercolor"),l="outliers";t._hasPreCompStats?l="all":(o||s)&&(l="suspectedoutliers");var u=r(a+"points",l);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var h=r("hoveron");"all"!==h&&-1===h.indexOf("points")||r("hovertemplate"),n.coerceSelectionMarkerOpacity(t,r)}e.exports={supplyDefaults:function(e,t,r,i){function s(r,i){return n.coerce(e,t,c,r,i)}if(u(e,t,s,i),!1!==t.visible){o(e,t,i,s),s("xhoverformat"),s("yhoverformat");var l=t._hasPreCompStats;l&&(s("lowerfence"),s("upperfence")),s("line.color",(e.marker||{}).color||r),s("line.width"),s("fillcolor",a.addOpacity(t.line.color,.5));var f=!1;if(l){var d=s("mean"),p=s("sd");d&&d.length&&(f=!0,p&&p.length&&(f="sd"))}s("boxmean",f),s("whiskerwidth"),s("width"),s("quartilemethod");var g=!1;if(l){var m=s("notchspan");m&&m.length&&(g=!0)}else n.validate(e.notchwidth,c.notchwidth)&&(g=!0);s("notched",g)&&s("notchwidth"),h(e,t,s,{prefix:"box"})}},crossTraceDefaults:function(e,t){var r,i;function a(e){return n.coerce(i._input,i,c,e)}for(var o=0;o=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function D(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"===typeof t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),I(e,t,"currentIndices"),"undefined"===typeof r||Array.isArray(r)||(r=[r]),"undefined"!==typeof r&&I(e,r,"newIndices"),"undefined"!==typeof r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function P(e,t,r,n,a){!function(e,t,r,n){var i=o.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if("undefined"===typeof r)throw new Error("indices must be an integer or array of integers");for(var a in I(e,r,"indices"),t){if(!Array.isArray(t[a])||t[a].length!==r.length)throw new Error("attribute "+a+" must be an array of length equal to indices array length");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==t[a].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,r,n);for(var l=function(e,t,r,n){var a,l,c,u,h,f=o.isPlainObject(n),d=[];for(var p in Array.isArray(r)||(r=[r]),r=C(r,e.data.length-1),t)for(var g=0;g-1?l(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?l(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?l(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&l(r,r.replace("titleoffset","title.offset")):l(r,r.replace("title","title.text"));function l(t,r){e[r]=e[t],delete e[t]}}function U(e,t,r){e=o.getGraphDiv(e),_.clearPromiseQueue(e);var n={};if("string"===typeof t)n[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();n=o.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var i=Y(e,n),a=i.flags;a.calc&&(e.calcdata=void 0);var s=[f.previousPromises];a.layoutReplot?s.push(w.layoutReplot):Object.keys(n).length&&(V(e,a,i)||f.supplyDefaults(e),a.legend&&s.push(w.doLegend),a.layoutstyle&&s.push(w.layoutStyles),a.axrange&&q(s,i.rangesAltered),a.ticks&&s.push(w.doTicksRelayout),a.modebar&&s.push(w.doModeBar),a.camera&&s.push(w.doCamera),a.colorbars&&s.push(w.doColorBars),s.push(M)),s.push(f.rehover,f.redrag),c.add(e,U,[e,i.undoit],U,[e,i.redoit]);var l=o.syncOrAsync(s,e);return l&&l.then||(l=Promise.resolve(e)),l.then((function(){return e.emit("plotly_relayout",i.eventData),e}))}function V(e,t,r){var n=e._fullLayout;if(!t.axrange)return!1;for(var i in t)if("axrange"!==i&&t[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=e.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&&(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function q(e,t){var r=t?function(e){var r=[],n=!0;for(var i in t){var a=d.getFromId(e,i);if(r.push(i),-1!==(a.ticklabelposition||"").indexOf("inside")&&a._anchorAxis&&r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)t[o]||r.push(o);a.automargin&&(n=!1)}return d.draw(e,r,{skipTitle:n})}:function(e){return d.draw(e,"redraw")};e.push(y,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var H=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,G=/^[xyz]axis[0-9]*\.autorange$/,W=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Y(e,t){var r,n,i,a=e.layout,l=e._fullLayout,c=l._guiEditing,f=F(l._preGUI,c),p=Object.keys(t),g=d.list(e),m=o.extendDeepAll({},t),v={};for(B(t),p=Object.keys(t),n=0;n0&&"string"!==typeof P.parts[z];)z--;var j=P.parts[z],N=P.parts[z-1]+"."+j,U=P.parts.slice(0,z).join("."),V=s(e.layout,U).get(),q=s(l,U).get(),Y=P.get();if(void 0!==O){M[D]=O,S[D]="reverse"===j?O:R(Y);var X=h.getLayoutValObject(l,P.parts);if(X&&X.impliedEdits&&null!==O)for(var K in X.impliedEdits)E(o.relativeAttr(D,K),X.impliedEdits[K]);if(-1!==["width","height"].indexOf(D))if(O){E("autosize",null);var J="height"===D?"width":"height";E(J,l[J])}else l[D]=e._initialAutoSize[D];else if("autosize"===D)E("width",O?null:l.width),E("height",O?null:l.height);else if(N.match(H))I(N),s(l,U+"._inputRange").set(null);else if(N.match(G)){I(N),s(l,U+"._inputRange").set(null);var Q=s(l,U).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else N.match(W)&&s(l,U+"._inputDomain").set(null);if("type"===j){L=V;var $="linear"===q.type&&"log"===O,ee="log"===q.type&&"linear"===O;if($||ee){if(L&&L.range)if(q.autorange)$&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var te=L.range[0],re=L.range[1];$?(te<=0&&re<=0&&E(U+".autorange",!0),te<=0?te=re/1e6:re<=0&&(re=te/1e6),E(U+".range[0]",Math.log(te)/Math.LN10),E(U+".range[1]",Math.log(re)/Math.LN10)):(E(U+".range[0]",Math.pow(10,te)),E(U+".range[1]",Math.pow(10,re)))}else E(U+".autorange",!0);Array.isArray(l._subplots.polar)&&l._subplots.polar.length&&l[P.parts[0]]&&"radialaxis"===P.parts[1]&&delete l[P.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,q,O,E),u.getComponentMethod("images","convertCoords")(e,q,O,E)}else E(U+".autorange",!0),E(U+".range",null);s(l,U+"._inputRange").set(null)}else if(j.match(k)){var ne=s(l,D).get(),ie=(O||{}).type;ie&&"-"!==ie||(ie="linear"),u.getComponentMethod("annotations","convertCoords")(e,ne,ie,E),u.getComponentMethod("images","convertCoords")(e,ne,ie,E)}var ae=b.containerArrayMatch(D);if(ae){r=ae.array,n=ae.index;var oe=ae.property,se=X||{editType:"calc"};""!==n&&""===oe&&(b.isAddVal(O)?S[D]=null:b.isRemoveVal(O)?S[D]=(s(a,r).get()||[])[n]:o.warn("unrecognized full object value",t)),T.update(A,se),v[r]||(v[r]={});var le=v[r][n];le||(le=v[r][n]={}),le[oe]=O,delete t[D]}else"reverse"===j?(V.range?V.range.reverse():(E(U+".autorange",!0),V.range=[1,0]),q.autorange?A.calc=!0:A.plot=!0):(l._has("scatter-like")&&l._has("regl")&&"dragmode"===D&&("lasso"===O||"select"===O)&&"lasso"!==Y&&"select"!==Y||l._has("gl2d")?A.plot=!0:X?T.update(A,X):A.calc=!0,P.set(O))}}for(r in v){b.applyContainerArrayChanges(e,f(a,r),v[r],A,f)||(A.plot=!0)}for(var ce in C){var ue=(L=d.getFromId(e,ce))&&L._constraintGroup;if(ue)for(var he in A.calc=!0,ue)C[he]||(d.getFromId(e,he)._constraintShrinkable=!0)}return(Z(e)||t.height||t.width)&&(A.plot=!0),(A.plot||A.calc)&&(A.layoutReplot=!0),{flags:A,rangesAltered:C,undoit:S,redoit:M,eventData:m}}function Z(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&f.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function X(e,r,n,i){e=o.getGraphDiv(e),_.clearPromiseQueue(e),o.isPlainObject(r)||(r={}),o.isPlainObject(n)||(n={}),Object.keys(r).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var a=_.coerceTraceIndices(e,i),s=N(e,o.extendFlat({},r),a),l=s.flags,u=Y(e,o.extendFlat({},n)),h=u.flags;(l.calc||h.calc)&&(e.calcdata=void 0),l.clearAxisTypes&&_.clearAxisTypes(e,a,n);var d=[];h.layoutReplot?d.push(w.layoutReplot):l.fullReplot?d.push(t._doPlot):(d.push(f.previousPromises),V(e,h,u)||f.supplyDefaults(e),l.style&&d.push(w.doTraceStyle),(l.colorbars||h.colorbars)&&d.push(w.doColorBars),h.legend&&d.push(w.doLegend),h.layoutstyle&&d.push(w.layoutStyles),h.axrange&&q(d,u.rangesAltered),h.ticks&&d.push(w.doTicksRelayout),h.modebar&&d.push(w.doModeBar),h.camera&&d.push(w.doCamera),d.push(M)),d.push(f.rehover,f.redrag),c.add(e,X,[e,s.undoit,u.undoit,s.traces],X,[e,s.redoit,u.redoit,s.traces]);var p=o.syncOrAsync(d,e);return p&&p.then||(p=Promise.resolve(e)),p.then((function(){return e.emit("plotly_update",{data:s.eventData,layout:u.eventData}),e}))}function K(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var J=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Q=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function $(e,t){for(var r=0;r1;)if(n.pop(),void 0!==(r=s(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function te(e,t){for(var r=0;r=i.length?i[0]:i[e]:i}function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(a,u){function h(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var t=n._currentFrame=n._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=t.frameOpts.duration,f.transition(e,t.frame.data,t.frame.layout,_.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function d(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var t=function(){n._animationRaf=window.requestAnimationFrame(t),Date.now()-n._lastFrameAt>n._timeToNext&&h()};t()}var p,g,m=0;function v(e){return Array.isArray(i)?m>=i.length?e.transitionOpts=i[m]:e.transitionOpts=i[0]:e.transitionOpts=i,m++,e}var y=[],x=void 0===t||null===t,b=Array.isArray(t);if(!x&&!b&&o.isPlainObject(t))y.push({type:"object",data:v(o.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&kk)&&A.push(g);y=A}}y.length>0?function(t){if(0!==t.length){for(var i=0;i=0;n--)if(o.isPlainObject(t[n])){var g=t[n].name,m=(u[g]||p[g]||{}).name,v=t[n].name,y=u[m]||p[m];m&&v&&"number"===typeof v&&y&&A<5&&(A++,o.warn('addFrames: overwriting frame "'+(u[m]||p[m]).name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===A&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),p[g]={name:g},d.push({frame:f.supplyFrameDefaults(t[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:h+n})}d.sort((function(e,t){return e.index>t.index?-1:e.index=0;n--){if("number"===typeof(i=d[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),s.unshift({type:"insert",index:n,value:i[n]});var l=f.modifyFrames,u=f.modifyFrames,h=[e,s],d=[e,a];return c&&c.add(e,l,h,u,d),f.modifyFrames(e,a)},t.addTraces=function e(r,n,i){r=o.getGraphDiv(r);var a,s,l=[],u=t.deleteTraces,h=e,f=[r,l],d=[r,n];for(function(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"===typeof t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&r=0&&rMath.abs(t))c.rotate(a,0,0,-e*r*Math.PI*p.rotateSpeed/window.innerWidth);else if(!p._ortho){var o=-p.zoomSpeed*i*t/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,h*(Math.exp(o)-1))}}}),!0)},p.enableMouseListeners(),p};var n=r(94390),i=r(40493),a=r(46744),o=r(67711),s=r(17481),l=r(473)},9827:function(e,t,r){var n=r(11075),i=r(45539),a=r(39837),o=r(71478),s=r(73453),l=h(),c=h(),u=h();function h(){return{translate:f(),scale:f(1),skew:f(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function f(e){return[e||0,e||0,e||0]}e.exports=function(e,t,r,h){if(0===o(t)||0===o(r))return!1;var f=a(t,l.translate,l.scale,l.skew,l.perspective,l.quaternion),d=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!f||!d)&&(n(u.translate,l.translate,c.translate,h),n(u.skew,l.skew,c.skew,h),n(u.scale,l.scale,c.scale,h),n(u.perspective,l.perspective,c.perspective,h),s(u.quaternion,l.quaternion,c.quaternion,h),i(e,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},9852:function(e){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},9884:function(e,t,r){"use strict";var n=r(62258),i=r(59371),a=r(77846).resizeText;e.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");a(e,t,"pie"),t.each((function(e){var t=e[0].trace,r=n.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){n.select(this).call(i,e,t)}))}))}},9915:function(e,t,r){"use strict";var n=r(47163);t.isOpenSymbol=function(e){return"string"===typeof e?n.OPEN_RE.test(e):e%200>100},t.isDotSymbol=function(e){return"string"===typeof e?n.DOT_RE.test(e):e>200}},9967:function(e,t,r){"use strict";var n=r(94821);e.exports=function(e){if(!n(e))throw new TypeError(e+" is not a symbol");return e}},9983:function(e,t,r){"use strict";var n=r(31454).opacity,i=r(16032).hoverOnBars,a=r(47401).formatPercent;e.exports=function(e,t,r,o,s){var l=i(e,t,r,o,s);if(l){var c=l.cd,u=c[0].trace,h="h"===u.orientation,f=c[l.index];l[(h?"x":"y")+"LabelVal"]=f.s,l.percentInitial=f.begR,l.percentInitialLabel=a(f.begR,1),l.percentPrevious=f.difR,l.percentPreviousLabel=a(f.difR,1),l.percentTotal=f.sumR,l.percentTotalLabel=a(f.sumR,1);var d=f.hi||u.hoverinfo,p=[];if(d&&"none"!==d&&"skip"!==d){var g="all"===d,m=d.split("+"),v=function(e){return g||-1!==m.indexOf(e)};v("percent initial")&&p.push(l.percentInitialLabel+" of initial"),v("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),v("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=function(e,t){var r=e.marker,i=t.mc||r.color,a=t.mlc||r.line.color,o=t.mlw||r.line.width;if(n(i))return i;if(n(a)&&o)return a}(u,f),[l]}}},9991:function(e,t,r){"use strict";e.exports={attributes:r(39433),supplyDefaults:r(37377),calc:r(73266),plot:r(42256),moduleType:"trace",name:"table",basePlotModule:r(58198),categories:["noOpacity"],meta:{description:["Table view for detailed data viewing.","The data are arranged in a grid of rows and columns.","Most styling can be specified for columns, rows or individual cells.","Table is using a column-major order, ie. the grid is represented as a vector of column vectors."].join(" ")}}},10065:function(e,t,r){"use strict";var n=r(47401),i=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,r,a){return e="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*e),0,2),t="bottom"===a?0:"middle"===a?1:"top"===a?2:n.constrain(Math.floor(3*t),0,2),i[t][e]}},10118:function(e,t,r){"use strict";e.exports=function(e,t){var r=[];return t=+t||0,n(e.hi(e.shape[0]-1),r,t),r};var n=r(68252)},10168:function(e){"use strict";e.exports=function(e,t){var r,n,i=e.cd,a=e.xaxis,o=e.yaxis,s=[];if(!1===t)for(r=0;r), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:i({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[c("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[c("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",s.axisRefDescription("ax","left","right"),l("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",s.axisRefDescription("ay","bottom","top"),l("y")].join(" ")},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",s.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",s.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:i({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},10667:function(e,t,r){"use strict";var n=r(47401),i=r(8757).hasColorscale,a=r(94060),o=r(16688).N,s=r(26800),l=r(68220),c=r(94029);function u(e,t){function r(r,i){return n.coerce(e,t,l.dimensions,r,i)}var i=r("values"),a=r("visible");if(i&&i.length||(a=t.visible=!1),a){r("label"),r("displayindex",t._index);var o,s=e.categoryarray,c=Array.isArray(s)&&s.length>0;c&&(o="array");var u=r("categoryorder",o);"array"===u?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),c||"array"!==u||(t.categoryorder="trace")}}e.exports=function(e,t,r,h){function f(r,i){return n.coerce(e,t,l,r,i)}var d=s(e,t,{name:"dimensions",handleItemDefaults:u}),p=function(e,t,r,o,s){s("line.shape"),s("line.hovertemplate");var l=s("line.color",o.colorway[0]);if(i(e,"line")&&n.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),a(e,t,o,s,{prefix:"line.",cLetter:"c"}),l.length;t.line.color=r}return 1/0}(e,t,r,h,f);o(t,h,f),Array.isArray(d)&&d.length||(t.visible=!1),c(t,d,"values",p),f("hoveron"),f("hovertemplate"),f("arrangement"),f("bundlecolors"),f("sortpaths"),f("counts");var g={family:h.font.family,size:Math.round(h.font.size),color:h.font.color};n.coerceFont(f,"labelfont",g);var m={family:h.font.family,size:Math.round(h.font.size/1.2),color:h.font.color};n.coerceFont(f,"tickfont",m)}},10714:function(e,t,r){"use strict";e.exports={attributes:r(95225),supplyDefaults:r(69502),calc:r(77629),plot:r(21683),style:r(78483),hoverPoints:r(44864),eventData:r(83941),moduleType:"trace",name:"image",basePlotModule:r(66807),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{description:["Display an image, i.e. data on a 2D regular raster.","By default, when an image is displayed in a subplot,","its y axis will be reversed (ie. `autorange: 'reversed'`),","constrained to the domain (ie. `constrain: 'domain'`)","and it will have the same scale as its x axis (ie. `scaleanchor: 'x,`)","in order for pixels to be rendered as squares."].join(" ")}}},10731:function(e,t,r){"use strict";var n=r(80717),i=r(18205);e.exports=function(e,t){for(var r=n(e[0],t[0]),a=1;at?1:e>=t?0:NaN}r.r(t),r.d(t,{sankey:function(){return M},sankeyCenter:function(){return d},sankeyJustify:function(){return f},sankeyLeft:function(){return u},sankeyLinkHorizontal:function(){return C},sankeyRight:function(){return h}});var i=function(e){var t;return 1===e.length&&(t=e,e=function(e,r){return n(t(e),r)}),{left:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)<0?n=a+1:i=a}return n},right:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)>0?i=a:n=a+1}return n}}}(n),a=(i.right,i.left,Array.prototype);a.slice,a.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);function o(e,t){var r,n,i=e.length,a=-1;if(null==t){for(;++a=r)for(n=r;++ar&&(n=r)}else for(;++a=r)for(n=r;++ar&&(n=r);return n}function s(e,t){var r,n=e.length,i=-1,a=0;if(null==t)for(;++i0;--u)d(a*=.99),p(),f(a),p();function h(){var n=function(e,t){var r,n,i=e.length,a=-1;if(null==t){for(;++a=r)for(n=r;++an&&(n=r)}else for(;++a=r)for(n=r;++an&&(n=r);return n}(r,(function(e){return e.length})),a=E*(i-t)/(n-1);c>a&&(c=a);var l=o(r,(function(e){return(i-t-(e.length-1)*c)/s(e,y)}));r.forEach((function(e){e.forEach((function(e,t){e.y1=(e.y0=t)+e.value*l}))})),e.links.forEach((function(e){e.width=e.value*l}))}function f(e){r.forEach((function(t){t.forEach((function(t){if(t.targetLinks.length){var r=(s(t.targetLinks,b)/s(t.targetLinks,y)-x(t))*e;t.y0+=r,t.y1+=r}}))}))}function d(e){r.slice().reverse().forEach((function(t){t.forEach((function(t){if(t.sourceLinks.length){var r=(s(t.sourceLinks,_)/s(t.sourceLinks,y)-x(t))*e;t.y0+=r,t.y1+=r}}))}))}function p(){r.forEach((function(e){var r,n,a,o=t,s=e.length;for(e.sort(v),a=0;a0&&(r.y0+=n,r.y1+=n),o=r.y1+c;if((n=o-c-i)>0)for(o=r.y0-=n,r.y1-=n,a=s-2;a>=0;--a)(n=(r=e[a]).y1+c-o)>0&&(r.y0-=n,r.y1-=n),o=r.y0}))}}(f),C(f),f}function C(e){e.nodes.forEach((function(e){e.sourceLinks.sort(m),e.targetLinks.sort(g)})),e.nodes.forEach((function(e){var t=e.y0,r=t;e.sourceLinks.forEach((function(e){e.y0=t+e.width/2,t+=e.width})),e.targetLinks.forEach((function(e){e.y1=r+e.width/2,r+=e.width}))}))}return L.update=function(e){return C(e),e},L.nodeId=function(e){return arguments.length?(u="function"===typeof e?e:p(e),L):u},L.nodeAlign=function(e){return arguments.length?(h="function"===typeof e?e:p(e),L):h},L.nodeWidth=function(e){return arguments.length?(a=+e,L):a},L.nodePadding=function(e){return arguments.length?(c=+e,L):c},L.nodes=function(e){return arguments.length?(d="function"===typeof e?e:p(e),L):d},L.links=function(e){return arguments.length?(M="function"===typeof e?e:p(e),L):M},L.size=function(n){return arguments.length?(e=t=0,r=+n[0],i=+n[1],L):[r-e,i-t]},L.extent=function(n){return arguments.length?(e=+n[0][0],r=+n[1][0],t=+n[0][1],i=+n[1][1],L):[[e,t],[r,i]]},L.iterations=function(e){return arguments.length?(S=+e,L):S},L}var S=r(81036);function E(e){return[e.source.x1,e.y0]}function L(e){return[e.target.x0,e.y1]}function C(){return(0,S.pq)().source(E).target(L)}},11075:function(e){e.exports=function(e,t,r,n){var i=t[0],a=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e[2]=o+n*(r[2]-o),e}},11079:function(e,t,r){"use strict";e.exports=r(11808)},11096:function(e,t,r){"use strict";r.d(t,{A:function(){return l}});var n=r(95935),i=r(76409),a=r(57977),o=(0,n.A)();function s(e){return(0,a.tn)(e[0])<=a.pi?e[0]:(0,a._S)(e[0])*(((0,a.tn)(e[0])+a.pi)%a.FA-a.pi)}function l(e,t){var r=s(t),n=t[1],l=(0,a.F8)(n),c=[(0,a.F8)(r),-(0,a.gn)(r),0],u=0,h=0;o.reset(),1===l?n=a.TW+a.Ni:-1===l&&(n=-a.TW-a.Ni);for(var f=0,d=e.length;f=0?1:-1,L=E*S,C=L>a.pi,I=x*A;if(o.add((0,a.FP)(I*E*(0,a.F8)(L),b*M+I*(0,a.gn)(L))),u+=C?S+E*a.FA:S,C^v>=r^T>=r){var D=(0,i.r8)((0,i.jf)(m),(0,i.jf)(w));(0,i.Cx)(D);var P=(0,i.r8)(c,D);(0,i.Cx)(P);var O=(C^S>=0?-1:1)*(0,a.qR)(P[2]);(n>O||n===O&&(D[0]||D[1]))&&(h+=C^S>=0?1:-1)}}return(u<-a.Ni||uh+c||!n(u))}for(var d=0;d0}function T(e){e.each((function(e){y.stroke(n.select(this),e.line.color)})).each((function(e){y.fill(n.select(this),e.color)})).style("stroke-width",(function(e){return e.line.width}))}function k(e,t,r){var n=e._fullLayout,i=o.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},s={letter:"x",font:n.font,noHover:!0,noTickson:!0};function l(e,t){return o.coerce(i,a,v,e,t)}return g(i,a,l,s,n),m(i,a,l,s),a}function A(e,t,r){return[Math.min(t/e.width,r/e.height),e,t+"x"+r]}function M(e,t,r,i){var a=document.createElementNS("http://www.w3.org/2000/svg","text"),o=n.select(a);return o.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(d.convertToTspans,i).call(h.font,t),h.bBox(o.node())}function S(e,t,r,n,i,a){var s="_cache"+t;e[s]&&e[s].key===i||(e[s]={key:i,value:r});var l=o.aggNums(a,null,[e[s].value,n],2);return e[s].value=l,l}e.exports=function(e,t,r,g){var m,v=e._fullLayout;w(r)&&g&&(m=g()),o.makeTraceGroups(v._indicatorlayer,t,"trace").each((function(t){var g,E,L,C,I,D=t[0].trace,P=n.select(this),O=D._hasGauge,z=D._isAngular,R=D._isBullet,F=D.domain,j={w:v._size.w*(F.x[1]-F.x[0]),h:v._size.h*(F.y[1]-F.y[0]),l:v._size.l+v._size.w*F.x[0],r:v._size.r+v._size.w*(1-F.x[1]),t:v._size.t+v._size.h*(1-F.y[1]),b:v._size.b+v._size.h*F.y[0]},N=j.l+j.w/2,B=j.t+j.h/2,U=Math.min(j.w/2,j.h),V=f.innerRadius*U,q=D.align||"center";if(E=B,O){if(z&&(g=N,E=B+U/2,L=function(e){return function(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}(e,.9*V)}),R){var H=f.bulletPadding,G=1-f.bulletNumberDomainSize+H;g=j.l+(G+(1-G)*b[q])*j.w,L=function(e){return A(e,(f.bulletNumberDomainSize-H)*j.w,j.h)}}}else g=j.l+b[q]*j.w,L=function(e){return A(e,j.w,j.h)};!function(e,t,r,i){var c,u,f,g=r[0].trace,m=i.numbersX,v=i.numbersY,T=g.align||"center",A=x[T],E=i.transitionOpts,L=i.onComplete,C=o.ensureSingle(t,"g","numbers"),I=[];g._hasNumber&&I.push("number");g._hasDelta&&(I.push("delta"),"left"===g.delta.position&&I.reverse());var D=C.selectAll("text").data(I);function P(t,r,n,i){if(!t.match("s")||n>=0===i>=0||r(n).slice(-1).match(_)||r(i).slice(-1).match(_))return r;var a=t.slice().replace("s","f").replace(/\d+/,(function(e){return parseInt(e)-1})),o=k(e,{tickformat:a});return function(e){return Math.abs(e)<1?p.tickText(o,e).text:r(e)}}function O(){var t=k(e,{tickformat:g.number.valueformat},g._range);t.setScale(),p.prepTicks(t);var i=function(e){return p.tickText(t,e).text},o=g.number.suffix,s=g.number.prefix,l=C.select("text.number");function u(){var t="number"===typeof r[0].y?s+i(r[0].y)+o:"-";l.text(t).call(h.font,g.number.font).call(d.convertToTspans,e)}return w(E)?l.transition().duration(E.duration).ease(E.easing).each("end",(function(){u(),L&&L()})).each("interrupt",(function(){u(),L&&L()})).attrTween("text",(function(){var e=n.select(this),t=a(r[0].lastY,r[0].y);g._lastValue=r[0].y;var l=P(g.number.valueformat,i,r[0].lastY,r[0].y);return function(r){e.text(s+l(t(r))+o)}})):u(),c=M(s+i(r[0].y)+o,g.number.font,A,e),l}function z(){var t=k(e,{tickformat:g.delta.valueformat},g._range);t.setScale(),p.prepTicks(t);var i=function(e){return p.tickText(t,e).text},o=function(e){return g.delta.relative?e.relativeDelta:e.delta},s=function(e,t){return 0===e||"number"!==typeof e||isNaN(e)?"-":(e>0?g.delta.increasing.symbol:g.delta.decreasing.symbol)+t(e)},l=function(e){return e.delta>=0?g.delta.increasing.color:g.delta.decreasing.color};void 0===g._deltaLastValue&&(g._deltaLastValue=o(r[0]));var c=C.select("text.delta");function f(){c.text(s(o(r[0]),i)).call(y.fill,l(r[0])).call(d.convertToTspans,e)}return c.call(h.font,g.delta.font).call(y.fill,l({delta:g._deltaLastValue})),w(E)?c.transition().duration(E.duration).ease(E.easing).tween("text",(function(){var e=n.select(this),t=o(r[0]),c=g._deltaLastValue,u=P(g.delta.valueformat,i,c,t),h=a(c,t);return g._deltaLastValue=t,function(t){e.text(s(h(t),u)),e.call(y.fill,l({delta:h(t)}))}})).each("end",(function(){f(),L&&L()})).each("interrupt",(function(){f(),L&&L()})):f(),u=M(s(o(r[0]),i),g.delta.font,A,e),c}D.enter().append("text"),D.attr("text-anchor",(function(){return A})).attr("class",(function(e){return e})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),D.exit().remove();var R,F=g.mode+g.align;g._hasDelta&&(R=z(),F+=g.delta.position+g.delta.font.size+g.delta.font.family+g.delta.valueformat,F+=g.delta.increasing.symbol+g.delta.decreasing.symbol,f=u);g._hasNumber&&(O(),F+=g.number.font.size+g.number.font.family+g.number.valueformat+g.number.suffix+g.number.prefix,f=c);if(g._hasDelta&&g._hasNumber){var j,N,B=[(c.left+c.right)/2,(c.top+c.bottom)/2],U=[(u.left+u.right)/2,(u.top+u.bottom)/2],V=.75*g.delta.font.size;"left"===g.delta.position&&(j=S(g,"deltaPos",0,-1*(c.width*b[g.align]+u.width*(1-b[g.align])+V),F,Math.min),N=B[1]-U[1],f={width:c.width+u.width+V,height:Math.max(c.height,u.height),left:u.left+j,right:c.right,top:Math.min(c.top,u.top+N),bottom:Math.max(c.bottom,u.bottom+N)}),"right"===g.delta.position&&(j=S(g,"deltaPos",0,c.width*(1-b[g.align])+u.width*b[g.align]+V,F,Math.max),N=B[1]-U[1],f={width:c.width+u.width+V,height:Math.max(c.height,u.height),left:c.left,right:u.right+j,top:Math.min(c.top,u.top+N),bottom:Math.max(c.bottom,u.bottom+N)}),"bottom"===g.delta.position&&(j=null,N=u.height,f={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height,bottom:c.bottom+u.height}),"top"===g.delta.position&&(j=null,N=c.top,f={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height-u.height,bottom:c.bottom}),R.attr({dx:j,dy:N})}(g._hasNumber||g._hasDelta)&&C.attr("transform",(function(){var e=i.numbersScaler(f);F+=e[2];var t,r=S(g,"numbersScale",1,e[0],F,Math.min);g._scaleNumbers||(r=1),t=g._isAngular?v-r*f.bottom:v-r*(f.top+f.bottom)/2,g._numbersTop=r*f.top+t;var n=f[T];"center"===T&&(n=(f.left+f.right)/2);var a=m-r*n;return a=S(g,"numbersTranslate",0,a,F,Math.max),l(a,t)+s(r)}))}(e,P,t,{numbersX:g,numbersY:E,numbersScaler:L,transitionOpts:r,onComplete:m}),O&&(C={range:D.gauge.axis.range,color:D.gauge.bgcolor,line:{color:D.gauge.bordercolor,width:0},thickness:1},I={range:D.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:D.gauge.bordercolor,width:D.gauge.borderwidth},thickness:1});var W=P.selectAll("g.angular").data(z?t:[]);W.exit().remove();var Y=P.selectAll("g.angularaxis").data(z?t:[]);Y.exit().remove(),z&&function(e,t,r,a){var o,s,h,f,d=r[0].trace,g=a.size,m=a.radius,v=a.innerRadius,y=a.gaugeBg,x=a.gaugeOutline,b=[g.l+g.w/2,g.t+g.h/2+m/2],_=a.gauge,A=a.layer,M=a.transitionOpts,S=a.onComplete,E=Math.PI/2;function L(e){var t=d.gauge.axis.range[0],r=(e-t)/(d.gauge.axis.range[1]-t)*Math.PI-E;return r<-E?-E:r>E?E:r}function C(e){return n.svg.arc().innerRadius((v+m)/2-e/2*(m-v)).outerRadius((v+m)/2+e/2*(m-v)).startAngle(-E)}function I(e){e.attr("d",(function(e){return C(e.thickness).startAngle(L(e.range[0])).endAngle(L(e.range[1]))()}))}_.enter().append("g").classed("angular",!0),_.attr("transform",l(b[0],b[1])),A.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),A.selectAll("g.xangularaxistick,path,text").remove(),o=k(e,d.gauge.axis),o.type="linear",o.range=d.gauge.axis.range,o._id="xangularaxis",o.ticklabeloverflow="allow",o.setScale();var D=function(e){return(o.range[0]-e.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},P={},O=p.makeLabelFns(o,0).labelStandoff;P.xFn=function(e){var t=D(e);return Math.cos(t)*O},P.yFn=function(e){var t=D(e),r=Math.sin(t)>0?.2:1;return-Math.sin(t)*(O+e.fontSize*r)+Math.abs(Math.cos(t))*(e.fontSize*u)},P.anchorFn=function(e){var t=D(e),r=Math.cos(t);return Math.abs(r)<.1?"middle":r>0?"start":"end"},P.heightFn=function(e,t,r){var n=D(e);return-.5*(1+Math.sin(n))*r};var z=function(e){return l(b[0]+m*Math.cos(e),b[1]-m*Math.sin(e))};h=function(e){return z(D(e))};var R=function(e){var t=D(e);return z(t)+"rotate("+-c(t)+")"};if(s=p.calcTicks(o),f=p.getTickSigns(o)[2],o.visible){f="inside"===o.ticks?-1:1;var F=(o.linewidth||1)/2;p.drawTicks(e,o,{vals:s,layer:A,path:"M"+f*F+",0h"+f*o.ticklen,transFn:R}),p.drawLabels(e,o,{vals:s,layer:A,transFn:h,labelFns:P})}var j=[y].concat(d.gauge.steps),N=_.selectAll("g.bg-arc").data(j);N.enter().append("g").classed("bg-arc",!0).append("path"),N.select("path").call(I).call(T),N.exit().remove();var B=C(d.gauge.bar.thickness),U=_.selectAll("g.value-arc").data([d.gauge.bar]);U.enter().append("g").classed("value-arc",!0).append("path");var V=U.select("path");w(M)?(V.transition().duration(M.duration).ease(M.easing).each("end",(function(){S&&S()})).each("interrupt",(function(){S&&S()})).attrTween("d",(q=B,H=L(r[0].lastY),G=L(r[0].y),function(){var e=i(H,G);return function(t){return q.endAngle(e(t))()}})),d._lastValue=r[0].y):V.attr("d","number"===typeof r[0].y?B.endAngle(L(r[0].y)):"M0,0Z");var q,H,G;V.call(T),U.exit().remove(),j=[];var W=d.gauge.threshold.value;(W||0===W)&&j.push({range:[W,W],color:d.gauge.threshold.color,line:{color:d.gauge.threshold.line.color,width:d.gauge.threshold.line.width},thickness:d.gauge.threshold.thickness});var Y=_.selectAll("g.threshold-arc").data(j);Y.enter().append("g").classed("threshold-arc",!0).append("path"),Y.select("path").call(I).call(T),Y.exit().remove();var Z=_.selectAll("g.gauge-outline").data([x]);Z.enter().append("g").classed("gauge-outline",!0).append("path"),Z.select("path").call(I).call(T),Z.exit().remove()}(e,0,t,{radius:U,innerRadius:V,gauge:W,layer:Y,size:j,gaugeBg:C,gaugeOutline:I,transitionOpts:r,onComplete:m});var Z=P.selectAll("g.bullet").data(R?t:[]);Z.exit().remove();var X=P.selectAll("g.bulletaxis").data(R?t:[]);X.exit().remove(),R&&function(e,t,r,n){var i,a,o,s,c,u=r[0].trace,h=n.gauge,d=n.layer,g=n.gaugeBg,m=n.gaugeOutline,v=n.size,x=u.domain,b=n.transitionOpts,_=n.onComplete;h.enter().append("g").classed("bullet",!0),h.attr("transform",l(v.l,v.t)),d.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),d.selectAll("g.xbulletaxistick,path,text").remove();var A=v.h,M=u.gauge.bar.thickness*A,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(u._hasNumber||u._hasDelta?1-f.bulletNumberDomainSize:1);i=k(e,u.gauge.axis),i._id="xbulletaxis",i.domain=[S,E],i.setScale(),a=p.calcTicks(i),o=p.makeTransTickFn(i),s=p.getTickSigns(i)[2],c=v.t+v.h,i.visible&&(p.drawTicks(e,i,{vals:"inside"===i.ticks?p.clipEnds(i,a):a,layer:d,path:p.makeTickPath(i,c,s),transFn:o}),p.drawLabels(e,i,{vals:a,layer:d,transFn:o,labelFns:p.makeLabelFns(i,c)}));function L(e){e.attr("width",(function(e){return Math.max(0,i.c2p(e.range[1])-i.c2p(e.range[0]))})).attr("x",(function(e){return i.c2p(e.range[0])})).attr("y",(function(e){return.5*(1-e.thickness)*A})).attr("height",(function(e){return e.thickness*A}))}var C=[g].concat(u.gauge.steps),I=h.selectAll("g.bg-bullet").data(C);I.enter().append("g").classed("bg-bullet",!0).append("rect"),I.select("rect").call(L).call(T),I.exit().remove();var D=h.selectAll("g.value-bullet").data([u.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",M).attr("y",(A-M)/2).call(T),w(b)?D.select("rect").transition().duration(b.duration).ease(b.easing).each("end",(function(){_&&_()})).each("interrupt",(function(){_&&_()})).attr("width",Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):D.select("rect").attr("width","number"===typeof r[0].y?Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0);D.exit().remove();var P=r.filter((function(){return u.gauge.threshold.value||0===u.gauge.threshold.value})),O=h.selectAll("g.threshold-bullet").data(P);O.enter().append("g").classed("threshold-bullet",!0).append("line"),O.select("line").attr("x1",i.c2p(u.gauge.threshold.value)).attr("x2",i.c2p(u.gauge.threshold.value)).attr("y1",(1-u.gauge.threshold.thickness)/2*A).attr("y2",(1-(1-u.gauge.threshold.thickness)/2)*A).call(y.stroke,u.gauge.threshold.line.color).style("stroke-width",u.gauge.threshold.line.width),O.exit().remove();var z=h.selectAll("g.gauge-outline").data([m]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(L).call(T),z.exit().remove()}(e,0,t,{gauge:Z,layer:X,size:j,gaugeBg:C,gaugeOutline:I,transitionOpts:r,onComplete:m});var K=P.selectAll("text.title").data(t);K.exit().remove(),K.enter().append("text").classed("title",!0),K.attr("text-anchor",(function(){return R?x.right:x[D.title.align]})).text(D.title.text).call(h.font,D.title.font).call(d.convertToTspans,e),K.attr("transform",(function(){var e,t=j.l+j.w*b[D.title.align],r=f.titlePadding,n=h.bBox(K.node());if(O){if(z)if(D.gauge.axis.visible)e=h.bBox(Y.node()).top-r-n.bottom;else e=j.t+j.h/2-U/2-n.bottom-r;R&&(e=E-(n.top+n.bottom)/2,t=j.l-f.bulletPadding*j.w)}else e=D._numbersTop-r-n.bottom;return l(t,e)}))}))}},11559:function(e,t,r){"use strict";var n=r(83491),i=r(47401),a=r(31454),o=r(47624),s=r(9405).BADNUM,l=r(92380).makeBlank;e.exports=function(e){var t=e[0].trace,r=!0===t.visible&&0!==t._length,c=t._opts={heatmap:{layout:{visibility:"none"},paint:{}},geojson:l()};if(!r)return c;var u,h=[],f=t.z,d=t.radius,p=i.isArrayOrTypedArray(f)&&f.length,g=i.isArrayOrTypedArray(d);for(u=0;u0?+d[u]:0),h.push({type:"Feature",geometry:{type:"Point",coordinates:v},properties:y})}}var b=o.extractOpts(t),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=["interpolate",["linear"],["heatmap-density"],0,a.opacity(w)<1?w:a.addOpacity(w,0)];for(u=1;u<_.length;u++)T.push(_[u][0],_[u][1]);var k=["interpolate",["linear"],["get","z"],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{"heatmap-weight":p?k:1/(b.max-b.min),"heatmap-color":T,"heatmap-radius":g?{type:"identity",property:"r"}:t.radius,"heatmap-opacity":t.opacity}),c.geojson={type:"FeatureCollection",features:h},c.heatmap.layout.visibility="visible",c}},11604:function(e,t,r){"use strict";var n=r(9777);t.init2dArray=function(e,t){for(var r=new Array(e),n=0;n/g),l=0;le.lo&&(x.so=!0)}return a}));f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(a.translatePoints,o,s)}function l(e,t,r,a){var o,s,l=t.val,c=t.pos,u=!!c.rangebreaks,h=a.bPos,f=a.bPosPxOffset||0,d=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var p=e.selectAll("path.mean").data("box"===r.type&&r.boxmean||"violin"===r.type&&r.box.visible&&r.meanline.visible?i.identity:[]);p.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),p.exit().remove(),p.each((function(e){var t=c.c2l(e.pos+h,!0),i=c.l2p(t-o)+f,a=c.l2p(t+s)+f,p=u?(i+a)/2:c.l2p(t)+f,g=l.c2p(e.mean,!0),m=l.c2p(e.mean-e.sd,!0),v=l.c2p(e.mean+e.sd,!0);"h"===r.orientation?n.select(this).attr("d","M"+g+","+i+"V"+a+("sd"===d?"m0,0L"+m+","+p+"L"+g+","+i+"L"+v+","+p+"Z":"")):n.select(this).attr("d","M"+i+","+g+"H"+a+("sd"===d?"m0,0L"+p+","+m+"L"+i+","+g+"L"+p+","+v+"Z":""))}))}e.exports={plot:function(e,t,r,a){var c=t.xaxis,u=t.yaxis;i.makeTraceGroups(a,r,"trace boxes").each((function(e){var t,r,i=n.select(this),a=e[0],h=a.t,f=a.trace;(h.wdPos=h.bdPos*f.whiskerwidth,!0!==f.visible||h.empty)?i.remove():("h"===f.orientation?(t=u,r=c):(t=c,r=u),o(i,{pos:t,val:r},f,h),s(i,{x:c,y:u},f,h),l(i,{pos:t,val:r},f,h))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},11808:function(e,t,r){"use strict";e.exports={attributes:r(39987),supplyDefaults:r(23892),calc:r(56691),plot:r(98813),moduleType:"trace",name:"sankey",basePlotModule:r(32357),selectPoints:r(39934),categories:["noOpacity"],meta:{description:["Sankey plots for network flow data analysis.","The nodes are specified in `nodes` and the links between sources and targets in `links`.","The colors are set in `nodes[i].color` and `links[i].color`, otherwise defaults are used."].join(" ")}}},11993:function(e,t){"use strict";function r(e,t,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function n(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!d(e[0])||!d(e[1]))throw new Error("coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n)}function i(e,t,n){void 0===n&&(n={});for(var i=0,a=e;i=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=u,t.lengthToRadians=h,t.lengthToDegrees=function(e,t){return f(h(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=f,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return u(h(e,t),r)},t.convertArea=function(e,r,n){if(void 0===r&&(r="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[r];if(!i)throw new Error("invalid original units");var a=t.areaFactors[n];if(!a)throw new Error("invalid final units");return e/i*a},t.isNumber=d,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!d(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},12041:function(e){"use strict";e.exports=function(e){return undefined!==e&&null!==e}},12082:function(e,t,r){"use strict";e.exports=r(89521)},12085:function(e,t,r){"use strict";var n=r(35712),i=r(60239),a=r(45819);e.exports=function(e){var t=e.length;if(0===t)return[];if(1===t)return[[0]];var r=e[0].length;if(0===r)return[];if(1===r)return n(e);if(2===r)return i(e);return a(e,r)}},12268:function(e){e.exports=function(e,t,r){var n=new Float32Array(3);return n[0]=e,n[1]=t,n[2]=r,n}},12345:function(e,t,r){"use strict";var n=r(47401),i=r(26670),a=r(76763);e.exports=function(e,t,r){a._supply(e,t,r,(function(r,a){return n.coerce(e,t,i,r,a)}),"violin")}},12493:function(e,t,r){"use strict";var n=r(83491),i=r(1379);e.exports=function(e,t,r,a){t=t||{};var o="log"===r&&"linear"===t.type,s="linear"===r&&"log"===t.type;if(o||s)for(var l,c,u=e._fullLayout.annotations,h=t._id.charAt(0),f=0;f/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},r={};!function e(t,r){for(var n in t){var i=t[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),e(i,r[n]))}}(t,r),e.exports={configAttributes:t,dfltConfig:r}},12899:function(e,t,r){"use strict";var n=r(92082),i=r(97451),a=r(4216).r,o=r(42837),s=r(87241).extendFlat;e.exports=s({locations:{valType:"data_array",editType:"calc",description:["Sets which features found in *geojson* to plot using","their feature `id` field."].join(" ")},z:{valType:"data_array",editType:"calc",description:"Sets the color values."},geojson:{valType:"any",editType:"calc",description:["Sets the GeoJSON data associated with this trace.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")},featureidkey:s({},n.featureidkey,{description:["Sets the key in GeoJSON features which is used as id to match the items","included in the `locations` array.","Support nested property, for example *properties.name*."].join(" ")}),below:{valType:"string",editType:"plot",description:["Determines if the choropleth polygons will be inserted","before the layer with the specified ID.","By default, choroplethmapbox traces are placed above the water layers.","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:"plot"}),width:s({},n.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:s({},n.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:["properties"]}),showlegend:s({},o.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},12908:function(e){var t=/[\'\"]/;e.exports=function(e){return e?(t.test(e.charAt(0))&&(e=e.substr(1)),t.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}},13041:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:r(4860),supplyLayoutDefaults:r(71179),includeBasePlot:r(11698)("images"),draw:r(63459),convertCoords:r(92979)}},13137:function(e){e.exports=function(){var e,t=0,r=!1;function n(t,r){return e.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return n("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return n("div_seg",{seg:e,pt:t}),n("chop",{seg:e,pt:t})},statusRemove:function(e){return n("pop_seg",{seg:e})},segmentUpdate:function(e){return n("seg_update",{seg:e})},segmentNew:function(e,t){return n("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return n("rem_seg",{seg:e})},tempStatus:function(e,t,r){return n("temp_status",{seg:e,above:t,below:r})},rewind:function(e){return n("rewind",{seg:e})},status:function(e,t,r){return n("status",{seg:e,above:t,below:r})},vert:function(t){return t===r?e:(r=t,n("vert",{x:t}))},log:function(e){return"string"!==typeof e&&(e=JSON.stringify(e,!1," ")),n("log",{txt:e})},reset:function(){return n("reset")},selected:function(e){return n("selected",{segs:e})},chainStart:function(e){return n("chain_start",{seg:e})},chainRemoveHead:function(e,t){return n("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return n("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return n("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return n("chain_match",{index:e})},chainClose:function(e){return n("chain_close",{index:e})},chainAddHead:function(e,t){return n("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return n("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return n("chain_con",{index1:e,index2:t})},chainReverse:function(e){return n("chain_rev",{index:e})},chainJoin:function(e,t){return n("chain_join",{index1:e,index2:t})},done:function(){return n("done")}}}},13195:function(e){e.exports=!0},13246:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=r(41707),o=r(11755),s=r(94341),l=r(74665);e.exports=function(e,t,r,c){var u=e._fullLayout,h=t.xaxis,f=t.yaxis;function d(e){var t=s(e,{xaxis:h,yaxis:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return a.smoothopen(t[0],1)}i.makeTraceGroups(c,r,"trace violins").each((function(e){var r=n.select(this),a=e[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var p=s.bPos,g=s.bdPos,m=t[s.valLetter+"axis"],v=t[s.posLetter+"axis"],y="both"===c.side,x=y||"positive"===c.side,b=y||"negative"===c.side,_=r.selectAll("path.violin").data(i.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(e){var t,r,i,a,o,l,h,f,_=n.select(this),w=e.density,T=w.length,k=v.c2l(e.pos+p,!0),A=v.l2p(k);if(c.width)t=s.maxKDE/g;else{var M=u._violinScaleGroupStats[c.scalegroup];t="count"===c.scalemode?M.maxKDE/g*(M.maxCount/e.pts.length):M.maxKDE/g}if(x){for(h=new Array(T),o=0;ot?1:e>=t?0:NaN}r.d(t,{Am:function(){return o},y1:function(){return s}});var i=function(e){var t;return 1===e.length&&(t=e,e=function(e,r){return n(t(e),r)}),{left:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)<0?n=a+1:i=a}return n},right:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)>0?i=a:n=a+1}return n}}}(n),a=(i.right,i.left,Array.prototype);a.slice,a.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);function o(e){for(var t,r,n,i=e.length,a=-1,o=0;++a=0;)for(t=(n=e[i]).length;--t>=0;)r[--o]=n[t];return r}function s(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),a=new Array(i);++n=u&&(d.min=0,g.min=0,m.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function p(e,t,r,n){var i=h[t._name];function o(r,n){return a.coerce(e,t,i,r,n)}o("uirevision",n.uirevision),t.type="linear";var f=o("color"),d=f!==i.color.dflt?f:r.font.color,p=t._name.charAt(0).toUpperCase(),g="Component "+p,m=o("title.text",g);t._hovertitle=m===g?m:p,a.coerceFont(o,"title.font",{family:r.font.family,size:a.bigFont(r.font.size),color:d}),o("min"),c(e,t,o,"linear"),s(e,t,o,"linear",{}),l(e,t,o,{outerTicks:!0}),o("showticklabels")&&(a.coerceFont(o,"tickfont",{family:r.font.family,size:r.font.size,color:d}),o("tickangle"),o("tickformat")),u(e,t,o,{dfltColor:f,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o("hoverformat"),o("layer")}e.exports=function(e,t,r){o(e,t,r,{type:"ternary",attributes:h,handleDefaults:d,font:t.font,paper_bgcolor:t.paper_bgcolor})}},13573:function(e,t,r){"use strict";var n=r(83491),i=r(37762),a=r(48128),o=r(47401),s=r(9405).BADNUM,l=o._;e.exports=function(e,t){var r,c,y,x,b,_,w,T=e._fullLayout,k=i.getFromId(e,t.xaxis||"x"),A=i.getFromId(e,t.yaxis||"y"),M=[],S="violin"===t.type?"_numViolins":"_numBoxes";"h"===t.orientation?(y=k,x="x",b=A,_="y",w=!!t.yperiodalignment):(y=A,x="y",b=k,_="x",w=!!t.xperiodalignment);var E,L,C,I,D,P,O=function(e,t,r,i){var s,l=t in e,c=t+"0"in e,u="d"+t in e;if(l||c&&u){var h=r.makeCalcdata(e,t);return[a(e,r,t,h).vals,h]}s=c?e[t+"0"]:"name"in e&&("category"===r.type||n(e.name)&&-1!==["linear","log"].indexOf(r.type)||o.isDateTime(e.name)&&"date"===r.type)?e.name:i;for(var f="multicategory"===r.type?r.r2c_just_indices(s):r.d2c(s,0,e[t+"calendar"]),d=e._length,p=new Array(d),g=0;gE.uf};if(t._hasPreCompStats){var U=t[x],V=function(e){return y.d2c((t[e]||[])[r])},q=1/0,H=-1/0;for(r=0;r=E.q1&&E.q3>=E.med){var W=V("lowerfence");E.lf=W!==s&&W<=E.q1?W:d(E,C,I);var Y=V("upperfence");E.uf=Y!==s&&Y>=E.q3?Y:p(E,C,I);var Z=V("mean");E.mean=Z!==s?Z:I?o.mean(C,I):(E.q1+E.q3)/2;var X=V("sd");E.sd=Z!==s&&X>=0?X:I?o.stdev(C,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var K=V("notchspan");K=K!==s&&K>0?K:v(E,I),E.ln=E.med-K,E.un=E.med+K;var J=E.lf,Q=E.uf;t.boxpoints&&C.length&&(J=Math.min(J,C[0]),Q=Math.max(Q,C[I-1])),t.notched&&(J=Math.min(J,E.ln),Q=Math.max(Q,E.un)),E.min=J,E.max=Q}else{var $;o.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+E.q1,"median = "+E.med,"q3 = "+E.q3].join("\n")),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=L.filter(B),M.push(E)}}t._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var ee=y.makeCalcdata(t,x),te=function(e,t){for(var r=e.length,n=new Array(r+1),i=0;i=0&&ie0){var ue,he;if((E={}).pos=E[_]=j[r],L=E.pts=ne[r].sort(h),I=(C=E[x]=L.map(f)).length,E.min=C[0],E.max=C[I-1],E.mean=o.mean(C,I),E.sd=o.stdev(C,I,E.mean),E.med=o.interp(C,.5),I%2&&(le||ce))le?(ue=C.slice(0,I/2),he=C.slice(I/2+1)):ce&&(ue=C.slice(0,I/2+1),he=C.slice(I/2)),E.q1=o.interp(ue,.5),E.q3=o.interp(he,.5);else E.q1=o.interp(C,.25),E.q3=o.interp(C,.75);E.lf=d(E,C,I),E.uf=p(E,C,I),E.lo=g(E),E.uo=m(E);var fe=v(E,I);E.ln=E.med-fe,E.un=E.med+fe,ae=Math.min(ae,E.ln),oe=Math.max(oe,E.un),E.pts2=L.filter(B),M.push(E)}t._extremes[y._id]=i.findExtremes(y,t.notched?ee.concat([ae,oe]):ee,{padded:!0})}return function(e,t){if(o.isArrayOrTypedArray(t.selectedpoints))for(var r=0;r0?(M[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(e,"median:"),min:l(e,"min:"),q1:l(e,"q1:"),q3:l(e,"q3:"),max:l(e,"max:"),mean:"sd"===t.boxmean?l(e,"mean \xb1 \u03c3:"):l(e,"mean:"),lf:l(e,"lower fence:"),uf:l(e,"upper fence:")}},T[S]++,M):[{t:{empty:!0}}]};var c={text:"tx",hovertext:"htx"};function u(e,t,r){for(var n in c)o.isArrayOrTypedArray(t[n])&&(Array.isArray(r)?o.isArrayOrTypedArray(t[n][r[0]])&&(e[c[n]]=t[n][r[0]][r[1]]):e[c[n]]=t[n][r])}function h(e,t){return e.v-t.v}function f(e){return e.v}function d(e,t,r){return 0===r?e.q1:Math.min(e.q1,t[Math.min(o.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,r-1)])}function p(e,t,r){return 0===r?e.q3:Math.max(e.q3,t[Math.max(o.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function g(e){return 4*e.q1-3*e.q3}function m(e){return 4*e.q3-3*e.q1}function v(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},13603:function(e,t,r){"use strict";var n=r(62282),i=r(37762),a=r(47401),o=r(21044);e.exports=function(e,t,r){function s(r,n){return a.coerce(e,t,o,r,n)}for(var l=!1,c=!1,u=!1,h={},f=s("barmode"),d=0;dn.removeTarget(i)]}function i(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}r.d(t,{V:function(){return i},l:function(){return n}})},14023:function(e,t,r){"use strict";r.r(t),r.d(t,{geoAiry:function(){return z},geoAiryRaw:function(){return O},geoAitoff:function(){return F},geoAitoffRaw:function(){return R},geoArmadillo:function(){return N},geoArmadilloRaw:function(){return j},geoAugust:function(){return U},geoAugustRaw:function(){return B},geoBaker:function(){return G},geoBakerRaw:function(){return H},geoBerghaus:function(){return Z},geoBerghausRaw:function(){return Y},geoBertin1953:function(){return re},geoBertin1953Raw:function(){return te},geoBoggs:function(){return ue},geoBoggsRaw:function(){return ce},geoBonne:function(){return ge},geoBonneRaw:function(){return pe},geoBottomley:function(){return ve},geoBottomleyRaw:function(){return me},geoBromley:function(){return xe},geoBromleyRaw:function(){return ye},geoChamberlin:function(){return Ee},geoChamberlinAfrica:function(){return Se},geoChamberlinRaw:function(){return Ae},geoCollignon:function(){return Ce},geoCollignonRaw:function(){return Le},geoCraig:function(){return De},geoCraigRaw:function(){return Ie},geoCraster:function(){return ze},geoCrasterRaw:function(){return Oe},geoCylindricalEqualArea:function(){return Fe},geoCylindricalEqualAreaRaw:function(){return Re},geoCylindricalStereographic:function(){return Ne},geoCylindricalStereographicRaw:function(){return je},geoEckert1:function(){return Ue},geoEckert1Raw:function(){return Be},geoEckert2:function(){return qe},geoEckert2Raw:function(){return Ve},geoEckert3:function(){return Ge},geoEckert3Raw:function(){return He},geoEckert4:function(){return Ye},geoEckert4Raw:function(){return We},geoEckert5:function(){return Xe},geoEckert5Raw:function(){return Ze},geoEckert6:function(){return Je},geoEckert6Raw:function(){return Ke},geoEisenlohr:function(){return et},geoEisenlohrRaw:function(){return $e},geoFahey:function(){return nt},geoFaheyRaw:function(){return rt},geoFoucaut:function(){return at},geoFoucautRaw:function(){return it},geoFoucautSinusoidal:function(){return st},geoFoucautSinusoidalRaw:function(){return ot},geoGilbert:function(){return ft},geoGingery:function(){return mt},geoGingeryRaw:function(){return dt},geoGinzburg4:function(){return xt},geoGinzburg4Raw:function(){return yt},geoGinzburg5:function(){return _t},geoGinzburg5Raw:function(){return bt},geoGinzburg6:function(){return Tt},geoGinzburg6Raw:function(){return wt},geoGinzburg8:function(){return At},geoGinzburg8Raw:function(){return kt},geoGinzburg9:function(){return St},geoGinzburg9Raw:function(){return Mt},geoGringorten:function(){return Ct},geoGringortenQuincuncial:function(){return ci},geoGringortenRaw:function(){return Lt},geoGuyou:function(){return Ot},geoGuyouRaw:function(){return Pt},geoHammer:function(){return Q},geoHammerRaw:function(){return K},geoHammerRetroazimuthal:function(){return jt},geoHammerRetroazimuthalRaw:function(){return Rt},geoHealpix:function(){return Jt},geoHealpixRaw:function(){return Yt},geoHill:function(){return $t},geoHillRaw:function(){return Qt},geoHomolosine:function(){return ar},geoHomolosineRaw:function(){return ir},geoHufnagel:function(){return sr},geoHufnagelRaw:function(){return or},geoHyperelliptical:function(){return hr},geoHyperellipticalRaw:function(){return ur},geoInterrupt:function(){return pr},geoInterruptedBoggs:function(){return mr},geoInterruptedHomolosine:function(){return yr},geoInterruptedMollweide:function(){return br},geoInterruptedMollweideHemispheres:function(){return wr},geoInterruptedQuarticAuthalic:function(){return gn},geoInterruptedSinuMollweide:function(){return kr},geoInterruptedSinusoidal:function(){return Mr},geoKavrayskiy7:function(){return Er},geoKavrayskiy7Raw:function(){return Sr},geoLagrange:function(){return Cr},geoLagrangeRaw:function(){return Lr},geoLarrivee:function(){return Pr},geoLarriveeRaw:function(){return Dr},geoLaskowski:function(){return zr},geoLaskowskiRaw:function(){return Or},geoLittrow:function(){return Fr},geoLittrowRaw:function(){return Rr},geoLoximuthal:function(){return Nr},geoLoximuthalRaw:function(){return jr},geoMiller:function(){return Ur},geoMillerRaw:function(){return Br},geoModifiedStereographic:function(){return $r},geoModifiedStereographicAlaska:function(){return Zr},geoModifiedStereographicGs48:function(){return Xr},geoModifiedStereographicGs50:function(){return Kr},geoModifiedStereographicLee:function(){return Qr},geoModifiedStereographicMiller:function(){return Jr},geoModifiedStereographicRaw:function(){return Vr},geoMollweide:function(){return oe},geoMollweideRaw:function(){return ae},geoMtFlatPolarParabolic:function(){return nn},geoMtFlatPolarParabolicRaw:function(){return rn},geoMtFlatPolarQuartic:function(){return on},geoMtFlatPolarQuarticRaw:function(){return an},geoMtFlatPolarSinusoidal:function(){return ln},geoMtFlatPolarSinusoidalRaw:function(){return sn},geoNaturalEarth:function(){return cn.A},geoNaturalEarth2:function(){return hn},geoNaturalEarth2Raw:function(){return un},geoNaturalEarthRaw:function(){return cn.P},geoNellHammer:function(){return dn},geoNellHammerRaw:function(){return fn},geoNicolosi:function(){return vn},geoNicolosiRaw:function(){return mn},geoPatterson:function(){return En},geoPattersonRaw:function(){return Sn},geoPeirceQuincuncial:function(){return ui},geoPierceQuincuncial:function(){return ui},geoPolyconic:function(){return Cn},geoPolyconicRaw:function(){return Ln},geoPolyhedral:function(){return Fn},geoPolyhedralButterfly:function(){return Hn},geoPolyhedralCollignon:function(){return Yn},geoPolyhedralWaterman:function(){return Zn},geoProject:function(){return $n},geoQuantize:function(){return hi},geoQuincuncial:function(){return li},geoRectangularPolyconic:function(){return di},geoRectangularPolyconicRaw:function(){return fi},geoRobinson:function(){return mi},geoRobinsonRaw:function(){return gi},geoSatellite:function(){return yi},geoSatelliteRaw:function(){return vi},geoSinuMollweide:function(){return nr},geoSinuMollweideRaw:function(){return rr},geoSinusoidal:function(){return de},geoSinusoidalRaw:function(){return fe},geoStitch:function(){return Fi},geoTimes:function(){return Ni},geoTimesRaw:function(){return ji},geoTwoPointAzimuthal:function(){return qi},geoTwoPointAzimuthalRaw:function(){return Ui},geoTwoPointAzimuthalUsa:function(){return Vi},geoTwoPointEquidistant:function(){return Wi},geoTwoPointEquidistantRaw:function(){return Hi},geoTwoPointEquidistantUsa:function(){return Gi},geoVanDerGrinten:function(){return Zi},geoVanDerGrinten2:function(){return Ki},geoVanDerGrinten2Raw:function(){return Xi},geoVanDerGrinten3:function(){return Qi},geoVanDerGrinten3Raw:function(){return Ji},geoVanDerGrinten4:function(){return ea},geoVanDerGrinten4Raw:function(){return $i},geoVanDerGrintenRaw:function(){return Yi},geoWagner:function(){return ra},geoWagner4:function(){return sa},geoWagner4Raw:function(){return oa},geoWagner6:function(){return ca},geoWagner6Raw:function(){return la},geoWagner7:function(){return na},geoWagnerRaw:function(){return ta},geoWiechel:function(){return ha},geoWiechelRaw:function(){return ua},geoWinkel3:function(){return da},geoWinkel3Raw:function(){return fa}});var n=r(58712),i=Math.abs,a=Math.atan,o=Math.atan2,s=(Math.ceil,Math.cos),l=Math.exp,c=Math.floor,u=Math.log,h=Math.max,f=Math.min,d=Math.pow,p=Math.round,g=Math.sign||function(e){return e>0?1:e<0?-1:0},m=Math.sin,v=Math.tan,y=1e-6,x=1e-12,b=Math.PI,_=b/2,w=b/4,T=Math.SQRT1_2,k=I(2),A=I(b),M=2*b,S=180/b,E=b/180;function L(e){return e>1?_:e<-1?-_:Math.asin(e)}function C(e){return e>1?0:e<-1?b:Math.acos(e)}function I(e){return e>0?Math.sqrt(e):0}function D(e){return(l(e)-l(-e))/2}function P(e){return(l(e)+l(-e))/2}function O(e){var t=v(e/2),r=2*u(s(e/2))/(t*t);function n(e,t){var n=s(e),i=s(t),a=m(t),o=i*n,l=-((1-o?u((1+o)/2)/(1-o):-.5)+r/(1+o));return[l*i*m(e),l*a]}return n.invert=function(t,n){var a,l=I(t*t+n*n),c=-e/2,h=50;if(!l)return[0,0];do{var f=c/2,d=s(f),p=m(f),g=p/d,v=-u(i(d));c-=a=(2/g*v-r*g-l)/(-v/(p*p)+1-r/(2*d*d))*(d<0?.7:1)}while(i(a)>y&&--h>0);var x=m(c);return[o(t*x,l*s(c)),L(n*x/l)]},n}function z(){var e=_,t=(0,n.U)(O),r=t(e);return r.radius=function(r){return arguments.length?t(e=r*E):e*S},r.scale(179.976).clipAngle(147)}function R(e,t){var r=s(t),n=function(e){return e?e/Math.sin(e):1}(C(r*s(e/=2)));return[2*r*m(e)*n,m(t)*n]}function F(){return(0,n.A)(R).scale(152.63)}function j(e){var t=m(e),r=s(e),n=e>=0?1:-1,a=v(n*e),l=(1+t-r)/2;function c(e,i){var c=s(i),u=s(e/=2);return[(1+c)*m(e),(n*i>-o(u,a)-.001?0:10*-n)+l+m(i)*r-(1+c)*t*u]}return c.invert=function(e,c){var u=0,h=0,f=50;do{var d=s(u),p=m(u),g=s(h),v=m(h),x=1+g,b=x*p-e,_=l+v*r-x*t*d-c,w=x*d/2,T=-p*v,k=t*x*p/2,A=r*g+t*d*v,M=T*k-A*w,S=(_*T-b*A)/M/2,E=(b*k-_*w)/M;i(E)>2&&(E/=2),u-=S,h-=E}while((i(S)>y||i(E)>y)&&--f>0);return n*h>-o(s(u),a)-.001?[2*u,h]:null},c}function N(){var e=20*E,t=e>=0?1:-1,r=v(t*e),i=(0,n.U)(j),a=i(e),l=a.stream;return a.parallel=function(n){return arguments.length?(r=v((t=(e=n*E)>=0?1:-1)*e),i(e)):e*S},a.stream=function(n){var i=a.rotate(),c=l(n),u=(a.rotate([0,0]),l(n)),h=a.precision();return a.rotate(i),c.sphere=function(){u.polygonStart(),u.lineStart();for(var n=-180*t;t*n<180;n+=90*t)u.point(n,90*t);if(e)for(;t*(n-=3*t*h)>=-180;)u.point(n,t*-o(s(n*E/2),r)*S);u.lineEnd(),u.polygonEnd()},c},a.scale(218.695).center([0,28.0974])}function B(e,t){var r=v(t/2),n=I(1-r*r),i=1+n*s(e/=2),a=m(e)*n/i,o=r/i,l=a*a,c=o*o;return[4/3*a*(3+l-3*c),4/3*o*(3+3*l-c)]}function U(){return(0,n.A)(B).scale(66.1603)}R.invert=function(e,t){if(!(e*e+4*t*t>b*b+y)){var r=e,n=t,a=25;do{var o,l=m(r),c=m(r/2),u=s(r/2),h=m(n),f=s(n),d=m(2*n),p=h*h,g=f*f,v=c*c,x=1-g*u*u,_=x?C(f*u)*I(o=1/x):o=0,w=2*_*f*c-e,T=_*h-t,k=o*(g*v+_*f*u*p),A=o*(.5*l*d-2*_*h*c),M=.25*o*(d*c-_*h*g*l),S=o*(p*u+_*v*f),E=A*M-S*k;if(!E)break;var L=(T*A-w*S)/E,D=(w*M-T*k)/E;r-=L,n-=D}while((i(L)>y||i(D)>y)&&--a>0);return[r,n]}},B.invert=function(e,t){if(t*=3/8,!(e*=3/8)&&i(t)>1)return null;var r=1+e*e+t*t,n=I((r-I(r*r-4*t*t))/2),a=L(n)/3,l=n?function(e){return u(e+I(e*e-1))}(i(t/n))/3:function(e){return u(e+I(e*e+1))}(i(e))/3,c=s(a),h=P(l),f=h*h-c*c;return[2*g(e)*o(D(l)*c,.25-f),2*g(t)*o(h*m(a),.25+f)]};var V=I(8),q=u(1+k);function H(e,t){var r=i(t);return rx&&--c>0);return[e/(s(o)*(V-1/m(o))),g(t)*o]};var W=r(49447);function Y(e){var t=2*b/e;function r(e,r){var n=(0,W.j)(e,r);if(i(e)>_){var a=o(n[1],n[0]),l=I(n[0]*n[0]+n[1]*n[1]),c=t*p((a-_)/t)+_,u=o(m(a-=c),2-s(a));a=c+L(b/l*m(u))-u,n[0]=l*s(a),n[1]=l*m(a)}return n}return r.invert=function(e,r){var n=I(e*e+r*r);if(n>_){var i=o(r,e),l=t*p((i-_)/t)+_,c=i>l?-1:1,u=n*s(l-i),h=1/v(c*C((u-b)/I(b*(b-2*u)+n*n)));i=l+2*a((h+c*I(h*h-3))/3),e=n*s(i),r=n*m(i)}return W.j.invert(e,r)},r}function Z(){var e=5,t=(0,n.U)(Y),r=t(e),i=r.stream,a=.01,l=-s(a*E),c=m(a*E);return r.lobes=function(r){return arguments.length?t(e=+r):e},r.stream=function(t){var n=r.rotate(),u=i(t),h=(r.rotate([0,0]),i(t));return r.rotate(n),u.sphere=function(){h.polygonStart(),h.lineStart();for(var t=0,r=360/e,n=2*b/e,i=90-180/e,u=_;t0&&i(n)>y);return s<0?NaN:r}function ee(e,t,r){return void 0===t&&(t=40),void 0===r&&(r=x),function(n,a,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var h=0;hl)o-=c/=2,s-=u/=2;else{l=g;var m=(o>0?-1:1)*r,v=(s>0?-1:1)*r,y=e(o+m,s),x=e(o,s+v),b=(y[0]-f[0])/m,_=(y[1]-f[1])/m,w=(x[0]-f[0])/v,T=(x[1]-f[1])/v,k=T*b-_*w,A=(i(k)<.5?.5:1)/k;if(o+=c=(p*w-d*T)*A,s+=u=(d*_-p*b)*A,i(c)0&&(i[1]*=1+a/1.5*i[0]*i[0]),i}return t.invert=ee(t),t}function re(){return(0,n.A)(te()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function ne(e,t){var r,n=e*m(t),a=30;do{t-=r=(t+m(t)-n)/(1+s(t))}while(i(r)>y&&--a>0);return t/2}function ie(e,t,r){function n(n,i){return[e*n*s(i=ne(r,i)),t*m(i)]}return n.invert=function(n,i){return i=L(i/t),[n/(e*s(i)),L((2*i+m(2*i))/r)]},n}J.invert=function(e,t){var r=2*L(t/2);return[e*s(r/2)/s(r),r]};var ae=ie(k/_,k,b);function oe(){return(0,n.A)(ae).scale(169.529)}var se=2.00276,le=1.11072;function ce(e,t){var r=ne(b,t);return[se*e/(1/s(t)+le/s(r)),(t+k*m(r))/se]}function ue(){return(0,n.A)(ce).scale(160.857)}function he(e){var t=0,r=(0,n.U)(e),i=r(t);return i.parallel=function(e){return arguments.length?r(t=e*E):t*S},i}function fe(e,t){return[e*s(t),t]}function de(){return(0,n.A)(fe).scale(152.63)}function pe(e){if(!e)return fe;var t=1/v(e);function r(r,n){var i=t+e-n,a=i?r*s(n)/i:i;return[i*m(a),t-i*s(a)]}return r.invert=function(r,n){var i=I(r*r+(n=t-n)*n),a=t+e-i;return[i/s(a)*o(r,n),a]},r}function ge(){return he(pe).scale(123.082).center([0,26.1441]).parallel(45)}function me(e){function t(t,r){var n=_-r,i=n?t*e*m(n)/n:n;return[n*m(i)/e,_-n*s(i)]}return t.invert=function(t,r){var n=t*e,i=_-r,a=I(n*n+i*i),s=o(n,i);return[(a?a/m(a):1)*s/e,_-a]},t}function ve(){var e=.5,t=(0,n.U)(me),r=t(e);return r.fraction=function(r){return arguments.length?t(e=+r):e},r.scale(158.837)}ce.invert=function(e,t){var r,n,a=se*t,o=t<0?-w:w,l=25;do{n=a-k*m(o),o-=r=(m(2*o)+2*o-b*m(n))/(2*s(2*o)+2+b*s(n)*k*s(o))}while(i(r)>y&&--l>0);return n=a-k*m(o),[e*(1/s(n)+le/s(o))/se,n]},fe.invert=function(e,t){return[e/s(t),t]};var ye=ie(1,4/b,b);function xe(){return(0,n.A)(ye).scale(152.63)}var be=r(47875),_e=r(64377);function we(e,t,r,n,a,l){var c,u=s(l);if(i(e)>1||i(l)>1)c=C(r*a+t*n*u);else{var h=m(e/2),f=m(l/2);c=2*L(I(h*h+t*n*f*f))}return i(c)>y?[c,o(n*m(l),t*a-r*n*u)]:[0,0]}function Te(e,t,r){return C((e*e+t*t-r*r)/(2*e*t))}function ke(e){return e-2*b*c((e+b)/(2*b))}function Ae(e,t,r){for(var n,i=[[e[0],e[1],m(e[1]),s(e[1])],[t[0],t[1],m(t[1]),s(t[1])],[r[0],r[1],m(r[1]),s(r[1])]],a=i[2],o=0;o<3;++o,a=n)n=i[o],a.v=we(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=Te(i[0].v[0],i[2].v[0],i[1].v[0]),c=Te(i[0].v[0],i[1].v[0],i[2].v[0]),u=b-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var h=[i[2].point[0]=i[0].point[0]+i[2].v[0]*s(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*m(l))];return function(e,t){var r,n=m(t),a=s(t),o=new Array(3);for(r=0;r<3;++r){var l=i[r];if(o[r]=we(t-l[1],l[3],l[2],a,n,e-l[0]),!o[r][0])return l.point;o[r][1]=ke(o[r][1]-l.v[1])}var f=h.slice();for(r=0;r<3;++r){var d=2==r?0:r+1,p=Te(i[r].v[0],o[r][0],o[d][0]);o[r][1]<0&&(p=-p),r?1==r?(p=c-p,f[0]-=o[r][0]*s(p),f[1]-=o[r][0]*m(p)):(p=u-p,f[0]+=o[r][0]*s(p),f[1]+=o[r][0]*m(p)):(f[0]+=o[r][0]*s(p),f[1]-=o[r][0]*m(p))}return f[0]/=3,f[1]/=3,f}}function Me(e){return e[0]*=E,e[1]*=E,e}function Se(){return Ee([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ee(e,t,r){var i=(0,be.A)({type:"MultiPoint",coordinates:[e,t,r]}),a=[-i[0],-i[1]],o=(0,_e.A)(a),s=Ae(Me(o(e)),Me(o(t)),Me(o(r)));s.invert=ee(s);var l=(0,n.A)(s).rotate(a),c=l.center;return delete l.rotate,l.center=function(e){return arguments.length?c(o(e)):o.invert(c())},l.clipAngle(90)}function Le(e,t){var r=I(1-m(t));return[2/A*e*r,A*(1-r)]}function Ce(){return(0,n.A)(Le).scale(95.6464).center([0,30])}function Ie(e){var t=v(e);function r(e,r){return[e,(e?e/m(e):1)*(m(r)*s(e)-t*s(r))]}return r.invert=t?function(e,r){e&&(r*=m(e)/e);var n=s(e);return[e,2*o(I(n*n+t*t-r*r)-n,t-r)]}:function(e,t){return[e,L(e?t*v(e)/e:t)]},r}function De(){return he(Ie).scale(249.828).clipAngle(90)}Le.invert=function(e,t){var r=(r=t/A-1)*r;return[r>0?e*I(b/r)/2:0,L(1-r)]};var Pe=I(3);function Oe(e,t){return[Pe*e*(2*s(2*t/3)-1)/A,Pe*A*m(t/3)]}function ze(){return(0,n.A)(Oe).scale(156.19)}function Re(e){var t=s(e);function r(e,r){return[e*t,m(r)/t]}return r.invert=function(e,r){return[e/t,L(r*t)]},r}function Fe(){return he(Re).parallel(38.58).scale(195.044)}function je(e){var t=s(e);function r(e,r){return[e*t,(1+t)*v(r/2)]}return r.invert=function(e,r){return[e/t,2*a(r/(1+t))]},r}function Ne(){return he(je).scale(124.75)}function Be(e,t){var r=I(8/(3*b));return[r*e*(1-i(t)/b),r*t]}function Ue(){return(0,n.A)(Be).scale(165.664)}function Ve(e,t){var r=I(4-3*m(i(t)));return[2/I(6*b)*e*r,g(t)*I(2*b/3)*(2-r)]}function qe(){return(0,n.A)(Ve).scale(165.664)}function He(e,t){var r=I(b*(4+b));return[2/r*e*(1+I(1-4*t*t/(b*b))),4/r*t]}function Ge(){return(0,n.A)(He).scale(180.739)}function We(e,t){var r=(2+_)*m(t);t/=2;for(var n=0,a=1/0;n<10&&i(a)>y;n++){var o=s(t);t-=a=(t+m(t)*(o+2)-r)/(2*o*(1+o))}return[2/I(b*(4+b))*e*(1+s(t)),2*I(b/(4+b))*m(t)]}function Ye(){return(0,n.A)(We).scale(180.739)}function Ze(e,t){return[e*(1+s(t))/I(2+b),2*t/I(2+b)]}function Xe(){return(0,n.A)(Ze).scale(173.044)}function Ke(e,t){for(var r=(1+_)*m(t),n=0,a=1/0;n<10&&i(a)>y;n++)t-=a=(t+m(t)-r)/(1+s(t));return r=I(2+b),[e*(1+s(t))/r,2*t/r]}function Je(){return(0,n.A)(Ke).scale(173.044)}Oe.invert=function(e,t){var r=3*L(t/(Pe*A));return[A*e/(Pe*(2*s(2*r/3)-1)),r]},Be.invert=function(e,t){var r=I(8/(3*b)),n=t/r;return[e/(r*(1-i(n)/b)),n]},Ve.invert=function(e,t){var r=2-i(t)/I(2*b/3);return[e*I(6*b)/(2*r),g(t)*L((4-r*r)/3)]},He.invert=function(e,t){var r=I(b*(4+b))/2;return[e*r/(1+I(1-t*t*(4+b)/(4*b))),t*r/2]},We.invert=function(e,t){var r=t*I((4+b)/b)/2,n=L(r),i=s(n);return[e/(2/I(b*(4+b))*(1+i)),L((n+r*(i+2))/(2+_))]},Ze.invert=function(e,t){var r=I(2+b),n=t*r/2;return[r*e/(1+s(n)),n]},Ke.invert=function(e,t){var r=1+_,n=I(r/2);return[2*e*n/(1+s(t*=n)),L((t+m(t))/r)]};var Qe=3+2*k;function $e(e,t){var r=m(e/=2),n=s(e),i=I(s(t)),o=s(t/=2),l=m(t)/(o+k*n*i),c=I(2/(1+l*l)),h=I((k*o+(n+r)*i)/(k*o+(n-r)*i));return[Qe*(c*(h-1/h)-2*u(h)),Qe*(c*l*(h+1/h)-2*a(l))]}function et(){return(0,n.A)($e).scale(62.5271)}$e.invert=function(e,t){if(!(r=B.invert(e/1.2,1.065*t)))return null;var r,n=r[0],o=r[1],l=20;e/=Qe,t/=Qe;do{var c=n/2,d=o/2,p=m(c),g=s(c),v=m(d),x=s(d),b=s(o),w=I(b),A=v/(x+k*g*w),M=A*A,S=I(2/(1+M)),E=(k*x+(g+p)*w)/(k*x+(g-p)*w),L=I(E),C=L-1/L,D=L+1/L,P=S*C-2*u(L)-e,O=S*A*D-2*a(A)-t,z=v&&T*w*p*M/v,R=(k*g*x+w)/(2*(x+k*g*w)*(x+k*g*w)*w),F=-.5*A*S*S*S,j=F*z,N=F*R,U=(U=2*x+k*w*(g-p))*U*L,V=(k*g*x*w+b)/U,q=-k*p*v/(w*U),H=C*j-2*V/L+S*(V+V/E),G=C*N-2*q/L+S*(q+q/E),W=A*D*j-2*z/(1+M)+S*D*z+S*A*(V-V/E),Y=A*D*N-2*R/(1+M)+S*D*R+S*A*(q-q/E),Z=G*W-Y*H;if(!Z)break;var X=(O*G-P*Y)/Z,K=(P*W-O*H)/Z;n-=X,o=h(-_,f(_,o-K))}while((i(X)>y||i(K)>y)&&--l>0);return i(i(o)-_)n){var f=I(h),d=o(u,c),g=r*p(d/r),v=d-g,x=e*s(v),w=(e*m(v)-v*m(x))/(_-x),T=pt(v,w),k=(b-e)/gt(T,x,b);c=f;var A,M=50;do{c-=A=(e+gt(T,x,c)*k-f)/(T(c)*k)}while(i(A)>y&&--M>0);u=v*m(c),c<_&&(u-=w*(c-_));var S=m(g),E=s(g);l[0]=c*E-u*S,l[1]=c*S+u*E}return l}return a.invert=function(t,a){var l=t*t+a*a;if(l>n){var c=I(l),u=o(a,t),h=r*p(u/r),f=u-h;t=c*s(f),a=c*m(f);for(var d=t-_,g=m(t),v=a/g,y=t<_?1/0:0,w=10;;){var T=e*m(v),k=e*s(v),A=m(k),M=_-k,S=(T-v*A)/M,E=pt(v,S);if(i(y)y||i(d)>y)&&--v>0);return[p,g]},u}var yt=vt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xt(){return(0,n.A)(yt).scale(149.995)}var bt=vt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function _t(){return(0,n.A)(bt).scale(153.93)}var wt=vt(5/6*b,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Tt(){return(0,n.A)(wt).scale(130.945)}function kt(e,t){var r=e*e,n=t*t;return[e*(1-.162388*n)*(.87-952426e-9*r*r),t*(1+n/12)]}function At(){return(0,n.A)(kt).scale(131.747)}kt.invert=function(e,t){var r,n=e,a=t,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-t)/(1+s/4)}while(i(r)>y&&--o>0);o=50,e/=1-.162388*s;do{var l=(l=n*n)*l;n-=r=(n*(.87-952426e-9*l)-e)/(.87-.00476213*l)}while(i(r)>y&&--o>0);return[n,a]};var Mt=vt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function St(){return(0,n.A)(Mt).scale(131.087)}function Et(e){var t=e(_,0)[0]-e(-_,0)[0];function r(r,n){var i=r>0?-.5:.5,a=e(r+i*b,n);return a[0]-=i*t,a}return e.invert&&(r.invert=function(r,n){var i=r>0?-.5:.5,a=e.invert(r+i*t,n),o=a[0]-i*b;return o<-b?o+=2*b:o>b&&(o-=2*b),a[0]=o,a}),r}function Lt(e,t){var r=g(e),n=g(t),a=s(t),l=s(e)*a,c=m(e)*a,u=m(n*t);e=i(o(c,u)),t=L(l),i(e-_)>y&&(e%=_);var h=function(e,t){if(t===_)return[0,0];var r,n,a=m(t),o=a*a,l=o*o,c=1+l,u=1+3*l,h=1-l,f=L(1/I(c)),d=h+o*c*f,p=(1-a)/d,g=I(p),v=p*c,x=I(v),w=g*h;if(0===e)return[0,-(w+o*x)];var T,k=s(t),A=1/k,M=2*a*k,S=(-3*o+f*u)*M,E=(-d*k-(1-a)*S)/(d*d),C=o*c*E+p*u*M,D=-A*M,P=-A*C,O=-2*A*(h*(.5*E/g)-2*o*g*M),z=4*e/b;if(e>.222*b||t.175*b){if(r=(w+o*I(v*(1+l)-w*w))/(1+l),e>b/4)return[r,r];var R=r,F=.5*r;r=.5*(F+R),n=50;do{var j=r*(O+D*I(v-r*r))+P*L(r/x)-z;if(!j)break;j<0?F=r:R=r,r=.5*(F+R)}while(i(R-F)>y&&--n>0)}else{r=y,n=25;do{var N=r*r,B=I(v-N),U=O+D*B,V=r*U+P*L(r/x)-z;r-=T=B?V/(U+(P-D*N)/B):0}while(i(T)>y&&--n>0)}return[r,-w-o*I(v-r*r)]}(e>b/4?_-e:e,t);return e>b/4&&(u=h[0],h[0]=-h[1],h[1]=-u),h[0]*=r,h[1]*=-n,h}function Ct(){return(0,n.A)(Et(Lt)).scale(239.75)}function It(e,t){var r,n,o,c,u,h;if(t=1-y)return r=(1-t)/4,o=1/(n=P(e)),[(c=((h=l(2*(h=e)))-1)/(h+1))+r*((u=n*D(e))-e)/(n*n),o-r*c*o*(u-e),o+r*c*o*(u+e),2*a(l(e))-_+r*(u-e)/n];var f=[1,0,0,0,0,0,0,0,0],d=[I(t),0,0,0,0,0,0,0,0],p=0;for(n=I(1-t),u=1;i(d[p]/f[p])>y&&p<8;)r=f[p++],d[p]=(r-n)/2,f[p]=(r+n)/2,n=I(r*n),u*=2;o=u*f[p]*e;do{o=(L(c=d[p]*m(n=o)/f[p])+o)/2}while(--p);return[m(o),c=s(o),c/s(o-n),o]}function Dt(e,t){if(!t)return e;if(1===t)return u(v(e/2+w));for(var r=1,n=I(1-t),o=I(t),s=0;i(o)>y;s++){if(e%b){var l=a(n*v(e)/r);l<0&&(l+=b),e+=l+~~(e/b)*b}else e+=e;o=(r+n)/2,n=I(r*n),o=((r=o)-n)/2}return e/(d(2,s)*r)}function Pt(e,t){var r=(k-1)/(k+1),n=I(1-r*r),c=Dt(_,n*n),h=u(v(b/4+i(t)/2)),f=l(-1*h)/I(r),d=function(e,t){var r=e*e,n=t+1,i=1-r-t*t;return[.5*((e>=0?_:-_)-o(i,2*e)),-.25*u(i*i+4*r)+.5*u(n*n+r)]}(f*s(-1*e),f*m(-1*e)),p=function(e,t,r){var n=i(e),o=D(i(t));if(n){var s=1/m(n),l=1/(v(n)*v(n)),c=-(l+r*(o*o*s*s)-1+r),u=(-c+I(c*c-(r-1)*l*4))/2;return[Dt(a(1/I(u)),r)*g(e),Dt(a(I((u/l-1)/r)),1-r)*g(t)]}return[0,Dt(a(o),1-r)*g(t)]}(d[0],d[1],n*n);return[-p[1],(t>=0?1:-1)*(.5*c-p[0])]}function Ot(){return(0,n.A)(Et(Pt)).scale(151.496)}Lt.invert=function(e,t){i(e)>1&&(e=2*g(e)-e),i(t)>1&&(t=2*g(t)-t);var r=g(e),n=g(t),a=-r*e,l=-n*t,c=l/a<1,u=function(e,t){var r=0,n=1,a=.5,o=50;for(;;){var l=a*a,c=I(a),u=L(1/I(1+l)),h=1-l+a*(1+l)*u,f=(1-c)/h,d=I(f),p=f*(1+l),g=d*(1-l),m=I(p-e*e),v=t+g+a*m;if(i(n-r)0?r=a:n=a,a=.5*(r+n)}if(!o)return null;var y=L(c),_=s(y),w=1/_,T=2*c*_,k=(-h*_-(-3*a+u*(1+3*l))*T*(1-c))/(h*h),A=.5*k/d,M=(1-l)*A-2*a*d*T;return[b/4*(e*(-2*w*M+-w*T*m)+-w*(a*(1+l)*k+f*(1+3*l)*T)*L(e/I(p))),y]}(c?l:a,c?a:l),h=u[0],f=u[1],d=s(f);return c&&(h=-_-h),[r*(o(m(h)*d,-m(f))+b),n*L(s(h)*d)]},Pt.invert=function(e,t){var r=(k-1)/(k+1),n=I(1-r*r),i=function(e,t,r){var n,i,a;return e?(n=It(e,r),t?(a=(i=It(t,1-r))[1]*i[1]+r*n[0]*n[0]*i[0]*i[0],[[n[0]*i[2]/a,n[1]*n[2]*i[0]*i[1]/a],[n[1]*i[1]/a,-n[0]*n[2]*i[0]*i[2]/a],[n[2]*i[1]*i[2]/a,-r*n[0]*n[1]*i[0]/a]]):[[n[0],0],[n[1],0],[n[2],0]]):[[0,(i=It(t,1-r))[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]]}(.5*Dt(_,n*n)-t,-e,n*n),s=function(e,t){var r=t[0]*t[0]+t[1]*t[1];return[(e[0]*t[0]+e[1]*t[1])/r,(e[1]*t[0]-e[0]*t[1])/r]}(i[0],i[1]);return[o(s[1],s[0])/-1,2*a(l(-.5*u(r*s[0]*s[0]+r*s[1]*s[1])))-_]};var zt=r(19699);function Rt(e){var t=m(e),r=s(e),n=Ft(e);function a(e,a){var o=n(e,a);e=o[0],a=o[1];var l=m(a),c=s(a),u=s(e),h=C(t*l+r*c*u),f=m(h),d=i(f)>y?h/f:1;return[d*r*m(e),(i(e)>_?d:-d)*(t*c-r*l*u)]}return n.invert=Ft(-e),a.invert=function(e,r){var i=I(e*e+r*r),a=-m(i),l=s(i),c=i*l,u=-r*a,h=i*t,f=I(c*c+u*u-h*h),d=o(c*h+u*f,u*h-c*f),p=(i>_?-1:1)*o(e*a,i*s(d)*l+r*m(d)*a);return n.invert(p,d)},a}function Ft(e){var t=m(e),r=s(e);return function(e,n){var i=s(n),a=s(e)*i,l=m(e)*i,c=m(n);return[o(l,a*r-c*t),L(c*r+a*t)]}}function jt(){var e=0,t=(0,n.U)(Rt),r=t(e),i=r.rotate,a=r.stream,o=(0,zt.A)();return r.parallel=function(n){if(!arguments.length)return e*S;var i=r.rotate();return t(e=n*E).rotate(i)},r.rotate=function(t){return arguments.length?(i.call(r,[t[0],t[1]-e*S]),o.center([-t[0],-t[1]]),r):((t=i.call(r))[1]+=e*S,t)},r.stream=function(e){return(e=a(e)).sphere=function(){e.polygonStart();var t,r=o.radius(89.99)().coordinates[0],n=r.length-1,i=-1;for(e.lineStart();++i=0;)e.point((t=r[i])[0],t[1]);e.lineEnd(),e.polygonEnd()},e},r.scale(79.4187).parallel(45).clipAngle(179.999)}function Nt(e,t){return et?1:e>=t?0:NaN}var Bt=function(e){var t;return 1===e.length&&(t=e,e=function(e,r){return Nt(t(e),r)}),{left:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)<0?n=a+1:i=a}return n},right:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)>0?i=a:n=a+1}return n}}}(Nt),Ut=(Bt.right,Bt.left,Array.prototype);Ut.slice,Ut.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);function Vt(e){for(var t,r,n,i=e.length,a=-1,o=0;++a=0;)for(t=(n=e[i]).length;--t>=0;)r[--o]=n[t];return r}function qt(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),a=new Array(i);++nt){var v=f(e-1,h(0,c((d+b)/s)));(g=Le(d+=b*(e-1)/e-v*s,m))[0]=g[0]*M/r-M*(e-1)/(2*e)+v*M/e,g[1]=n+4*(g[1]-a)*o/M,p<0&&(g[1]=-g[1])}else g=Wt(d,p);return g[0]*=l,g[1]/=u,g}return d.invert=function(t,d){t/=l;var p=i(d*=u);if(p>n){var g=f(e-1,h(0,c((t+b)/s)));t=(t+b*(e-1)/e-g*s)*r/M;var m=Le.invert(t,.25*(p-n)*M/o+a);return m[0]-=b*(e-1)/e-g*s,d<0&&(m[1]=-m[1]),m}return Wt.invert(t,d)},d}function Zt(e,t){return[e,1&t?90-y:Gt]}function Xt(e,t){return[e,1&t?-90+y:-Gt]}function Kt(e){return[e[0]*(1-y),e[1]]}function Jt(){var e=4,t=(0,n.U)(Yt),r=t(e),i=r.stream;return r.lobes=function(r){return arguments.length?t(e=+r):e},r.stream=function(t){var n=r.rotate(),a=i(t),o=(r.rotate([0,0]),i(t));return r.rotate(n),a.sphere=function(){(0,Ht.A)(function(e){var t=[].concat(qt(-180,180+e/2,e).map(Zt),qt(180,-180-e/2,-e).map(Xt));return{type:"Polygon",coordinates:[180===e?t.map(Kt):t]}}(180/e),o)},a},r.scale(239.75)}function Qt(e){var t,r=1+e,n=L(m(1/r)),a=2*I(b/(t=b+4*n*r)),l=.5*a*(r+I(e*(2+e))),c=e*e,u=r*r;function h(h,f){var d,p,g=1-m(f);if(g&&g<2){var v,y=_-f,w=25;do{var T=m(y),k=s(y),A=n+o(T,r-k),M=1+u-2*r*k;y-=v=(y-c*n-r*T+M*A-.5*g*t)/(2*r*T*A)}while(i(v)>x&&--w>0);d=a*I(M),p=h*A/b}else d=a*(e+g),p=h*n/b;return[d*m(p),l-d*s(p)]}return h.invert=function(e,i){var s=e*e+(i-=l)*i,h=(1+u-s/(a*a))/(2*r),f=C(h),d=m(f),p=n+o(d,r-h);return[L(e/I(s))*b/p,L(1-2*(f-c*n-r*d+(1+u-2*r*h)*p)/t)]},h}function $t(){var e=1,t=(0,n.U)(Qt),r=t(e);return r.ratio=function(r){return arguments.length?t(e=+r):e},r.scale(167.774).center([0,18.67])}var er=.7109889596207567,tr=.0528035274542;function rr(e,t){return t>-er?((e=ae(e,t))[1]+=tr,e):fe(e,t)}function nr(){return(0,n.A)(rr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ir(e,t){return i(t)>er?((e=ae(e,t))[1]-=t>0?tr:-tr,e):fe(e,t)}function ar(){return(0,n.A)(ir).scale(152.63)}function or(e,t,r,n){var i=I(4*b/(2*r+(1+e-t/2)*m(2*r)+(e+t)/2*m(4*r)+t/2*m(6*r))),a=I(n*m(r)*I((1+e*s(2*r)+t*s(4*r))/(1+e+t))),o=r*c(1);function l(r){return I(1+e*s(2*r)+t*s(4*r))}function c(n){var i=n*r;return(2*i+(1+e-t/2)*m(2*i)+(e+t)/2*m(4*i)+t/2*m(6*i))/r}function u(e){return l(e)*m(e)}var h=function(e,t){var n=r*$(c,o*m(t)/r,t/b);isNaN(n)&&(n=r*g(t));var u=i*l(n);return[u*a*e/b*s(n),u/a*m(n)]};return h.invert=function(e,t){var n=$(u,t*a/i);return[e*b/(s(n)*i*a*l(n)),L(r*c(n/r)/o)]},0===r&&(i=I(n/b),(h=function(e,t){return[e*i,m(t)/i]}).invert=function(e,t){return[e/i,L(t*i)]}),h}function sr(){var e=1,t=0,r=45*E,i=2,a=(0,n.U)(or),o=a(e,t,r,i);return o.a=function(n){return arguments.length?a(e=+n,t,r,i):e},o.b=function(n){return arguments.length?a(e,t=+n,r,i):t},o.psiMax=function(n){return arguments.length?a(e,t,r=+n*E,i):r*S},o.ratio=function(n){return arguments.length?a(e,t,r,i=+n):i},o.scale(180.739)}function lr(e,t,r,n,i,a,o,s,l,c,u){if(u.nanEncountered)return NaN;var h,f,d,p,g,m,v,y,x,b;if(f=e(t+.25*(h=r-t)),d=e(r-.25*h),isNaN(f))u.nanEncountered=!0;else{if(!isNaN(d))return b=((m=(p=h*(n+4*f+i)/12)+(g=h*(i+4*d+a)/12))-o)/15,c>l?(u.maxDepthCount++,m+b):Math.abs(b)e?r=n:t=n,n=t+r>>1}while(n>t);var i=c[n+1]-c[n];return i&&(i=(e-c[n+1])/i),(n+1+i)/s}var f=2*h(1)/b*o/r,p=function(e,t){var r=h(i(m(t))),a=n(r)*e;return r/=f,[a,t>=0?r:-r]};return p.invert=function(e,t){var r;return i(t*=f)<1&&(r=g(t)*L(a(i(t))*o)),[e/n(i(t)),r]},p}function hr(){var e=0,t=2.5,r=1.183136,i=(0,n.U)(ur),a=i(e,t,r);return a.alpha=function(n){return arguments.length?i(e=+n,t,r):e},a.k=function(n){return arguments.length?i(e,t=+n,r):t},a.gamma=function(n){return arguments.length?i(e,t,r=+n):r},a.scale(152.63)}function fr(e,t){return i(e[0]-t[0])a[o][2][0];++o);var l=e(r-a[o][1][0],n);return l[0]+=e(a[o][1][0],i*n>i*a[o][0][1]?a[o][0][1]:n)[0],l}r?o.invert=r(o):e.invert&&(o.invert=function(r,n){for(var i=a[+(n<0)],s=t[+(n<0)],l=0,c=i.length;l=0;--s)r=(t=e[1][s])[0][0],n=t[0][1],i=t[1][1],a=t[2][0],o=t[2][1],l.push(dr([[a-y,o-y],[a-y,i+y],[r+y,i+y],[r+y,n-y]],30));return{type:"Polygon",coordinates:[Vt(l)]}}(r),t=r.map((function(e){return e.map((function(e){return[[e[0][0]*E,e[0][1]*E],[e[1][0]*E,e[1][1]*E],[e[2][0]*E,e[2][1]*E]]}))})),a=t.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a>o&&(r=a,a=o,o=r),[[n,a],[i,o]]}))})),s):t.map((function(e){return e.map((function(e){return[[e[0][0]*S,e[0][1]*S],[e[1][0]*S,e[1][1]*S],[e[2][0]*S,e[2][1]*S]]}))}))},null!=t&&s.lobes(t),s}rr.invert=function(e,t){return t>-er?ae.invert(e,t-tr):fe.invert(e,t)},ir.invert=function(e,t){return i(t)>er?ae.invert(e,t+(t>0?tr:-tr)):fe.invert(e,t)};var gr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function mr(){return pr(ce,gr).scale(160.857)}var vr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yr(){return pr(ir,vr).scale(152.63)}var xr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function br(){return pr(ae,xr).scale(169.529)}var _r=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function wr(){return pr(ae,_r).scale(169.529).rotate([20,0])}var Tr=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function kr(){return pr(rr,Tr,ee).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ar=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Mr(){return pr(fe,Ar).scale(152.63).rotate([-20,0])}function Sr(e,t){return[3/M*e*I(b*b/3-t*t),t]}function Er(){return(0,n.A)(Sr).scale(158.837)}function Lr(e){function t(t,r){if(i(i(r)-_)2)return null;var a=(t/=2)*t,s=(r/=2)*r,l=2*r/(1+a+s);return l=d((1+l)/(1-l),1/e),[o(2*t,1-a-s)/e,L((l-1)/(l+1))]},t}function Cr(){var e=.5,t=(0,n.U)(Lr),r=t(e);return r.spacing=function(r){return arguments.length?t(e=+r):e},r.scale(124.75)}Sr.invert=function(e,t){return[M/3*e/I(b*b/3-t*t),t]};var Ir=b/k;function Dr(e,t){return[e*(1+I(s(t)))/2,t/(s(t/2)*s(e/6))]}function Pr(){return(0,n.A)(Dr).scale(97.2672)}function Or(e,t){var r=e*e,n=t*t;return[e*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),t*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function zr(){return(0,n.A)(Or).scale(139.98)}function Rr(e,t){return[m(e)/s(t),v(t)*s(e)]}function Fr(){return(0,n.A)(Rr).scale(144.049).clipAngle(89.999)}function jr(e){var t=s(e),r=v(w+e/2);function n(n,a){var o=a-e,s=i(o)=0;)f=(h=e[u])[0]+l*(i=f)-c*d,d=h[1]+l*d+c*i;return[f=l*(i=f)-c*d,d=l*d+c*i]}return r.invert=function(r,n){var l=20,c=r,u=n;do{for(var h,f=t,d=e[f],p=d[0],g=d[1],v=0,x=0;--f>=0;)v=p+c*(h=v)-u*x,x=g+c*x+u*h,p=(d=e[f])[0]+c*(h=p)-u*g,g=d[1]+c*g+u*h;var b,_,w=(v=p+c*(h=v)-u*x)*v+(x=g+c*x+u*h)*x;c-=b=((p=c*(h=p)-u*g-r)*v+(g=c*g+u*h-n)*x)/w,u-=_=(g*v-p*x)/w}while(i(b)+i(_)>y*y&&--l>0);if(l){var T=I(c*c+u*u),k=2*a(.5*T),A=m(k);return[o(c*A,T*s(k)),T?L(u*A/T):0]}},r}Dr.invert=function(e,t){var r=i(e),n=i(t),a=y,o=_;ny||i(x)>y)&&--a>0);return a&&[r,n]},Rr.invert=function(e,t){var r=e*e,n=t*t+1,i=r+n,a=e?T*I((i-I(i*i-4*r))/r):1/I(n);return[L(e*a),g(t)*C(a)]},Br.invert=function(e,t){return[e,2.5*a(l(.8*t))-.625*b]};var qr=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Hr=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Gr=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Wr=[[.9245,0],[0,0],[.01943,0]],Yr=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Zr(){return $r(qr,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Xr(){return $r(Hr,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Kr(){return $r(Gr,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Jr(){return $r(Wr,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Qr(){return $r(Yr,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function $r(e,t){var r=(0,n.A)(Vr(e)).rotate(t).clipAngle(90),i=(0,_e.A)(t),a=r.center;return delete r.rotate,r.center=function(e){return arguments.length?a(i(e)):i.invert(a())},r}var en=I(6),tn=I(7);function rn(e,t){var r=L(7*m(t)/(3*en));return[en*e*(2*s(2*r/3)-1)/tn,9*m(r/3)/tn]}function nn(){return(0,n.A)(rn).scale(164.859)}function an(e,t){for(var r,n=(1+T)*m(t),a=t,o=0;o<25&&(a-=r=(m(a/2)+m(a)-n)/(.5*s(a/2)+s(a)),!(i(r)x&&--l>0);return[e/(.84719-.13063*(n=s*s)+(o=n*(a=n*n))*o*(.05494*n-.04515-.02326*a+.00331*o)),s]},fn.invert=function(e,t){for(var r=t/2,n=0,a=1/0;n<10&&i(a)>y;++n){var o=s(t/2);t-=a=(t-v(t/2)-r)/(1-.5/(o*o))}return[2*e/(1+s(t)),t]};var pn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gn(){return pr(K(1/0),pn).rotate([20,0]).scale(152.63)}function mn(e,t){var r=m(t),n=s(t),a=g(e);if(0===e||i(t)===_)return[0,t];if(0===t)return[e,0];if(i(e)===_)return[e*n,_*r];var o=b/(2*e)-2*e/b,l=2*t/b,c=(1-l*l)/(r-l),u=o*o,h=c*c,f=1+u/h,d=1+h/u,p=(o*r/c-o/2)/f,v=(h*r/u+c/2)/d,y=v*v-(h*r*r/u+c*r-1)/d;return[_*(p+I(p*p+n*n/f)*a),_*(v+I(y<0?0:y)*g(-t*o)*a)]}function vn(){return(0,n.A)(mn).scale(127.267)}mn.invert=function(e,t){var r=(e/=_)*e,n=r+(t/=_)*t,i=b*b;return[e?(n-1+I((1-n)*(1-n)+4*r))/(2*e)*_:0,$((function(e){return n*(b*m(e)-2*e)*b+4*e*e*(t-m(e))+2*b*e-i*t}),0)]};var yn=1.0148,xn=.23185,bn=-.14499,_n=.02406,wn=yn,Tn=5*xn,kn=7*bn,An=9*_n,Mn=1.790857183;function Sn(e,t){var r=t*t;return[e,t*(yn+r*r*(xn+r*(bn+_n*r)))]}function En(){return(0,n.A)(Sn).scale(139.319)}function Ln(e,t){if(i(t)Mn?t=Mn:t<-1.790857183&&(t=-1.790857183);var r,n=t;do{var a=n*n;n-=r=(n*(yn+a*a*(xn+a*(bn+_n*a)))-t)/(wn+a*a*(Tn+a*(kn+An*a)))}while(i(r)>y);return[e,n]},Ln.invert=function(e,t){if(i(t)y&&--o>0);return l=v(a),[(i(t)=0;)if(n=t[s],r[0]===n[0]&&r[1]===n[1]){if(a)return[a,r];a=r}}}(t.face,r.face),i=Pn(n.map(r.project),n.map(t.project));t.transform=r.transform?On(r.transform,i):i;for(var a=r.edges,o=0,s=a.length;o0?[-t[0],0]:[180-t[0],180])};var t=qn.map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,r){var n=t[e];n&&(n.children||(n.children=[])).push(t[r])})),Fn(t[0],(function(e,r){return t[e<-b/2?r<0?6:4:e<0?r<0?2:0:en^d>n&&r<(f-c)*(n-u)/(d-u)+c&&(i=!i)}return i}(e[0],r))return e.push(t),!0}))||e.push([t])})),ii=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}};function li(e){var t=e(_,0)[0]-e(-_,0)[0];function r(r,n){var a=i(r)<_,o=e(a?r:r>0?r-b:r+b,n),s=(o[0]-o[1])*T,l=(o[0]+o[1])*T;if(a)return[s,l];var c=t*T,u=s>0^l>0?-1:1;return[u*s-g(l)*c,u*l-g(s)*c]}return e.invert&&(r.invert=function(r,n){var a=(r+n)*T,o=(n-r)*T,s=i(a)<.5*t&&i(o)<.5*t;if(!s){var l=t*T,c=a>0^o>0?-1:1,u=-c*r+(o>0?1:-1)*l,h=-c*n+(a>0?1:-1)*l;a=(-u-h)*T,o=(u-h)*T}var f=e.invert(a,o);return s||(f[0]+=a>0?b:-b),f}),(0,n.A)(r).rotate([-90,-90,45]).clipAngle(179.999)}function ci(){return li(Lt).scale(176.423)}function ui(){return li(Pt).scale(111.48)}function hi(e,t){if(!(0<=(t=+t)&&t<=20))throw new Error("invalid digits");function r(e){var r=e.length,n=2,i=new Array(r);for(i[0]=+e[0].toFixed(t),i[1]=+e[1].toFixed(t);n2||a[0]!=t[0]||a[1]!=t[1])&&(n.push(a),t=a)}return 1===n.length&&e.length>1&&n.push(r(e[e.length-1])),n}function a(e){return e.map(i)}function o(e){if(null==e)return e;var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(o)};break;case"Point":t={type:"Point",coordinates:r(e.coordinates)};break;case"MultiPoint":t={type:e.type,coordinates:n(e.coordinates)};break;case"LineString":t={type:e.type,coordinates:i(e.coordinates)};break;case"MultiLineString":case"Polygon":t={type:e.type,coordinates:a(e.coordinates)};break;case"MultiPolygon":t={type:"MultiPolygon",coordinates:e.coordinates.map(a)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}function s(e){var t={type:"Feature",properties:e.properties,geometry:o(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),t}if(null!=e)switch(e.type){case"Feature":return s(e);case"FeatureCollection":var l={type:"FeatureCollection",features:e.features.map(s)};return null!=e.bbox&&(l.bbox=e.bbox),l;default:return o(e)}return e}function fi(e){var t=m(e);function r(r,n){var i=t?v(r*t/2)/t:r/2;if(!n)return[2*i,-e];var o=2*a(i*m(n)),l=1/v(n);return[m(o)*l,n+(1-s(o))*l-e]}return r.invert=function(r,n){if(i(n+=e)y&&--u>0);var p=r*(h=v(c)),g=v(i(n)0?_:-_)*(h+o*(p-l)/2+o*o*(p-2*h+l)/2)]}function mi(){return(0,n.A)(gi).scale(152.63)}function vi(e,t){var r=function(e){function t(t,r){var n=s(r),i=(e-1)/(e-n*s(t));return[i*n*m(t),i*m(r)]}return t.invert=function(t,r){var n=t*t+r*r,i=I(n),a=(e-I(1-n*(e+1)/(e-1)))/((e-1)/i+i/(e-1));return[o(t*a,i*I(1-a*a)),i?L(r*a/i):0]},t}(e);if(!t)return r;var n=s(t),i=m(t);function a(t,a){var o=r(t,a),s=o[1],l=s*i/(e-1)+n;return[o[0]*n/l,s/l]}return a.invert=function(t,a){var o=(e-1)/(e-1-a*i);return r.invert(o*t,o*a*n)},a}function yi(){var e=2,t=0,r=(0,n.U)(vi),i=r(e,t);return i.distance=function(n){return arguments.length?r(e=+n,t):e},i.tilt=function(n){return arguments.length?r(e,t=n*E):t*S},i.scale(432.147).clipAngle(C(1/e)*S-1e-6)}pi.forEach((function(e){e[1]*=1.0144})),gi.invert=function(e,t){var r=t/_,n=90*r,a=f(18,i(n/5)),o=h(0,c(a));do{var s=pi[o][1],l=pi[o+1][1],u=pi[f(19,o+2)][1],d=u-s,p=u-2*l+s,g=2*(i(r)-l)/d,m=p/d,v=g*(1-m*g*(1-2*m*g));if(v>=0||1===o){n=(t>=0?5:-5)*(v+a);var y,b=50;do{v=(a=f(18,i(n)/5))-(o=c(a)),s=pi[o][1],l=pi[o+1][1],u=pi[f(19,o+2)][1],n-=(y=(t>=0?_:-_)*(l+v*(u-s)/2+v*v*(u-2*l+s)/2)-t)*S}while(i(y)>x&&--b>0);break}}while(--o>=0);var w=pi[o][0],T=pi[o+1][0],k=pi[f(19,o+2)][0];return[e/(T+v*(k-w)/2+v*v*(k-2*T+w)/2),n*E]};var xi=1e-4,bi=1e4,_i=-180,wi=_i+xi,Ti=180,ki=Ti-xi,Ai=-90,Mi=Ai+xi,Si=90,Ei=Si-xi;function Li(e){return e.length>0}function Ci(e){return e===Ai||e===Si?[0,e]:[_i,(t=e,Math.floor(t*bi)/bi)];var t}function Ii(e){var t=e[0],r=e[1],n=!1;return t<=wi?(t=_i,n=!0):t>=ki&&(t=Ti,n=!0),r<=Mi?(r=Ai,n=!0):r>=Ei&&(r=Si,n=!0),n?[t,r]:e}function Di(e){return e.map(Ii)}function Pi(e,t,r){for(var n=0,i=e.length;n=ki||u<=Mi||u>=Ei){a[o]=Ii(l);for(var h=o+1;hwi&&dMi&&p=s)break;r.push({index:-1,polygon:t,ring:a=a.slice(h-1)}),a[0]=Ci(a[0][1]),o=-1,s=a.length}}}}function Oi(e){var t,r,n,i,a,o,s=e.length,l={},c={};for(t=0;t0?b-l:l)*S],u=(0,n.A)(e(s)).rotate(c),h=(0,_e.A)(c),f=u.center;return delete u.rotate,u.center=function(e){return arguments.length?f(h(e)):h.invert(f())},u.clipAngle(90)}function Ui(e){var t=s(e);function r(e,r){var n=(0,Un.T)(e,r);return n[0]*=t,n}return r.invert=function(e,r){return Un.T.invert(e/t,r)},r}function Vi(){return qi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function qi(e,t){return Bi(Ui,e,t)}function Hi(e){if(!(e*=2))return W.j;var t=-e/2,r=-t,n=e*e,i=v(r),a=.5/m(r);function l(i,a){var o=C(s(a)*s(i-t)),l=C(s(a)*s(i-r));return[((o*=o)-(l*=l))/(2*e),(a<0?-1:1)*I(4*n*l-(n-o+l)*(n-o+l))/(2*e)]}return l.invert=function(e,n){var l,c,u=n*n,h=s(I(u+(l=e+t)*l)),f=s(I(u+(l=e+r)*l));return[o(c=h-f,l=(h+f)*i),(n<0?-1:1)*C(I(l*l+c*c)*a)]},l}function Gi(){return Wi([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Wi(e,t){return Bi(Hi,e,t)}function Yi(e,t){if(i(t)y&&--l>0);return[g(e)*(I(a*a+4)+a)*b/4,_*s]};var ia=4*b+3*I(3),aa=2*I(2*b*I(3)/ia),oa=ie(aa*I(3)/b,aa,ia/6);function sa(){return(0,n.A)(oa).scale(176.84)}function la(e,t){return[e*I(1-3*t*t/(b*b)),t]}function ca(){return(0,n.A)(la).scale(152.63)}function ua(e,t){var r=s(t),n=s(e)*r,i=1-n,a=s(e=o(m(e)*r,-m(t))),l=m(e);return[l*(r=I(1-n*n))-a*i,-a*r-l*i]}function ha(){return(0,n.A)(ua).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function fa(e,t){var r=R(e,t);return[(r[0]+e/_)/2,(r[1]+t)/2]}function da(){return(0,n.A)(fa).scale(158.837)}la.invert=function(e,t){return[e/I(1-3*t*t/(b*b)),t]},ua.invert=function(e,t){var r=(e*e+t*t)/-2,n=I(-r*(2+r)),i=t*r+e*n,a=e*r-t*n,s=I(a*a+i*i);return[o(n*i,s*(1+r)),s?-L(n*a/s):0]},fa.invert=function(e,t){var r=e,n=t,a=25;do{var o,l=s(n),c=m(n),u=m(2*n),h=c*c,f=l*l,d=m(r),p=s(r/2),g=m(r/2),v=g*g,x=1-f*p*p,b=x?C(l*p)*I(o=1/x):o=0,w=.5*(2*b*l*g+r/_)-e,T=.5*(b*c+n)-t,k=.5*o*(f*v+b*l*p*h)+.5/_,A=o*(d*u/4-b*c*g),M=.125*o*(u*g-b*c*f*d),S=.5*o*(h*p+b*v*l)+.5,E=A*M-S*k,L=(T*A-w*S)/E,D=(w*M-T*k)/E;r-=L,n-=D}while((i(L)>y||i(D)>y)&&--a>0);return[r,n]}},14056:function(e,t,r){"use strict";var n=r(62405);e.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}},14126:function(e,t,r){"use strict";var n=r(5153),i=r(32915),a=r(87241).extendDeepAll,o=r(17342).overrideAll,s=r(46218),l=r(92704).templatedArray,c=r(61842),u=l("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=o(l("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:a(i({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:s.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:n({description:"Sets the font of the current value label text."})},font:n({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},14134:function(e,t,r){"use strict";e.exports=function(e,t,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var h=0;h<3;++h){for(var f=o.length/3|0,p=0;pe&&r>0){var n=(t[r][0]-e)/(t[r][0]-t[r-1][0]);return t[r][1]*(1-n)+n*t[r-1][1]}}return 1}function M(e){var t=n(e,y.vertex,y.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.pointSize.location=4,t}function S(e){var t=n(e,x.vertex,x.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t}function E(e){var t=n(e,b.vertex,b.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t.attributes.pointSize.location=4,t}function L(e){var t=n(e,_.vertex,_.fragment);return t.attributes.position.location=0,t}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(e){this.pickId=e},k.highlight=function(e){if(e&&this.contourEnable){for(var t=f(this.cells,this.intensity,e.intensity),r=t.cells,n=t.vertexIds,i=t.vertexWeights,a=r.length,o=d.mallocFloat32(6*a),s=0,l=0;l0&&((h=this.triShader).bind(),h.uniforms=s,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((h=this.lineShader).bind(),h.uniforms=s,this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((h=this.pointShader).bind(),h.uniforms=s,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((h=this.contourShader).bind(),h.uniforms=s,this.contourVAO.bind(),t.drawArrays(t.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(e){e=e||{};for(var t=this.gl,r=e.model||w,n=e.view||w,i=e.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;for(var t=e.value[0]+256*e.value[1]+65536*e.value[2],r=this.cells[t],n=this.positions,i=new Array(r.length),a=0;a=t||c===e.length-1)&&(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(e,t){var r=l(t.cells.values),d=function(e){return e.slice(t.header.values.length,e.length)},p=l(t.header.values);p.length&&!p[0].length&&(p[0]=[""],p=l(p));var g=p.concat(d(r).map((function(){return c((p[0]||[""]).length)}))),m=t.domain,v=Math.floor(e._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(e._fullLayout._size.h*(m.y[1]-m.y[0])),x=t.header.values.length?g[0].map((function(){return t.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return t.cells.height})):[],_=x.reduce(s,0),w=f(b,y-_+n.uplift),T=h(f(x,_),[]),k=h(w,T),A={},M=t._fullInput.columnorder.concat(d(r.map((function(e,t){return t})))),S=g.map((function(e,r){var n=Array.isArray(t.columnwidth)?t.columnwidth[Math.min(r,t.columnwidth.length-1)]:t.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(e){return e/E*v}));var L=Math.max(o(t.header.line.width),o(t.cells.line.width)),C={key:t.uid+e._context.staticPlot,translateX:m.x[0]*e._fullLayout._size.w,translateY:e._fullLayout._size.h*(1-m.y[1]),size:e._fullLayout._size,width:v,maxLineWidth:L,height:y,columnOrder:M,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},t.cells,{values:r}),headerCells:i({},t.header,{values:g}),gdColumns:g.map((function(e){return e[0]})),gdColumnsOriginalOrder:g.map((function(e){return e[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(e,t){var r=A[e];return A[e]=(r||0)+1,{key:e+"__"+A[e],label:e,specIndex:t,xIndex:M[t],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[t]}}))};return C.columns.forEach((function(e){e.calcdata=C,e.x=u(e)})),C}},14407:function(e,t,r){"use strict";var n=r(62282),i=r(47401),a=r(31454),o=r(58048),s=r(7536);e.exports=function(e,t,r,l){function c(r,n){return i.coerce(e,t,s,r,n)}var u=c("x"),h=c("y");c("cumulative.enabled")&&(c("cumulative.direction"),c("cumulative.currentbin")),c("text"),c("hovertext"),c("hovertemplate"),c("xhoverformat"),c("yhoverformat");var f=c("orientation",h&&!u?"h":"v"),d="v"===f?"x":"y",p="v"===f?"y":"x",g=u&&h?Math.min(i.minRowLength(u)&&i.minRowLength(h)):i.minRowLength(t[d]||[]);if(g){t._length=g,n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],l),t[p]&&c("histfunc"),c("histnorm"),c("autobin"+d),o(e,t,c,r,l),i.coerceSelectionMarkerOpacity(t,c);var m=(t.marker.line||{}).color,v=n.getComponentMethod("errorbars","supplyDefaults");v(e,t,m||a.defaultLine,{axis:"y"}),v(e,t,m||a.defaultLine,{axis:"x",inherit:"y"})}else t.visible=!1}},14503:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(8036),i=r(53129),a=(0,n.A)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Tt-e.getMinutes()*i.rR)}),(function(e,t){e.setTime(+e+t*i.JJ)}),(function(e,t){return(t-e)/i.JJ}),(function(e){return e.getHours()}));t.A=a;var o=a.range},14570:function(e,t,r){"use strict";var n=r(31534),i=r(52416),a=r(97451),o=r(20184).axisHoverFormat,s=r(87241).extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:s({},i.line.width,{dflt:.5,description:"Sets the contour line width in (in px)"}),dash:i.line.dash,smoothing:i.line.smoothing,editType:"plot"},xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:n.hovertemplate},a("",{cLetter:"z",editTypeOverride:"calc"}))},14612:function(e){"use strict";e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},14691:function(e,t,r){"use strict";var n=r(42706),i=r(57977);t.A=(0,n.A)((function(){return!0}),(function(e){var t,r=NaN,n=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var l=o>0?i.pi:-i.pi,c=(0,i.tn)(o-r);(0,i.tn)(c-i.pi)0?i.TW:-i.TW),e.point(a,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(o,n),t=0):a!==l&&c>=i.pi&&((0,i.tn)(r-a)i.Ni?(0,i.rY)(((0,i.F8)(t)*(o=(0,i.gn)(n))*(0,i.F8)(r)-(0,i.F8)(n)*(a=(0,i.gn)(t))*(0,i.F8)(e))/(a*o*s)):(t+n)/2}(r,n,o,s),e.point(a,n),e.lineEnd(),e.lineStart(),e.point(l,n),t=0),e.point(r=o,n=s),a=l},lineEnd:function(){e.lineEnd(),r=n=NaN},clean:function(){return 2-t}}}),(function(e,t,r,n){var a;if(null==e)a=r*i.TW,n.point(-i.pi,a),n.point(0,a),n.point(i.pi,a),n.point(i.pi,0),n.point(i.pi,-a),n.point(0,-a),n.point(-i.pi,-a),n.point(-i.pi,0),n.point(-i.pi,a);else if((0,i.tn)(e[0]-t[0])>i.Ni){var o=e[0]=0;r--)e.removeLayer(t[r][1])},o.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},e.exports=function(e,t){var r=t[0].trace,i=new a(e,r.uid),o=i.sourceId,s=n(t),l=i.below=e.belowLookup["trace-"+r.uid];return e.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),i}},14904:function(e,t,r){"use strict";var n=r(47401);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,r){if("splom"===e.type){for(var n=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index=c?(k=1,y=c+2*f+p):y=f*(k=-f/c)+p):(k=0,d>=0?(A=0,y=p):-d>=h?(A=1,y=h+2*d+p):y=d*(A=-d/h)+p);else if(A<0)A=0,f>=0?(k=0,y=p):-f>=c?(k=1,y=c+2*f+p):y=f*(k=-f/c)+p;else{var M=1/T;y=(k*=M)*(c*k+u*(A*=M)+2*f)+A*(u*k+h*A+2*d)+p}else k<0?(b=h+d)>(x=u+f)?(_=b-x)>=(w=c-2*u+h)?(k=1,A=0,y=c+2*f+p):y=(k=_/w)*(c*k+u*(A=1-k)+2*f)+A*(u*k+h*A+2*d)+p:(k=0,b<=0?(A=1,y=h+2*d+p):d>=0?(A=0,y=p):y=d*(A=-d/h)+p):A<0?(b=c+f)>(x=u+d)?(_=b-x)>=(w=c-2*u+h)?(A=1,k=0,y=h+2*d+p):y=(k=1-(A=_/w))*(c*k+u*A+2*f)+A*(u*k+h*A+2*d)+p:(A=0,b<=0?(k=1,y=c+2*f+p):f>=0?(k=0,y=p):y=f*(k=-f/c)+p):(_=h+d-u-f)<=0?(k=0,A=1,y=h+2*d+p):_>=(w=c-2*u+h)?(k=1,A=0,y=c+2*f+p):y=(k=_/w)*(c*k+u*(A=1-k)+2*f)+A*(u*k+h*A+2*d)+p;var S=1-k-A;for(l=0;l=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function N(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",i+"Z")}function B(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:h.background,stroke:h.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,r)).attr("d","M0,0Z")}function U(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),V(e,t,i,a)}function V(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function q(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function H(e){D&&e.data&&e._context.showTips&&(i.notifier(i._(e,"Double-click to zoom back out"),"long"),D=!1)}function G(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,I)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function W(e,t,r,n,a){for(var o,s,l,c,u=!1,h={},f={},d=(a||{}).xaHash,p=(a||{}).yaHash,g=0;g=0)i._fullLayout._deactivateShape(i);else{var o=i._fullLayout.clickmode;if(q(i),2!==e||ve||He(),me)o.indexOf("select")>-1&&S(r,i,K,J,t.id,Ie),o.indexOf("event")>-1&&d.click(i,r,t.id);else if(1===e&&ve){var s=g?P:D,c="s"===g||"w"===v?0:1,h=s._name+".range["+c+"]",f=function(e,t){var r,n=e.range[t],i=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a("."+String(r)+"g")(n))}(s,c),p="left",m="middle";if(s.fixedrange)return;g?(m="n"===g?"top":"bottom","right"===s.side&&(p="right")):"e"===v&&(p="right"),i._context.showAxisRangeEntryBoxes&&n.select(be).call(u.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:"#444",horizontalAlign:p,verticalAlign:m}).on("edit",(function(e){var t=s.d2r(e);void 0!==t&&l.call("_guiRelayout",i,h,t)}))}}}function Oe(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(ee,de*t+_e)),i=Math.max(0,Math.min(te,pe*r+we)),a=Math.abs(n-_e),o=Math.abs(i-we);function s(){Se="",Te.r=Te.l,Te.t=Te.b,Le.attr("d","M0,0Z")}if(Te.l=Math.min(_e,n),Te.r=Math.max(_e,n),Te.t=Math.min(we,i),Te.b=Math.max(we,i),re.isSubplotConstrained)a>I||o>I?(Se="xy",a/ee>o/te?(o=a*te/ee,we>i?Te.t=we-o:Te.b=we+o):(a=o*ee/te,_e>n?Te.l=_e-a:Te.r=_e+a),Le.attr("d",G(Te))):s();else if(ne.isSubplotConstrained)if(a>I||o>I){Se="xy";var l=Math.min(Te.l/ee,(te-Te.b)/te),c=Math.max(Te.r/ee,(te-Te.t)/te);Te.l=l*ee,Te.r=c*ee,Te.b=(1-l)*te,Te.t=(1-c)*te,Le.attr("d",G(Te))}else s();else!ae||o0){var u;if(ne.isSubplotConstrained||!ie&&1===ae.length){for(u=0;u>1:(e>>1)-1}function x(e){for(var t=v(e);;){var r=t,n=2*e+1,i=2*(e+1),a=e;if(n0;){var r=y(e);if(r>=0)if(t0){var e=k[0];return m(0,M-1),M-=1,x(0),e}return-1}function w(e,t){var r=k[e];return c[r]===t?e:(c[r]=-1/0,b(e),_(),c[r]=t,b((M+=1)-1))}function T(e){if(!u[e]){u[e]=!0;var t=s[e],r=l[e];s[r]>=0&&(s[r]=t),l[t]>=0&&(l[t]=r),A[t]>=0&&w(A[t],g(t)),A[r]>=0&&w(A[r],g(r))}}var k=[],A=new Array(a);for(h=0;h>1;h>=0;--h)x(h);for(;;){var S=_();if(S<0||c[S]>r)break;T(S)}var E=[];for(h=0;h=0&&r>=0&&t!==r){var n=A[t],i=A[r];n!==i&&C.push([n,i])}})),i.unique(i.normalize(C)),{positions:E,edges:C}};var n=r(30223),i=r(15751)},15751:function(e,t,r){"use strict";var n=r(95424),i=r(64111);function a(e,t){var r=e.length,n=e.length-t.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return e[0]-t[0];case 2:return(s=e[0]+e[1]-t[0]-t[1])||i(e[0],e[1])-i(t[0],t[1]);case 3:var a=e[0]+e[1],o=t[0]+t[1];if(s=a+e[2]-(o+t[2]))return s;var s,l=i(e[0],e[1]),c=i(t[0],t[1]);return(s=i(l,e[2])-i(c,t[2]))||i(l+e[2],a)-i(c+t[2],o);default:var u=e.slice(0);u.sort();var h=t.slice(0);h.sort();for(var f=0;f>1,s=a(e[o],t);s<=0?(0===s&&(i=o),r=o+1):s>0&&(n=o-1)}return i}function u(e,t){for(var r=new Array(e.length),i=0,o=r.length;i=e.length||0!==a(e[m],s)););}return r}function h(e,t){if(t<0)return[];for(var r=[],i=(1<>>u&1&&c.push(i[u]);t.push(c)}return s(t)},t.skeleton=h,t.boundary=function(e){for(var t=[],r=0,n=e.length;re[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=this.toJD(-1===t?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.hebrew=a},15985:function(e){e.exports=function(e){var t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},16032:function(e,t,r){"use strict";var n=r(21661),i=r(62282),a=r(31454),o=r(47401).fillText,s=r(97547).getLineWidth,l=r(37762).hoverLabelText,c=r(9405).BADNUM;function u(e,t,r,i,a){var s,u,h,f,d,p,g,m=e.cd,v=m[0].trace,y=m[0].t,x="closest"===i,b="waterfall"===v.type,_=e.maxHoverDistance,w=e.maxSpikeDistance;"h"===v.orientation?(s=r,u=t,h="y",f="x",d=O,p=D):(s=t,u=r,h="x",f="y",p=O,d=D);var T=v[h+"period"],k=x||T;function A(e){return S(e,-1)}function M(e){return S(e,1)}function S(e,t){var r=e.w;return e[h]+t*r/2}function E(e){return e[h+"End"]-e[h+"Start"]}var L=x?A:T?function(e){return e.p-E(e)/2}:function(e){return Math.min(A(e),e.p-y.bardelta/2)},C=x?M:T?function(e){return e.p+E(e)/2}:function(e){return Math.max(M(e),e.p+y.bardelta/2)};function I(e,t,r){return a.finiteRange&&(r=0),n.inbox(e-s,t-s,r+Math.min(1,Math.abs(t-e)/g)-1)}function D(e){return I(L(e),C(e),_)}function P(e){var t=e[f];if(b){var r=Math.abs(e.rawS)||0;u>0?t+=r:u<0&&(t-=r)}return t}function O(e){var t=u,r=e.b,i=P(e);return n.inbox(r-t,i-t,_+(i-t)/(i-r)-1)}var z=e[h+"a"],R=e[f+"a"];g=Math.abs(z.r2c(z.range[1])-z.r2c(z.range[0]));var F=n.getDistanceFunction(i,d,p,(function(e){return(d(e)+p(e))/2}));if(n.getClosest(m,F,e),!1!==e.index&&m[e.index].p!==c){k||(L=function(e){return Math.min(A(e),e.p-y.bargroupwidth/2)},C=function(e){return Math.max(M(e),e.p+y.bargroupwidth/2)});var j=m[e.index],N=v.base?j.b+j.s:j.s;e[f+"0"]=e[f+"1"]=R.c2p(j[f],!0),e[f+"LabelVal"]=N;var B=y.extents[y.extents.round(j.p)];e[h+"0"]=z.c2p(x?L(j):B[0],!0),e[h+"1"]=z.c2p(x?C(j):B[1],!0);var U=void 0!==j.orig_p;return e[h+"LabelVal"]=U?j.orig_p:j.p,e.labelLabel=l(z,e[h+"LabelVal"],v[h+"hoverformat"]),e.valueLabel=l(R,e[f+"LabelVal"],v[f+"hoverformat"]),e.baseLabel=l(R,j.b,v[f+"hoverformat"]),e.spikeDistance=(function(e){var t=u,r=e.b,i=P(e);return n.inbox(r-t,i-t,w+(i-t)/(i-r)-1)}(j)+function(e){return I(A(e),M(e),w)}(j))/2,e[h+"Spike"]=z.c2p(j.p,!0),o(j,v,e),e.hovertemplate=v.hovertemplate,e}}function h(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=s(e,t);return a.opacity(r)?r:a.opacity(n)&&i?n:void 0}e.exports={hoverPoints:function(e,t,r,n,a){var o=u(e,t,r,n,a);if(o){var s=o.cd,l=s[0].trace,c=s[o.index];return o.color=h(l,c),i.getComponentMethod("errorbars","hoverInfo")(c,l,o),[o]}},hoverOnBars:u,getTraceColor:h}},16283:function(e){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}},16318:function(e,t,r){e.exports=function(e){for(var t=n(e),r=0,i=0;i1?(I=["toggleHover"],D=["resetViews"]):v?(C=["zoomInGeo","zoomOutGeo"],I=["hoverClosestGeo"],D=["resetGeo"]):m?(I=["hoverClosest3d"],D=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(C=["zoomInMapbox","zoomOutMapbox"],I=["toggleHover"],D=["resetViewMapbox"]):b?I=["hoverClosestGl2d"]:y?I=["hoverClosestPie"]:k?(I=["hoverClosestCartesian","hoverCompareCartesian"],D=["resetViewSankey"]):I=["toggleHover"];g&&(I=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t=0){var g=t[p]-n[p]*(t[p+2]-t[p])/(n[p+2]-n[p]);0===p?o.drawLine(g,t[1],g,t[3],d[p],f[p]):o.drawLine(t[0],g,t[2],g,d[p],f[p])}}for(p=0;p=0;--e)this.objects[e].dispose();this.objects.length=0;for(e=this.overlays.length-1;e>=0;--e)this.overlays[e].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(e){this.objects.indexOf(e)<0&&(this.objects.push(e),this.setDirty())},c.removeObject=function(e){for(var t=this.objects,r=0;r0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a);return e}},16545:function(e,t,r){"use strict";var n=r(62282),i=r(47401),a=r(42837),o=r(19744),s=r(81255),l=r(46218),c=r(12788).configAttributes,u=r(17342),h=i.extendDeepAll,f=i.isPlainObject,d=i.isArrayOrTypedArray,p=i.nestedProperty,g=i.valObjectMeta,m="_isSubplotObj",v="_isLinkedToArray",y="_deprecated",x=[m,v,"_arrayAttrRegexps",y];function b(e,t,r){if(!e)return!1;if(e._isLinkedToArray)if(_(t[r]))r++;else if(r=a.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!_(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function _(e){return e===Math.round(e)&&e>=0}function w(){var e,t,r={};for(e in h(r,o),n.subplotsRegistry){if((t=n.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var i=0;i=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&&r[t[2]],s=3}else{var u=e._module;if(u||(u=(n.modules[e.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(r=u.attributes)&&r[o])){var h=u.basePlotModule;h&&h.attributes&&(i=h.attributes[o])}i||(i=a[o])}return b(i,t,s)},t.getLayoutValObject=function(e,t){var r=function(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var c;for(r=0;re&&r>0){var n=(t[r][0]-e)/(t[r][0]-t[r-1][0]);return t[r][1]*(1-n)+n*t[r-1][1]}}return 1}(n/255,t):e[3];return i<1&&(r=!0),[e[0],e[1],e[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},L.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},L.isOpaque=function(){return!this.isTransparent()},L.pickSlots=1,L.setPickBase=function(e){this.pickId=e};var C=[0,0,0],I={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function D(e,t){var r,n,i,a=t.axes&&t.axes.lastCubeProps.axis||C,o=t.showSurface,s=t.showContour;for(r=0;r<3;++r)for(o=o||t.surfaceProject[r],n=0;n<3;++n)s=s||t.contourProject[r][n];for(r=0;r<3;++r){var l=I.projections[r];for(n=0;n<16;++n)l[n]=0;for(n=0;n<4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=t.axesBounds[+(a[r]>0)][r],d(l,e.model,l);var c=I.clipBounds[r];for(i=0;i<2;++i)for(n=0;n<3;++n)c[i][n]=e.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return I.showSurface=o,I.showContour=s,I}var P={model:T,view:T,projection:T,inverseModel:T.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},O=T.slice(),z=[1,0,0,0,1,0,0,0,1];function R(e,t){e=e||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=P;n.model=e.model||T,n.view=e.view||T,n.projection=e.projection||T,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=p(n.inverseModel,n.model);for(var i=0;i<2;++i)for(var a=n.clipBounds[i],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=O;for(d(s,n.view,n.model),d(s,n.projection,s),p(s,s),i=0;i<3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i<3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){var c=s[12+i];for(o=0;o<3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=D(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i<3;++i)this.surfaceProject[i]&&this.vertexCount&&(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var h=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,h.bind(),h.uniforms=n;var f=this._contourVAO;for(f.bind(),i=0;i<3;++i)for(h.uniforms.permutation=A[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o>4)/16)/255,i=Math.floor(n),a=n-i,o=t[1]*(e.value[1]+(15&e.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var h=u?a:1-a,f=0;f<2;++f)for(var d=i+u,p=s+f,m=h*(f?l:1-l),v=0;v<3;++v)c[v]+=this._field[v].get(d,p)*m;for(var y=this._pickResult.level,x=0;x<3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]<0)this.contourLevels[x].length>0&&(y[x]=0);else if(y[x]Math.abs(_-c[x])&&(y[x]+=1)}for(r.index[0]=a<.5?i:i+1,r.index[1]=l<.5?s:s+1,r.uv[0]=n/t[0],r.uv[1]=o/t[1],v=0;v<3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},L.padField=function(e,t){var r=t.shape.slice(),n=e.shape.slice();c.assign(e.lo(1,1).hi(r[0],r[1]),t),c.assign(e.lo(1).hi(r[0],1),t.hi(r[0],1)),c.assign(e.lo(1,n[1]-1).hi(r[0],1),t.lo(0,r[1]-1).hi(r[0],1)),c.assign(e.lo(0,1).hi(1,r[1]),t.hi(1)),c.assign(e.lo(n[0]-1,1).hi(1,r[1]),t.lo(r[0]-1)),e.set(0,0,t.get(0,0)),e.set(0,n[1]-1,t.get(0,r[1]-1)),e.set(n[0]-1,0,t.get(r[0]-1,0)),e.set(n[0]-1,n[1]-1,t.get(r[0]-1,r[1]-1))},L.update=function(e){e=e||{},this.objectOffset=e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in e&&(this.contourWidth=j(e.contourWidth,Number)),"showContour"in e&&(this.showContour=j(e.showContour,Boolean)),"showSurface"in e&&(this.showSurface=!!e.showSurface),"contourTint"in e&&(this.contourTint=j(e.contourTint,Boolean)),"contourColor"in e&&(this.contourColor=B(e.contourColor)),"contourProject"in e&&(this.contourProject=j(e.contourProject,(function(e){return j(e,Boolean)}))),"surfaceProject"in e&&(this.surfaceProject=e.surfaceProject),"dynamicColor"in e&&(this.dynamicColor=B(e.dynamicColor)),"dynamicTint"in e&&(this.dynamicTint=j(e.dynamicTint,Number)),"dynamicWidth"in e&&(this.dynamicWidth=j(e.dynamicWidth,Number)),"opacity"in e&&(this.opacity=e.opacity),"opacityscale"in e&&(this.opacityscale=e.opacityscale),"colorBounds"in e&&(this.colorBounds=e.colorBounds),"vertexColor"in e&&(this.vertexColor=e.vertexColor?1:0),"colormap"in e&&this._colorMap.setPixels(this.genColormap(e.colormap,this.opacityscale));var t=e.field||e.coords&&e.coords[2]||null,r=!1;if(t||(t=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in e||"coords"in e){var i=(t.shape[0]+2)*(t.shape[1]+2);i>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=h(this._field[2].data,[t.shape[0]+2,t.shape[1]+2]),this.padField(this._field[2],t),this.shape=t.shape.slice();for(var a=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=h(this._field[o].data,[a[0]+2,a[1]+2]);if(e.coords){var l=e.coords;if(!Array.isArray(l)||3!==l.length)throw new Error("gl-surface: invalid coordinates for x/y");for(o=0;o<2;++o){var c=l[o];for(v=0;v<2;++v)if(c.shape[v]!==a[v])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[o],c)}}else if(e.ticks){var u=e.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error("gl-surface: invalid ticks");for(o=0;o<2;++o){var d=u[o];if((Array.isArray(d)||d.length)&&(d=h(d)),d.shape[0]!==a[o])throw new Error("gl-surface: invalid tick length");var p=h(d.data,a);p.stride[o]=d.stride[0],p.stride[1^o]=0,this.padField(this._field[o],p)}}else{for(o=0;o<2;++o){var g=[0,0];g[o]=1,this._field[o]=h(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v0){for(var xe=0;xe<5;++xe)Q.pop();U-=1}continue e}Q.push(ne[0],ne[1],oe[0],oe[1],ne[2]),U+=1}}re.push(U)}this._contourOffsets[$]=te,this._contourCounts[$]=re}var be=s.mallocFloat(Q.length);for(o=0;o-1?-1:e.indexOf("right")>-1?1:0}function b(e){return null===e||void 0===e?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function _(e,t){return t(4*e)}function w(e){return d[e]}function T(e,t,r,n,i){var a=null;if(l.isArrayOrTypedArray(e)){a=[];for(var o=0;o=0){var g=function(e,t,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n0?1:0}},17817:function(e){"use strict";e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i=n?(i=h,(l+=1)=0}}(),a.removeTriangle=function(e,t,r){var n=this.stars;o(n[e],t,r),o(n[t],r,e),o(n[r],e,t)},a.addTriangle=function(e,t,r){var n=this.stars;n[e].push(t,r),n[t].push(r,e),n[r].push(e,t)},a.opposite=function(e,t){for(var r=this.stars[t],n=1,i=r.length;n=n&&e<=i?e:u}if("string"!==typeof e&&"number"!==typeof e)return u;e=String(e);var c=_(r),v=e.charAt(0);!c||"G"!==v&&"g"!==v||(e=e.substr(1),r="");var w=c&&"chinese"===r.substr(0,7),T=e.match(w?x:y);if(!T)return u;var k=T[1],A=T[3]||"1",M=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),L=Number(T[11]||0);if(c){if(2===k.length)return u;var C;k=Number(k);try{var I=m.getComponentMethod("calendars","getCal")(r);if(w){var D="i"===A.charAt(A.length-1);A=parseInt(A,10),C=I.newDate(k,I.toMonthIndex(k,A,D),M)}else C=I.newDate(k,Number(A),M)}catch(O){return u}return C?(C.toJD()-g)*h+S*f+E*d+L*p:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),A-=1;var P=new Date(Date.UTC(2e3,A,M,S,E));return P.setUTCFullYear(k),P.getUTCMonth()!==A||P.getUTCDate()!==M?u:P.getTime()+L*p},n=t.MIN_MS=t.dateTime2ms("-9999"),i=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,r){return t.dateTime2ms(e,r)!==u};var T=90*h,k=3*f,A=5*d;function M(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+w(t,2)+":"+w(r,2),(n||i)&&(e+=":"+w(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+w(i,a)}return e}t.ms2DateTime=function(e,t,r){if("number"!==typeof e||!(e>=n&&e<=i))return u;t||(t=0);var a,o,s,c,y,x,b=Math.floor(10*l(e+.05,1)),w=Math.round(e-b/10);if(_(r)){var S=Math.floor(w/h)+g,E=Math.floor(l(e,h));try{a=m.getComponentMethod("calendars","getCal")(r).fromJD(S).formatDate("yyyy-mm-dd")}catch(L){a=v("G%Y-%m-%d")(new Date(w))}if("-"===a.charAt(0))for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=n+h&&e<=i-h))return u;var t=Math.floor(10*l(e+.05,1)),r=new Date(Math.round(e-t/10));return M(a("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},t.cleanDate=function(e,r,n){if(e===u)return r;if(t.isJSDate(e)||"number"===typeof e&&isFinite(e)){if(_(n))return s.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==r)return r}else if(!t.isDateTime(e,n))return s.error("unrecognized date",e),r;return e};var S=/%\d?f/g,E=/%h/g,L={1:"1",2:"1",3:"2",4:"2"};function C(e,t,r,n){e=e.replace(S,(function(e){var r=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var i=new Date(Math.floor(t+.05));if(e=e.replace(E,(function(){return L[r("%q")(i)]})),_(n))try{e=m.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var I=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,r,n,i,a){if(i=_(i)&&i,!t)if("y"===r)t=a.year;else if("m"===r)t=a.month;else{if("d"!==r)return function(e,t){var r=l(e+.05,h),n=w(Math.floor(r/f),2)+":"+w(l(Math.floor(r/d),60),2);if("M"!==t){o(t)||(t=0);var i=(100+Math.min(l(e/p,60),I[t])).toFixed(t).substr(1);t>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}(e,r)+"\n"+C(a.dayMonthYear,e,n,i);t=a.dayMonth+"\n"+a.year}return C(t,e,n,i)};var D=3*h;t.incrementMonth=function(e,t,r){r=_(r)&&r;var n=l(e,h);if(e=Math.round(e-n),r)try{var i=Math.round(e/h)+g,a=m.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-g)*h+n}catch(u){s.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+D);return c.setUTCMonth(c.getUTCMonth()+t)+n-D},t.findExactDates=function(e,t){for(var r,n,i=0,a=0,s=0,l=0,c=_(t)&&m.getComponentMethod("calendars","getCal")(t),u=0;u0?(0,n.A)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null},t.A=i;var a=i.range},18878:function(e,t,r){"use strict";var n=r(47401),i=r(31454),a=r(62282),o=r(87243),s=r(75781),l=r(58048),c=r(30807).getAxisGroup,u=r(66905),h=n.coerceFont;function f(e,t,r,n){var i=t.orientation,a=t[{v:"x",h:"y"}[i]+"axis"],o=c(r,a)+i,s=r._alignmentOpts||{},l=n("alignmentgroup"),u=s[o];u||(u=s[o]={});var h=u[l];h?h.traces.push(t):h=u[l]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var f=n("offsetgroup"),d=h.offsetGroups,p=d[f];f&&(p||(p=d[f]={offsetIndex:Object.keys(d).length}),t._offsetIndex=p.offsetIndex)}function d(e,t,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),f=!(!1===o.moduleHasTextangle),d=!(!1===o.moduleHasInsideanchor),p=!!o.hasPathbar,g=Array.isArray(a)||"auto"===a,m=g||"inside"===a,v=g||"outside"===a;if(m||v){var y=h(i,"textfont",r.font),x=n.extendFlat({},y),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,h(i,"insidetextfont",x),p){var _=n.extendFlat({},y);b&&delete _.color,h(i,"pathbar.textfont",_)}v&&h(i,"outsidetextfont",y),s&&i("selected.textfont.color"),l&&i("unselected.textfont.color"),c&&i("constraintext"),u&&i("cliponaxis"),f&&i("textangle"),i("texttemplate")}m&&d&&i("insidetextanchor")}e.exports={supplyDefaults:function(e,t,r,c){function h(r,i){return n.coerce(e,t,u,r,i)}if(o(e,t,c,h)){s(e,t,c,h),h("xhoverformat"),h("yhoverformat"),h("orientation",t.x&&!t.y?"h":"v"),h("base"),h("offset"),h("width"),h("text"),h("hovertext"),h("hovertemplate");var f=h("textposition");d(e,t,c,h,f,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(e,t,h,r,c);var p=(t.marker.line||{}).color,g=a.getComponentMethod("errorbars","supplyDefaults");g(e,t,p||i.defaultLine,{axis:"y"}),g(e,t,p||i.defaultLine,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1},crossTraceDefaults:function(e,t){var r;function i(e){return n.coerce(r._input,r,u,e)}if("group"===t.barmode)for(var a=0;a path").each((function(e){if(!e.isBlank){var t=s[e.dir].marker;n.select(this).call(a.fill,t.color).call(a.stroke,t.line.color).call(i.dashLine,t.line.dash,t.line.width).style("opacity",s.selectedpoints&&!e.selected?o:1)}})),c(r,s,e),r.selectAll(".lines").each((function(){var e=s.connector.line;i.lineGroupStyle(n.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},19179:function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:r(70029),categories:["polar","symbols","showLegend","scatter-like"],attributes:r(38866),supplyDefaults:r(37893).supplyDefaults,colorbar:r(78666),formatLabels:r(29672),calc:r(85262),plot:r(33356),style:r(78608).style,styleOnSelect:r(78608).styleOnSelect,hoverPoints:r(61149).hoverPoints,selectPoints:r(70473),meta:{hrName:"scatter_polar",description:["The scatterpolar trace type encompasses line charts, scatter charts, text charts, and bubble charts","in polar coordinates.","The data visualized as scatter point or lines is set in","`r` (radial) and `theta` (angular) coordinates","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},19404:function(e,t,r){"use strict";r.d(t,{q:function(){return l}});var n=r(28999),i=r(45586),a=r(14430);class o extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,a.PL)()},t)}getOptimisticResult(e){return e.behavior=(0,a.PL)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,i,o,s,l;const{state:c}=e,u=super.createResult(e,t),{isFetching:h,isRefetching:f}=u,d=h&&"forward"===(null==(r=c.fetchMeta)||null==(n=r.fetchMore)?void 0:n.direction),p=h&&"backward"===(null==(i=c.fetchMeta)||null==(o=i.fetchMore)?void 0:o.direction);return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.rB)(t,null==(s=c.data)?void 0:s.pages),hasPreviousPage:(0,a.RQ)(t,null==(l=c.data)?void 0:l.pages),isFetchingNextPage:d,isFetchingPreviousPage:p,isRefetching:f&&!d&&!p}}}var s=r(44200);function l(e,t,r){const i=(0,n.vh)(e,t,r);return(0,s.t)(i,o)}},19428:function(e,t,r){"use strict";var n=r(92173).EventEmitter,i={init:function(e){if(e._ev instanceof n)return e;var t=new n,r=new n;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){"undefined"!==typeof jQuery&&jQuery(e).trigger(n,i),t.emit(n,i),r.emit(n,i)},e},triggerHandler:function(e,t,r){var n,i;"undefined"!==typeof jQuery&&(n=jQuery(e).triggerHandler(t,r));var a=e._ev;if(!a)return n;var o,s=a._events[t];if(!s)return n;function l(e){return e.listener?(a.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(a,[r]))):e.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o0?Math.floor:Math.ceil,D=L>0?Math.ceil:Math.floor,P=L>0?Math.min:Math.max,O=L>0?Math.max:Math.min,z=I(S+C),R=D(E-C),F=[[h=M(S)]];for(a=z;a*L0?os)&&(o+=i*a.FA));for(var f,d=o;i>0?d>s:d0&&(d=e.dxydi([],i-1,o,0,s),v.push(l[0]+d[0]/3),y.push(l[1]+d[1]/3),p=e.dxydi([],i-1,o,1,s),v.push(h[0]-p[0]/3),y.push(h[1]-p[1]/3)),v.push(h[0]),y.push(h[1]),l=h;else for(i=e.a2i(n),c=Math.floor(Math.max(0,Math.min(C-2,i))),u=i-c,x.length=C,x.crossLength=I,x.xy=function(t){return e.evalxy([],i,t)},x.dxy=function(t,r){return e.dxydj([],c,t,u,r)},a=0;a0&&(g=e.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=e.dxydj([],c,a-1,u,1),v.push(h[0]-m[0]/3),y.push(h[1]-m[1]/3)),v.push(h[0]),y.push(h[1]),l=h;return x.axisLetter=t,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=f,x.x=v,x.y=y,x.smoothing=A.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],h={};if(h.length=x.length,h.crossLength=k.length,"b"===t)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),h.xy=function(t){return e.evalxy([],t,n)},h.dxy=function(t,r){return e.dxydi([],t,o,r,l)},i=0;ix.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(f=u;fx.length-1)&&!(g<0||g>x.length-1))for(m=x[s],v=x[g],a=0;ax[x.length-1]||w.push(i(P(p),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(e,t){return e-t})))[0],h=c[1],f=u;f<=h;f++)d=b.tick0+b.dtick*f,_.push(i(P(d),{color:b.gridcolor,width:b.gridwidth}));for(f=u-1;fx[x.length-1]||w.push(i(P(p),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&&T.push(i(P(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&T.push(i(P(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},19847:function(e,t,r){var n=r(47397),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},19952:function(e,t,r){"use strict";var n=r(47401);e.exports=function(e,t,r,i){if(i||(i={}),e("contours.showlabels")){var a=t.font;n.coerceFont(e,"contours.labelfont",{family:a.family,size:a.size,color:r}),e("contours.labelformat")}!1!==i.hasHover&&e("zhoverformat")}},19965:function(e,t,r){"use strict";var n=r(4475),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:r(59532),toSVG:r(4979),svgToImg:r(66434),toImage:r(84400),downloadImage:r(75172)};e.exports=i},19994:function(e,t,r){"use strict";r.d(t,{DC:function(){return i},aL:function(){return a}});var n,i,a,o,s=r(81107);o={dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},n=(0,s.A)(o),i=n.format,n.parse,a=n.utcFormat,n.utcParse},20112:function(e,t,r){"use strict";var n=r(47401),i=r(92704),a=r(16688).N;e.exports=function(e,t,r,o){var s,l,c=o.type,u=o.attributes,h=o.handleDefaults,f=o.partition||"x",d=t._subplots[c],p=d.length,g=p&&d[0].replace(/\d+$/,"");function m(e,t){return n.coerce(s,l,u,e,t)}for(var v=0;v ]/)?"_keybuster_"+Math.random():""),key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}}))}},20408:function(e,t,r){"use strict";e.exports=function(e,t,r,n){var a=s(t,e),h=s(n,r),f=u(a,h);if(0===o(f))return null;var d=s(e,r),p=u(h,d),g=i(p,f),m=c(a,g);return l(e,m)};var n=r(73691),i=r(27606),a=r(62071),o=r(26260),s=r(15891),l=r(28918),c=r(23538);function u(e,t){return a(n(e[0],t[1]),n(e[1],t[0]))}},20474:function(e){"use strict";e.exports=function(e,t,r,n,i){var a=(e-r)/(n-r),o=a+t/(n-r),s=(a+o)/2;return"left"===i||"bottom"===i?a:"center"===i||"middle"===i?s:"right"===i||"top"===i?o:a<2/3-s?a:o>4/3-s?o:s}},20521:function(e,t,r){"use strict";var n=r(32059),i=r(40578),a=r(54928);e.exports=function(e){var t=Object(a(e)),r=arguments[1],o=Object(arguments[2]);if(t!==e&&!r)return t;var s={};return r?n(r,(function(t){(o.ensure||t in e)&&(s[t]=e[t])})):i(s,e),s}},20567:function(e){"use strict";e.exports=function(e,t,r,n){var i=n("contours.start"),a=n("contours.end"),o=!1===i||!1===a,s=r("contours.size");!(o?t.autocontour=!0:r("autocontour",!1))&&s||r("ncontours")}},20580:function(e){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},20593:function(e,t,r){"use strict";var n=r(80442),i=r(35642);e.exports=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var r=n(e);return r.space?((t=Array(3))[0]=Math.min(Math.max(r.values[0],0),255),t[1]=Math.min(Math.max(r.values[1],0),255),t[2]=Math.min(Math.max(r.values[2],0),255),"h"===r.space[0]&&(t=i.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t):[]}},20627:function(e,t,r){"use strict";e.exports={attributes:r(14570),supplyDefaults:r(9213),crossTraceDefaults:r(69764),calc:r(56240),plot:r(22818).plot,layerName:"contourlayer",style:r(72960),colorbar:r(68201),hoverPoints:r(51303),moduleType:"trace",name:"histogram2dcontour",basePlotModule:r(66807),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{hrName:"histogram_2d_contour",description:["The sample data from which statistics are computed is set in `x`","and `y` (where `x` and `y` represent marginal distributions,","binning is set in `xbins` and `ybins` in this case)","or `z` (where `z` represent the 2D distribution and binning set,","binning is set by `x` and `y` in this case).","The resulting distribution is visualized as a contour plot."].join(" ")}}},20688:function(e){"use strict";var t=Object.prototype.toString,r=t.call(function(){return arguments}());e.exports=function(e){return t.call(e)===r}},20696:function(e,t,r){"use strict";var n=r(47401),i=r(96671);e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("sunburstcolorway",t.colorway),r("extendsunburstcolors")}},20755:function(e,t,r){"use strict";var n=r(31454),i=r(97451),a=r(20184).axisHoverFormat,o=r(4216).r,s=r(42837),l=r(87241).extendFlat,c=r(17342).overrideAll;function u(e){return{valType:"boolean",dflt:!1,description:["Determines whether or not these contour lines are projected","on the",e,"plane.","If `highlight` is set to *true* (the default), the projected","lines are shown on hover.","If `show` is set to *true*, the projected lines are shown","in permanence."].join(" ")}}function h(e){return{show:{valType:"boolean",dflt:!1,description:["Determines whether or not contour lines about the",e,"dimension are drawn."].join(" ")},start:{valType:"number",dflt:null,editType:"plot",description:["Sets the starting contour level value.","Must be less than `contours.end`"].join(" ")},end:{valType:"number",dflt:null,editType:"plot",description:["Sets the end contour level value.","Must be more than `contours.start`"].join(" ")},size:{valType:"number",dflt:null,min:0,editType:"plot",description:["Sets the step between each contour level.","Must be positive."].join(" ")},project:{x:u("x"),y:u("y"),z:u("z")},color:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the contour lines."},usecolormap:{valType:"boolean",dflt:!1,description:["An alternate to *color*.","Determines whether or not the contour lines are colored using","the trace *colorscale*."].join(" ")},width:{valType:"number",min:1,max:16,dflt:2,description:"Sets the width of the contour lines."},highlight:{valType:"boolean",dflt:!0,description:["Determines whether or not contour lines about the",e,"dimension are highlighted on hover."].join(" ")},highlightcolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the highlighted contour lines."},highlightwidth:{valType:"number",min:1,max:16,dflt:2,description:"Sets the width of the highlighted contour lines."}}}var f=e.exports=c(l({z:{valType:"data_array",description:"Sets the z coordinates."},x:{valType:"data_array",description:"Sets the x coordinates."},y:{valType:"data_array",description:"Sets the y coordinates."},text:{valType:"string",dflt:"",arrayOk:!0,description:["Sets the text elements associated with each z value.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,description:"Same as `text`."},hovertemplate:o(),xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in."].join(" ")},surfacecolor:{valType:"data_array",description:["Sets the surface color values,","used for setting a color scale independent of `z`."].join(" ")}},i("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:h("x"),y:h("y"),z:h("z")},hidesurface:{valType:"boolean",dflt:!1,description:["Determines whether or not a surface is drawn.","For example, set `hidesurface` to *false*","`contours.x.show` to *true* and","`contours.y.show` to *true* to draw a wire frame plot."].join(" ")},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10,description:"Numeric vector, representing the X coordinate for each vertex."},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4,description:"Numeric vector, representing the Y coordinate for each vertex."},z:{valType:"number",min:-1e5,max:1e5,dflt:0,description:"Numeric vector, representing the Z coordinate for each vertex."}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8,description:"Ambient light increases overall color visibility but can wash out the image."},diffuse:{valType:"number",min:0,max:1,dflt:.8,description:"Represents the extent that incident rays are reflected in a range of angles."},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2,description:["Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective","when viewing it from the edge of the paper (almost 90 degrees), causing shine."].join(" ")}},opacity:{valType:"number",min:0,max:1,dflt:1,description:["Sets the opacity of the surface.","Please note that in the case of using high `opacity` values for example a value","greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an","overlay of multiple transparent surfaces may not perfectly be sorted in depth by the","webgl API. This behavior may be improved in the near future and is subject to change."].join(" ")},opacityscale:{valType:"any",editType:"calc",description:["Sets the opacityscale."," The opacityscale must be an array containing"," arrays mapping a normalized value to an opacity value."," At minimum, a mapping for the lowest (0) and highest (1)"," values are required. For example,"," `[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values would have"," higher opacity values and those in the middle would be more transparent"," Alternatively, `opacityscale` may be a palette name string"," of the following list: 'min', 'max', 'extremes' and 'uniform'."," The default is 'uniform'."].join("")},_deprecated:{zauto:l({},i.zauto,{description:"Obsolete. Use `cauto` instead."}),zmin:l({},i.zmin,{description:"Obsolete. Use `cmin` instead."}),zmax:l({},i.zmax,{description:"Obsolete. Use `cmax` instead."})},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),"calc","nested");f.x.editType=f.y.editType=f.z.editType="calc+clearAxisTypes",f.transforms=void 0},20817:function(e,t){"use strict";t.version="2.5.1"},20837:function(e){"use strict";function t(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var r=e.type,n=e.symmetric;if("data"===r){var i=e.array||[];if(n)return function(e,t){var r=+i[t];return[r,r]};var a=e.arrayminus||[];return function(e,t){var r=+i[t],n=+a[t];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=t(r,e.value),s=t(r,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[s(e),o(e)]}}},20918:function(e){e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;null!==i;){if(r(i))return t.prev=i.prev,t.next=i,i.prev.next=t,void(i.prev=t);n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;null!==n&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(e){return e.prev=r,e.next=n,r.next=e,null!==n&&(n.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}},20939:function(e,t,r){e.exports=function(e){var t,r,T,k=0,A=0,M=l,S=[],E=[],L=1,C=0,I=0,D=!1,P=!1,O="",z=a,R=n;"300 es"===(e=e||{}).version&&(z=s,R=o);var F={},j={};for(k=0;k0)continue;r=e.slice(0,1).join("")}return N(r),I+=r.length,(S=S.slice(r.length)).length}}function Y(){return/[^a-fA-F0-9]/.test(t)?(N(S.join("")),M=l,k):(S.push(t),r=t,k+1)}function Z(){return"."===t||/[eE]/.test(t)?(S.push(t),M=g,r=t,k+1):"x"===t&&1===S.length&&"0"===S[0]?(M=_,S.push(t),r=t,k+1):/[^\d]/.test(t)?(N(S.join("")),M=l,k):(S.push(t),r=t,k+1)}function X(){return"f"===t&&(S.push(t),r=t,k+=1),/[eE]/.test(t)?(S.push(t),r=t,k+1):("-"!==t&&"+"!==t||!/[eE]/.test(r))&&/[^\d]/.test(t)?(N(S.join("")),M=l,k):(S.push(t),r=t,k+1)}function K(){if(/[^\d\w_]/.test(t)){var e=S.join("");return M=j[e]?y:F[e]?v:m,N(S.join("")),M=l,k}return S.push(t),r=t,k+1}};var n=r(58243),i=r(35794),a=r(46835),o=r(14152),s=r(33035),l=999,c=9999,u=0,h=1,f=2,d=3,p=4,g=5,m=6,v=7,y=8,x=9,b=10,_=11,w=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},20975:function(e,t,r){"use strict";var n=r(47401).extendFlat,i=r(20184).axisHoverFormat,a=r(24610),o=r(69089);function s(e){return{line:{color:n({},o.line.color,{dflt:e}),width:o.line.width,editType:"style"},fillcolor:o.fillcolor,editType:"style"}}e.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:n({},o.line.width,{description:[o.line.width.description,"Note that this style setting can also be set per","direction via `increasing.line.width` and","`decreasing.line.width`."].join(" ")}),editType:"style"},increasing:s(a.increasing.line.color.dflt),decreasing:s(a.decreasing.line.color.dflt),text:a.text,hovertext:a.hovertext,whiskerwidth:n({},o.whiskerwidth,{dflt:0}),hoverlabel:a.hoverlabel}},21e3:function(e,t,r){"use strict";var n=r(40973);function i(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*r.g.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*r.g.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function a(e){return"function"===typeof e.getContext&&"width"in e&&"height"in e}function o(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}e.exports=function(e){var t;if(e?"string"===typeof e&&(e={container:e}):e={},a(e)?e={container:e}:e="string"===typeof(t=e).nodeName&&"function"===typeof t.appendChild&&"function"===typeof t.getBoundingClientRect?{container:e}:function(e){return"function"===typeof e.drawArrays||"function"===typeof e.drawElements}(e)?{gl:e}:n(e,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),e.pixelRatio||(e.pixelRatio=r.g.pixelRatio||1),e.gl)return e.gl;if(e.canvas&&(e.container=e.canvas.parentNode),e.container){if("string"===typeof e.container){var s=document.querySelector(e.container);if(!s)throw Error("Element "+e.container+" is not found");e.container=s}a(e.container)?(e.canvas=e.container,e.container=e.canvas.parentNode):e.canvas||(e.canvas=o(),e.container.appendChild(e.canvas),i(e))}else if(!e.canvas){if("undefined"===typeof document)throw Error("Not DOM environment. Use headless-gl.");e.container=document.body||document.documentElement,e.canvas=o(),e.container.appendChild(e.canvas),i(e)}return e.gl||["webgl","experimental-webgl","webgl-experimental"].some((function(r){try{e.gl=e.canvas.getContext(r,e.attrs)}catch(t){}return e.gl})),e.gl}},21033:function(e,t,r){"use strict";e.exports=r(84194)},21044:function(e){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},21231:function(e,t,r){"use strict";var n=r(47401),i=r(18878).handleGroupingDefaults,a=r(18878).handleText,o=r(87243),s=r(75781),l=r(80216),c=r(31454);e.exports={supplyDefaults:function(e,t,r,i){function u(r,i){return n.coerce(e,t,l,r,i)}if(o(e,t,i,u)){s(e,t,i,u),u("xhoverformat"),u("yhoverformat"),u("orientation",t.y&&!t.x?"v":"h"),u("offset"),u("width");var h=u("text");u("hovertext"),u("hovertemplate");var f=u("textposition");a(e,t,i,u,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===t.textposition||t.texttemplate||u("textinfo",Array.isArray(h)?"text+value":"value");var d=u("marker.color",r);if(u("marker.line.color",c.defaultLine),u("marker.line.width"),u("connector.visible"))u("connector.fillcolor",function(e){var t=n.isArrayOrTypedArray(e)?"#000":e;return c.addOpacity(t,.5*c.opacity(t))}(d)),u("connector.line.width")&&(u("connector.line.color"),u("connector.line.dash"))}else t.visible=!1},crossTraceDefaults:function(e,t){var r,a;function o(e){return n.coerce(a._input,a,l,e)}if("group"===t.funnelmode)for(var s=0;s"),name:A||O("name")?y.name:void 0,color:k("hoverlabel.bgcolor")||x.color,borderColor:k("hoverlabel.bordercolor"),fontFamily:k("hoverlabel.font.family"),fontSize:k("hoverlabel.font.size"),fontColor:k("hoverlabel.font.color"),nameLength:k("hoverlabel.namelength"),textAlign:k("hoverlabel.align"),hovertemplate:A,hovertemplateLabels:I,eventData:l};m&&(F.x0=E-i.rInscribed*i.rpx1,F.x1=E+i.rInscribed*i.rpx1,F.idealAlign=i.pxmid[0]<0?"left":"right"),v&&(F.x=E,F.idealAlign=E<0?"left":"right");var j=[];o.loneHover(F,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r,inOut_bbox:j}),l[0].bbox=j[0],p._hasHoverLabel=!0}if(v){var N=e.select("path.surface");f.styleOne(N,i,y,{hovered:!0})}p._hasHoverEvent=!0,r.emit("plotly_hover",{points:l||[h(i,y,f.eventDataKeys)],event:n.event})}})),e.on("mouseout",(function(t){var i=r._fullLayout,a=r._fullData[p.index],s=n.select(this).datum();if(p._hasHoverEvent&&(t.originalEvent=n.event,r.emit("plotly_unhover",{points:[h(s,a,f.eventDataKeys)],event:n.event}),p._hasHoverEvent=!1),p._hasHoverLabel&&(o.loneUnhover(i._hoverlayer.node()),p._hasHoverLabel=!1),v){var l=e.select("path.surface");f.styleOne(l,s,a,{hovered:!1})}})),e.on("click",(function(e){var t=r._fullLayout,a=r._fullData[p.index],s=m&&(c.isHierarchyRoot(e)||c.isLeaf(e)),u=c.getPtId(e),d=c.isEntry(e)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(d),y={points:[h(e,a,f.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,"plotly_"+p.type+"click",y);if(!1!==x&&t.hovermode&&(r._hoverdata=[h(e,a,f.eventDataKeys)],o.click(r,n.event)),!s&&!1!==x&&!r._dragging&&!r._transitioning){i.call("_storeDirectGUIEdit",a,t._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[p.index]},_={frame:{redraw:!1,duration:f.transitionTime},transition:{duration:f.transitionTime,easing:f.transitionEasing},mode:"immediate",fromcurrent:!0};o.loneUnhover(t._hoverlayer.node()),i.call("animate",r,b,_)}}))}},21532:function(e){"use strict";e.exports={eventDataKeys:["initial","delta","final"]}},21567:function(e,t,r){"use strict";var n=r(95297),i=r(48227);e.exports={moduleType:"component",name:"annotations",layoutAttributes:r(10494),supplyLayoutDefaults:r(3881),includeBasePlot:r(11698)("annotations"),calcAutorange:r(25165),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:r(12493)}},21581:function(e,t,r){"use strict";var n=r(63715),i=r(18361),a=r(27785),o=r(47814);function s(e){return[Math.min(e[0],e[1]),Math.max(e[0],e[1])]}function l(e,t){return e[0]-t[0]||e[1]-t[1]}function c(e,t,r){return t in e?e[t]:r}e.exports=function(e,t,r){Array.isArray(t)?(r=r||{},t=t||[]):(r=t||{},t=[]);var u=!!c(r,"delaunay",!0),h=!!c(r,"interior",!0),f=!!c(r,"exterior",!0),d=!!c(r,"infinity",!1);if(!h&&!f||0===e.length)return[];var p=n(e,t);if(u||h!==f||d){for(var g=i(e.length,function(e){return e.map(s).sort(l)}(t)),m=0;m0;)g=u.c2p(_+x*A),x--;for(x=0;void 0===v&&x0;)y=h.c2p(w+x*M),x--;if(gD[0];if(P||O){var z=p+S/2,R=v+E/2;C+="transform:"+a(z+"px",R+"px")+"scale("+(P?-1:1)+","+(O?-1:1)+")"+a(-z+"px",-R+"px")+";"}}L.attr("style",C);var F=new Promise((function(e){if(c._hasZ)e();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===T&&c._canvas.el.height===k&&c._canvas.source===c.source)e();else{var t=document.createElement("canvas");t.width=T,t.height=k;var r=t.getContext("2d");c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:t,source:c.source},e()},n.setAttribute("src",c.source)}})).then((function(){var e,t;if(c._hasZ)t=j((function(e,t){return b[t][e]})),e=t.toDataURL("image/png");else if(c._hasSource)if(d)e=c.source;else{var r=c._canvas.el.getContext("2d").getImageData(0,0,T,k).data;t=j((function(e,t){var n=4*(t*T+e);return[r[n],r[n+1],r[n+2],r[n+3]]})),e=t.toDataURL("image/png")}L.attr({"xlink:href":e,height:E,width:S,x:p,y:v})}));e._promises.push(F)}function j(e){var t=document.createElement("canvas");t.width=S,t.height=E;var r,n=t.getContext("2d"),a=function(e){return i.constrain(Math.round(u.c2p(_+e*A)-p),0,S)},o=function(e){return i.constrain(Math.round(h.c2p(w+e*M)-v),0,E)},f=s.colormodel[c.colormodel],d=f.colormodel||c.colormodel,g=f.fmt;for(x=0;xd+1)throw new Error(h+" map requires nshades to be at least size "+u.length);p=Array.isArray(e.alpha)?2!==e.alpha.length?[1,1]:e.alpha.slice():"number"===typeof e.alpha?[e.alpha,e.alpha]:[1,1];t=u.map((function(e){return Math.round(e.index*d)})),p[0]=Math.min(Math.max(p[0],0),1),p[1]=Math.min(Math.max(p[1],0),1);var m=u.map((function(e,t){var r=u[t].index,n=u[t].rgb.slice();return 4===n.length&&n[3]>=0&&n[3]<=1||(n[3]=p[0]+(p[1]-p[0])*r),n})),v=[];for(g=0;g0?f+c:c;return{ppad:c,ppadplus:u?p:g,ppadminus:u?g:p}}return{ppad:c}}function u(e,t,r,n,i){var s="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[s(t),s(r)];if(n){var l,c,u,h,f=1/0,d=-1/0,p=n.match(a.segmentRE);for("date"===e.type&&(s=o.decodeDate(s)),l=0;ld&&(d=h)));return d>=f?[f,d]:void 0}}e.exports=function(e){var t=e._fullLayout,r=n.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o0;){var O=(D-=1)*b,z=w[O],R=w[O+1],F=w[O+2],j=w[O+3],N=w[O+4],B=w[O+5],U=D*_,V=T[U],q=T[U+1],H=1&B,G=!!(16&B),W=u,Y=S,Z=L,X=C;if(H&&(W=L,Y=C,Z=u,X=S),!(2&B&&R>=(F=m(e,z,R,F,W,Y,q)))&&!(4&B&&(R=v(e,z,R,F,W,Y,V))>=F)){var K=F-R,J=N-j;if(G){if(e*K*(K+J)=p0)&&!(p1>=hi)",["p0","p1"]),g=u("lo===p0",["p0"]),m=u("lor.end&&(r.start=r.end=(r.start+r.end)/2),e._input.contours||(e._input.contours={}),i.extendFlat(e._input.contours,{start:r.start,end:r.end,size:r.size}),e._input.autocontour=!0}else if("constraint"!==r.type){var c,u=r.start,h=r.end,f=e._input.contours;if(u>h&&(r.start=f.start=h,h=r.end=f.end=u,u=r.start),!(r.size>0))c=u===h?1:a(u,h,e.ncontours).dtick,f.size=r.size=c}}},22650:function(e,t,r){"use strict";var n=r(22483);e.exports=function(e){var t=e.length,r=e.words,i=0;if(1===t)i=r[0];else if(2===t)i=r[0]+67108864*r[1];else for(var a=0;a=0&&(n=y,s=l):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-y[1])<.01&&(y[0]-r[0])*(n[0]-y[0])>=0&&(n=y,s=l):i.log("endpt to newendpt is not vert. or horz.",r,n,y)}if(r=n,s>=0)break;h+="L"+n}if(s===e.edgepaths.length){i.log("unclosed perimeter path");break}f=s,(p=-1===d.indexOf(f))&&(f=d[0],h+="Z")}for(f=0;fn.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),d=(l>n.middle?n.bottom-l:l-n.top)/(Math.abs(h)+Math.cos(c)*o);if(f<1||d<1)return 1/0;var p=v.EDGECOST*(1/(f-1)+1/(d-1));p+=v.ANGLECOST*c*c;for(var g=s-u,m=l-h,y=s+u,x=l+h,b=0;b2*v.MAXCOST)break;d&&(s/=2),l=(o=c-s/2)+1.5*s}if(f<=v.MAXCOST)return u},t.addLabelData=function(e,t,r,n){var i=t.fontSize,a=t.width+i/3,o=Math.max(0,t.height-i/3),s=e.x,l=e.y,c=e.theta,u=Math.sin(c),h=Math.cos(c),f=function(e,t){return[s+e*h-t*u,l+e*u+t*h]},d=[f(-a/2,-o/2),f(-a/2,o/2),f(a/2,o/2),f(a/2,-o/2)];r.push({text:t.text,x:s,y:l,dy:t.dy,theta:c,level:t.level,width:a,height:o}),n.push(d)},t.drawLabels=function(e,t,r,a,o){var l=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(l.exit().remove(),l.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,i=e.y-Math.cos(e.theta)*e.dy;n.select(this).text(e.text).attr({x:t,y:i,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+i+")"}).call(s.convertToTspans,r)})),o){for(var c="",u=0;u4?(o=m[m.length-4],s=m[m.length-3]):(o=f,s=d),r.push(m)}return r};var n=r(83211);function i(e,t,r,n){return["C",e,t,r,n,r,n]}function a(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},23319:function(e,t,r){"use strict";var n=r(16032).hoverPoints,i=r(37762).hoverLabelText;e.exports=function(e,t,r,a,o){var s=n(e,t,r,a,o);if(s){var l=(e=s[0]).cd[e.index],c=e.cd[0].trace;if(!c.cumulative.enabled){var u="h"===c.orientation?"y":"x";e[u+"Label"]=i(e[u+"a"],[l.ph0,l.ph1],c[u+"hoverformat"])}return s}}},23335:function(e,t,r){"use strict";var n=r(47401),i=r(62282),a=r(47216),o=r(20580),s=r(77638),l=r(87243),c=r(75781),u=r(71950),h=r(47008),f=r(99144),d=r(43234),p=r(60039),g=r(64498);e.exports=function(e,t,r,m){function v(r,i){return n.coerce(e,t,a,r,i)}var y=l(e,t,m,v);if(y||(t.visible=!1),t.visible){c(e,t,m,v),v("xhoverformat"),v("yhoverformat");var x=u(e,t,m,v),b=!x&&y=0};y?(r=Math.min(v.length,b.length),l=function(e){return M(v[e])&&S(e)},h=function(e){return String(v[e])}):(r=Math.min(x.length,b.length),l=function(e){return M(x[e])&&S(e)},h=function(e){return String(x[e])}),w&&(r=Math.min(r,_.length));for(var E=0;E1){for(var D=a.randstr(),P=0;Pv):m=A>w,v=A;var M=c(w,T,k,A);M.pos=_,M.yc=(w+A)/2,M.i=b,M.dir=m?"increasing":"decreasing",M.x=M.pos,M.y=[k,T],y&&(M.orig_p=r[b]),p&&(M.tx=t.text[b]),g&&(M.htx=t.hovertext[b]),x.push(M)}else x.push({pos:_,empty:!0})}return t._extremes[l._id]=a.findExtremes(l,n.concat(f,h),{padded:!0}),x.length&&(x[0].t={labels:{open:i(e,"open:")+" ",high:i(e,"high:")+" ",low:i(e,"low:")+" ",close:i(e,"close:")+" "}}),x}e.exports={calc:function(e,t){var r=a.getFromId(e,t.xaxis),i=a.getFromId(e,t.yaxis),s=function(e,t,r){var i=r._minDiff;if(!i){var a,s=e._fullData,l=[];for(i=1/0,a=0;aMath.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s>=0?1:-1),c.boxEnd[1]l[3]&&(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a>=0?1:-1),c.boxEnd[0]l[2]&&(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&&(m(0,c.boxStart[0],c.boxEnd[0]),e.xaxis.autorange=!1),s&&(m(1,c.boxStart[1],c.boxEnd[1]),e.yaxis.autorange=!1),e.relayoutCallback()):e.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&&(c.boxInited=!1);break;case"pan":c.boxEnabled=!1,c.boxInited=!1,t?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)=u[0]&&e.x<=u[1]&&e.y>=h[0]&&e.y<=h[1]})),g=Math.ceil(p.length/d),m=0;o.forEach((function(e,r){var n=e[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function y(e){return v?e.transition():e}var x=r.xaxis,b=r.yaxis,_=h[0].trace,w=_.line,T=n.select(p),k=o(T,"g","errorbars"),A=o(T,"g","lines"),M=o(T,"g","points"),S=o(T,"g","text");if(i.getComponentMethod("errorbars","plot")(e,k,r,g),!0===_.visible){var E,L;y(T).style("opacity",_.opacity);var C=_.fill.charAt(_.fill.length-1);"x"!==C&&"y"!==C&&(C=""),h[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var I,D,P="",O=[],z=_._prevtrace;z&&(P=z._prevRevpath||"",L=z._nextFill,O=z._polygons);var R,F,j,N,B,U,V,q="",H="",G=[],W=a.noop;if(E=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(L&&L.datum(h),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split("").reverse().join(""))):R=F="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?l.smoothclosed(e.slice(1),w.smoothing):l.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},j=function(e){return F(e.reverse())},G=u(h,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m1){var r=n.select(this);if(r.datum(h),e)y(r.style("opacity",0).attr("d",I).call(l.lineGroupStyle)).style("opacity",1);else{var i=y(r);i.attr("d",I),l.singleLineStyle(h,i)}}}}}var Y=A.selectAll(".js-line").data(G);y(Y.exit()).style("opacity",0).remove(),Y.each(W(!1)),Y.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(l.lineGroupStyle).each(W(!0)),l.setClipUrl(Y,r.layerClipId,e),G.length?(E?(E.datum(h),N&&U&&(C?("y"===C?N[1]=U[1]=b.c2p(0,!0):"x"===C&&(N[0]=U[0]=x.c2p(0,!0)),y(E).attr("d","M"+U+"L"+N+"L"+q.substr(1)).call(l.singleFillStyle)):y(E).attr("d",q+"Z").call(l.singleFillStyle))):L&&("tonext"===_.fill.substr(0,6)&&q&&P?("tonext"===_.fill?y(L).attr("d",q+"Z"+P+"Z").call(l.singleFillStyle):y(L).attr("d",q+"L"+P.substr(1)+"Z").call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(X(L),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?X(E):L&&X(L),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(h),S.datum(h),function(t,i,a){var o,u=a[0].trace,h=c.hasMarkers(u),f=c.hasText(u),d=ee(u),p=te,g=te;if(h||f){var m=s,_=u.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?J:K:_&&!w&&(m=Q),h&&(p=m),f&&(g=m)}var T,k=(o=t.selectAll("path.point").data(p,d)).enter().append("path").classed("point",!0);v&&k.call(l.pointStyle,u,e).call(l.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),h&&(T=l.makePointStyleFns(u)),o.each((function(t){var i=n.select(this),a=y(i);l.translatePoint(t,a,x,b)?(l.singlePointStyle(t,a,u,T,e),r.layerClipId&&l.hideOutsideRangePoint(t,a,x,b,u.xcalendar,u.ycalendar),u.customdata&&i.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):a.remove()})),v?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=i.selectAll("g").data(g,d)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=n.select(this),i=y(t.select("text"));l.translatePoint(e,i,x,b)?r.layerClipId&&l.hideOutsideRangePoint(e,t,x,b,u.xcalendar,u.ycalendar):t.remove()})),o.selectAll("text").call(l.textPointStyle,u,e).each((function(e){var t=x.c2p(e.x),r=b.c2p(e.y);n.select(this).selectAll("tspan.line").each((function(){y(n.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(M,S,h);var Z=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(M,Z,e),l.setClipUrl(S,Z,e)}function X(e){y(e).attr("d","M0,0Z")}function K(e){return e.filter((function(e){return!e.gap&&e.vis}))}function J(e){return e.filter((function(e){return e.vis}))}function Q(e){return e.filter((function(e){return!e.gap}))}function $(e){return e.id}function ee(e){if(e.ids)return $}function te(){return!1}}e.exports=function(e,t,r,i,a,c){var u,f,p=!a,g=!!a&&a.duration>0,m=h(e,t,r);((u=i.selectAll("g.trace").data(m,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(e,t,r){t.each((function(t){var i=o(n.select(this),"g","fills");l.setClipUrl(i,r.layerClipId,e);var a=t[0].trace,c=[];a._ownfill&&c.push("_ownFill"),a._nexttrace&&c.push("_nextFill");var u=i.selectAll("g").data(c,s);u.enter().append("g"),u.exit().each((function(e){a[e]=null})).remove(),u.order().each((function(e){a[e]=o(n.select(this),"path","js-fill")}))}))}(e,u,t),g)?(c&&(f=c()),n.transition().duration(a.duration).ease(a.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){i.selectAll("g.trace").each((function(r,n){d(e,n,t,r,m,this,a)}))}))):u.each((function(r,n){d(e,n,t,r,m,this,a)}));p&&u.exit().remove(),i.selectAll("path:not([d])").remove()}},24565:function(e,t){"use strict";function r(e,t,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function n(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!d(e[0])||!d(e[1]))throw new Error("coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n)}function i(e,t,n){void 0===n&&(n={});for(var i=0,a=e;i=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=u,t.lengthToRadians=h,t.lengthToDegrees=function(e,t){return f(h(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=f,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return u(h(e,t),r)},t.convertArea=function(e,r,n){if(void 0===r&&(r="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[r];if(!i)throw new Error("invalid original units");var a=t.areaFactors[n];if(!a)throw new Error("invalid final units");return e/i*a},t.isNumber=d,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!d(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},24610:function(e,t,r){"use strict";var n=r(47401).extendFlat,i=r(47216),a=r(20184).axisHoverFormat,o=r(34418).T,s=r(97280),l=r(7677),c=l.INCREASING.COLOR,u=l.DECREASING.COLOR,h=i.line;function f(e){return{line:{color:n({},h.color,{dflt:e}),width:h.width,dash:o,editType:"style"},editType:"style"}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,xhoverformat:a("x"),yhoverformat:a("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the x coordinates.","If absent, linear coordinate will be generated."].join(" ")},open:{valType:"data_array",editType:"calc",description:"Sets the open values."},high:{valType:"data_array",editType:"calc",description:"Sets the high values."},low:{valType:"data_array",editType:"calc",description:"Sets the low values."},close:{valType:"data_array",editType:"calc",description:"Sets the close values."},line:{width:n({},h.width,{description:[h.width,"Note that this style setting can also be set per","direction via `increasing.line.width` and","`decreasing.line.width`."].join(" ")}),dash:n({},o,{description:[o.description,"Note that this style setting can also be set per","direction via `increasing.line.dash` and","`decreasing.line.dash`."].join(" ")}),editType:"style"},increasing:f(c),decreasing:f(u),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets hover text elements associated with each sample point.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to","this trace's sample points."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc",description:["Sets the width of the open/close tick marks","relative to the *x* minimal interval."].join(" ")},hoverlabel:n({},s.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style",description:["Show hover information (open, close, high, low) in","separate labels."].join(" ")}})}},24729:function(e){"use strict";e.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}},24804:function(e){e.exports=function(e){var t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},24825:function(e,t,r){"use strict";var n=r(70006);e.exports=function(e){var t,r,a=[],o=1;if("string"===typeof e)if(n[e])a=n[e].slice(),r="rgb";else if("transparent"===e)o=0,r="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var s=e.slice(1);o=1,(u=s.length)<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===u&&(o=parseInt(s[3]+s[3],16)/255)):(a=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===u&&(o=parseInt(s[6]+s[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),r="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],c="rgb"===l;r=s=l.replace(/a$/,"");var u="cmyk"===s?4:"gray"===s?1:3;a=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===u?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==i[e])return i[e]}return parseFloat(e)})),l===s&&a.push(1),o=c||void 0===a[u]?1:a[u],a=a.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(a=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(a=[e[0],e[1],e[2]],r="rgb",o=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(r="rgb",a=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(r="hsl",a=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),o=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(o/=100)):(r="rgb",a=[e>>>16,(65280&e)>>>8,255&e]);return{space:r,values:a,alpha:o}};var i={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},24855:function(e){"use strict";function t(e){this.plot=e,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(e,r){var n=new t(e);return n.update(r),e.addOverlay(n),n};var r=t.prototype;r.update=function(e){e=e||{},this.enable=(e.enable||[!0,!0,!1,!1]).slice(),this.width=(e.width||[1,1,1,1]).slice(),this.color=(e.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(e){return e.slice()})),this.center=(e.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},r.draw=function(){var e=this.enable,t=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]<=n[0]&&n[0]<=o[2]&&o[1]<=n[1]&&n[1]<=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);e[0]&&a.drawLine(l,c,s[0],c,t[0],r[0]),e[1]&&a.drawLine(l,c,l,s[1],t[1],r[1]),e[2]&&a.drawLine(l,c,s[2],c,t[2],r[2]),e[3]&&a.drawLine(l,c,l,s[3],t[3],r[3])}},r.dispose=function(){this.plot.removeOverlay(this)}},24968:function(e){"use strict";e.exports=function(e){for(var t,r=e.length,n=0;n13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},25008:function(e,t,r){"use strict";e.exports=function(e,t,r,a,d){i(s,t,e),i(s,r,s);for(var y=0,x=0;x<2;++x){u[2]=a[x][2];for(var b=0;b<2;++b){u[1]=a[b][1];for(var _=0;_<2;++_)u[0]=a[_][0],f(l[y],u,s),y+=1}}var w=-1;for(x=0;x<8;++x){for(var T=l[x][3],k=0;k<3;++k)c[x][k]=l[x][k]/T;d&&(c[x][2]*=-1),T<0&&(w<0||c[x][2]E&&(w|=1<E&&(w|=1<c[x][1])&&(R=x);var F=-1;for(x=0;x<3;++x){if((N=R^1<c[j][0]&&(j=N)}var B=g;B[0]=B[1]=B[2]=0,B[n.log2(F^R)]=R&F,B[n.log2(R^j)]=R&j;var U=7^j;U===w||U===z?(U=7^F,B[n.log2(j^U)]=U&j):B[n.log2(F^U)]=U&F;var V=m,q=w;for(A=0;A<3;++A)V[A]=q&1<f?b.sizeAvg||Math.max(b.size,3):a(t,x),d=0;d0?1:-1}},25422:function(e,t,r){var n=r(69726),i=r(97615);n(i.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),i.local=i.regionalOptions[""],n(i.cdate.prototype,{formatDate:function(e,t){return"string"!==typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if("string"!==typeof e&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,h=r.monthNamesShort||this.local.monthNamesShort,f=r.monthNames||this.local.monthNames,d=(r.calculateWeek||this.local.calculateWeek,function(t,r){for(var n=1;w+n1}),p=function(e,t,r,n){var i=""+t;if(d(e,n))for(;i.length1},x=function(e,r){var n=y(e,r),a=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],o=new RegExp("^-?\\d{1,"+a+"}"),s=t.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[""].missingNumberAt).replace(/\{0\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if("function"===typeof l){y("m");var e=l.call(b,t.substring(A));return A+=e.length,e}return x("m")},w=function(e,r,n,a){for(var o=y(e,a)?n:r,s=0;s-1){d=1,p=g;for(var E=this.daysInMonth(f,d);p>E;E=this.daysInMonth(f,d))d++,p-=E}return h>-1?this.fromJD(h):this.newDate(f,d,p)},determineDate:function(e,t,r,n,i){r&&"object"!==typeof r&&(i=n,n=r,r=null),"string"!==typeof n&&(i=n,n="");var a=this;return t=t?t.newDate():null,e=null==e?t:"string"===typeof e?function(e){try{return a.parseDate(n,e,i)}catch(l){}for(var t=((e=e.toLowerCase()).match(/^c/)&&r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(e);s;)t.add(parseInt(s[1],10),s[2]||"d"),s=o.exec(e);return t}(e):"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e)}})},25456:function(e,t,r){"use strict";var n=r(68953),i=r(47401),a=i.strTranslate,o=i.strScale,s=r(13373).fX,l=r(6412),c=r(62258),u=r(41707),h=r(43995),f=r(4409),d="mapbox",p=t.constants=r(82949);function g(e){return"string"===typeof e&&(-1!==p.styleValuesMapbox.indexOf(e)||0===e.indexOf("mapbox://"))}t.name=d,t.attr="subplot",t.idRoot=d,t.idRegex=t.attrRegex=i.counterRegex(d),t.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc",description:["Sets a reference between this trace's data coordinates and","a mapbox subplot.","If *mapbox* (the default value), the data refer to `layout.mapbox`.","If *mapbox2*, the data refer to `layout.mapbox2`, and so on."].join(" ")}},t.layoutAttributes=r(94890),t.supplyLayoutDefaults=r(84541),t.plot=function(e){var t=e._fullLayout,r=e.calcdata,a=t._subplots[d];if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(e,t){var r=e._fullLayout,n=e._context;if(""===n.mapboxAccessToken)return"";for(var a=[],o=[],s=!1,l=!1,c=0;c1&&i.warn(p.multipleTokensErrorMsg),a[0]):(o.length&&i.log(["Listed mapbox access token(s)",o.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(e,a);n.accessToken=o;for(var l=0;lw/2){var T=y.split("|").join("
");b.text(T).attr("data-unformatted",T).call(h.convertToTspans,e),_=u.bBox(b.node())}b.attr("transform",a(-3,8-_.height)),x.insert("rect",".static-attribution").attr({x:-_.width-6,y:-_.height-3,width:_.width+6,height:_.height+3,fill:"rgba(255, 255, 255, 0.75)"});var k=1;_.width+6>w&&(k=w/(_.width+6));var A=[n.l+n.w*f.x[1],n.t+n.h*(1-f.y[0])];x.attr("transform",a(A[0],A[1])+o(k))}},t.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[d],n=0;n=-e},pointBetween:function(t,r,n){var i=t[1]-r[1],a=n[0]-r[0],o=t[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])e!=o-i>e&&(a-c)*(i-u)/(o-u)+c-n>e&&(s=!s),a=c,o=u}return s}};return t}},25501:function(e){"use strict";function t(e,t,a){a=a||2;var o,s,l,h,f,p,g,m=t&&t.length,v=m?t[0]*a:e.length,y=r(e,0,v,a,!0),x=[];if(!y||y.next===y.prev)return x;if(m&&(y=function(e,t,i,a){var o,s,l,h=[];for(o=0,s=t.length;o80*a){o=l=e[0],s=h=e[1];for(var b=a;bl&&(l=f),p>h&&(h=p);g=0!==(g=Math.max(l-o,h-s))?1/g:0}return i(y,x,a,o,s,g),x}function r(e,t,r,n,i){var a,o;if(i===M(e,t,r,n)>0)for(a=t;a=t;a-=n)o=T(a,e[a],e[a+1],o);return o&&v(o,o.next)&&(k(o),o=o.next),o}function n(e,t){if(!e)return e;t||(t=e);var r,n=e;do{if(r=!1,n.steiner||!v(n,n.next)&&0!==m(n.prev,n,n.next))n=n.next;else{if(k(n),(n=t=n.prev)===n.next)break;r=!0}}while(r||n!==t);return t}function i(e,t,r,c,u,h,d){if(e){!d&&h&&function(e,t,r,n){var i=e;do{null===i.z&&(i.z=f(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,r,n,i,a,o,s,l,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1)}(i)}(e,c,u,h);for(var p,g,m=e;e.prev!==e.next;)if(p=e.prev,g=e.next,h?o(e,c,u,h):a(e))t.push(p.i/r),t.push(e.i/r),t.push(g.i/r),k(e),e=g.next,m=g.next;else if((e=g)===m){d?1===d?i(e=s(n(e),t,r),t,r,c,u,h,2):2===d&&l(e,t,r,c,u,h):i(n(e),t,r,c,u,h,1);break}}}function a(e){var t=e.prev,r=e,n=e.next;if(m(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(p(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&m(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function o(e,t,r,n){var i=e.prev,a=e,o=e.next;if(m(i,a,o)>=0)return!1;for(var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=f(s,l,t,r,n),d=f(c,u,t,r,n),g=e.prevZ,v=e.nextZ;g&&g.z>=h&&v&&v.z<=d;){if(g!==e.prev&&g!==e.next&&p(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;if(g=g.prevZ,v!==e.prev&&v!==e.next&&p(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;g&&g.z>=h;){if(g!==e.prev&&g!==e.next&&p(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;v&&v.z<=d;){if(v!==e.prev&&v!==e.next&&p(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function s(e,t,r){var i=e;do{var a=i.prev,o=i.next.next;!v(a,o)&&y(a,i,i.next,o)&&_(a,o)&&_(o,a)&&(t.push(a.i/r),t.push(i.i/r),t.push(o.i/r),k(i),k(i.next),i=e=o),i=i.next}while(i!==e);return n(i)}function l(e,t,r,a,o,s){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&g(l,c)){var u=w(l,c);return l=n(l,l.next),u=n(u,u.next),i(l,t,r,a,o,s),void i(u,t,r,a,o,s)}c=c.next}l=l.next}while(l!==e)}function c(e,t){return e.x-t.x}function u(e,t){if(t=function(e,t){var r,n=t,i=e.x,a=e.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x=n.x&&n.x>=u&&i!==n.x&&p(ar.x||n.x===r.x&&h(r,n)))&&(r=n,d=l)),n=n.next}while(n!==c);return r}(e,t),t){var r=w(t,e);n(t,t.next),n(r,r.next)}}function h(e,t){return m(e.prev,e,t.prev)<0&&m(t.next,e,e.next)<0}function f(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function d(e){var t=e,r=e;do{(t.x=0&&(e-o)*(n-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function g(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&y(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(e,t)&&(_(e,t)&&_(t,e)&&function(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{r.y>a!==r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==e);return n}(e,t)&&(m(e.prev,e,t.prev)||m(e,t.prev,t))||v(e,t)&&m(e.prev,e,e.next)>0&&m(t.prev,t,t.next)>0)}function m(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function y(e,t,r,n){var i=b(m(e,t,r)),a=b(m(e,t,n)),o=b(m(r,n,e)),s=b(m(r,n,t));return i!==a&&o!==s||(!(0!==i||!x(e,r,t))||(!(0!==a||!x(e,n,t))||(!(0!==o||!x(r,e,n))||!(0!==s||!x(r,t,n)))))}function x(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function b(e){return e>0?1:e<0?-1:0}function _(e,t){return m(e.prev,e,e.next)<0?m(e,t,e.next)>=0&&m(e,e.prev,t)>=0:m(e,t,e.prev)<0||m(e,e.next,t)<0}function w(e,t){var r=new A(e.i,e.x,e.y),n=new A(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function T(e,t,r,n){var i=new A(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function k(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function A(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function M(e,t,r,n){for(var i=0,a=t,o=r-n;a0&&(n+=e[i-1].length,r.holes.push(n))}return r}},25503:function(e,t,r){"use strict";r.d(t,{jO:function(){return m},HP:function(){return g},Tj:function(){return o},$I:function(){return s}});var n="$";function i(){}function a(e,t){var r=new i;if(e instanceof i)e.each((function(e,t){r.set(t,e)}));else if(Array.isArray(e)){var n,a=-1,o=e.length;if(null==t)for(;++a=n.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var c,u,h,f=-1,d=r.length,p=n[i++],g=o(),m=s();++fn.length)return e;var a,o=i[r-1];return null!=t&&r>=n.length?a=e.entries():(a=[],e.each((function(e,t){a.push({key:t,values:s(e,r)})}))),null!=o?a.sort((function(e,t){return o(e.key,t.key)})):a}return r={object:function(e){return a(e,0,l,c)},map:function(e){return a(e,0,u,h)},entries:function(e){return s(a(e,0,u,h),0)},key:function(e){return n.push(e),r},sortKeys:function(e){return i[n.length-1]=e,r},sortValues:function(t){return e=t,r},rollup:function(e){return t=e,r}}}function l(){return{}}function c(e,t,r){e[t]=r}function u(){return o()}function h(e,t,r){e.set(t,r)}function f(){}var d=o.prototype;function p(e,t){var r=new f;if(e instanceof f)e.each((function(e){r.add(e)}));else if(e){var n=-1,i=e.length;if(null==t)for(;++n=0;n--){var i=r[n].id;if("string"===typeof i&&0===i.indexOf("water"))for(var a=n+1;a0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},t.unrank=function(e,t,r){switch(e){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(t?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):t?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(e))[0]=0,a=1;a0;--a)t=t-(n=t/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},26800:function(e,t,r){"use strict";var n=r(47401),i=r(92704);e.exports=function(e,t,r){var a,o,s=r.name,l=r.inclusionAttr||"visible",c=t[s],u=n.isArrayOrTypedArray(e[s])?e[s]:[],h=t[s]=[],f=i.arrayTemplater(t,s,l);for(a=0;a>4&15,i=15&e[4],a=e[5]>>4&15,o=n(e,6),l=8,c=0;ct.width||e.width===t.width&&e.height>t.height?e:t})),r=e.reduce((function(e,t){return e.height>t.height||e.height===t.height&&e.width>t.width?e:t}));return t.width>r.height||t.width===r.height&&t.height>r.width?t:r}(t.sizes),n=1;t.transforms.forEach((function(e){var t={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===e.type&&(n=0===e.value?r[n]:t[n=t[n=r[n]]]),"irot"===e.type)for(var i=0;i0){var f=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=f),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,f)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(e,t,r){var n=[i(e.x,e.error_x,t[0],r.xaxis),i(e.y,e.error_y,t[1],r.yaxis),i(e.z,e.error_z,t[2],r.zaxis)],a=function(e){for(var t=0;t0)return 1<=0)return 1<>1,v=E[2*m+1];","if(v===b){return m}","if(b0&&l.push(","),l.push("[");for(var n=0;n0&&l.push(","),l.push("B(C,E,c[",i[0],"],c[",i[1],"])")}l.push("]")}l.push(");")}}for(a=e+1;a>1;--a){abe-bs){"),e?(l(!0,!1),s.push("}else{"),l(!1,!1)):(s.push("if(fp){"),l(!0,!0),s.push("}else{"),l(!0,!1),s.push("}}else{if(fp){"),l(!1,!0),s.push("}else{"),l(!1,!1),s.push("}")),s.push("}}return "+t);var c=n.join("")+s.join("");return new Function(c)()}t.partial=d(!1),t.full=d(!0)},27785:function(e,t,r){"use strict";var n=r(91107)[4];r(62683);function i(e,t,r,i,a,o){var s=t.opposite(i,a);if(!(s<0)){if(a0;){for(var d=r.pop(),p=(u=-1,h=-1,l=o[s=r.pop()],1);p=0||(t.flip(s,d),i(e,t,r,u,s,h),i(e,t,r,s,h,u),i(e,t,r,h,d,u),i(e,t,r,d,u,h)))}}},27799:function(e,t,r){"use strict";var n=r(62258),i=r(62282),a=r(47401),o=a.strTranslate,s=r(41707),l=r(31454),c=r(8757).extractOpts,u=r(77638),h=r(59371),f=r(80084).castOption,d=r(9663);function p(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function g(e){var t=e[0].trace,r=t.contours,n=u.hasLines(t),i=u.hasMarkers(t),a=t.visible&&t.fill&&"none"!==t.fill,o=!1,s=!1;if(r){var l=r.coloring;"lines"===l?o=!0:n="none"===l||"heatmap"===l||r.showlines,"constraint"===r.type?a="="!==r._operation:"fill"!==l&&"heatmap"!==l||(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function m(e,t,r){return e&&a.isArrayOrTypedArray(e)?t:e>r?r:e}e.exports=function(e,t,r){var v=t._fullLayout;r||(r=v.legend);var y="constant"===r.itemsizing,x=r.itemwidth,b=(x+2*d.itemGap)/2,_=o(b,0),w=function(e,t,r,n){var i;if(e+1)i=e;else{if(!(t&&t.width>0))return 0;i=t.width}return y?n:Math.min(i,r)};function T(e,a,o){var u=e[0].trace,h=u.marker||{},f=h.line||{},d=o?u.visible&&u.type===o:i.traceIs(u,"bar"),p=n.select(a).select("g.legendpoints").selectAll("path.legend"+o).data(d?[e]:[]);p.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),p.exit().remove(),p.each((function(e){var i=n.select(this),a=e[0],o=w(a.mlw,h.line,5,2);i.style("stroke-width",o+"px");var d=a.mcc;if(!r._inHover&&"mc"in a){var p=c(h),g=p.mid;void 0===g&&(g=(p.max+p.min)/2),d=s.tryColorscale(h,"")(g)}var v=d||a.mc||h.color,y=h.pattern,x=y&&s.getPatternAttr(y.shape,0,"");if(x){var b=s.getPatternAttr(y.bgcolor,0,null),_=s.getPatternAttr(y.fgcolor,0,null),T=y.fgopacity,k=m(y.size,8,10),A=m(y.solidity,.5,1),M="legend-"+u.uid;i.call(s.pattern,"legend",t,M,x,k,A,d,y.fillmode,b,_,T)}else i.call(l.fill,v);o&&l.stroke(i,a.mlc||f.color)}))}function k(e,t,r){var o=e[0],s=o.trace,l=r?s.visible&&s.type===r:i.traceIs(s,r),c=n.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(l?[e]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),c.exit().remove(),c.size()){var u=(s.marker||{}).line,d=w(f(u.width,o.pts),u,5,2),p=a.minExtend(s,{marker:{line:{width:d}}});p.marker.line.color=u.color;var g=a.minExtend(o,{trace:p});h(c,g,p)}}e.each((function(e){var t=n.select(this),i=a.ensureSingle(t,"g","layers");i.style("opacity",e[0].trace.opacity);var s=r.valign,l=e[0].lineHeight,c=e[0].height;if("middle"!==s&&l&&c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr("transform",o(0,u))}else i.attr("transform",null);i.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),i.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var h=i.selectAll("g.legendsymbols").data([e]);h.enter().append("g").classed("legendsymbols",!0),h.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,i=e[0].trace,o=[];if(i.visible)switch(i.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":o=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":o=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,o){var u,h=n.select(this),f=c(i),d=f.colorscale,g=f.reversescale;if(d){if(!r){var m=d.length;u=0===o?d[g?m-1:0][1]:1===o?d[g?0:m-1][1]:d[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}h.attr("d",e[0]),u?h.call(l.fill,u):h.call((function(e){if(e.size()){var n="legendfill-"+i.uid;s.gradient(e,t,n,p(g,"radial"===r),d,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var i=e[0].trace[e[0].dir].marker;return e[0].mc=i.color,e[0].mlw=i.line.width,e[0].mlc=i.line.color,T(e,this,"waterfall")}var a=[];t.visible&&r&&(a=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(a);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=n.select(this),i=t[e[0]].marker,a=w(void 0,i.line,5,2);r.attr("d",e[1]).style("stroke-width",a+"px").call(l.fill,i.color),a&&r.call(l.stroke,i.line.color)}))})).each((function(e){T(e,this,"funnel")})).each((function(e){T(e,this)})).each((function(e){var r=e[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&i.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),o.exit().remove(),o.each((function(){var e=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=w(void 0,r.line,5,2);e.style("stroke-width",i+"px").call(l.fill,r.fillcolor),i&&l.stroke(e,r.line.color)}else{var c=a.minExtend(r,{marker:{size:y?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(s.pointStyle,c,t)}}))})).each((function(e){k(e,this,"funnelarea")})).each((function(e){k(e,this,"pie")})).each((function(e){var r,i,o=g(e),l=o.showFill,h=o.showLine,f=o.showGradientLine,d=o.showGradientFill,m=o.anyFill,v=o.anyLine,y=e[0],b=y.trace,_=c(b),T=_.colorscale,k=_.reversescale,A=u.hasMarkers(b)||!m?"M5,0":v?"M5,-2":"M5,-3",M=n.select(this),S=M.select(".legendfill").selectAll("path").data(l||d?[e]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",A+"h"+x+"v6h-"+x+"z").call(l?s.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+b.uid;s.gradient(e,t,r,p(k),T,"fill")}}),h||f){var E=w(void 0,b.line,10,5);i=a.minExtend(b,{line:{width:E}}),r=[a.minExtend(y,{trace:i})]}var L=M.select(".legendlines").selectAll("path").data(h||f?[r]:[]);L.enter().append("path").classed("js-line",!0),L.exit().remove(),L.attr("d",A+(f?"l"+x+",0.0001":"h"+x)).call(h?s.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+b.uid;s.lineGroupStyle(e),s.gradient(e,t,r,p(k),T,"stroke")}})})).each((function(e){var r,i,o=g(e),l=o.anyFill,c=o.anyLine,h=o.showLine,f=o.showMarker,d=e[0],p=d.trace,m=!f&&!c&&!l&&u.hasText(p);function v(e,t,r,n){var i=a.nestedProperty(p,e).get(),o=a.isArrayOrTypedArray(i)&&t?t(i):i;if(y&&o&&void 0!==n&&(o=n),r){if(or[1])return r[1]}return o}function x(e){return d._distinct&&d.index&&e[d.index]?e[d.index]:e[0]}if(f||m||h){var b={},w={};if(f){b.mc=v("marker.color",x),b.mx=v("marker.symbol",x),b.mo=v("marker.opacity",a.mean,[.2,1]),b.mlc=v("marker.line.color",x),b.mlw=v("marker.line.width",a.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var T=v("marker.size",a.mean,[2,16],12);b.ms=T,w.marker.size=T}h&&(w.line={width:v("line.width",x,[0,10],5)}),m&&(b.tx="Aa",b.tp=v("textposition",x),b.ts=10,b.tc=v("textfont.color",x),b.tf=v("textfont.family",x)),r=[a.minExtend(d,b)],(i=a.minExtend(p,w)).selectedpoints=null,i.texttemplate=null}var k=n.select(this).select("g.legendpoints"),A=k.selectAll("path.scatterpts").data(f?r:[]);A.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),A.exit().remove(),A.call(s.pointStyle,i,t),f&&(r[0].mrc=3);var M=k.selectAll("g.pointtext").data(m?r:[]);M.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),M.exit().remove(),M.selectAll("text").call(s.textPointStyle,i,t)})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var i=n.select(this),a=t[r?"increasing":"decreasing"],o=w(void 0,a.line,5,2);i.style("stroke-width",o+"px").call(l.fill,a.fillcolor),o&&l.stroke(i,a.line.color)}))})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var i=n.select(this),a=t[r?"increasing":"decreasing"],o=w(void 0,a.line,5,2);i.style("fill","none").call(s.dashLine,a.line.dash,o),o&&l.stroke(i,a.line.color)}))}))}},27807:function(e,t,r){"use strict";var n=r(96122).VG,i=r(96122).rU,a=r(96122).bb,o=r(26912),s=r(7899),l=n("ftyp");e.exports=function(e){if(i(e,4,l)){var t=o.unbox(e,0);if(t){var r=o.getMimeType(t.data);if(r){for(var n,c=t.end;;){var u=o.unbox(e,c);if(!u)break;if(c=u.end,"mdat"===u.boxtype)return;if("meta"===u.boxtype){n=u.data;break}}if(n){var h=o.readSizeFromMeta(n);if(h){var f={width:h.width,height:h.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(h.variants.length>1&&(f.variants=h.variants),h.orientation&&(f.orientation=h.orientation),h.exif_location&&h.exif_location.offset+h.exif_location.length<=e.length){var d=a(e,h.exif_location.offset),p=e.slice(h.exif_location.offset+d+4,h.exif_location.offset+h.exif_location.length),g=s.get_orientation(p);g>0&&(f.orientation=g)}return f}}}}}}},27867:function(e,t,r){"use strict";var n=r(47401);e.exports=function(e,t){for(var r=0;r0?e>1?(0,n.A)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):i:null},t.A=i;var a=i.range},28188:function(e,t,r){var n=r(97615),i=r(69726);function a(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Ch\xe6harshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Ch\xe6","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 682*((t.year()-(t.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e-(e>=0?474:473),s=474+o(a,2820);return r+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(e){var t=(e=Math.floor(e)+.5)-this.toJD(475,1,1),r=Math.floor(t/1029983),n=o(t,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l<=0?l-1:l;var c=e-this.toJD(l,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),h=e-this.toJD(l,u,1)+1;return this.newDate(l,u,h)}}),n.calendars.persian=a,n.calendars.jalali=a},28205:function(e,t,r){"use strict";var n=r(91771).mix,i=r(62405).lightFraction,a=r(47401);e.exports=function(e,t,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(e,t,o.attributes,r,n)}var c=l("linecolor",s),u=l("linewidth");r("showline",o.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var h=l("gridcolor",n(s,o.bgColor,o.blend||i).toRgbString()),f=l("gridwidth");if(r("showgrid",o.showGrid||!!h||!!f)||(delete t.gridcolor,delete t.gridwidth),!o.noZeroLine){var d=l("zerolinecolor",s),p=l("zerolinewidth");r("zeroline",o.showGrid||!!d||!!p)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},28369:function(e){var t={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var n=r(t[0]),i=1;im.Ni?o=90:y<-m.Ni&&(i=-90),f[0]=n,f[1]=a},sphere:function(){n=-(a=180),i=-(o=90)}};function b(e,t){h.push(f=[n=e,a=e]),to&&(o=t)}function _(e,t){var r=(0,g.jf)([e*m.F2,t*m.F2]);if(u){var l=(0,g.r8)(u,r),c=[l[1],-l[0],0],d=(0,g.r8)(c,l);(0,g.Cx)(d),d=(0,g.EV)(d);var p,v=e-s,y=v>0?1:-1,x=d[0]*m.uj*y,b=(0,m.tn)(v)>180;b^(y*so&&(o=p):b^(y*s<(x=(x+360)%360-180)&&xo&&(o=t)),b?eS(n,a)&&(a=e):S(e,a)>S(n,a)&&(n=e):a>=n?(ea&&(a=e)):e>s?S(n,e)>S(n,a)&&(a=e):S(e,a)>S(n,a)&&(n=e)}else h.push(f=[n=e,a=e]);to&&(o=t),u=r,s=e}function w(){x.point=_}function T(){f[0]=n,f[1]=a,x.point=b,u=null}function k(e,t){if(u){var r=e-s;y.add((0,m.tn)(r)>180?r+(r>0?360:-360):r)}else l=e,c=t;p.Y7.point(e,t),_(e,t)}function A(){p.Y7.lineStart()}function M(){k(l,c),p.Y7.lineEnd(),(0,m.tn)(y)>m.Ni&&(n=-(a=180)),f[0]=n,f[1]=a,u=null}function S(e,t){return(t-=e)<0?t+360:t}function E(e,t){return e[0]-t[0]}function L(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tS(s[0],s[1])&&(s[1]=l[1]),S(l[0],s[1])>S(s[0],s[1])&&(s[0]=l[0])):c.push(s=l);for(u=-1/0,t=0,s=c[r=c.length-1];t<=r;s=l,++t)l=c[t],(d=S(s[1],l[0]))>u&&(u=d,n=l[0],a=s[1])}return h=f=null,n===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[n,i],[a,o]]}},28594:function(e,t,r){"use strict";var n=r(47401);e.exports=function(e,t){var r=e.split(" "),i=r[0],a=r[1],o=n.isArrayOrTypedArray(t)?n.mean(t):t,s=.5+o/100,l=1.5+o/100,c=["",""],u=[0,0];switch(i){case"top":c[0]="top",u[1]=-l;break;case"bottom":c[0]="bottom",u[1]=l}switch(a){case"left":c[1]="right",u[0]=-s;break;case"right":c[1]="left",u[0]=s}return{anchor:c[0]&&c[1]?c.join("-"):c[0]?c[0]:c[1]?c[1]:"center",offset:u}}},28603:function(e,t,r){"use strict";var n=r(4491),i=r(12041);e.exports=function(e){return i(e)?e:n(e,"Cannot use %v",arguments[1])}},28724:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},28735:function(e,t,r){"use strict";var n=r(47401),i=r(92704),a=r(77063),o=r(14056),s=r(68793);e.exports=function(e,t,r){var l=e[r],c=t[r];if(l.rangeslider||t._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,h,f=l.rangeslider,d=i.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(f.range)),_("range");var p=t._subplots;if(p)for(var g=p.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===a.name2id(r)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),m=n.simpleMap(g,a.id2name),v=0;vl&&C[v].gap;)v--;for(x=C[v].s,g=C.length-1;g>v;g--)C[g].s=x;for(;l1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l>>1,f)p[0]=e.xbounds[0],p[2]=e.xbounds[1],p[1]=e.ybounds[0],p[3]=e.ybounds[1];else for(l=0;lp[2]&&(p[2]=o),sp[3]&&(p[3]=s);if(d)r=d;else for(r=new Int32Array(t),l=0;lp[2]&&(p[2]=o),sp[3]&&(p[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(e.marker.color),m=i(e.marker.border.color),v=e.opacity*e.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=e.marker.blend;if(null===y){y=c.length<100||u.length<100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=e.marker.sizemin,b=Math.max(e.marker.sizemax,e.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=e.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;e._extremes[_._id]=a(_,[p[0],p[2]],{ppad:T}),e._extremes[w._id]=a(w,[p[1],p[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(e,t){var r=new s(e,t.uid);return r.update(t),r}},29269:function(e,t,r){"use strict";e.exports=function(e,t,r,a){var o=n(t,r,a);if(0===o){var s=i(n(e,t,r)),c=i(n(e,t,a));if(s===c){if(0===s){var u=l(e,t,r);return u===l(e,t,a)?0:u?1:-1}return 0}return 0===c?s>0||l(e,t,a)?-1:1:0===s?c>0||l(e,t,r)?1:-1:i(c-s)}var h=n(e,t,r);return h>0?o>0&&n(e,t,a)>0?1:-1:h<0?o>0||n(e,t,a)>0?1:-1:n(e,t,a)>0||l(e,t,r)?1:-1};var n=r(30223),i=r(17720),a=r(42685),o=r(98499),s=r(18205);function l(e,t,r){var n=a(e[0],-t[0]),i=a(e[1],-t[1]),l=a(r[0],-t[0]),c=a(r[1],-t[1]),u=s(o(n,l),o(i,c));return u[u.length-1]>=0}},29366:function(e,t,r){var n=r(97615),i=r(69726);function a(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){return(11*this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);return e=i.year(),t=i.month(),e=e<=0?e+1:e,(r=i.day())+Math.ceil(29.5*(t-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.islamic=a},29443:function(e){e.exports=function(e,t){var r={identity:t},n=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?n.apply(this,arguments):r},writable:!0}),r}},29451:function(e,t,r){"use strict";var n=r(75501),i=r(18748);e.exports=function(e,t){for(var r=[],a=e,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(t||(t=n(new Float64Array(o),r)),i(t,e),t)}},29461:function(e,t,r){"use strict";var n=r(8757).hasColorscale,i=r(92171),a=r(54846),o=r(11262).setGroupPositions,s=r(35533),l=r(62282).traceIs,c=r(47401).extendFlat;e.exports={calc:function(e,t){for(var r=e._fullLayout,o=t.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(t,"r"),h=c.makeCalcdata(t,"theta"),f=t._length,d=new Array(f),p=u,g=h,m=0;m=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=n.exec(e)))throw new Error("invalid format: "+e);var t;return new a({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function a(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},29672:function(e,t,r){"use strict";var n=r(47401),i=r(37762);e.exports=function(e,t,r){var a,o,s={},l=r[t.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[t.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(e.r);s.rLabel=i.tickText(a,c,!0).text;var u="degrees"===o.thetaunit?n.rad2deg(e.theta):e.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},29770:function(e,t,r){"use strict";var n=r(47401),i=r(77638),a=r(47008),o=r(99144),s=r(60039),l=r(64498),c=r(75805);e.exports=function(e,t,r,u){function h(r,i){return n.coerce(e,t,c,r,i)}var f,d=h("locations");if(d&&d.length){var p,g=h("geojson");("string"===typeof g&&""!==g||n.isPlainObject(g))&&(p="geojson-id"),"geojson-id"===h("locationmode",p)&&h("featureidkey"),f=d.length}else{var m=h("lon")||[],v=h("lat")||[];f=Math.min(m.length,v.length)}f?(t._length=f,h("text"),h("hovertext"),h("hovertemplate"),h("mode"),i.hasLines(t)&&(o(e,t,r,u,h),h("connectgaps")),i.hasMarkers(t)&&a(e,t,r,u,h,{gradient:!0}),i.hasText(t)&&(h("texttemplate"),s(e,t,u,h)),h("fill"),"none"!==t.fill&&l(e,t,r,h),n.coerceSelectionMarkerOpacity(t,h)):t.visible=!1}},29929:function(e,t,r){"use strict";e.exports=r(52098)},29941:function(e,t,r){"use strict";var n=r(5153),i=r(62405);e.exports={bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:i.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:n({editType:"legend",description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the x position (in normalized coordinates) of the legend.","Defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the y position (in normalized coordinates) of the legend.","Defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:n({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}},29952:function(e,t,r){"use strict";var n=r(73926),i=r(92704);e.exports=function(e,t,r,a,o){a("a")||(a("da"),a("a0")),a("b")||(a("db"),a("b0")),function(e,t,r,a){["aaxis","baxis"].forEach((function(o){var s=o.charAt(0),l=e[o]||{},c=i.newContainer(t,o),u={tickfont:"x",id:s+"axis",letter:s,font:t.font,name:o,data:e[s],calendar:t.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],e[o]||"-"===l.type||(e[o]={type:l.type})}))}(e,t,r,o)}},29965:function(e){e.exports=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}},29977:function(e,t,r){"use strict";e.exports=function(e){var t=e.gl||e.scene&&e.scene.gl,r=h(t);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=f(t);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(t),l=i(t,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),d=0;d<1024;++d)u.data[d]=255;var p=a(t,u);p.wrap=t.REPEAT;var g=new v(t,r,o,s,l,p);return g.update(e),g};var n=r(99795),i=r(66405),a=r(89407),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=r(62683),c=r(75501),u=r(90488),h=u.createShader,f=u.createPickShader,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(e,t){for(var r=0,n=0;n<3;++n){var i=e[n]-t[n];r+=i*i}return Math.sqrt(r)}function g(e){for(var t=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r<3;++r)t[0][r]=Math.max(e[0][r],t[0][r]),t[1][r]=Math.min(e[1][r],t[1][r]);return t}function m(e,t,r,n){this.arcLength=e,this.position=t,this.index=r,this.dataCoordinate=n}function v(e,t,r,n,i,a){this.gl=e,this.shader=t,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(e){this.pickId=e},y.drawTransparent=y.draw=function(e){if(this.vertexCount){var t=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:e.model||d,view:e.view||d,projection:e.projection||d,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(t.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(e){if(this.vertexCount){var t=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:e.model||d,view:e.view||d,projection:e.projection||d,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(t.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(e){var t,r;this.dirty=!0;var n=!!e.connectGaps;"dashScale"in e&&(this.dashScale=e.dashScale),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,h=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],f=e.position||e.positions;if(f){var d=e.color||e.colors||[0,0,0,1],g=e.lineWidth||1,m=!1;e:for(t=1;t0){for(var w=0;w<24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue e}h[0][r]=Math.min(h[0][r],b[r],_[r]),h[1][r]=Math.max(h[1][r],b[r],_[r])}Array.isArray(d[0])?(v=d.length>t-1?d[t-1]:d.length>0?d[d.length-1]:[0,0,0,1],y=d.length>t?d[t]:d.length>0?d[d.length-1]:[0,0,0,1]):v=y=d,3===v.length&&(v=[v[0],v[1],v[2],1]),3===y.length&&(y=[y[0],y[1],y[2],1]),!this.hasAlpha&&v[3]<1&&(this.hasAlpha=!0),x=Array.isArray(g)?g.length>t-1?g[t-1]:g.length>0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=p(b,_),m){for(r=0;r<2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(f[f.length-1].slice()),this.bounds=h,this.vertexCount=u,this.points=o,this.arcLength=a,"dashes"in e){var k=e.dashes.slice();for(k.unshift(0),t=1;t=(a=(g+v)/2))?g=a:v=a,(u=r>=(o=(m+y)/2))?m=o:y=o,i=d,!(d=d[h=u<<1|c]))return i[h]=p,e;if(s=+e._x.call(null,d.data),l=+e._y.call(null,d.data),t===s&&r===l)return p.next=d,i?i[h]=p:e._root=p,e;do{i=i?i[h]=new Array(4):e._root=new Array(4),(c=t>=(a=(g+v)/2))?g=a:v=a,(u=r>=(o=(m+y)/2))?m=o:y=o}while((h=u<<1|c)===(f=(l>=o)<<1|s>=a));return i[f]=d,i[h]=p,e}function s(e,t,r,n,i){this.node=e,this.x0=t,this.y0=r,this.x1=n,this.y1=i}function l(e){return e[0]}function c(e){return e[1]}function u(e,t,r){var n=new h(null==t?l:t,null==r?c:r,NaN,NaN,NaN,NaN);return null==e?n:n.addAll(e)}function h(e,t,r,n,i,a){this._x=e,this._y=t,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function f(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}r.r(t),r.d(t,{forceCenter:function(){return n},forceCollide:function(){return m},forceLink:function(){return b},forceManyBody:function(){return H},forceRadial:function(){return G},forceSimulation:function(){return q},forceX:function(){return W},forceY:function(){return Y}});var d=u.prototype=h.prototype;function p(e){return e.x+e.vx}function g(e){return e.y+e.vy}function m(e){var t,r,n=1,o=1;function s(){for(var e,i,s,c,h,f,d,m=t.length,v=0;vc+p||ih+p||os.index){var g=c-l.x-l.vx,m=h-l.y-l.vy,v=g*g+m*m;ve.r&&(e.r=e[t].r)}function c(){if(t){var n,i,a=t.length;for(r=new Array(a),n=0;nh&&(h=n),if&&(f=i));if(c>h||u>f)return this;for(this.cover(c,u).cover(h,f),r=0;re||e>=i||n>t||t>=a;)switch(s=(td||(a=c.y0)>p||(o=c.x1)=y)<<1|e>=v)&&(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),_=x*x+b*b;if(_=(s=(p+m)/2))?p=s:m=s,(u=o>=(l=(g+v)/2))?g=l:v=l,t=d,!(d=d[h=u<<1|c]))return this;if(!d.length)break;(t[h+1&3]||t[h+2&3]||t[h+3&3])&&(r=t,f=h)}for(;d.data!==e;)if(n=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,n?(i?n.next=i:delete n.next,this):t?(i?t[h]=i:delete t[h],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(r?r[f]=d:this._root=d),this):(this._root=i,this)},d.removeAll=function(e){for(var t=0,r=e.length;t=0&&t._call.call(null,e),t=t._next;--k}()}finally{k=0,function(){var e,t,r=_,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),e=r,r=r._next):(t=r._next,r._next=null,r=e?e._next=t:_=t);w=e,j(n)}(),E=0}}function F(){var e=C.now(),t=e-S;t>1e3&&(L-=t,S=e)}function j(e){k||(A&&(A=clearTimeout(A)),e-E>24?(e<1/0&&(A=setTimeout(R,e-C.now()-L)),M&&(M=clearInterval(M))):(M||(S=C.now(),M=setInterval(F,1e3)),k=1,I(R)))}function N(e){return e.x}function B(e){return e.y}O.prototype=z.prototype={constructor:O,restart:function(e,t,r){if("function"!==typeof e)throw new TypeError("callback is not a function");r=(null==r?D():+r)+(null==t?0:+t),this._next||w===this||(w?w._next=this:_=this,w=this),this._call=e,this._time=r,j()},stop:function(){this._call&&(this._call=null,this._time=1/0,j())}};var U=10,V=Math.PI*(3-Math.sqrt(5));function q(e){var t,r=1,n=.001,i=1-Math.pow(n,1/300),a=0,o=.6,s=(0,v.Tj)(),l=z(u),c=(0,T.A)("tick","end");function u(){h(),c.call("tick",t),r1?(null==r?s.remove(e):s.set(e,d(r)),t):s.get(e)},find:function(t,r,n){var i,a,o,s,l,c=0,u=e.length;for(null==n?n=1/0:n*=n,c=0;c1?(c.on(e,r),t):c.on(e)}}}function H(){var e,t,r,n,o=i(-30),s=1,l=1/0,c=.81;function h(n){var i,a=e.length,o=u(e,N,B).visitAfter(d);for(r=n,i=0;i=l)){(e.data!==t||e.next)&&(0===h&&(p+=(h=a())*h),0===f&&(p+=(f=a())*f),p>1;return["sum(",l(e.slice(0,t)),",",l(e.slice(t)),")"].join("")}function c(e){if(2===e.length)return[["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("")];for(var t=[],r=0;r0){if(a<=0)return o;n=i+a}else{if(!(i<0))return o;if(a>=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o>=s||o<=-s?o:h(e,t,r)},function(e,t,r,n){var i=e[0]-n[0],a=t[0]-n[0],o=r[0]-n[0],s=e[1]-n[1],l=t[1]-n[1],c=r[1]-n[1],u=e[2]-n[2],h=t[2]-n[2],d=r[2]-n[2],p=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(p-g)+h*(m-v)+d*(y-x),_=7771561172376103e-31*((Math.abs(p)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(h)+(Math.abs(y)+Math.abs(x))*Math.abs(d));return b>_||-b>_?b:f(e,t,r,n)}];function p(e){var t=d[e.length];return t||(t=d[e.length]=u(e.length)),t.apply(void 0,e)}!function(){for(;d.length<=5;)d.push(u(d.length));for(var t=[],r=["slow"],n=0;n<=5;++n)t.push("a"+n),r.push("o"+n);var i=["function getOrientation(",t.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(n=2;n<=5;++n)i.push("case ",n,":return o",n,"(",t.slice(0,n).join(),");");i.push("}var s=new Array(arguments.length);for(var i=0;i* for months, as in","`axis.dtick`. For category data, the number of categories to","bin together (always defaults to 1).",t?"If multiple non-overlaying histograms share a subplot, the first explicit `size` is used and all others discarded. If no `size` is provided,the sample data from all traces is combined to determine `size` as described above.":""].join(" ")},editType:"calc"}}},30790:function(e,t,r){"use strict";var n=r(50775);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(60829),supplyLayoutDefaults:r(42890),draw:r(45886)}},30807:function(e,t,r){"use strict";var n=r(47401),i=r(9319),a=r(77063).id2name,o=r(33333),s=r(95851),l=r(58947),c=r(9405).ALMOST_EQUAL,u=r(60482).FROM_BL;function h(e,t,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,h=t._id,g=h.charAt(0),m=((s._splomAxes||{})[g]||{})[h]||{},v=t._id,y="x"===v.charAt(0);function x(r,i){return n.coerce(e,t,o,r,i)}t._matchGroup=null,t._constraintGroup=null,x("constrain",l?"domain":"range"),n.coerce(e,t,{constraintoward:{valType:"enumerated",values:y?["left","center","right"]:["bottom","middle","top"],dflt:y?"center":"middle"}},"constraintoward");var b,_,w=t.type,T=[];for(b=0;bn?i.substr(n):a.substr(r))+o:i+a+e*t:o}function m(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oc*x)||T)for(r=0;rP&&FI&&(I=F);f/=(I-C)/(2*D),C=l.l2r(C),I=l.l2r(I),l.range=l._input.range=S0}))).length,m=new Array(g),v=new Array(g);for(d=0;d0;){var j=R.pop(),N=E[j];l(N,(function(e,t){return e-t}));var B,U=N.length,V=F[j];if(0===V)B=[q=p[j]];for(d=0;d=0))if(F[H]=1^V,R.push(H),0===V)z(q=p[H])||(q.reverse(),B.push(q))}0===V&&r.push(B)}return r};var n=r(66957),i=r(7287),a=r(66532),o=r(80717),s=r(18205),l=r(66869),c=r(75592);function u(e,t){for(var r=new Array(e),n=0;n=0))return e;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var s=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return a?"rgba("+s+", "+n[3]+")":"rgb("+s+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var i=n(t||c).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(e,t,r){var i=n(e);return 1!==i.getAlpha()&&(i=n(o.combine(e,c))),(i.isDark()?t?i.lighten(t):c:r?i.darken(r):l).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"===typeof e){var t,r,n,i,s=Object.keys(e);for(t=0;t",'""',"''","``","\u201c\u201d","\xab\xbb"]:("string"===typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(e){return 1===e.length&&(e+=e),e})));var i=n.parse(e,{flat:!0,brackets:r.ignore}),a=i[0].split(t);if(r.escape){for(var o=[],s=0;s0)throw new Error("cwise: pre() block may not reference array args");if(a0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===o)t.scalarArgs.push(a),t.shimArgs.push("scalar"+a);else if("index"===o){if(t.indexArgs.push(a),a0)throw new Error("cwise: pre() block may not reference array index");if(a0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===o){if(t.shapeArgs.push(a),ar.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>r.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>r.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,n(t)}},31763:function(e,t,r){"use strict";e.exports=r(79034)()?Object.keys:r(19610)},31825:function(e){!function(){"use strict";if("undefined"===typeof ses||!ses.ok||ses.ok()){"undefined"!==typeof ses&&(ses.weakMapPermitHostObjects=m);var t=!1;if("function"===typeof WeakMap){var r=WeakMap;if("undefined"!==typeof navigator&&/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l="weakmap:",c=l+"ident:"+Math.random()+"___";if("undefined"!==typeof crypto&&"function"===typeof crypto.getRandomValues&&"function"===typeof ArrayBuffer&&"function"===typeof Uint8Array){var u=new ArrayBuffer(25),h=new Uint8Array(u);crypto.getRandomValues(h),c=l+"rand:"+Array.prototype.map.call(h,(function(e){return(e%36).toString(36)})).join("")+"___"}if(o(Object,"getOwnPropertyNames",{value:function(e){return a(e).filter(v)}}),"getPropertyNames"in Object){var f=Object.getPropertyNames;o(Object,"getPropertyNames",{value:function(e){return f(e).filter(v)}})}!function(){var e=Object.freeze;o(Object,"freeze",{value:function(t){return y(t),e(t)}});var t=Object.seal;o(Object,"seal",{value:function(e){return y(e),t(e)}});var r=Object.preventExtensions;o(Object,"preventExtensions",{value:function(e){return y(e),r(e)}})}();var d=!1,p=0,g=function(){this instanceof g||b();var e=[],t=[],r=p++;return Object.create(g.prototype,{get___:{value:x((function(n,i){var a,o=y(n);return o?r in o?o[r]:i:(a=e.indexOf(n))>=0?t[a]:i}))},has___:{value:x((function(t){var n=y(t);return n?r in n:e.indexOf(t)>=0}))},set___:{value:x((function(n,i){var a,o=y(n);return o?o[r]=i:(a=e.indexOf(n))>=0?t[a]=i:(a=e.length,t[a]=i,e[a]=n),this}))},delete___:{value:x((function(n){var i,a,o=y(n);return o?r in o&&delete o[r]:!((i=e.indexOf(n))<0)&&(a=e.length-1,e[i]=void 0,t[i]=t[a],e[i]=e[a],e.length=a,t.length=a,!0)}))}})};g.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},delete:{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"===typeof r?function(){function n(){this instanceof g||b();var e,n=new r,i=void 0,a=!1;return e=t?function(e,t){return n.set(e,t),n.has(e)||(i||(i=new g),i.set(e,t)),this}:function(e,t){if(a)try{n.set(e,t)}catch(r){i||(i=new g),i.set___(e,t)}else n.set(e,t);return this},Object.create(g.prototype,{get___:{value:x((function(e,t){return i?n.has(e)?n.get(e):i.get___(e,t):n.get(e,t)}))},has___:{value:x((function(e){return n.has(e)||!!i&&i.has___(e)}))},set___:{value:x(e)},delete___:{value:x((function(e){var t=!!n.delete(e);return i&&i.delete___(e)||t}))},permitHostObjects___:{value:x((function(e){if(e!==m)throw new Error("bogus call to permitHostObjects___");a=!0}))}})}t&&"undefined"!==typeof Proxy&&(Proxy=void 0),n.prototype=g.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!==typeof Proxy&&(Proxy=void 0),e.exports=g)}function m(e){e.permitHostObjects___&&e.permitHostObjects___(m)}function v(e){return!(e.substr(0,8)==l&&"___"===e.substr(e.length-3))}function y(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[c];if(t&&t.key===e)return t;if(s(e)){t={key:e};try{return o(e,c,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(r){return}}}function x(e){return e.prototype=null,Object.freeze(e)}function b(){d||"undefined"===typeof console||(d=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}}()},31857:function(e,t,r){"use strict";r.d(t,{A:function(){return a},f:function(){return i}});var n=r(58712);function i(e,t){return[e,t]}function a(){return(0,n.A)(i).scale(152.63)}i.invert=i},31869:function(e){function t(e,t,r){var n=[];return e.forEach((function(e){var i=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[i]&&n.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[i],below:2===t[i]},otherFill:null})})),r&&r.selected(n),n}var r={union:function(e,r){return t(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return t(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return t(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return t(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return t(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};e.exports=r},31919:function(e,t,r){"use strict";var n,i,a,o,s=r(99449),l=r(9967),c=Object.create,u=Object.defineProperties,h=Object.defineProperty,f=Object.prototype,d=c(null);if("function"===typeof Symbol){n=Symbol;try{String(n()),o=!0}catch(g){}}var p=function(){var e=c(null);return function(t){for(var r,n,i=0;e[t+(i||"")];)++i;return e[t+=i||""]=!0,h(f,r="@@"+t,s.gs(null,(function(e){n||(n=!0,h(this,r,s(e)),n=!1)}))),r}}();a=function(e){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?n(t):(r=c(a.prototype),t=void 0===t?"":String(t),u(r,{__description__:s("",t),__name__:s("",p(t))}))},u(i,{for:s((function(e){return d[e]?d[e]:d[e]=i(String(e))})),keyFor:s((function(e){var t;for(t in l(e),d)if(d[t]===e)return t})),hasInstance:s("",n&&n.hasInstance||i("hasInstance")),isConcatSpreadable:s("",n&&n.isConcatSpreadable||i("isConcatSpreadable")),iterator:s("",n&&n.iterator||i("iterator")),match:s("",n&&n.match||i("match")),replace:s("",n&&n.replace||i("replace")),search:s("",n&&n.search||i("search")),species:s("",n&&n.species||i("species")),split:s("",n&&n.split||i("split")),toPrimitive:s("",n&&n.toPrimitive||i("toPrimitive")),toStringTag:s("",n&&n.toStringTag||i("toStringTag")),unscopables:s("",n&&n.unscopables||i("unscopables"))}),u(a.prototype,{constructor:s(i),toString:s("",(function(){return this.__name__}))}),u(i.prototype,{toString:s((function(){return"Symbol ("+l(this).__description__+")"})),valueOf:s((function(){return l(this)}))}),h(i.prototype,i.toPrimitive,s("",(function(){var e=l(this);return"symbol"===typeof e?e:e.toString()}))),h(i.prototype,i.toStringTag,s("c","Symbol")),h(a.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),h(a.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},31927:function(e){e.exports=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}},31974:function(e,t,r){"use strict";var n=r(77989),i=r(13373).fX,a=r(47401).counterRegex,o="ternary";t.name=o;var s=t.attr="subplot";t.idRoot=o,t.idRegex=t.attrRegex=a(o),(t.attributes={})[s]={valType:"subplotid",dflt:"ternary",editType:"calc",description:["Sets a reference between this trace's data coordinates and","a ternary subplot.","If *ternary* (the default value), the data refer to `layout.ternary`.","If *ternary2*, the data refer to `layout.ternary2`, and so on."].join(" ")},t.layoutAttributes=r(60536),t.supplyLayoutDefaults=r(13551),t.plot=function(e){for(var t=e._fullLayout,r=e.calcdata,a=t._subplots[o],s=0;s=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(t,r){t>=e&&(this.__redo__[r]=++t)}),this),this.__redo__.push(e)):h(this,"__redo__",l("c",[e])))})),_onDelete:l((function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(t=this.__redo__.indexOf(e))&&this.__redo__.splice(t,1),this.__redo__.forEach((function(t,r){t>e&&(this.__redo__[r]=--t)}),this)))})),_onClear:l((function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0}))}))),h(n.prototype,u.iterator,l((function(){return this})))},32059:function(e,t,r){"use strict";e.exports=r(99026)()?Array.from:r(77586)},32103:function(e,t,r){e.exports=function(e,t){var r=e[0],i=e[1],a=e[2],o=t[0],s=t[1],l=t[2];return Math.abs(r-o)<=n*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=n*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-l)<=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=r(64714)},32237:function(e,t,r){"use strict";var n=r(43863),i=r(4957),a=r(47397).Buffer;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o="undefined"!==typeof Uint8ClampedArray,s="undefined"!==typeof BigUint64Array,l="undefined"!==typeof BigInt64Array,c=r.g.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,h=c.BUFFER;function f(e){if(e){var t=e.length||e.byteLength,r=n.log2(t);u[r].push(e)}}function d(e){e=n.nextPow2(e);var t=n.log2(e),r=u[t];return r.length>0?r.pop():new ArrayBuffer(e)}function p(e){return new Uint8Array(d(e),0,e)}function g(e){return new Uint16Array(d(2*e),0,e)}function m(e){return new Uint32Array(d(4*e),0,e)}function v(e){return new Int8Array(d(e),0,e)}function y(e){return new Int16Array(d(2*e),0,e)}function x(e){return new Int32Array(d(4*e),0,e)}function b(e){return new Float32Array(d(4*e),0,e)}function _(e){return new Float64Array(d(8*e),0,e)}function w(e){return o?new Uint8ClampedArray(d(e),0,e):p(e)}function T(e){return s?new BigUint64Array(d(8*e),0,e):null}function k(e){return l?new BigInt64Array(d(8*e),0,e):null}function A(e){return new DataView(d(e),0,e)}function M(e){e=n.nextPow2(e);var t=n.log2(e),r=h[t];return r.length>0?r.pop():new a(e)}t.free=function(e){if(a.isBuffer(e))h[n.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,r=0|n.log2(t);u[r].push(e)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeBigUint64=t.freeInt8=t.freeInt16=t.freeInt32=t.freeBigInt64=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(e){f(e.buffer)},t.freeArrayBuffer=f,t.freeBuffer=function(e){h[n.log2(e.length)].push(e)},t.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return d(e);switch(t){case"uint8":return p(e);case"uint16":return g(e);case"uint32":return m(e);case"int8":return v(e);case"int16":return y(e);case"int32":return x(e);case"float":case"float32":return b(e);case"double":case"float64":return _(e);case"uint8_clamped":return w(e);case"bigint64":return k(e);case"biguint64":return T(e);case"buffer":return M(e);case"data":case"dataview":return A(e);default:return null}return null},t.mallocArrayBuffer=d,t.mallocUint8=p,t.mallocUint16=g,t.mallocUint32=m,t.mallocInt8=v,t.mallocInt16=y,t.mallocInt32=x,t.mallocFloat32=t.mallocFloat=b,t.mallocFloat64=t.mallocDouble=_,t.mallocUint8Clamped=w,t.mallocBigUint64=T,t.mallocBigInt64=k,t.mallocDataView=A,t.mallocBuffer=M,t.clearCache=function(){for(var e=0;e<32;++e)c.UINT8[e].length=0,c.UINT16[e].length=0,c.UINT32[e].length=0,c.INT8[e].length=0,c.INT16[e].length=0,c.INT32[e].length=0,c.FLOAT[e].length=0,c.DOUBLE[e].length=0,c.BIGUINT64[e].length=0,c.BIGINT64[e].length=0,c.UINT8C[e].length=0,u[e].length=0,h[e].length=0}},32357:function(e,t,r){"use strict";var n=r(17342).overrideAll,i=r(13373).eV,a=r(98813),o=r(51499),s=r(82559),l=r(52783),c=r(88987).prepSelect,u=r(47401),h=r(62282),f="sankey";function d(e,t){var r=e._fullData[t],n=e._fullLayout,i=n.dragmode,a="pan"===n.dragmode?"move":"crosshair",o=r._bgRect;if("pan"!==i&&"zoom"!==i){s(o,a);var f={_id:"x",c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},d={_id:"y",c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},p={gd:e,element:o.node(),plotinfo:{id:t,xaxis:f,yaxis:d,fillRangeItems:u.noop},subplot:t,xaxes:[f],yaxes:[d],doneFnCompleted:function(r){var n,i=e._fullData[t],a=i.node.groups.slice(),o=[];function s(e){for(var t=i._sankey.graph.nodes,r=0;r1,b=1-h[e+"gap"],_=1-h[e+"groupgap"];for(s=0;s0){var H=E.pointpos,G=E.jitter,W=E.marker.size/2,Y=0;H+G>=0&&((Y=V*(H+G))>M?(q=!0,B=W,j=Y):Y>R&&(B=W,j=M)),Y<=M&&(j=M);var Z=0;H-G<=0&&((Z=-V*(H-G))>S?(q=!0,U=W,N=Z):Z>F&&(U=W,N=S)),Z<=S&&(N=S)}else j=M,N=S;var X=new Array(c.length);for(l=0;l0&&t.push(","),t.push("tuple[",r,"]");t.push(")}return orient");var i=new Function("test",t.join("")),a=n[e+1];return a||(a=n),i(a)}(e)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(e,t){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[e];for(e.lastVisited=-n;o.length>0;){(e=o.pop()).vertices;for(var s=e.adjacent,l=0;l<=r;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-n)){for(var u=c.vertices,h=0;h<=r;++h){var f=u[h];i[h]=f<0?t:a[f]}var d=this.orient();if(d>0)return c;c.lastVisited=-n,0===d&&o.push(c)}}}return null},u.walk=function(e,t){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=t?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];e:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u<=n;++u){var h=c[u];if(!(h.lastVisited>=r)){var f=a[u];a[u]=e;var d=this.orient();if(a[u]=f,d<0){s=h;continue e}h.boundary?h.lastVisited=-r:h.lastVisited=r}}return}return s},u.addPeaks=function(e,t){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,h=[t];t.lastVisited=r,t.vertices[t.vertices.indexOf(-1)]=r,t.boundary=!1,c.push(t);for(var f=[];h.length>0;){var d=(t=h.pop()).vertices,p=t.adjacent,g=d.indexOf(r);if(!(g<0))for(var m=0;m<=n;++m)if(m!==g){var v=p[m];if(v.boundary&&!(v.lastVisited>=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b<=n;++b)y[b]<0?(x=b,l[b]=e):l[b]=i[y[b]];if(this.orient()>0){y[x]=r,v.boundary=!1,c.push(v),h.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=d.slice(),T=p.slice(),k=new a(w,T,!0);u.push(k);var A=_.indexOf(t);if(!(A<0)){_[A]=k,T[g]=v,w[m]=-1,T[m]=t,p[m]=k,k.flip();for(b=0;b<=n;++b){var M=w[b];if(!(M<0||M===r)){for(var S=new Array(n-1),E=0,L=0;L<=n;++L){var C=w[L];C<0||L===b||(S[E++]=C)}f.push(new o(S,k,b))}}}}}}f.sort(s);for(m=0;m+1=0?o[l++]=s[u]:c=1&u;if(c===(1&e)){var h=o[0];o[0]=o[1],o[1]=h}t.push(o)}}return t}},33035:function(e,t,r){var n=r(46835);n=n.slice().filter((function(e){return!/^(gl\_|texture)/.test(e)})),e.exports=n.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},33119:function(e,t,r){"use strict";r.r(t),r.d(t,{timeDay:function(){return l.A},timeDays:function(){return l._},timeFriday:function(){return c.Sh},timeFridays:function(){return c.tz},timeHour:function(){return s.A},timeHours:function(){return s.c},timeInterval:function(){return n.A},timeMillisecond:function(){return i.A},timeMilliseconds:function(){return i.R},timeMinute:function(){return o.A},timeMinutes:function(){return o.G},timeMonday:function(){return c.By},timeMondays:function(){return c.KP},timeMonth:function(){return u.A},timeMonths:function(){return u.U},timeSaturday:function(){return c.kS},timeSaturdays:function(){return c.t$},timeSecond:function(){return a.A},timeSeconds:function(){return a.Y},timeSunday:function(){return c.fz},timeSundays:function(){return c.se},timeThursday:function(){return c.dt},timeThursdays:function(){return c.Q$},timeTuesday:function(){return c.eQ},timeTuesdays:function(){return c.yW},timeWednesday:function(){return c.l3},timeWednesdays:function(){return c.gf},timeWeek:function(){return c.fz},timeWeeks:function(){return c.se},timeYear:function(){return h.A},timeYears:function(){return h.V},utcDay:function(){return x.A},utcDays:function(){return x.o},utcFriday:function(){return b.a1},utcFridays:function(){return b.Zn},utcHour:function(){return v},utcHours:function(){return y},utcMillisecond:function(){return i.A},utcMilliseconds:function(){return i.R},utcMinute:function(){return p},utcMinutes:function(){return g},utcMonday:function(){return b.rt},utcMondays:function(){return b.ON},utcMonth:function(){return w},utcMonths:function(){return T},utcSaturday:function(){return b.c8},utcSaturdays:function(){return b.Xo},utcSecond:function(){return a.A},utcSeconds:function(){return a.Y},utcSunday:function(){return b.Hl},utcSundays:function(){return b.aZ},utcThursday:function(){return b.pT},utcThursdays:function(){return b.wr},utcTuesday:function(){return b.sr},utcTuesdays:function(){return b.jN},utcWednesday:function(){return b.z2},utcWednesdays:function(){return b.G6},utcWeek:function(){return b.Hl},utcWeeks:function(){return b.aZ},utcYear:function(){return k.A},utcYears:function(){return k.j}});var n=r(8036),i=r(28164),a=r(58097),o=r(83665),s=r(14503),l=r(62295),c=r(82105),u=r(51515),h=r(18780),f=r(53129),d=(0,n.A)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*f.rR)}),(function(e,t){return(t-e)/f.rR}),(function(e){return e.getUTCMinutes()})),p=d,g=d.range,m=(0,n.A)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*f.JJ)}),(function(e,t){return(t-e)/f.JJ}),(function(e){return e.getUTCHours()})),v=m,y=m.range,x=r(38445),b=r(70123),_=(0,n.A)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),w=_,T=_.range,k=r(61482)},33231:function(e,t,r){"use strict";var n=r(33119),i=r(47401).titleCase;e.exports=function(e,t){var r=e._name,a={};if("all"===t.step)a[r+".autorange"]=!0;else{var o=function(e,t){var r,a=e.range,o=new Date(e.r2l(a[1])),s=t.step,l=n["utc"+i(s)],c=t.count;switch(t.stepmode){case"backward":r=e.l2r(+l.offset(o,-c));break;case"todate":var u=l.offset(o,-c);r=e.l2r(+l.ceil(u))}var h=a[1];return[r,h]}(e,t);a[r+".range[0]"]=o[0],a[r+".range[1]"]=o[1]}return a}},33290:function(e){"use strict";e.exports="undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},33333:function(e,t,r){"use strict";var n=r(5153),i=r(62405),a=r(34418).T,o=r(87241).extendFlat,s=r(92704).templatedArray,l=r(20184).descriptionWithDates,c=r(9405).ONEDAY,u=r(56890),h=u.HOUR_PATTERN,f=u.WEEKDAY_PATTERN;e.exports={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:i.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:n({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:s("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[f,h,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+f+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+h+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+f+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+h+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:c,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:{valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,editType:"ticks",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,editType:"ticks",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:i.defaultLine,editType:"ticks",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},automargin:{valType:"boolean",dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:o({},a,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:n({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:l("tick label")},tickformatstops:s("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:l("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:i.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:i.lightLine,editType:"ticks",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,editType:"ticks",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:i.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:i.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:n({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},33356:function(e,t,r){"use strict";var n=r(24498),i=r(9405).BADNUM;e.exports=function(e,t,r){for(var a=t.layers.frontplot.select("g.scatterlayer"),o={xaxis:t.xaxis,yaxis:t.yaxis,plot:t.framework,layerClipId:t._hasClipOnAxisFalse?t.clipIds.forTraces:null},s=t.radialAxis,l=t.angularAxis,c=0;c-1,I=!0;if(o(x)||!!d.selectedpoints||C){var D=d._length;if(d.selectedpoints){g.selectBatch=d.selectedpoints;var P=d.selectedpoints,O={};for(l=0;lt.model.rawColor?1:e.model.rawColor"),L=n.mouse(h)[0];o.loneHover({trace:f,x:b-p.left+g.left,y:_-p.top+g.top,text:E,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:T,idealAlign:L1&&f.displayInd===h.dimensions.length-1?(i=c.left,a="left"):(i=c.left+c.width,a="right");var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf("count")&&x.push(["Count:",y.countLabel].join(" ")),-1!==u.parcatsViewModel.hoverinfoItems.indexOf("probability")&&x.push(["P("+y.categoryLabel+"):",y.probabilityLabel].join(" "));var b=x.join("
");return{trace:d,x:o*(i-t.left),y:s*(p-t.top),text:b,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:y,eventData:[{data:d._input,fullData:d,count:g,category:m,probability:v}]}}function L(e){if(!e.parcatsViewModel.dragDimension&&-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(n.mouse(this)[1]<-1)return;var t,r=e.parcatsViewModel.graphDiv,i=r._fullLayout,a=i._paperdiv.node().getBoundingClientRect(),l=e.parcatsViewModel.hoveron,c=this;if("color"===l?(!function(e){var t=n.select(e).datum(),r=A(t);w(r),r.each((function(){s.raiseToTop(this)})),n.select(e.parentNode).selectAll("rect.bandrect").filter((function(e){return e.color===t.color})).each((function(){s.raiseToTop(this),n.select(this).attr("stroke","black").attr("stroke-width",1.5)}))}(c),S(c,"plotly_hover",n.event)):(!function(e){n.select(e.parentNode).selectAll("rect.bandrect").each((function(e){var t=A(e);w(t),t.each((function(){s.raiseToTop(this)}))})),n.select(e.parentNode).select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(c),M(c,"plotly_hover",n.event)),-1===e.parcatsViewModel.hoverinfoItems.indexOf("none"))"category"===l?t=E(r,a,c):"color"===l?t=function(e,t,r){e._fullLayout._calcInverseTransform(e);var i,a,o=e._fullLayout._invScaleX,s=e._fullLayout._invScaleY,l=r.getBoundingClientRect(),c=n.select(r).datum(),h=c.categoryViewModel,f=h.parcatsViewModel,d=f.model.dimensions[h.model.dimensionInd],p=f.trace,g=l.y+l.height/2;f.dimensions.length>1&&d.displayInd===f.dimensions.length-1?(i=l.left,a="left"):(i=l.left+l.width,a="right");var m=h.model.categoryLabel,v=c.parcatsViewModel.model.count,y=0;c.categoryViewModel.bands.forEach((function(e){e.color===c.color&&(y+=e.count)}));var x=h.model.count,b=0;f.pathSelection.each((function(e){e.model.color===c.color&&(b+=e.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},A=[];-1!==h.parcatsViewModel.hoverinfoItems.indexOf("count")&&A.push(["Count:",k.countLabel].join(" ")),-1!==h.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(A.push("P(color \u2229 "+m+"): "+k.probabilityLabel),A.push("P("+m+" | color): "+w.toFixed(3)),A.push("P(color | "+m+"): "+T.toFixed(3)));var M=A.join("
"),S=u.mostReadable(c.color,["black","white"]);return{trace:p,x:o*(i-t.left),y:s*(g-t.top),text:M,color:c.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:k,eventData:[{data:p._input,fullData:p,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,a,c):"dimension"===l&&(t=function(e,t,r){var i=[];return n.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){i.push(E(e,t,this))})),i}(r,a,c)),t&&o.loneHover(t,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(_(t.pathSelection),T(t.dimensionSelection.selectAll("g.category")),k(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),o.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(g),-1===t.hoverinfoItems.indexOf("skip"))){"color"===e.parcatsViewModel.hoveron?S(this,"plotly_unhover",n.event):M(this,"plotly_unhover",n.event)}}function I(e){"fixed"!==e.parcatsViewModel.arrangement&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map((function(e){return e.displayInd})),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,n.select(this).selectAll("g.category").select("rect.catrect").each((function(t){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=i&&i<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map((function(e){return e.displayInd})),t.model.dragY=t.y,s.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll("rect.bandrect").each((function(t){t.yh.y+h.height/2&&(o.model.displayInd=h.model.displayInd,h.model.displayInd=l),e.dragCategoryDisplayInd=o.model.displayInd}if(null===e.dragCategoryDisplayInd||"freeform"===e.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var f=e.parcatsViewModel.dimensions[r],d=e.parcatsViewModel.dimensions[i];void 0!==f&&a.model.dragXd.x&&(a.model.displayInd=d.model.displayInd,d.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=a.model.displayInd}B(e.parcatsViewModel),N(e.parcatsViewModel),R(e.parcatsViewModel),z(e.parcatsViewModel)}}function P(e){if("fixed"!==e.parcatsViewModel.arrangement&&null!==e.dragDimensionDisplayInd){n.select(this).selectAll("text").attr("font-weight","normal");var t={},r=O(e.parcatsViewModel),i=e.parcatsViewModel.model.dimensions.map((function(e){return e.displayInd})),o=e.initialDragDimensionDisplayInds.some((function(e,t){return e!==i[t]}));o&&i.forEach((function(r,n){var i=e.parcatsViewModel.model.dimensions[n].containerInd;t["dimensions["+i+"].displayindex"]=r}));var s=!1;if(null!==e.dragCategoryDisplayInd){var l=e.model.categories.map((function(e){return e.displayInd}));if(s=e.initialDragCategoryDisplayInds.some((function(e,t){return e!==l[t]}))){var c=e.model.categories.slice().sort((function(e,t){return e.displayInd-t.displayInd})),u=c.map((function(e){return e.categoryValue})),h=c.map((function(e){return e.categoryLabel}));t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[h],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!e.dragHasMoved&&e.potentialClickBand&&("color"===e.parcatsViewModel.hoveron?S(e.potentialClickBand,"plotly_click",n.event.sourceEvent):M(e.potentialClickBand,"plotly_click",n.event.sourceEvent)),e.model.dragX=null,null!==e.dragCategoryDisplayInd)e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd].model.dragY=null,e.dragCategoryDisplayInd=null;e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,B(e.parcatsViewModel),N(e.parcatsViewModel),n.transition().duration(300).ease("cubic-in-out").each((function(){R(e.parcatsViewModel,!0),z(e.parcatsViewModel,!0)})).each("end",(function(){(o||s)&&a.restyle(e.parcatsViewModel.graphDiv,t,[r])}))}}function O(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;s--)u+="C"+c[s]+","+(t[s+1]+n)+" "+l[s]+","+(t[s]+n)+" "+(e[s]+r[s])+","+(t[s]+n),u+="l-"+r[s]+",0 ";return u+="Z"}function N(e){var t=e.dimensions,r=e.model,n=t.map((function(e){return e.categories.map((function(e){return e.y}))})),i=e.model.dimensions.map((function(e){return e.categories.map((function(e){return e.displayInd}))})),a=e.model.dimensions.map((function(e){return e.displayInd})),o=e.dimensions.map((function(e){return e.model.dimensionInd})),s=t.map((function(e){return e.x})),l=t.map((function(e){return e.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&&c.push(r.paths[u]);function h(e){var t=e.categoryInds.map((function(e,t){return i[t][e]}));return o.map((function(e){return t[e]}))}c.sort((function(t,r){var n=h(t),i=h(r);return"backward"===e.sortpaths&&(n.reverse(),i.reverse()),n.push(t.valueInds[0]),i.push(r.valueInds[0]),e.bundlecolors&&(n.unshift(t.rawColor),i.unshift(r.rawColor)),ni?1:0}));for(var f=new Array(c.length),d=t[0].model.count,p=t[0].categories.map((function(e){return e.height})).reduce((function(e,t){return e+t})),g=0;g0?p*(v.count/d):0;for(var y,x=new Array(n.length),b=0;b1?(e.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],h=e.model.maxCats,f=t.categories.length,d=t.count,p=e.height-8*(h-1),g=8*(h-f)/2,m=t.categories.map((function(e){return{displayInd:e.displayInd,categoryInd:e.categoryInd}}));for(m.sort((function(e,t){return e.displayInd-t.displayInd})),c=0;c0?o.count/d*p:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:e},g=g+a+8,u.push(s);return{key:t.dimensionInd,x:null!==t.dragX?t.dragX:r,y:0,width:16,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(e,t,r,n){f(r,e,n,t)}},33887:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},34024:function(e,t,r){"use strict";var n=r(13373).fX,i=r(47401).counterRegex,a=r(56237),o="geo",s=i(o),l={};l[o]={valType:"subplotid",dflt:o,editType:"calc",description:["Sets a reference between this trace's geospatial coordinates and","a geographic map.","If *geo* (the default value), the geospatial coordinates refer to","`layout.geo`.","If *geo2*, the geospatial coordinates refer to `layout.geo2`,","and so on."].join(" ")},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:r(35490),supplyLayoutDefaults:r(40405),plot:function(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[o],s=0;sA&&(k=A)}w[r][0]._groupMinRank=k,w[r][0]._preGroupSort=r}var M=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(w.forEach((function(e,t){e[0]._preGroupSort=t})),w.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),r=0;r halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"});return{regl:e,draw:t,atlas:{}}},T.prototype.update=function(e){var t=this;if("string"===typeof e)e={text:e};else if(!e)return;null!=(e=i(e,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0)).opacity&&(Array.isArray(e.opacity)?this.opacity=e.opacity.map((function(e){return parseFloat(e)})):this.opacity=parseFloat(e.opacity)),null!=e.viewport&&(this.viewport=h(e.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=e.kerning&&(this.kerning=e.kerning),null!=e.offset&&("number"===typeof e.offset&&(e.offset=[e.offset,0]),this.positionOffset=y(e.offset)),e.direction&&(this.direction=e.direction),e.range&&(this.range=e.range,this.scale=[1/(e.range[2]-e.range[0]),1/(e.range[3]-e.range[1])],this.translate=[-e.range[0],-e.range[1]]),e.scale&&(this.scale=e.scale),e.translate&&(this.translate=e.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||e.font||(e.font=T.baseFontSize+"px sans-serif");var r,a=!1,o=!1;if(e.font&&(Array.isArray(e.font)?e.font:[e.font]).forEach((function(e,r){if("string"===typeof e)try{e=n.parse(e)}catch(h){e=n.parse(T.baseFontSize+"px "+e)}else e=n.parse(n.stringify(e));var i=n.stringify({size:T.baseFontSize,family:e.family,stretch:_?e.stretch:void 0,variant:e.variant,weight:e.weight,style:e.style}),s=d(e.size),l=Math.round(s[0]*p(s[1]));if(l!==t.fontSize[r]&&(o=!0,t.fontSize[r]=l),(!t.font[r]||i!=t.font[r].baseString)&&(a=!0,t.font[r]=T.fonts[i],!t.font[r])){var c=e.family.join(", "),u=[e.style];e.style!=e.variant&&u.push(e.variant),e.variant!=e.weight&&u.push(e.weight),_&&e.weight!=e.stretch&&u.push(e.stretch),t.font[r]={baseString:i,family:c,weight:e.weight,stretch:e.stretch,style:e.style,variant:e.variant,width:{},kerning:{},metrics:v(c,{origin:"top",fontSize:T.baseFontSize,fontStyle:u.join(" ")})},T.fonts[i]=t.font[r]}})),(a||o)&&this.font.forEach((function(r,i){var a=n.stringify({size:t.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(t.fontAtlas[i]=t.shader.atlas[a],!t.fontAtlas[i]){var o=r.metrics;t.shader.atlas[a]=t.fontAtlas[i]={fontString:a,step:2*Math.ceil(t.fontSize[i]*o.bottom*.5),em:t.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}null==e.text&&(e.text=t.text)})),"string"===typeof e.text&&e.position&&e.position.length>2){for(var s=Array(.5*e.position.length),f=0;f2){for(var w=!e.position[0].length,k=u.mallocFloat(2*this.count),A=0,M=0;A1?t.align[r]:t.align[0]:t.align;if("number"===typeof n)return n;switch(n){case"right":case"end":return-e;case"center":case"centre":case"middle":return.5*-e}return 0}))),null==this.baseline&&null==e.baseline&&(e.baseline=0),null!=e.baseline&&(this.baseline=e.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(e,r){var n=(t.font[r]||t.font[0]).metrics,i=0;return i+=.5*n.bottom,i+="number"===typeof e?e-n.baseline:-n[e],i*=-1}))),null!=e.color)if(e.color||(e.color="transparent"),"string"!==typeof e.color&&isNaN(e.color)){var H;if("number"===typeof e.color[0]&&e.color.length>this.counts.length){var G=e.color.length;H=u.mallocUint8(G);for(var W=(e.color.subarray||e.color.slice).bind(e.color),Y=0;Y4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var K=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(K);for(var J=0;J1?this.counts[J]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[J]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*J,4*J+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[J]:this.opacity,baseline:null!=this.baselineOffset[J]?this.baselineOffset[J]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[J]?this.alignOffset[J]:this.alignOffset[0]:0,atlas:this.fontAtlas[J]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*J,2*J+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text="",T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.maxAtlasSize=1024,T.atlasCanvas=document.createElement("canvas"),T.atlasContext=T.atlasCanvas.getContext("2d",{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},34379:function(e,t,r){"use strict";var n=r(5980),i=r(62282),a=r(43147),o=r(13373).eV,s=r(66807),l=r(77063).getFromId,c=r(37762).shouldShowZeroLine,u="splom";function h(e,t,r){for(var n=r.matrixOptions.data.length,i=t._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o=90||l>90&&c>=450?1:h<=0&&d<=0?0:Math.max(h,d);t=l<=180&&c>=180||l>180&&c>=540?-1:u>=0&&f>=0?0:Math.min(u,f);r=l<=270&&c>=270||l>270&&c>=630?-1:h>=0&&d>=0?0:Math.min(h,d);n=c>=360?1:u<=0&&f<=0?0:Math.max(u,f);return[t,r,n,i]}(p),_=b[2]-b[0],w=b[3]-b[1],T=d/f,k=Math.abs(w/_);T>k?(g=f,x=(d-(m=f*k))/i.h/2,v=[s[0],s[1]],y=[h[0]+x,h[1]-x]):(m=d,x=(f-(g=d/k))/i.w/2,v=[s[0]+x,s[1]-x],y=[h[0],h[1]]),r.xLength2=g,r.yLength2=m,r.xDomain2=v,r.yDomain2=y;var A=r.xOffset2=i.l+i.w*v[0],M=r.yOffset2=i.t+i.h*(1-y[1]),S=r.radius=g/_,E=r.innerRadius=t.hole*S,L=r.cx=A-S*b[0],D=r.cy=M+S*b[3],P=r.cxx=L-A,O=r.cyy=D-M;r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:{counterclockwise:"top",clockwise:"bottom"}[a.side],_realSide:a.side,domain:[E/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:v}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:y});var z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",z).attr("transform",l(P,O)),n.frontplot.attr("transform",l(A,M)).call(u.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",z).attr("transform",l(L,D)).call(c.fill,t.bgcolor)},O.mockAxis=function(e,t,r,n){var i=o.extendFlat({},r,n);return p(i,t,e),i},O.mockCartesianAxis=function(e,t,r){var n=this,i=r._id,a=o.extendFlat({type:"linear"},r);d(a,e);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var e=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-t.hole);a.range=[e[r[0]]*l,e[r[1]]*l]},a.isPtWithinRange="x"===i?function(e){return n.isPtInside(e)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(e,t){var r=this.gd,n=this.radialAxis,i=t.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,"gregorian"),n.r2l(a[1],null,"gregorian")]},O.updateRadialAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,h=r.cx,d=r.cy,p=t.radialaxis,g=C(t.sector[0],360),m=r.radialAxis,v=u90&&g<=270&&(m.tickangle=180);var y=function(e){return l(m.l2p(e.x)+u,0)},x=z(p);if(r.radialTickLayout!==x&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=x),v){m.setScale();var b=f.calcTicks(m),_=f.clipEnds(m,b),w=f.getTickSigns(m)[2];f.drawTicks(n,m,{vals:b,layer:i["radial-axis"],path:f.makeTickPath(m,0,w),transFn:y,crisp:!1}),f.drawGrid(n,m,{vals:_,layer:i["radial-grid"],path:function(e){return r.pathArc(m.r2p(e.x)+u)},transFn:o.noop,crisp:!1}),f.drawLabels(n,m,{vals:b,layer:i["radial-axis"],transFn:y,labelFns:f.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?D(R(I(p.angle),r.vangles)):p.angle,k=l(h,d),A=k+s(-T);F(i["radial-axis"],v&&(p.showticklabels||p.ticks),{transform:A}),F(i["radial-grid"],v&&p.showgrid,{transform:k}),F(i["radial-line"].select("line"),v&&p.showline,{x1:u,y1:0,x2:a,y2:0,transform:A}).attr("stroke-width",p.linewidth).call(c.stroke,p.linecolor)},O.updateRadialAxisTitle=function(e,t,r){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=t.radialaxis,c=n.id+"title",h=void 0!==r?r:n.radialAxisAngle,f=I(h),d=Math.cos(f),p=Math.sin(f),g=0;if(l.title){var m=u.bBox(n.layers["radial-axis"].node()).height,v=l.title.font.size;g="counterclockwise"===l.side?-m-.4*v:m+.8*v}n.layers["radial-axis-title"]=x.draw(i,c,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:L(i,"Click to enter radial axis title"),attributes:{x:o+a/2*d+g*p,y:s-a/2*p+g*d,"text-anchor":"middle"},transform:{rotate:-h}})},O.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,h=r.cx,d=r.cy,p=t.angularaxis,g=r.angularAxis;r.fillViewInitialKey("angularaxis.rotation",p.rotation),g.setGeometry(),g.setScale();var m=function(e){return g.t2g(e.x)};"linear"===g.type&&"radians"===g.thetaunit&&(g.tick0=D(g.tick0),g.dtick=D(g.dtick));var v=function(e){return l(h+a*Math.cos(e),d-a*Math.sin(e))},y=f.makeLabelFns(g,0).labelStandoff,x={xFn:function(e){var t=m(e);return Math.cos(t)*y},yFn:function(e){var t=m(e),r=Math.sin(t)>0?.2:1;return-Math.sin(t)*(y+e.fontSize*r)+Math.abs(Math.cos(t))*(e.fontSize*M)},anchorFn:function(e){var t=m(e),r=Math.cos(t);return Math.abs(r)<.1?"middle":r>0?"start":"end"},heightFn:function(e,t,r){var n=m(e);return-.5*(1+Math.sin(n))*r}},b=z(p);r.angularTickLayout!==b&&(i["angular-axis"].selectAll("."+g._id+"tick").remove(),r.angularTickLayout=b);var _,w=f.calcTicks(g);if("linear"===t.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,"category"===g.type&&(w=w.filter((function(e){return o.isAngleInsideSector(m(e),r.sectorInRad)}))),g.visible){var T="inside"===g.ticks?-1:1,k=(g.linewidth||1)/2;f.drawTicks(n,g,{vals:w,layer:i["angular-axis"],path:"M"+T*k+",0h"+T*g.ticklen,transFn:function(e){var t=m(e);return v(t)+s(-D(t))},crisp:!1}),f.drawGrid(n,g,{vals:w,layer:i["angular-grid"],path:function(e){var t=m(e),r=Math.cos(t),n=Math.sin(t);return"M"+[h+u*r,d-u*n]+"L"+[h+a*r,d-a*n]},transFn:o.noop,crisp:!1}),f.drawLabels(n,g,{vals:w,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:function(e){return v(m(e))},labelFns:x})}F(i["angular-line"].select("path"),p.showline,{d:r.pathSubplot(),transform:l(h,d)}).attr("stroke-width",p.linewidth).call(c.stroke,p.linecolor)},O.updateFx=function(e,t){this.gd._context.staticPlot||(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1),this.updateMainDrag(e))},O.updateMainDrag=function(e){var t,r,s=this,c=s.gd,u=s.layers,h=e._zoomlayer,f=S.MINZOOM,d=S.OFFEDGE,p=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,A=s.cyy,M=s.sectorInRad,L=s.vangles,C=s.radialAxis,I=E.clampTiny,D=E.findXYatLength,P=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,z=S.cornerLen/2,R=m.makeDragger(u,"path","maindrag","crosshair");n.select(R).attr("d",s.pathSubplot()).attr("transform",l(x,T));var F,j,N,B,U,V,q,H,G,W={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function Y(e,t){return Math.sqrt(e*e+t*t)}function Z(e,t){return Y(e-k,t-A)}function X(e,t){return Math.atan2(A-t,e-k)}function K(e,t){return[e*Math.cos(t),e*Math.sin(-t)]}function J(e,t){if(0===e)return s.pathSector(2*O);var r=z/e,n=t-r,i=t+r,a=Math.max(0,Math.min(e,p)),o=a-O,l=a+O;return"M"+K(o,n)+"A"+[o,o]+" 0,0,0 "+K(o,i)+"L"+K(l,i)+"A"+[l,l]+" 0,0,1 "+K(l,n)+"Z"}function Q(e,t,r){if(0===e)return s.pathSector(2*O);var n,i,a=K(e,t),o=K(e,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&&c){var u=c/l,h=-1/u,f=D(O,u,l,c);n=D(z,h,f[0][0],f[0][1]),i=D(z,h,f[1][0],f[1][1])}else{var d,p;c?(d=z,p=O):(d=O,p=z),n=[[l-d,c-p],[l+d,c-p]],i=[[l-d,c+p],[l+d,c+p]]}return"M"+n.join("L")+"L"+i.reverse().join("L")+"Z"}function $(e,t){return t=Math.max(Math.min(t,p),g),ef?(e-1&&1===e&&_(t,c,[s.xaxis],[s.yaxis],s.id,W),r.indexOf("event")>-1&&y.click(c,t,s.id)}W.prepFn=function(e,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var f=c._fullLayout._invTransform;t=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var d=o.apply3DTransform(f)(n-u.left,a-u.top);if(F=d[0],j=d[1],L){var g=E.findPolygonOffset(p,M[0],M[1],L);F+=k+g[0],j+=A+g[1]}switch(l){case"zoom":W.moveFn=L?ne:te,W.clickFn=oe,W.doneFn=ie,function(){N=null,B=null,U=s.pathSubplot(),V=!1;var e=c._fullLayout[s.id];q=i(e.bgcolor).getLuminance(),(H=m.makeZoombox(h,q,x,T,U)).attr("fill-rule","evenodd"),G=m.makeCorners(h,x,T),w(c)}();break;case"select":case"lasso":b(e,n,a,W,l)}},R.onmousemove=function(e){y.hover(c,e,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(e){c._dragging||v.unhover(c,e)},v.init(W)},O.updateRadialDrag=function(e,t,r){var i=this,c=i.gd,u=i.layers,h=i.radius,f=i.innerRadius,d=i.cx,p=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,M=I(i.radialAxisAngle),E=g._rl,L=E[0],C=E[1],P=E[r],O=.75*(E[1]-E[0])/(1-t.hole)/h;r?(b=d+(h+x)*Math.cos(M),_=p-(h+x)*Math.sin(M),T="radialdrag"):(b=d+(f-x)*Math.cos(M),_=p-(f-x)*Math.sin(M),T="radialdrag-inner");var z,j,N,B=m.makeRectDragger(u,T,"crosshair",-x,-x,y,y),U={element:B,gd:c};F(n.select(B),g.visible&&f0===(r?N>L:N0?(c=o,u=l):(c=l,u=o);var h=[s.findEnclosingVertexAngles(c,e.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,e.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,h,t,r)};return function(e,n,i,o){return a.pathAnnulus(e,n,i,o,t,r)}}(t),d=t.layers.frontplot.select("g.barlayer");a.makeTraceGroups(d,r,"trace bars").each((function(){var r=n.select(this),s=a.ensureSingle(r,"g","points").selectAll("g.point").data(a.identity);s.enter().append("g").style("vector-effect","non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),s.exit().remove(),s.each((function(e){var t,r=n.select(this),o=e.rp0=u.c2p(e.s0),s=e.rp1=u.c2p(e.s1),d=e.thetag0=h.c2g(e.p0),p=e.thetag1=h.c2g(e.p1);if(i(o)&&i(s)&&i(d)&&i(p)&&o!==s&&d!==p){var g=u.c2g(e.s1),m=(d+p)/2;e.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],t=f(o,s,d,p)}else t="M0,0Z";a.ensureSingle(r,"path").attr("d",t)})),o.setClipUrl(r,t._hasClipOnAxisFalse?t.clipIds.forTraces:null,e)}))}},35490:function(e,t,r){"use strict";var n=r(62405),i=r(16688).u,a=r(73437),o=r(17342).overrideAll,s=r(73314),l={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}],description:["Sets the range of this axis (in degrees),","sets the map's clipped coordinates."].join(" ")},showgrid:{valType:"boolean",dflt:!1,description:"Sets whether or not graticule are shown on the map."},tick0:{valType:"number",dflt:0,description:["Sets the graticule's starting tick longitude/latitude."].join(" ")},dtick:{valType:"number",description:["Sets the graticule's longitude/latitude tick step."].join(" ")},gridcolor:{valType:"color",dflt:n.lightLine,description:["Sets the graticule's stroke color."].join(" ")},gridwidth:{valType:"number",min:0,dflt:1,description:["Sets the graticule's stroke width (in px)."].join(" ")}};(e.exports=o({domain:i({name:"geo"},{description:["Note that geo subplots are constrained by domain.","In general, when `projection.scale` is set to 1.","a map will fit either its x or y domain, but not both."].join(" ")}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot",description:["Determines if this subplot's view settings are auto-computed to fit trace data.","On scoped maps, setting `fitbounds` leads to `center.lon` and `center.lat` getting auto-filled.","On maps with a non-clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`,","and `projection.rotation.lon` getting auto-filled.","On maps with a clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`,","`projection.rotation.lon`, `projection.rotation.lat`, `lonaxis.range` and `lonaxis.range`","getting auto-filled.","If *locations*, only the trace's visible locations are considered in the `fitbounds` computations.","If *geojson*, the entire trace input `geojson` (if provided) is considered in the `fitbounds` computations,","Defaults to *false*."].join(" ")},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0,description:["Sets the resolution of the base layers.","The values have units of km/mm","e.g. 110 corresponds to a scale ratio of 1:110,000,000."].join(" ")},scope:{valType:"enumerated",values:s(a.scopeDefaults),dflt:"world",description:"Set the scope of the map."},projection:{type:{valType:"enumerated",values:s(a.projNames),description:"Sets the projection type."},rotation:{lon:{valType:"number",description:["Rotates the map along parallels","(in degrees East).","Defaults to the center of the `lonaxis.range` values."].join(" ")},lat:{valType:"number",description:["Rotates the map along meridians","(in degrees North)."].join(" ")},roll:{valType:"number",description:["Roll the map (in degrees)","For example, a roll of *180* makes the map appear upside down."].join(" ")}},tilt:{valType:"number",dflt:0,description:["For satellite projection type only.","Sets the tilt angle of perspective projection."].join(" ")},distance:{valType:"number",min:1.001,dflt:2,description:["For satellite projection type only.","Sets the distance from the center of the sphere to the point of view","as a proportion of the sphere\u2019s radius."].join(" ")},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}],description:["For conic projection types only.","Sets the parallels (tangent, secant)","where the cone intersects the sphere."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Zooms in or out on the map view.","A scale of *1* corresponds to the largest zoom level","that fits the map's lon and lat ranges. "].join(" ")}},center:{lon:{valType:"number",description:["Sets the longitude of the map's center.","By default, the map's longitude center lies at the middle of the longitude range","for scoped projection and above `projection.rotation.lon` otherwise."].join(" ")},lat:{valType:"number",description:["Sets the latitude of the map's center.","For all projection types, the map's latitude center lies","at the middle of the latitude range by default."].join(" ")}},visible:{valType:"boolean",dflt:!0,description:"Sets the default visibility of the base layers."},showcoastlines:{valType:"boolean",description:"Sets whether or not the coastlines are drawn."},coastlinecolor:{valType:"color",dflt:n.defaultLine,description:"Sets the coastline color."},coastlinewidth:{valType:"number",min:0,dflt:1,description:"Sets the coastline stroke width (in px)."},showland:{valType:"boolean",dflt:!1,description:"Sets whether or not land masses are filled in color."},landcolor:{valType:"color",dflt:a.landColor,description:"Sets the land mass color."},showocean:{valType:"boolean",dflt:!1,description:"Sets whether or not oceans are filled in color."},oceancolor:{valType:"color",dflt:a.waterColor,description:"Sets the ocean color"},showlakes:{valType:"boolean",dflt:!1,description:"Sets whether or not lakes are drawn."},lakecolor:{valType:"color",dflt:a.waterColor,description:"Sets the color of the lakes."},showrivers:{valType:"boolean",dflt:!1,description:"Sets whether or not rivers are drawn."},rivercolor:{valType:"color",dflt:a.waterColor,description:"Sets color of the rivers."},riverwidth:{valType:"number",min:0,dflt:1,description:"Sets the stroke width (in px) of the rivers."},showcountries:{valType:"boolean",description:"Sets whether or not country boundaries are drawn."},countrycolor:{valType:"color",dflt:n.defaultLine,description:"Sets line color of the country boundaries."},countrywidth:{valType:"number",min:0,dflt:1,description:"Sets line width (in px) of the country boundaries."},showsubunits:{valType:"boolean",description:["Sets whether or not boundaries of subunits within countries","(e.g. states, provinces) are drawn."].join(" ")},subunitcolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the subunits boundaries."},subunitwidth:{valType:"number",min:0,dflt:1,description:"Sets the stroke width (in px) of the subunits boundaries."},showframe:{valType:"boolean",description:"Sets whether or not a frame is drawn around the map."},framecolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color the frame."},framewidth:{valType:"number",min:0,dflt:1,description:"Sets the stroke width (in px) of the frame."},bgcolor:{valType:"color",dflt:n.background,description:"Set the background color of the map"},lonaxis:l,lataxis:l},"plot","from-root")).uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in the view","(projection and center). Defaults to `layout.uirevision`."].join(" ")}},35533:function(e,t,r){"use strict";var n=r(47401);e.exports=function(e,t){n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(e,t)}},35553:function(e){e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xe7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xe9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xe9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xe3)o.?tom(e|\xe9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},35642:function(e,t,r){"use strict";var n=r(78006);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,r,n,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(r=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(n=o+1/3*-(c-1))<0?n++:n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[c]=255*a;return i}},n.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?t=0:n===s?t=(i-a)/l:i===s?t=2+(a-n)/l:a===s&&(t=4+(n-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+s)/2,[t,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]}},35695:function(e){"use strict";e.exports=function(e,t){var r,n=e.cd,i=e.xaxis,a=e.yaxis,o=[],s=n[0].t.bPos||0;if(!1===t)for(r=0;re[r][0]&&(r=n);return tr?[[r],[t]]:[[t]]}},35722:function(e,t,r){"use strict";var n=r(62258),i=r(47001).de,a=r(63539).OE,o=r(83491),s=r(62282),l=r(16545),c=r(92704),u=r(47401),h=r(31454),f=r(9405).BADNUM,d=r(77063),p=r(75152).clearSelect,g=r(46218),m=r(81255),v=r(13373).eV,y=u.relinkPrivateKeys,x=u._,b=e.exports={};u.extendFlat(b,s),b.attributes=r(42837),b.attributes.type.values=b.allTypes,b.fontAttrs=r(5153),b.layoutAttributes=r(19744),b.fontWeight="normal";var _=b.transformsRegistry,w=r(73435);b.executeAPICommand=w.executeAPICommand,b.computeAPICommandBindings=w.computeAPICommandBindings,b.manageCommandObserver=w.manageCommandObserver,b.hasSimpleAPICommandBindings=w.hasSimpleAPICommandBindings,b.redrawText=function(e){return e=u.getGraphDiv(e),new Promise((function(t){setTimeout((function(){e._fullLayout&&(s.getComponentMethod("annotations","draw")(e),s.getComponentMethod("legend","draw")(e),s.getComponentMethod("colorbar","draw")(e),t(b.previousPromises(e)))}),300)}))},b.resize=function(e){var t;e=u.getGraphDiv(e);var r=new Promise((function(r,n){e&&!u.isHidden(e)||n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=r,e._redrawTimer=setTimeout((function(){if(!e.layout||e.layout.width&&e.layout.height||u.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,s.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))}))}}),100)}));return t&&t(r),r},b.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},b.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=u.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:h.defaultLine,"pointer-events":"all"}).each((function(){var e=n.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var o=r.select(".js-link-to-tool"),s=r.select(".js-link-spacer"),l=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",(function(){b.sendDataToCloud(e)}));else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}(e,o),s.text(o.text()&&l.text()?" - ":"")}},b.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=b.graphJson(e,!1,"keepdata"),i.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function A(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,i={};function a(e){for(var r=!0,a=0;a1&&O.length>1){for(s.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o15&&O.length>15&&0===l.shapes.length&&0===l.images.length,b.linkSubplots(f,l,h,n),b.cleanPlot(f,l,h,n);var N=!(!n._has||!n._has("gl2d")),B=!(!l._has||!l._has("gl2d")),U=!(!n._has||!n._has("cartesian"))||N,V=!(!l._has||!l._has("cartesian"))||B;U&&!V?n._bgLayer.remove():V&&!U&&(l._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&p({_fullLayout:n}),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var i=0;i0){var h=1-2*s;n=Math.round(h*n),i=Math.round(h*i)}}var f=b.layoutAttributes.width.min,d=b.layoutAttributes.height.min;n1,g=!t.height&&Math.abs(r.height-i)>1;(g||p)&&(p&&(r.width=n),g&&(r.height=i)),e._initialAutoSize||(e._initialAutoSize={width:n,height:i}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(e,t,r,n){var i,a,o,l=s.componentsRegistry,c=t._basePlotModules,h=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&&o.includeBasePlot(e,t);for(var f in c.length||c.push(h),t._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(e,t),h.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(u.subplotSort);for(a=0;a1&&(r.l/=g,r.r/=g)}if(h){var m=(r.t+r.b)/h;m>1&&(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;f[t]={l:{val:v,size:r.l+p},r:{val:y,size:r.r+p},b:{val:_,size:r.b+p},t:{val:x,size:r.t+p}},d[t]=1}else delete f[t],delete d[t];if(!n._replotting)return b.doAutoMargin(e)}},b.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),C(t);var i=t._size,a=t.margin,l=u.extendFlat({},i),c=a.l,h=a.r,f=a.t,p=a.b,g=t._pushmargin,m=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:c},r:{val:1,size:h},t:{val:1,size:f},b:{val:0,size:p}},g){var x=g[y].l||{},_=g[y].b||{},w=x.val,T=x.size,k=_.val,A=_.size;for(var M in g){if(o(T)&&g[M].r){var S=g[M].r.val,E=g[M].r.size;if(S>w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I>c+h&&(c=L,h=I)}}if(o(A)&&g[M].t){var D=g[M].t.val,P=g[M].t.size;if(D>k){var O=(A*D+(P-n)*k)/(D-k),z=(P*(1-k)+(A-n)*(1-D))/(D-k);O+z>p+f&&(p=O,f=z)}}}}}var R=u.constrain(r-a.l-a.r,2,64),F=u.constrain(n-a.t-a.b,2,64),j=Math.max(0,r-R),N=Math.max(0,n-F);if(j){var B=(c+h)/j;B>1&&(c/=B,h/=B)}if(N){var U=(p+f)/N;U>1&&(p/=U,f/=U)}if(i.l=Math.round(c),i.r=Math.round(h),i.t=Math.round(f),i.b=Math.round(p),i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&b.didMarginChange(l,i)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return s.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var a=0,o=0;function l(){return a++,function(){o++,n||o!==a||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(i)}}r.runFn(l),setTimeout(l())}))}],a=u.syncOrAsync(i,e);return a&&a.then||(a=Promise.resolve()),a.then((function(){return e}))}b.didMarginChange=function(e,t){for(var r=0;r1)return!0}return!1},b.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&b.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function c(e,t){if("function"===typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var n,i={};return Object.keys(e).sort().forEach((function(a){if(-1===["_","["].indexOf(a.charAt(0)))if("function"!==typeof e[a]){if("keepdata"===r){if("src"===a.substr(a.length-3))return}else if("keepstream"===r){if("string"===typeof(n=e[a+"src"])&&n.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"===typeof(n=e[a+"src"])&&n.indexOf(":")>0)return;i[a]=c(e[a],t)}else t&&(i[a]="_function")})),i}return Array.isArray(e)?e.map((function(e){return c(e,t)})):u.isTypedArray(e)?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var h={data:(o||[]).map((function(e){var r=c(e);return t&&delete r.fit,r}))};if(!t&&(h.layout=c(s),i)){var f=s._size;h.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(h.frames=c(l)),a&&(h.config=c(e._context,!0)),"object"===n?h:JSON.stringify(h)},b.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&&n.calc&&(o=n.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,p[t]=o}}for(O(o,c,h),i=0;i>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},35839:function(e){"use strict";e.exports=function(e,t,r,n){n=n||e.length;for(var i=new Array(n),a=0;a0;--n)t+=r[n]/(e+n);var i=e+4.7421875+.5;return.5*Math.log(2*Math.PI)+(e+.5)*Math.log(i)-i+Math.log(t)-Math.log(e)}e.exports=function e(r){if(r<.5)return Math.PI/(Math.sin(Math.PI*r)*e(1-r));if(r>100)return Math.exp(n(r));r-=1;for(var i=t[0],a=1;a<9;a++)i+=t[a]/(r+a);var o=r+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,r+.5)*Math.exp(-o)*i},e.exports.log=n},36035:function(e,t,r){"use strict";var n=r(77381),i=r(47401).ensureArray;function a(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}e.exports=function(e,t,r,o,s,l){var c,u,h,f,d,p,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(e=i(e,w),t=i(t,w),h=0;h")}(e,h,o),[e]}},36381:function(e,t,r){"use strict";var n=r(41479),i=r(62258),a=r(84941).keyFun,o=r(84941).repeat,s=r(47401).sorterAsc,l=r(47401).strTranslate,c=n.bar.snapRatio;function u(e,t){return e*(1-c)+t*c}var h=n.bar.snapClose;function f(e,t){return e*(1-h)+t*h}function d(e,t,r,n){if(function(e,t){for(var r=0;r=t[r][0]&&e<=t[r][1])return!0;return!1}(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],c=l,h=a;i*ht){f=r;break}}if(a=u,isNaN(a)&&(a=isNaN(h)||isNaN(f)?isNaN(h)?f:h:t-c[h][1]e[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}(p,t);g&&(o.interval=l[a],o.intervalPix=p,o.region=g)}}if(e.ordinal&&!o.region){var m=e.unitTickvals,y=e.unitToPaddedPx.invert(t);for(r=0;r=x[0]&&y<=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(e,t){i.event.sourceEvent.stopPropagation();var r=t.height-i.mouse(e)[1]-2*n.verticalPadding,a=t.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(t.unitToPaddedPx.invert):a.newExtent=[a.startExtent,t.unitToPaddedPx.invert(r)].sort(s),t.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(t),b(e.parentNode)}function T(e,t){var r=_(t,t.height-i.mouse(e)[1]-2*n.verticalPadding),a="crosshair";r.clickableOrdinalRange?a="pointer":r.region&&(a=r.region+"-resize"),i.select(document.body).style("cursor",a)}function k(e){e.on("mousemove",(function(e){i.event.preventDefault(),e.parent.inBrushDrag||T(this,e)})).on("mouseleave",(function(e){e.parent.inBrushDrag||y()})).call(i.behavior.drag().on("dragstart",(function(e){!function(e,t){i.event.sourceEvent.stopPropagation();var r=t.height-i.mouse(e)[1]-2*n.verticalPadding,a=t.unitToPaddedPx.invert(r),o=t.brush,s=_(t,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar="ns"===s.region,c.grabbingBar){var u=l.map(t.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=t.multiselect&&o.filterSpecified?o.filter.getConsolidated():[],l&&(c.stayingIntervals=c.stayingIntervals.filter((function(e){return e[0]!==l[0]&&e[1]!==l[1]}))),c.startExtent=s.region?l["s"===s.region?1:0]:a,t.parent.inBrushDrag=!0,c.brushStartCallback()}(this,e)})).on("drag",(function(e){w(this,e)})).on("dragend",(function(e){!function(e,t){var r=t.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(e,t),w(e,t),t.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,t.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&&t.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&&M(r)):M(r),a.brushCallback(t),b(e.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||M(r),a.brushCallback(t),c?b(e.parentNode,s):(s(),b(e.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,e)})))}function A(e,t){return e[0]-t[0]}function M(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function S(e){for(var t,r=e.slice(),n=[],i=r.shift();i;){for(t=i.slice();(i=r.shift())&&i[0]<=t[1];)t[1]=Math.max(t[1],i[1]);n.push(t)}return 1===n.length&&n[0][0]>n[0][1]&&(n=[]),n}e.exports={makeBrush:function(e,t,r,n,i,a){var o,l=function(){var e,t,r=[];return{set:function(n){1===(r=n.map((function(e){return e.slice().sort(s)})).sort(A)).length&&r[0][0]===-1/0&&r[0][1]===1/0&&(r=[[0,-1]]),e=S(r),t=r.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return e},getBounds:function(){return t}}}();return l.set(r),{filter:l,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(e){var t=e.brush,r=function(e){return e.svgBrush.extent.map((function(e){return e.slice()}))}(t),n=r.slice();t.filter.set(n),o()}),brushEndCallback:a}}},ensureAxisBrush:function(e,t){var r=e.selectAll("."+n.cn.axisBrush).data(o,a);r.enter().append("g").classed(n.cn.axisBrush,!0),function(e,t){var r=e.selectAll(".background").data(o);r.enter().append("rect").classed("background",!0).call(p).call(g).style("pointer-events","auto").attr("transform",l(0,n.verticalPadding)),r.call(k).attr("height",(function(e){return e.height-n.verticalPadding}));var i=e.selectAll(".highlight-shadow").data(o);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width+n.bar.strokeWidth).attr("stroke",t).attr("opacity",n.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",(function(e){return e.height})).call(x);var a=e.selectAll(".highlight").data(o);a.enter().append("line").classed("highlight",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width-n.bar.strokeWidth).attr("stroke",n.bar.fillColor).attr("opacity",n.bar.fillOpacity).attr("stroke-linecap","butt"),a.attr("y1",(function(e){return e.height})).call(x)}(r,t)},cleanRanges:function(e,t){if(Array.isArray(e[0])?(e=e.map((function(e){return e.sort(s)})),e=t.multiselect?S(e.sort(A)):[e[0]]):e=[e.sort(s)],t.tickvals){var r=t.tickvals.slice().sort(s);if(!(e=e.map((function(e){var t=[d(0,r,e[0],[]),d(1,r,e[1],[])];if(t[1]>t[0])return t})).filter((function(e){return e}))).length)return}return e.length>1?e:e[0]}}},36581:function(e,t,r){"use strict";function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{A:function(){return n},f:function(){return i}})},36788:function(e,t,r){"use strict";e.exports=function(e,t,r,s){r=r||0,"undefined"===typeof s&&(s=function(e){for(var t=e.length,r=0,n=0;n=0,x=t.indexOf("end")>=0,b=p.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if("line"===d.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-u.x,T=o.y-u.y;if(f=(h=Math.atan2(T,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+T*T))return void O();if(b){if(b*b>w*w+T*T)return void O();var k=b*Math.cos(h),A=b*Math.sin(h);u.x+=k,u.y+=A,e.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+T*T)return void O();var M=_*Math.cos(h),S=_*Math.sin(h);o.x-=M,o.y-=S,e.attr({x1:o.x,y1:o.y})}}else if("path"===d.nodeName){var E=d.getTotalLength(),L="";if(E=0;--d)a[d]=c*e[d]+u*t[d]+h*r[d]+f*n[d];return a}return c*e+u*t+h*r+f*n},e.exports.derivative=function(e,t,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(e.length){a||(a=new Array(e.length));for(var u=e.length-1;u>=0;--u)a[u]=o*e[u]+s*t[u]+l*r[u]+c*n[u];return a}return o*e+s*t+l*r[u]+c*n}},37236:function(e){"use strict";e.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(e.percentInitial=t.percentInitial),"percentPrevious"in t&&(e.percentPrevious=t.percentPrevious),"percentTotal"in t&&(e.percentTotal=t.percentTotal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},37295:function(e,t,r){"use strict";var n=r(29672);e.exports=function(e,t,r){var i=e.i;return"r"in e||(e.r=t._r[i]),"theta"in e||(e.theta=t._theta[i]),n(e,t,r)}},37377:function(e,t,r){"use strict";var n=r(47401),i=r(39433),a=r(16688).N;e.exports=function(e,t,r,o){function s(r,a){return n.coerce(e,t,i,r,a)}a(t,o,s),s("columnwidth"),s("header.values"),s("header.format"),s("header.align"),s("header.prefix"),s("header.suffix"),s("header.height"),s("header.line.width"),s("header.line.color"),s("header.fill.color"),n.coerceFont(s,"header.font",n.extendFlat({},o.font)),function(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(e,t){return e-t})),o=i.map((function(e){return a.indexOf(e)})),s=o.length;s>>1,x=a",i?".get(m)":"[m]"];return a?t.indexOf("c")<0?o.push(";if(x===y){return m}else if(x<=y){"):o.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):o.push(";if(",t,"){i=m;"),r?o.push("l=m+1}else{h=m-1}"):o.push("h=m-1}else{l=m+1}"),o.push("}"),a?o.push("return -1};"):o.push("return i};"),o.join("")}function r(e,r,n,i){return new Function([t("A","x"+e+"y",r,["y"],!1,i),t("B","x"+e+"y",r,["y"],!0,i),t("P","c(x,y)"+e+"0",r,["y","c"],!1,i),t("Q","c(x,y)"+e+"0",r,["y","c"],!0,i),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""))()}e.exports={ge:r(">=",!1,"GE"),gt:r(">",!1,"GT"),lt:r("<",!0,"LT"),le:r("<=",!0,"LE"),eq:r("-",!0,"EQ",!0)}},37733:function(e){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},37762:function(e,t,r){"use strict";var n=r(62258),i=r(83491),a=r(35722),o=r(62282),s=r(47401),l=s.strTranslate,c=r(43995),u=r(72456),h=r(31454),f=r(41707),d=r(33333),p=r(60551),g=r(9405),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,A=g.ONEWEEK,M=g.ONEDAY,S=M/2,E=g.ONEHOUR,L=g.ONEMIN,C=g.ONESEC,I=g.MINUS_SIGN,D=g.BADNUM,P={K:"zeroline"},O={K:"gridline",L:"path"},z={K:"tick",L:"path"},R={K:"tick",L:"text"},F=r(60482),j=F.MID_SHIFT,N=F.CAP_SHIFT,B=F.LINE_SPACING,U=F.OPPOSITE_SIDE,V=e.exports={};V.setConvert=r(58947);var q=r(60210),H=r(77063),G=H.idSort,W=H.isLinked;V.id2name=H.id2name,V.name2id=H.name2id,V.cleanId=H.cleanId,V.list=H.list,V.listIds=H.listIds,V.getFromId=H.getFromId,V.getFromTrace=H.getFromTrace;var Y=r(9319);V.getAutoRange=Y.getAutoRange,V.findExtremes=Y.findExtremes;function Z(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}V.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return i||(i=l[0]||("string"===typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(e){return e+" domain"}))),u[c]={valType:"enumerated",values:l.concat(a?"string"===typeof a?[a]:a:[]),dflt:i},s.coerce(e,t,u,c)},V.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},V.coercePosition=function(e,t,r,n,i,a){var o,l;if("range"!==V.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=V.getFromId(t,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}e[i]=o(l)},V.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?s.ensureNumber:V.getFromId(t,r).cleanPos)(e)},V.redrawComponents=function(e,t){t=t||V.listIds(e);var r=e._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},V.saveRangeInitial=function(e,t){for(var r=V.list(e,"",!0),n=!1,i=0;i.3*f||u(n)||u(a))){var d=r.dtick/2;e+=e+do){var l=Number(r.substr(1));a.exactYears>o&&l%12===0?e=V.tickIncrement(e,"M6","reverse")+1.5*M:a.exactMonths>o?e=V.tickIncrement(e,"M1","reverse")+15.5*M:e-=S;var c=V.tickIncrement(e,r);if(c<=n)return c}return e}(y,e,v,c,a)),m=y,0;m<=u;)m=V.tickIncrement(m,v,!1,a);return{start:t.c2r(y,0,a),end:t.c2r(m,0,a),size:v,_dataSpan:u-c}},V.prepTicks=function(e,t){var r=s.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var n,a=e.nticks;a||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?s.bigFont(e.tickfont.size||12):15,a=e._length/n):(n="y"===e._id.charAt(0)?40:80,a=s.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(a*=2)),"array"===e.tickmode&&(a*=100),e._roughDTick=Math.abs(r[1]-r[0])/a,V.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(i(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),a=V.getTickFormat(e);if(a){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(t=E,o&&!n&&e.dticko&&f=o:d<=o;d=V.tickIncrement(d,e.dtick,l,e.calendar)){if(e.rangebreaks&&!l){if(d=u)break}if(L.length>g||d===C)break;C=d;var I=!1;h&&d!==(0|d)&&(I=!0),L.push({minor:I,value:d})}if(f&&function(e,t,r){for(var n=0;n0?(a=n-1,o=n):(a=n,o=n);var s,l=e[a].value,c=e[o].value,u=Math.abs(c-l),h=r||u,f=0;h>=y?f=u>=y&&u<=m?u:v:r===b&&h>=_?f=u>=_&&u<=x?u:b:h>=k?f=u>=k&&u<=w?u:T:r===A&&h>=A?f=A:h>=M?f=M:r===S&&h>=S?f=S:r===E&&h>=E&&(f=E),f>=u&&(f=u,s=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var p=0,g=0;g<84;g++){var L=(g+.5)/84;t.maskBreaks(i*(1-L)+L*d)!==D&&p++}(f*=p/84)||(e[n].drop=!0),s&&u>A&&(f=u)}(f>0||0===n)&&(e[n].periodX=i+f/2)}}(L,e,e._definedDelta),e.rangebreaks){var P="y"===e._id.charAt(0),O=1;"auto"===e.tickmode&&(O=e.tickfont?e.tickfont.size:12);var z=NaN;for(p=L.length-1;p>-1;p--)if(L[p].drop)L.splice(p,1);else{L[p].value=Me(L[p].value,e);var R=e.c2p(L[p].value);(P?z>R-O:zu||ju&&(F.periodX=u),j10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=M&&a<=10||t>=15*M)e._tickround="d";else if(t>=L&&a<=16||t>=E)e._tickround="M";else if(t>=C&&a<=19||t>=L)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(i(t)||"L"===t.charAt(0)){var s=e.range.map(e.r2d||Number);i(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(ue(e.exponentformat)&&!he(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function le(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}V.autoTicks=function(e,t){var r;function n(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=s.dateTick0(e.calendar,0);var a=2*t;if(a>v)t/=v,r=n(10),e.dtick="M"+12*oe(t,r,$);else if(a>T)t/=T,e.dtick="M"+oe(t,1,ee);else if(a>M){e.dtick=oe(t,M,e._hasDayOfWeekBreaks?[1,2,7,14]:re);var o=V.getTickFormat(e),l="period"===e.ticklabelmode;l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=s.dateTick0(e.calendar,2):e.tick0=s.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}else a>E?e.dtick=oe(t,E,ee):a>L?e.dtick=oe(t,L,te):a>C?e.dtick=oe(t,C,te):(r=n(10),e.dtick=oe(t,r,$))}else if("log"===e.type){e.tick0=0;var c=s.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var u=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),e.dtick="L"+oe(t,r,$)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Ae(e)?(e.tick0=0,r=1,e.dtick=oe(t,r,ae)):(e.tick0=0,r=n(10),e.dtick=oe(t,r,$));if(0===e.dtick&&(e.dtick=1),!i(e.dtick)&&"string"!==typeof e.dtick){var h=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(h)}},V.tickIncrement=function(e,t,r,a){var o=r?-1:1;if(i(t))return s.increment(e,o*t);var l=t.charAt(0),c=o*Number(t.substr(1));if("M"===l)return s.incrementMonth(e,c,a);if("L"===l)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===l){var u="D2"===t?ie:ne,h=e+.01*o,f=s.roundUp(s.mod(h,1),u,r);return Math.floor(h)+Math.log(n.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},V.tickFirst=function(e,t){var r=e.r2l||Number,a=s.simpleMap(e.range,r,void 0,void 0,t),o=a[1] ")}else e._prevDateHead=l,c+="
"+l;t.text=c}(e,o,r,c):"log"===u?function(e,t,r,n,a){var o=e.dtick,l=t.x,c=e.tickformat,u="string"===typeof o&&o.charAt(0);"never"===a&&(a="");n&&"L"!==u&&(o="L3",u="L");if(c||"L"===u)t.text=fe(Math.pow(10,l),e,a,n);else if(i(o)||"D"===u&&s.mod(l+.01,1)<.1){var h=Math.round(l),f=Math.abs(h),d=e.exponentformat;"power"===d||ue(d)&&he(h)?(t.text=0===h?1:1===h?"10":"10"+(h>1?"":I)+f+"",t.fontSize*=1.25):("e"===d||"E"===d)&&f>2?t.text="1"+d+(h>0?"+":I)+f:(t.text=fe(Math.pow(10,l),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,s.mod(l,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}(e,o,0,c,g):"category"===u?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,o):"multicategory"===u?function(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=void 0===i[1]?"":String(i[1]),o=void 0===i[0]?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}(e,o,r):Ae(e)?function(e,t,r,n,i){if("radians"!==e.thetaunit||r)t.text=fe(t.x,e,i,n);else{var a=t.x/180;if(0===a)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function r(e,n){return t(n,0)?e:r(n,e%n)}function n(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}(a);if(o[1]>=100)t.text=fe(s.deg2rad(t.x),e,i,n);else{var l=t.x<0;1===o[1]?1===o[0]?t.text="\u03c0":t.text=o[0]+"\u03c0":t.text=["",o[0],"","\u2044","",o[1],"","\u03c0"].join(""),l&&(t.text=I+t.text)}}}}(e,o,r,c,g):function(e,t,r,n,i){"never"===i?i="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide");t.text=fe(t.x,e,i,n)}(e,o,0,c,g),n||(e.tickprefix&&!p(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!p(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var m=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};o.xbnd=[m(o.x-.5),m(o.x+e.dtick-.5)]}return o},V.hoverLabelText=function(e,t,r){r&&(e=s.extendFlat({},e,{hoverformat:r}));var n=Array.isArray(t)?t[0]:t,i=Array.isArray(t)?t[1]:void 0;if(void 0!==i&&i!==n)return V.hoverLabelText(e,n,r)+" - "+V.hoverLabelText(e,i,r);var a="log"===e.type&&n<=0,o=V.tickText(e,e.c2l(a?-n:n),"hover").text;return a?0===n?"0":I+o:o};var ce=["f","p","n","\u03bc","m","","k","M","G","T"];function ue(e){return"SI"===e||"B"===e}function he(e){return e>14||e<-15}function fe(e,t,r,n){var a=e<0,o=t._tickround,l=r||t.exponentformat||"B",c=t._tickexponent,u=V.getTickFormat(t),h=t.separatethousands;if(n){var f={exponentformat:l,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:i(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};se(f),o=(Number(f._tickround)||0)+4,c=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,I);var d,p=Math.pow(10,-o)/2;if("none"===l&&(c=0),(e=Math.abs(e))"+d+"
":"B"===l&&9===c?e+="B":ue(l)&&(e+=ce[c/3+5]));return a?I+e:e}function de(e,t){for(var r=[],n={},i=0;i1&&r=i.min&&e=n(e))}function s(e,t){var r=null===t[0],n=null===t[1],i=a(e,t[0])>=0,o=a(e,t[1])<=0;return(r||i)&&(n||o)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t0?r.bottom-h:0,f)))),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var d=[0,1];if("x"===p){if("b"===l?n[l]=t._depth:(n[l]=t._depth=Math.max(r.width>0?h-r.top:0,f),d.reverse()),r.width>0){var m=r.right-(t._offset+t._length);m>0&&(n.xr=1,n.r=m);var v=t._offset-r.left;v>0&&(n.xl=0,n.l=v)}}else if("l"===l?n[l]=t._depth=Math.max(r.height>0?h-r.left:0,f):(n[l]=t._depth=Math.max(r.height>0?r.right-h:0,f),d.reverse()),r.height>0){var y=r.bottom-(t._offset+t._length);y>0&&(n.yb=0,n.b=y);var x=t._offset-r.top;x>0&&(n.yt=1,n.t=x)}n[g]="free"===t.anchor?t.position:t._anchorAxis.domain[d[0]],t.title.text!==c._dfltTitle[p]&&(n[l]+=me(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=t.linewidth,t.mirror&&!0!==t.mirror&&(i[u]+=f),!0===t.mirror||"ticks"===t.mirror?i[g]=t._anchorAxis.domain[d[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(i[g]=[t._counterDomainMin,t._counterDomainMax][d[1]]))}J&&(s=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),a.autoMargin(e,xe(t),n),a.autoMargin(e,be(t),i),a.autoMargin(e,_e(t),s)})),r.skipTitle||J&&"bottom"===t.side||X.push((function(){return function(e,t){var r,n=e._fullLayout,i=t._id,a=i.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+me(t);else{var s=Se(t);if("multicategory"===t.type)r=t._depth;else{var l=1.5*o;s&&(l=.5*o,"outside"===t.ticks&&(l+=t.ticklen)),r=10+l+(t.linewidth?t.linewidth-1:0)}s||(r+="x"===a?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,h,d,p,g=V.getPxPosition(e,t);"x"===a?(h=t._offset+t._length/2,d="top"===t.side?g-r:g+r):(d=t._offset+t._length/2,h="right"===t.side?g+r:g-r,c={rotate:"-90",offset:0});if("multicategory"!==t.type){var m=t._selections[t._id+"tick"];if(p={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var v=f.getTranslate(m.node().parentNode);p.offsetLeft=v.x,p.offsetTop=v.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return u.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[a],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}(e,t)})),s.syncOrAsync(X)}}function Q(e){var r=d+(e||"tick");return w[r]||(w[r]=function(e,t){var r,n,i,a;e._selections[t].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,e._selections[t].each((function(){var e=ye(this),t=f.bBox(e.node().parentNode);r=Math.min(r,t.top),n=Math.max(n,t.bottom),i=Math.min(i,t.left),a=Math.max(a,t.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(t,r)),w[r]}},V.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],n=e.side===r?1:-1,i=[-1,1,n,-n];return"inside"!==e.ticks===("x"===t)&&(i=i.map((function(e){return-e}))),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i},V.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return l(e._offset+e.l2p(t.x),0)}:function(t){return l(0,e._offset+e.l2p(t.x))}},V.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},n=r("top"),i=r("left"),a=r("right"),o=r("bottom"),s=r("inside"),l=o||i||n||a;if(!l&&!s)return[0,0];var c=e.side,u=l?(e.tickwidth||0)/2:0,h=3,f=e.tickfont?e.tickfont.size:12;(o||n)&&(u+=f*N,h+=(e.linewidth||0)/2);(i||a)&&(u+=(e.linewidth||0)/2,h+=3);s&&"top"===c&&(h-=f*(1-N));(i||n)&&(u=-u);"bottom"!==c&&"right"!==c||(h=-h);return[l?u:0,s?h:0]}(e),r=t[0],n=t[1];return"x"===e._id.charAt(0)?function(t){return l(r+e._offset+e.l2p(pe(t)),n)}:function(t){return l(n,r+e._offset+e.l2p(pe(t)))}},V.makeTickPath=function(e,t,r,n){n=void 0!==n?n:e.ticklen;var i=e._id.charAt(0),a=(e.linewidth||1)/2;return"x"===i?"M0,"+(t+a*r)+"v"+n*r:"M"+(t+a*r)+",0h"+n*r},V.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",a=function(e){return-1!==n.indexOf(e)},o=a("top"),l=a("left"),c=a("right"),u=a("bottom")||l||o||c,h=a("inside"),f="inside"===n&&"inside"===e.ticks||!h&&"outside"===e.ticks&&"boundaries"!==e.tickson,d=0,p=0,g=f?e.ticklen:0;if(h?g*=-1:u&&(g=0),f&&(d+=g,r)){var m=s.deg2rad(r);d=g*Math.cos(m)+1,p=g*Math.sin(m)}e.showticklabels&&(f||e.showline)&&(d+=.2*e.tickfont.size);var v,y,x,b,_,w={labelStandoff:d+=(e.linewidth||1)/2*(h?-1:1),labelShift:p},T=0,k=e.side,A=e._id.charAt(0),M=e.tickangle;if("x"===A)b=(_=!h&&"bottom"===k||h&&"top"===k)?1:-1,h&&(b*=-1),v=p*b,y=t+d*b,x=_?1:-.2,90===Math.abs(M)&&(h?x+=j:x=-90===M&&"bottom"===k?N:90===M&&"top"===k?j:.5,T=j/2*(M/90)),w.xFn=function(e){return e.dx+v+T*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*x},w.anchorFn=function(e,t){if(u){if(l)return"end";if(c)return"start"}return i(t)&&0!==t&&180!==t?t*b<0!==h?"end":"start":"middle"},w.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side!==h?-n:0};else if("y"===A){if(b=(_=!h&&"left"===k||h&&"right"===k)?1:-1,h&&(b*=-1),v=d,y=p*b,x=0,h||90!==Math.abs(M)||(x=-90===M&&"left"===k||90===M&&"right"===k?N:.5),h){var S=i(M)?+M:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*N*b,x=0}}w.xFn=function(e){return e.dx+t-(v+e.fontSize*x)*b+T*e.fontSize},w.yFn=function(e){return e.dy+y+e.fontSize*j},w.anchorFn=function(e,t){return i(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,n){return"right"===e.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},V.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=r.vals;"period"===t.ticklabelmode&&(i=i.slice()).shift();var a=r.layer.selectAll("path."+n).data(t.ticks?i:[],ge);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(h.stroke,t.tickcolor).style("stroke-width",f.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path).style("display",null),Ee(t,[z]),a.attr("transform",r.transFn)},V.drawGrid=function(e,t,r){r=r||{};var n=t._id+"grid",i=r.vals,a=r.counterAxis;if(!1===t.showgrid)i=[];else if(a&&V.shouldShowZeroLine(e,t,a))for(var o="array"===t.tickmode,s=0;sd||a.leftd||a.top+(t.tickangle?0:e.fontSize/4)t["_visibleLabelMin_"+r._id]?l.style("display","none"):"tick"!==e.K||i||l.style("display",null)}))}))}))}))},x(v,m+1?m:g);var b=null;t._selections&&(t._selections[h]=v);var _=[function(){return y.length&&Promise.all(y)}];t.automargin&&a._redrawFromAutoMarginCount&&90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),d.length&&"x"===u&&!i(g)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){b=0;var e,n=0,a=[];if(v.each((function(e){n=Math.max(n,e.fontSize);var r=t.l2p(e.x),i=ye(this),o=f.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=d.length,l=Math.abs((d[o-1].x-d[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",h=function(e){return-1!==c.indexOf(e)},p=h("top"),m=h("left"),y=h("right"),_=h("bottom")||m||p||y?(t.tickwidth||0)+6:0,w=l<2.5*n||"multicategory"===t.type;for(e=0;e1)for(n=1;n=55296&&m<=56319&&(g+=e[++d]),l.call(t,v,g,h),!f);++d);else c.call(e,(function(e){return l.call(t,v,e,h),f}))}},38445:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(8036),i=r(53129),a=(0,n.A)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/i.Nm}),(function(e){return e.getUTCDate()-1}));t.A=a;var o=a.range},38666:function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"icicle",basePlotModule:r(43723),categories:[],animatable:!0,attributes:r(61481),layoutAttributes:r(86500),supplyDefaults:r(69134),supplyLayoutDefaults:r(54579),calc:r(8781)._,crossTraceCalc:r(8781).t,plot:r(74211),style:r(70947).style,colorbar:r(78666),meta:{description:["Visualize hierarchal data from leaves (and/or outer branches) towards root","with rectangles. The icicle sectors are determined by the entries in","*labels* or *ids* and in *parents*."].join(" ")}}},38705:function(e,t,r){"use strict";var n=r(62258),i=r(71212),a=r(11604),o=r(9777);function s(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function l(e,t,r){var n="plotly.js-style-"+e,a=document.getElementById(n);a||((a=document.createElement("style")).setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(t+"{"+r+"}",0):o.addRule?o.addRule(t,r,0):i.warn("addStyleRule failed")}function c(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return"none"===r?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map((function(e){return+e}))}function u(e){for(var t=[];h(e);)t.push(e),e=e.parentNode;return t}function h(e){return e&&(e instanceof Element||e instanceof HTMLElement)}e.exports={getGraphDiv:function(e){var t;if("string"===typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null===e||void 0===e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=n.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:s,addStyleRule:function(e,t){l("global",e,t)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&s(r)},getFullTransformMatrix:function(e){var t=u(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach((function(e){var t=c(e);if(t){var n=a.convertCssMatrix(t);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}},38722:function(e,t,r){"use strict";var n=r(31454);e.exports=function(e,t,r){if(r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var i=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",n.contrast(i)),r("newshape.line.dash")}r("activeshape.fillcolor"),r("activeshape.opacity")}},38739:function(e,t,r){"use strict";var n=r(6695),i=r(37762),a=r(42770);function o(e,t){this.scene=e,this.uid=t,this.type="heatmapgl",this.name="",this.hoverinfo="all",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:"fast",z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(e.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(e){var t=this.options,r=t.shape,n=e.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:e.dataCoord,traceCoord:[t.x[i],t.y[a],t.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(e,t){var r=t[0];this.index=e.index,this.name=e.name,this.hoverinfo=e.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=e.zsmooth;var l=function(e){for(var t=e.colorscale,r=e.zmin,n=e.zmax,i=t.length,o=new Array(i),s=new Array(4*i),l=0;l-1,flipY:L.tiling.flip.indexOf("y")>-1,pad:{inner:L.tiling.pad,top:L.marker.pad.t,left:L.marker.pad.l,right:L.marker.pad.r,bottom:L.marker.pad.b}}).descendants(),z=1/0,R=-1/0;O.forEach((function(e){var t=e.depth;t>=L._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(z=Math.min(z,t),R=Math.max(R,t))})),p=p.data(O,u.getPtId),L._maxVisibleLayers=isFinite(R)?R-z+1:0,p.enter().append("g").classed("slice",!0),k(p,d,{},[m,v],b),p.order();var F=null;if(T&&S){var j=u.getPtId(S);p.each((function(e){null===F&&u.getPtId(e)===j&&(F={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})}))}var N=function(){return F||{x0:0,x1:m,y0:0,y1:v}},B=p;return T&&(B=B.transition().each("end",(function(){var t=n.select(this);u.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),B.each((function(s){var p=u.isHeader(s,L);s._x0=y(s.x0),s._x1=y(s.x1),s._y0=x(s.y0),s._y1=x(s.y1),s._hoverX=y(s.x1-L.marker.pad.r),s._hoverY=x(D?s.y1-L.marker.pad.b/2:s.y0+L.marker.pad.t/2);var g=n.select(this),k=i.ensureSingle(g,"path","surface",(function(e){e.style("pointer-events","all")}));T?k.transition().attrTween("d",(function(e){var t=A(e,d,N(),[m,v]);return function(e){return b(t(e))}})):k.attr("d",b),g.call(h,r,e,t,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,e,{isTransitioning:e._transitioning}),k.call(l,s,L,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text="":s._text=p?P?"":u.getPtLabel(s)||"":f(s,r,L,t,E)||"";var S=i.ensureSingle(g,"g","slicetext"),O=i.ensureSingle(S,"text","",(function(e){e.attr("data-notex",1)})),z=i.ensureUniformFontSize(e,u.determineTextFont(L,s,E.font));O.text(s._text||" ").classed("slicetext",!0).attr("text-anchor",I?"end":C||p?"start":"middle").call(a.font,z).call(o.convertToTspans,e),s.textBB=a.bBox(O.node()),s.transform=_(s,{fontSize:z.size,isHeader:p}),s.transform.fontSize=z.size,T?O.transition().attrTween("transform",(function(e){var t=M(e,d,N(),[m,v]);return function(e){return w(t(e))}})):O.attr("transform",w(s))})),F}},39737:function(e){"use strict";function t(e,t){if("string"!==typeof e)return[e];var r=[e];"string"===typeof t||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach((function(e){var t=new RegExp(["\\",e[0],"[^\\",e[0],"\\",e[1],"]*\\",e[1]].join("")),n=[];function a(t,a,o){var s=r.push(t.slice(e[0].length,-e[1].length))-1;return n.push(s),i+s+i}r.forEach((function(e,n){for(var i,o=0;e!=i;)if(i=e,e=e.replace(t,a),o++>1e4)throw Error("References have circular dependency. Please, check them.");r[n]=e})),n=n.reverse(),r=r.map((function(t){return n.forEach((function(r){t=t.replace(new RegExp("(\\"+i+r+"\\"+i+")","g"),e[0]+"$1"+e[1])})),t}))}));var o=new RegExp("\\"+i+"([0-9]+)\\"+i);return a?r:function e(t,r,n){for(var i,a=[],s=0;i=o.exec(t);){if(s++>1e4)throw Error("Circular references in parenthesis");a.push(t.slice(0,i.index)),a.push(e(r[i[1]],r)),t=t.slice(i.index+i[0].length)}return a.push(t),a}(r[0],r)}function r(e,t){if(t&&t.flat){var r,n=t&&t.escape||"___",i=e[0];if(!i)return"";for(var a=new RegExp("\\"+n+"([0-9]+)\\"+n),o=0;i!=r;){if(o++>1e4)throw Error("Circular references in "+e);r=i,i=i.replace(a,s)}return i}return e.reduce((function e(t,r){return Array.isArray(r)&&(r=r.reduce(e,"")),t+r}),"");function s(t,r){if(null==e[r])throw Error("Reference "+r+"is undefined");return e[r]}}function n(e,n){return Array.isArray(e)?r(e,n):t(e,n)}n.parse=t,n.stringify=r,e.exports=n},39837:function(e,t,r){var n=r(97726),i=r(52649),a=r(99548),o=r(71478),s=r(51213),l=r(8106),c={length:r(89730),normalize:r(16543),dot:r(16283),cross:r(8156)},u=i(),h=i(),f=[0,0,0,0],d=[[0,0,0],[0,0,0],[0,0,0]],p=[0,0,0];function g(e,t,r,n,i){e[0]=t[0]*n+r[0]*i,e[1]=t[1]*n+r[1]*i,e[2]=t[2]*n+r[2]*i}e.exports=function(e,t,r,i,m,v){if(t||(t=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,e))return!1;if(a(h,u),h[3]=0,h[7]=0,h[11]=0,h[15]=1,Math.abs(o(h)<1e-8))return!1;var y,x,b=u[3],_=u[7],w=u[11],T=u[12],k=u[13],A=u[14],M=u[15];if(0!==b||0!==_||0!==w){if(f[0]=b,f[1]=_,f[2]=w,f[3]=M,!s(h,h))return!1;l(h,h),function(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3];e[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o}(m,f,h)}else m[0]=m[1]=m[2]=0,m[3]=1;if(t[0]=T,t[1]=k,t[2]=A,x=u,(y=d)[0][0]=x[0],y[0][1]=x[1],y[0][2]=x[2],y[1][0]=x[4],y[1][1]=x[5],y[1][2]=x[6],y[2][0]=x[8],y[2][1]=x[9],y[2][2]=x[10],r[0]=c.length(d[0]),c.normalize(d[0],d[0]),i[0]=c.dot(d[0],d[1]),g(d[1],d[1],d[0],1,-i[0]),r[1]=c.length(d[1]),c.normalize(d[1],d[1]),i[0]/=r[1],i[1]=c.dot(d[0],d[2]),g(d[2],d[2],d[0],1,-i[1]),i[2]=c.dot(d[1],d[2]),g(d[2],d[2],d[1],1,-i[2]),r[2]=c.length(d[2]),c.normalize(d[2],d[2]),i[1]/=r[2],i[2]/=r[2],c.cross(p,d[1],d[2]),c.dot(d[0],p)<0)for(var S=0;S<3;S++)r[S]*=-1,d[S][0]*=-1,d[S][1]*=-1,d[S][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+d[0][0]-d[1][1]-d[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-d[0][0]+d[1][1]-d[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-d[0][0]-d[1][1]+d[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+d[0][0]+d[1][1]+d[2][2],0)),d[2][1]>d[1][2]&&(v[0]=-v[0]),d[0][2]>d[2][0]&&(v[1]=-v[1]),d[1][0]>d[0][1]&&(v[2]=-v[2]),!0}},39934:function(e){"use strict";e.exports=function(e,t){for(var r=[],n=e.cd[0].trace,i=n._sankey.graph.nodes,a=0;a1?1:e}function m(e,t,r,n,i,a,o,s,l,c,u,h){this.gl=e,this.pixelRatio=1,this.shader=t,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=h,this.points=[],this._selectResult=new p(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(e){var t=e.gl,r=l.createPerspective(t),n=l.createOrtho(t),o=l.createProject(t),s=l.createPickPerspective(t),c=l.createPickOrtho(t),u=l.createPickProject(t),h=i(t),f=i(t),d=i(t),p=i(t),g=a(t,[{buffer:h,size:3,type:t.FLOAT},{buffer:f,size:4,type:t.FLOAT},{buffer:d,size:2,type:t.FLOAT},{buffer:p,size:4,type:t.UNSIGNED_BYTE,normalized:!0}]),v=new m(t,r,n,o,h,f,d,p,g,s,c,u);return v.update(e),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(e){this.pickId=e},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=h.slice(),k=[0,0,0],A=[[0,0,0],[0,0,0]];function M(e){return e[0]=e[1]=e[2]=0,e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=1,e}function E(e,t,r,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[r]=n,e}function L(e,t,r,n){var i,a=t.axesProject,o=t.gl,l=e.uniforms,c=r.model||h,u=r.view||h,f=r.projection||h,p=t.axesBounds,g=function(e){for(var t=A,r=0;r<2;++r)for(var n=0;n<3;++n)t[r][n]=Math.max(Math.min(e[r][n],1e8),-1e8);return t}(t.clipBounds);i=t.axes&&t.axes.lastCubeProps?t.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,e.bind(),l.view=u,l.projection=f,l.screenSize=y,l.highlightId=t.highlightId,l.highlightScale=t.highlightScale,l.clipBounds=g,l.pickGroup=t.pickId/255,l.pixelRatio=n;for(var m=0;m<3;++m)if(a[m]){l.scale=t.projectScale[m],l.opacity=t.projectOpacity[m];for(var v=T,L=0;L<16;++L)v[L]=0;for(L=0;L<4;++L)v[5*L]=1;v[5*m]=0,i[m]<0?v[12+m]=p[0][m]:v[12+m]=p[1][m],s(v,c,v),l.model=v;var C=(m+1)%3,I=(m+2)%3,D=M(x),P=M(b);D[C]=1,P[I]=1;var O=d(0,0,0,S(_,D)),z=d(0,0,0,S(w,P));if(Math.abs(O[1])>Math.abs(z[1])){var R=O;O=z,z=R,R=D,D=P,P=R;var F=C;C=I,I=F}O[0]<0&&(D[C]=-1),z[1]>0&&(P[I]=-1);var j=0,N=0;for(L=0;L<4;++L)j+=Math.pow(c[4*C+L],2),N+=Math.pow(c[4*I+L],2);D[C]/=Math.sqrt(j),P[I]/=Math.sqrt(N),l.axes[0]=D,l.axes[1]=P,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),t.vao.bind(),t.vao.draw(o.TRIANGLES,t.vertexCount),t.lineWidth>0&&(o.lineWidth(t.lineWidth*n),t.vao.draw(o.LINES,t.lineVertexCount,t.vertexCount)),t.vao.unbind()}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(e,t,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&&L(t,r,n,i),a===r.hasAlpha||o){e.bind();var l=e.uniforms;l.model=n.model||h,l.view=n.view||h,l.projection=n.projection||h,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=C,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth>0&&(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function D(e,t,r,i){var a;a=Array.isArray(e)?t=this.pointCount||t<0)return null;var r=this.points[t],n=this._selectResult;n.index=t;for(var i=0;i<3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(e){if(e){var t=e.index,r=255&t,n=t>>8&255,i=t>>16&255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(e){if("perspective"in(e=e||{})&&(this.useOrtho=!e.perspective),"orthographic"in e&&(this.useOrtho=!!e.orthographic),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"project"in e)if(Array.isArray(e.project))this.axesProject=e.project;else{var t=!!e.project;this.axesProject=[t,t,t]}if("projectScale"in e)if(Array.isArray(e.projectScale))this.projectScale=e.projectScale.slice();else{var r=+e.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,"projectOpacity"in e){if(Array.isArray(e.projectOpacity))this.projectOpacity=e.projectOpacity.slice();else{r=+e.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n<3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in e&&(this.opacity=g(e.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=e.position,l=e.font||"normal",c=e.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n0){var P=0,O=x,z=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(d)&&Array.isArray(d[0]),j=Array.isArray(v)&&Array.isArray(v[0]);e:for(n=0;n<_;++n){y+=1;for(w=s[n],T=0;T<3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue e;h[T]=Math.max(h[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=D(f,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;var N,B=N.visible;if(B)if(Array.isArray(d)){if(3===(U=F?n0?1-M[0][0]:W<0?1+M[1][0]:1,Y*=Y>0?1-M[0][1]:Y<0?1+M[1][1]:1],X=k.cells||[],K=k.positions||[];for(T=0;T=0;i--)a[u-i]=e[h][i],o[u-i]=t[h][i];for(s.push({x:a,y:o,bicubic:l}),i=h,a=[],o=[];i>=0;i--)a[h-i]=e[i][0],o[h-i]=t[i][0];return s.push({x:a,y:o,bicubic:c}),s}},40366:function(e,t,r){var n=r(15234),i=r(43503),a={M:"moveTo",C:"bezierCurveTo"};e.exports=function(e,t){e.beginPath(),i(n(t)).forEach((function(t){var r=t[0],n=t.slice(1);e[a[r]].apply(e,n)})),e.closePath()}},40405:function(e,t,r){"use strict";var n=r(47401),i=r(20112),a=r(13373).KO,o=r(73437),s=r(35490),l=o.axesNames;function c(e,t,r,i){var s=a(i.fullData,"geo",i.id).map((function(e){return e._expandedIndex})),c=r("resolution"),u=r("scope"),h=o.scopeDefaults[u],f=r("projection.type",h.projType),d=t._isAlbersUsa="albers usa"===f;d&&(u=t.scope="usa");var p=t._isScoped="world"!==u,g=t._isSatellite="satellite"===f,m=t._isConic=-1!==f.indexOf("conic")||"albers"===f,v=t._isClipped=!!o.lonaxisSpan[f];if(!1===e.visible){var y=n.extendDeep({},t._template);y.showcoastlines=!1,y.showcountries=!1,y.showframe=!1,y.showlakes=!1,y.showland=!1,y.showocean=!1,y.showrivers=!1,y.showsubunits=!1,y.lonaxis&&(y.lonaxis.showgrid=!1),y.lataxis&&(y.lataxis.showgrid=!1),t._template=y}for(var x=r("visible"),b=0;b0&&I<0&&(I+=360);var D,P,O,z=(C+I)/2;if(!d){var R=p?h.projRotate:[z,0,0];D=r("projection.rotation.lon",R[0]),r("projection.rotation.lat",R[1]),r("projection.rotation.roll",R[2]),r("showcoastlines",!p&&x)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!x&&void 0)&&r("oceancolor")}(d?(P=-96.6,O=38.7):(P=p?z:D,O=(L[0]+L[1])/2),r("center.lon",P),r("center.lat",O),g&&(r("projection.tilt"),r("projection.distance")),m)&&r("projection.parallels",h.projParallels||[0,60]);r("projection.scale"),r("showland",!!x&&void 0)&&r("landcolor"),r("showlakes",!!x&&void 0)&&r("lakecolor"),r("showrivers",!!x&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",p&&"usa"!==u&&x)&&(r("countrycolor"),r("countrywidth")),("usa"===u||"north america"===u&&50===c)&&(r("showsubunits",x),r("subunitcolor"),r("subunitwidth")),p||r("showframe",x)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete t.projection.scale,p?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}e.exports=function(e,t,r){i(e,t,r,{type:"geo",attributes:s,handleDefaults:c,fullData:r,partition:"y"})}},40458:function(e,t,r){"use strict";var n=r(62258),i=r(35553),a=r(46699),o=r(87598),s=r(15921),l=r(3847),c=r(71212),u=r(70161),h=r(62368),f=r(78899),d=Object.keys(i),p={"ISO-3":l,"USA-states":l,"country names":function(e){for(var t=0;t0&&e[t+1][0]<0)return t;return null}switch(t="RUS"===s||"FJI"===s?function(e){var t;if(null===c(e))t=e;else for(t=new Array(e.length),i=0;it?r[n++]=[e[i][0]+360,e[i][1]]:i===t?(r[n++]=e[i],r[n++]=[e[i][0],-90]):r[n++]=e[i];var a=f.tester(r);a.pts.pop(),l.push(a)}:function(e){l.push(f.tester(e))},a.type){case"MultiPolygon":for(r=0;ri&&(i=c,t=l)}else t=r;return o.default(t).geometry.coordinates}(u),n.fIn=e,n.fOut=u,s.push(u)}else c.log(["Location",n.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[r]}switch(r.type){case"FeatureCollection":var f=r.features;for(n=0;n100?(clearInterval(a),n("Unexpected error while fetching from "+e)):void i++}),50)}))}for(var o=0;o0&&ll[k]&&(a.uniforms.dataAxis=e,a.uniforms.screenOffset=t,a.uniforms.color=m[n],a.uniforms.angle=v[n],c.drawArrays(c.TRIANGLES,l[k],l[A]-l[k]))),y[n]&&T&&(t[1^n]-=M*d*x[n],a.uniforms.dataAxis=r,a.uniforms.screenOffset=t,a.uniforms.color=b[n],a.uniforms.angle=_[n],c.drawArrays(c.TRIANGLES,w,T)),t[1^n]=M*u[2+(1^n)]-1,p[n+2]&&(t[1^n]+=M*d*g[n+2],kl[k]&&(a.uniforms.dataAxis=e,a.uniforms.screenOffset=t,a.uniforms.color=m[n+2],a.uniforms.angle=v[n+2],c.drawArrays(c.TRIANGLES,l[k],l[A]-l[k]))),y[n+2]&&T&&(t[1^n]+=M*d*x[n+2],a.uniforms.dataAxis=r,a.uniforms.screenOffset=t,a.uniforms.color=b[n+2],a.uniforms.angle=_[n+2],c.drawArrays(c.TRIANGLES,w,T))}}(),c.drawTitle=function(){var e=[0,0],t=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u<2;++u)t[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=e,n.uniforms.screenOffset=t,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),c.bind=function(){var e=[0,0],t=[0,0],r=[0,0];return function(){var n=this.plot,i=this.shader,a=n._tickBounds,o=n.dataBox,s=n.screenBox,l=n.viewBox;i.bind();for(var c=0;c<2;++c){var u=a[c],h=a[c+2]-u,f=.5*(o[c+2]+o[c]),d=o[c+2]-o[c],p=l[c],g=l[c+2]-p,m=s[c],v=s[c+2]-m;t[c]=2*h/d*g/v,e[c]=2*(u-f)/d*g/v}r[1]=2*n.pixelRatio/(s[3]-s[1]),r[0]=r[1]*(s[3]-s[1])/(s[2]-s[0]),i.uniforms.dataScale=t,i.uniforms.dataShift=e,i.uniforms.textScale=r,this.vbo.bind(),i.attributes.textCoordinate.pointer()}}(),c.update=function(e){var t,r,n,i,o,s=[],l=e.ticks,c=e.bounds;for(o=0;o<2;++o){var u=[Math.floor(s.length/3)],h=[-1/0],f=l[o];for(t=0;t=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(e){if(o(e))e=+e;else if("string"===typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=x.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=_||e>=400?0:Math.floor(Math.max(e,0))};var T={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0},A=a("~f"),M={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:T},horizontalreversed:{node:"linearGradient",attrs:T,reversed:!0},vertical:{node:"linearGradient",attrs:k},verticalreversed:{node:"linearGradient",attrs:k,reversed:!0}};x.gradient=function(e,t,r,a,o,l){for(var u=o.length,h=M[a],f=new Array(u),d=0;d"+v(e);p._gradientUrlQueryParts[y]=1},x.pattern=function(e,t,r,a,o,s,l,u,h,f,d,p){var g="legend"===t;u&&("overlay"===h?(f=u,d=c.contrast(f)):(f=void 0,d=u));var m,v,y,x,b,_,w,T,k,A,M,S=r._fullLayout,E="p"+S._uid+"-"+a,L={};switch(o){case"/":m=s*Math.sqrt(2),v=s*Math.sqrt(2),_="path",L={d:y="M-"+m/4+","+v/4+"l"+m/2+",-"+v/2+"M0,"+v+"L"+m+",0M"+m/4*3+","+v/4*5+"l"+m/2+",-"+v/2,opacity:p,stroke:d,"stroke-width":(x=l*s)+"px"};break;case"\\":m=s*Math.sqrt(2),v=s*Math.sqrt(2),_="path",L={d:y="M"+m/4*3+",-"+v/4+"l"+m/2+","+v/2+"M0,0L"+m+","+v+"M-"+m/4+","+v/4*3+"l"+m/2+","+v/2,opacity:p,stroke:d,"stroke-width":(x=l*s)+"px"};break;case"x":m=s*Math.sqrt(2),v=s*Math.sqrt(2),y="M-"+m/4+","+v/4+"l"+m/2+",-"+v/2+"M0,"+v+"L"+m+",0M"+m/4*3+","+v/4*5+"l"+m/2+",-"+v/2+"M"+m/4*3+",-"+v/4+"l"+m/2+","+v/2+"M0,0L"+m+","+v+"M-"+m/4+","+v/4*3+"l"+m/2+","+v/2,x=s-s*Math.sqrt(1-l),_="path",L={d:y,opacity:p,stroke:d,"stroke-width":x+"px"};break;case"|":_="path",_="path",L={d:y="M"+(m=s)/2+",0L"+m/2+","+(v=s),opacity:p,stroke:d,"stroke-width":(x=l*s)+"px"};break;case"-":_="path",_="path",L={d:y="M0,"+(v=s)/2+"L"+(m=s)+","+v/2,opacity:p,stroke:d,"stroke-width":(x=l*s)+"px"};break;case"+":_="path",y="M"+(m=s)/2+",0L"+m/2+","+(v=s)+"M0,"+v/2+"L"+m+","+v/2,x=s-s*Math.sqrt(1-l),_="path",L={d:y,opacity:p,stroke:d,"stroke-width":x+"px"};break;case".":m=s,v=s,l.pattern_filled";S._patternUrlQueryParts[D]=1},x.initGradients=function(e){var t=e._fullLayout;i.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},x.initPatterns=function(e){var t=e._fullLayout;i.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),t._patternUrlQueryParts={}},x.getPatternAttr=function(e,t,r){return e&&i.isArrayOrTypedArray(e)?t=100,t.attr("d",w(u,l))}var h,f,d,p=!1;if(e.so)d=s.outlierwidth,f=s.outliercolor,h=o.outliercolor;else{var g=(s||{}).width;d=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,f="mlc"in e?e.mlcc=n.lineScale(e.mlc):i.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,i.isArrayOrTypedArray(o.color)&&(h=c.defaultLine,p=!0),h="mc"in e?e.mcc=n.markerScale(e.mc):o.color||"rgba(0,0,0,0)",n.selectedColorFn&&(h=n.selectedColorFn(e))}if(e.om)t.call(c.stroke,h).style({"stroke-width":(d||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:d)+"px");var m=o.gradient,v=e.mgt;v?p=!0:v=m&&m.type,i.isArrayOrTypedArray(v)&&(v=v[0],M[v]||(v=0));var y=o.pattern,b=y&&x.getPatternAttr(y.shape,e.i,"");if(v&&"none"!==v){var _=e.mgc;_?p=!0:_=m.color;var T=r.uid;p&&(T+="-"+e.i),x.gradient(t,a,T,v,[[0,_],[1,h]],"fill")}else if(b){var k=x.getPatternAttr(y.bgcolor,e.i,null),A=x.getPatternAttr(y.fgcolor,e.i,null),S=y.fgopacity,E=x.getPatternAttr(y.size,e.i,8),L=x.getPatternAttr(y.solidity,e.i,.3),C=e.mcc||i.isArrayOrTypedArray(y.shape)||i.isArrayOrTypedArray(y.bgcolor)||i.isArrayOrTypedArray(y.size)||i.isArrayOrTypedArray(y.solidity),I=r.uid;C&&(I+="-"+e.i),x.pattern(t,"point",a,I,b,E,L,e.mcc,y.fillmode,k,A,S)}else c.fill(t,h);d&&c.stroke(t,f)}},x.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=x.tryColorscale(r,""),t.lineScale=x.tryColorscale(r,"line"),l.traceIs(e,"symbols")&&(t.ms2mrc=m.isBubble(e)?v(e):function(){return(r.size||6)/2}),e.selectedpoints&&i.extendFlat(t,x.makeSelectedPointStyleFns(e)),t},x.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.marker||{},o=r.marker||{},s=n.marker||{},c=a.opacity,u=o.opacity,h=s.opacity,f=void 0!==u,d=void 0!==h;(i.isArrayOrTypedArray(c)||f||d)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?a.opacity:e.mo;return e.selected?f?u:t:d?h:g*t});var p=a.color,m=o.color,v=s.color;(m||v)&&(t.selectedColorFn=function(e){var t=e.mcc||p;return e.selected?m||t:v||t});var y=a.size,x=o.size,b=s.size,_=void 0!==x,w=void 0!==b;return l.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?_?x/2:t:w?b/2:t}),t},x.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?l||t:u||(l?t:c.addOpacity(t,g))},t},x.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&a.push((function(e,t){c.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&a.push((function(e,t){var n=t.mx||i.symbol||0,a=r.selectedSizeFn(t);e.attr("d",w(x.symbolNumber(n),a)),t.mrc2=a})),a.length&&e.each((function(e){for(var t=n.select(this),r=0;r0?r:0}x.textPointStyle=function(e,t,r){if(e.size()){var a;if(t.selectedpoints){var o=x.makeSelectedTextStyleFns(t);a=o.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each((function(e){var o=n.select(this),c=s?i.extractOption(e,t,"txt","texttemplate"):i.extractOption(e,t,"tx","text");if(c||0===c){if(s){var u=t._module.formatLabels,h=u?u(e,t,l):{},d={};y(d,t,e.i);var p=t._meta||{};c=i.texttemplateString(c,h,l._d3locale,d,e,p)}var g=e.tp||t.textposition,m=L(e,t),v=a?a(e):e.tc||t.textfont.color;o.call(x.font,e.tf||t.textfont.family,m,v).text(c).call(f.convertToTspans,r).call(E,g,m,e.mrc)}else o.remove()}))}},x.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedTextStyleFns(t);e.each((function(e){var i=n.select(this),a=r.selectedTextColorFn(e),o=e.tp||t.textposition,s=L(e,t);c.fill(i,a),E(i,o,s,e.mrc2||e.mrc)}))}};function C(e,t,r,i){var a=e[0]-t[0],o=e[1]-t[1],s=r[0]-t[0],l=r[1]-t[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),h=(u*u*a-c*c*s)*i,f=(u*u*o-c*c*l)*i,d=3*u*(c+u),p=3*c*(c+u);return[[n.round(t[0]+(d&&h/d),2),n.round(t[1]+(d&&f/d),2)],[n.round(t[0]-(p&&h/p),2),n.round(t[1]-(p&&f/p),2)]]}x.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],i=[];for(r=1;r=1e4&&(x.savedBBoxes={},P=0),r&&(x.savedBBoxes[r]=m),P++,i.extendFlat({},m)},x.setClipUrl=function(e,t,r){e.attr("clip-path",z(t,r))},x.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},x.setTranslate=function(e,t,r){var n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[n]("transform")||"";return t=t||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,"").trim(),a=(a+=h(t,r)).trim(),e[i]("transform",a),a},x.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},x.setScale=function(e,t,r){var n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",a=e[n]("transform")||"";return t=t||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,"").trim(),a=(a+="scale("+t+","+r+")").trim(),e[i]("transform",a),a};var R=/\s*sc.*/;x.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var n=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(R,"");e=(e+=n).trim(),this.setAttribute("transform",e)}))}};var F=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,i=n.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(F);e=1===t&&1===r?[]:[h(o,s),"scale("+t+","+r+")",h(-o,-s)],l&&e.push(l),i.attr("transform",e.join(""))}}))}},41848:function(e,t,r){"use strict";var n=r(21661),i=r(47401),a=r(16032).getTraceColor,o=i.fillText,s=r(61149).makeHoverPointText,l=r(73608).isPtInsidePolygon;e.exports=function(e,t,r){var c=e.cd,u=c[0].trace,h=e.subplot,f=h.radialAxis,d=h.angularAxis,p=h.vangles,g=p?l:i.isPtInsideSector,m=e.maxHoverDistance,v=d._period||2*Math.PI,y=Math.abs(f.g2p(Math.sqrt(t*t+r*r))),x=Math.atan2(r,t);f.range[0]>f.range[1]&&(x+=Math.PI);if(n.getClosest(c,(function(e){return g(y,x,[e.rp0,e.rp1],[e.thetag0,e.thetag1],p)?m+Math.min(1,Math.abs(e.thetag1-e.thetag0)/v)-1+(e.rp1-y)/(e.rp1-e.rp0)-1:1/0}),e),!1!==e.index){var b=c[e.index];e.x0=e.x1=b.ct[0],e.y0=e.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,e),s(_,u,h,e),e.hovertemplate=u.hovertemplate,e.color=a(u,b),e.xLabelVal=e.yLabelVal=void 0,b.s<0&&(e.idealAlign="left"),[e]}}},41998:function(e,t,r){"use strict";e.exports=function(e,t){var r=t[0],a=t[1],o=n(e,r,a,{}),s=i.mallocUint8(r*a*4);return new l(e,o,s)};var n=r(67645),i=r(32237),a=r(75501),o=r(43863).nextPow2;function s(e,t,r,n,i){this.coord=[e,t],this.id=r,this.value=n,this.distance=i}function l(e,t,r){this.gl=e,this.fbo=t,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&&(t.bind(),e.readPixels(0,0,t.shape[0],t.shape[1],e.RGBA,e.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(e){if(this.gl){this.fbo.shape=e;var t=this.fbo.shape[0],r=this.fbo.shape[1];if(r*t*4>this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*t*4)),a=0;a0)do{o.point(0===s||3===s?e:r,s>1?c:t)}while((s=(s+a+4)%4)!==l);else o.point(i[0],i[1])}function f(i,a){return(0,n.tn)(i[0]-e)0?0:3:(0,n.tn)(i[0]-r)0?2:1:(0,n.tn)(i[1]-t)0?1:0:a>0?3:2}function d(e,t){return p(e.x,t.x)}function p(e,t){var r=f(e,1),n=f(t,1);return r!==n?r-n:0===r?t[1]-e[1]:1===r?e[0]-t[0]:2===r?e[1]-t[1]:t[0]-e[0]}return function(n){var f,p,g,m,v,y,x,b,_,w,T,k=n,A=(0,i.A)(),M={point:S,lineStart:function(){M.point=E,p&&p.push(g=[]);w=!0,_=!1,x=b=NaN},lineEnd:function(){f&&(E(m,v),y&&_&&A.rejoin(),f.push(A.result()));M.point=S,_&&k.lineEnd()},polygonStart:function(){k=A,f=[],p=[],T=!0},polygonEnd:function(){var t=function(){for(var t=0,r=0,n=p.length;rc&&(h-i)*(c-a)>(f-a)*(e-i)&&++t:f<=c&&(h-i)*(c-a)<(f-a)*(e-i)&&--t;return t}(),r=T&&t,i=(f=(0,o.Am)(f)).length;(r||i)&&(n.polygonStart(),r&&(n.lineStart(),h(null,null,1,n),n.lineEnd()),i&&(0,a.A)(f,d,t,h,n),n.polygonEnd());k=n,f=p=g=null}};function S(e,t){u(e,t)&&k.point(e,t)}function E(n,i){var a=u(n,i);if(p&&g.push([n,i]),w)m=n,v=i,y=a,w=!1,a&&(k.lineStart(),k.point(n,i));else if(a&&_)k.point(n,i);else{var o=[x=Math.max(l,Math.min(s,x)),b=Math.max(l,Math.min(s,b))],h=[n=Math.max(l,Math.min(s,n)),i=Math.max(l,Math.min(s,i))];!function(e,t,r,n,i,a){var o,s=e[0],l=e[1],c=0,u=1,h=t[0]-s,f=t[1]-l;if(o=r-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>u)return;o>c&&(c=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>u)return;o>c&&(c=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>u)return;o>c&&(c=o)}if(o=a-l,f||!(o<0)){if(o/=f,f<0){if(o>u)return;o>c&&(c=o)}else if(f>0){if(o0&&(e[0]=s+c*h,e[1]=l+c*f),u<1&&(t[0]=s+u*h,t[1]=l+u*f),!0}}}}}(o,h,e,t,r,c)?a&&(k.lineStart(),k.point(n,i),T=!1):(_||(k.lineStart(),k.point(o[0],o[1])),k.point(h[0],h[1]),a||k.lineEnd(),T=!1)}x=n,b=i,_=a}return M}}},42256:function(e,t,r){"use strict";var n=r(82730),i=r(62258),a=r(47401).numberFormat,o=r(84941),s=r(41707),l=r(43995),c=r(47401).raiseToTop,u=r(47401).strTranslate,h=r(47401).cancelTransition,f=r(14404),d=r(20226),p=r(31454);function g(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function m(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function v(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function y(e){return[].concat.apply([],e.map((function(e){return e}))).map((function(e){return e.__data__}))}function x(e,t,r){var a=e.selectAll("."+n.cn.scrollbarKit).data(o.repeat,o.keyFun);a.enter().append("g").classed(n.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),a.each((function(e){var t=e.scrollbarState;t.totalHeight=function(e){var t=e.rowBlocks;return z(t,t.length-1)+(t.length?R(t[t.length-1],1/0):1)}(e),t.scrollableAreaHeight=e.groupHeight-S(e),t.currentlyVisibleHeight=Math.min(t.totalHeight,t.scrollableAreaHeight),t.ratio=t.currentlyVisibleHeight/t.totalHeight,t.barLength=Math.max(t.ratio*t.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),t.barWiggleRoom=t.currentlyVisibleHeight-t.barLength,t.wiggleRoom=Math.max(0,t.totalHeight-t.scrollableAreaHeight),t.topY=0===t.barWiggleRoom?0:e.scrollY/t.wiggleRoom*t.barWiggleRoom,t.bottomY=t.topY+t.barLength,t.dragMultiplier=t.wiggleRoom/t.barWiggleRoom})).attr("transform",(function(e){var t=e.width+n.scrollbarWidth/2+n.scrollbarOffset;return u(t,S(e))}));var s=a.selectAll("."+n.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append("g").classed(n.cn.scrollbar,!0);var l=s.selectAll("."+n.cn.scrollbarSlider).data(o.repeat,o.keyFun);l.enter().append("g").classed(n.cn.scrollbarSlider,!0),l.attr("transform",(function(e){return u(0,e.scrollbarState.topY||0)}));var c=l.selectAll("."+n.cn.scrollbarGlyph).data(o.repeat,o.keyFun);c.enter().append("line").classed(n.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",n.scrollbarWidth).attr("stroke-linecap","round").attr("y1",n.scrollbarWidth/2),c.attr("y2",(function(e){return e.scrollbarState.barLength-n.scrollbarWidth/2})).attr("stroke-opacity",(function(e){return e.columnDragInProgress||!e.scrollbarState.barWiggleRoom||r?0:.4})),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr("stroke-opacity",0);var h=s.selectAll("."+n.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);h.enter().append("line").classed(n.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",n.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY<=s&&s<=o.bottomY||L(t,e,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(e){return i.event.stopPropagation(),e.scrollbarState.scrollbarScrollInProgress=!0,e})).on("drag",L(t,e)).on("dragend",(function(){}))),h.attr("y2",(function(e){return e.scrollbarState.scrollableAreaHeight})),t._context.staticPlot&&(c.remove(),h.remove())}function b(e,t,r,a){var l=function(e){var t=e.selectAll("."+n.cn.columnCells).data(o.repeat,o.keyFun);return t.enter().append("g").classed(n.cn.columnCells,!0),t.exit().remove(),t}(r),c=function(e){var t=e.selectAll("."+n.cn.columnCell).data(d.splitToCells,(function(e){return e.keyWithinBlock}));return t.enter().append("g").classed(n.cn.columnCell,!0),t.exit().remove(),t}(l);!function(e){e.each((function(e,t){var r=e.calcdata.cells.font,n=e.column.specIndex,i={size:T(r.size,n,t),color:T(r.color,n,t),family:T(r.family,n,t)};e.rowNumber=e.key,e.align=T(e.calcdata.cells.align,n,t),e.cellBorderWidth=T(e.calcdata.cells.line.width,n,t),e.font=i}))}(c);var u=function(e){var t=e.selectAll("."+n.cn.cellRect).data(o.repeat,(function(e){return e.keyWithinBlock}));return t.enter().append("rect").classed(n.cn.cellRect,!0),t}(c);!function(e){e.attr("width",(function(e){return e.column.columnWidth})).attr("stroke-width",(function(e){return e.cellBorderWidth})).each((function(e){var t=i.select(this);p.stroke(t,T(e.calcdata.cells.line.color,e.column.specIndex,e.rowNumber)),p.fill(t,T(e.calcdata.cells.fill.color,e.column.specIndex,e.rowNumber))}))}(u);var h=function(e){var t=e.selectAll("."+n.cn.cellTextHolder).data(o.repeat,(function(e){return e.keyWithinBlock}));return t.enter().append("g").classed(n.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}(c),f=function(e){var t=e.selectAll("."+n.cn.cellText).data(o.repeat,(function(e){return e.keyWithinBlock}));return t.enter().append("text").classed(n.cn.cellText,!0).style("cursor",(function(){return"auto"})).on("mousedown",(function(){i.event.stopPropagation()})),t}(h);!function(e){e.each((function(e){s.font(i.select(this),e.font)}))}(f),_(f,t,a,e),O(c)}function _(e,t,r,o){e.text((function(e){var t=e.column.specIndex,r=e.rowNumber,i=e.value,o="string"===typeof i,s=o&&i.match(/
/i),l=!o||s;e.mayHaveMarkup=o&&i.match(/[<&>]/);var c,u="string"===typeof(c=i)&&c.match(n.latexCheck);e.latex=u;var h,f,d=u?"":T(e.calcdata.cells.prefix,t,r)||"",p=u?"":T(e.calcdata.cells.suffix,t,r)||"",g=u?null:T(e.calcdata.cells.format,t,r)||null,m=d+(g?a(g)(e.value):e.value)+p;if(e.wrappingNeeded=!e.wrapped&&!l&&!u&&(h=w(m)),e.cellHeightMayIncrease=s||u||e.mayHaveMarkup||(void 0===h?w(m):h),e.needsConvertToTspans=e.mayHaveMarkup||e.wrappingNeeded||e.latex,e.wrappingNeeded){var v=(" "===n.wrapSplitCharacter?m.replace(/i&&n.push(a),i+=l}return n}(i,l,s);1===c.length&&(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&&c.reverse(),t.each((function(e,t){e.page=c[t],e.scrollY=l})),t.attr("transform",(function(e){var t=z(e.rowBlocks,e.page)-e.scrollY;return u(0,t)})),e&&(C(e,r,t,c,n.prevPages,n,0),C(e,r,t,c,n.prevPages,n,1),x(r,e))}}function L(e,t,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=t.filter((function(e){return s.key===e.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var h=l.selectAll("."+n.cn.yColumn).selectAll("."+n.cn.columnBlock).filter(A);return E(e,h,l),s.scrollY===u}}function C(e,t,r,n,i,a,o){n[o]!==i[o]&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(e,t){return t===o&&n[t]!==i[t]}));b(e,t,a,r),i[o]=n[o]})))}function I(e,t,r,a){return function(){var o=i.select(t.parentNode);o.each((function(e){var t=e.fragments;o.selectAll("tspan.line").each((function(e,r){t[r].width=this.getComputedTextLength()}));var r,i,a=t[t.length-1].width,s=t.slice(0,-1),l=[],c=0,u=e.column.columnWidth-2*n.cellPad;for(e.value="";s.length;)c+(i=(r=s.shift()).width+a)>u&&(e.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&&(e.value+=l.join(n.wrapSpacer)),e.wrapped=!0})),o.selectAll("tspan.line").remove(),_(o.select("."+n.cn.cellText),r,e,a),i.select(t.parentNode.parentNode).call(O)}}function D(e,t,r,a,o){return function(){if(!o.settledY){var s=i.select(t.parentNode),l=j(o),c=o.key-l.firstRowIndex,h=l.rows[c].rowHeight,f=o.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*n.cellPad:h,d=Math.max(f,h);d-l.rows[c].rowHeight&&(l.rows[c].rowHeight=d,e.selectAll("."+n.cn.columnCell).call(O),E(null,e.filter(A),0),x(r,a,!0)),s.attr("transform",(function(){var e=this,t=e.parentNode.getBoundingClientRect(),r=i.select(e.parentNode).select("."+n.cn.cellRect).node().getBoundingClientRect(),a=e.transform.baseVal.consolidate(),s=r.top-t.top+(a?a.matrix.f:n.cellPad);return u(P(o,i.select(e.parentNode).select("."+n.cn.cellTextHolder).node().getBoundingClientRect().width),s)})),o.settledY=!0}}}function P(e,t){switch(e.align){case"left":default:return n.cellPad;case"right":return e.column.columnWidth-(t||0)-n.cellPad;case"center":return(e.column.columnWidth-(t||0))/2}}function O(e){e.attr("transform",(function(e){var t=e.rowBlocks[0].auxiliaryBlocks.reduce((function(e,t){return e+R(t,1/0)}),0),r=R(j(e),e.key);return u(0,r+t)})).selectAll("."+n.cn.cellRect).attr("height",(function(e){return(t=j(e),r=e.key,t.rows[r-t.firstRowIndex]).rowHeight;var t,r}))}function z(e,t){for(var r=0,n=t-1;n>=0;n--)r+=F(e[n]);return r}function R(e,t){for(var r=0,n=0;n2)return c[t]=2|c[t],f.set(e,null);if(h){for(o=t;o=a)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return e}})),l=i[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),c(n,e,n.depth)}function s(e,t){var r=o.styles[t];return r?"\x1b["+o.colors[r][0]+"m"+e+"\x1b["+o.colors[r][1]+"m":e}function l(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return m(i)||(i=c(e,i,n)),i}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(p(t))return e.stylize("null","null")}(e,r);if(a)return a;var o=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(r);if(0===o.length){if(w(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(b(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return u(r)}var x,T="",k=!1,A=["{","}"];(f(r)&&(k=!0,A=["[","]"]),w(r))&&(T=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(T=" "+RegExp.prototype.toString.call(r)),b(r)&&(T=" "+Date.prototype.toUTCString.call(r)),_(r)&&(T=" "+u(r)),0!==o.length||k&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),x=k?function(e,t,r,n,i){for(var a=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(x,T,A)):A[0]+T+A[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),M(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=p(r)?c(e,l.value,null):c(e,l.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function f(e){return Array.isArray(e)}function d(e){return"boolean"===typeof e}function p(e){return null===e}function g(e){return"number"===typeof e}function m(e){return"string"===typeof e}function v(e){return void 0===e}function y(e){return x(e)&&"[object RegExp]"===T(e)}function x(e){return"object"===typeof e&&null!==e}function b(e){return x(e)&&"[object Date]"===T(e)}function _(e){return x(e)&&("[object Error]"===T(e)||e instanceof Error)}function w(e){return"function"===typeof e}function T(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(i)&&(i={NODE_ENV:"production",PUBLIC_URL:"/static-files",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=process.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=d,t.isNull=p,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=x,t.isDate=b,t.isError=_,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=r(3893);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=r(63316),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},42380:function(e,t,r){"use strict";r.d(t,{b:function(){return he}});var n=r(22563);const i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",o="dnd-core/PUBLISH_DRAG_SOURCE",s="dnd-core/HOVER",l="dnd-core/DROP",c="dnd-core/END_DRAG";function u(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function h(e){return"object"===typeof e}const f={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function d(e){return function(t=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(u(o)),function(e,t,r){(0,n.V)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,n.V)(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,l,c);const d=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,l);if(null==d)return void e.dispatch(f);let p=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");!function(e){(0,n.V)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(s),p=s(d)}e.dispatch(u(o,p));const g=c.getSource(d).beginDrag(l,d);if(null==g)return;!function(e){(0,n.V)(h(e),"Item must be an object.")}(g),c.pinSource(d);const m=c.getSourceType(d);return{type:a,payload:{itemType:m,item:g,sourceId:d,clientOffset:o||null,sourceClientOffset:p||null,isSourcePublic:!!i}}}}function p(e){return function(){if(e.getMonitor().isDragging())return{type:o}}}function g(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function m(e){return function(t,{clientOffset:r}={}){!function(e){(0,n.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const i=t.slice(0),a=e.getMonitor(),o=e.getRegistry();!function(e,t,r){(0,n.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,n.V)(!t.didDrop(),"Cannot call hover after drop.");for(let i=0;i=0;n--){const i=e[n];g(t.getTargetType(i),r)||e.splice(n,1)}}(i,o,a.getItemType()),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(i,a,o),{type:s,payload:{targetIds:i,clientOffset:r||null}}}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){for(var t=1;t{const s=function(e,t,r,i){const a=r.getTarget(e);let o=a?a.drop(i,e):void 0;(function(e){(0,n.V)("undefined"===typeof e||h(e),"Drop result must either be an object or undefined.")})(o),"undefined"===typeof o&&(o=0===t?{}:i.getDropResult());return o}(a,o,i,r),c={type:l,payload:{dropResult:y({},t,s)}};e.dispatch(c)}))}}function b(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){(0,n.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const i=t.getSourceId();if(null!=i){r.getSource(i,!0).endDrag(t,i),r.unpinSource()}return{type:c}}}class _{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const r=function(e){return{beginDrag:d(e),publishDragSource:p(e),hover:m(e),drop:x(e),endDrag:b(e)}}(this);return Object.keys(r).reduce(((n,i)=>{const a=r[i];var o;return n[i]=(o=a,(...r)=>{const n=o.apply(e,r);"undefined"!==typeof n&&t(n)}),n}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}var w=r(73874);const T=(e,t)=>e===t;function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function M(e=A,t){const{payload:r}=t;switch(t.type){case i:case a:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case s:return n=e.clientOffset,o=r.clientOffset,!n&&!o||n&&o&&n.x===o.x&&n.y===o.y?e:function(e){for(var t=1;te!==i)))});case l:return D({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case c:return D({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function z(e=0,t){switch(t.type){case S:case E:return e+1;case L:case C:return e-1;default:return e}}const R=[],F=[];function j(e=R,t){switch(t.type){case s:break;case S:case E:case C:case L:return R;default:return F}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach(((e,t)=>{1===e&&i.push(t)})),i}(r,n);if(!(i.length>0||!function(e,t,r=T){if(e.length!==t.length)return!1;for(let n=0;ne&&e[t]?e[t]:i||null),r))})}),dragOffset:M(e.dragOffset,t),refCount:z(e.refCount,t),dragOperation:O(e.dragOperation,t),stateId:N(e.stateId)};var r,n,i}function q(e,t){return{x:e.x-t.x,y:e.y-t.y}}R.__IS_NONE__=!0,F.__IS_ALL__=!0;class H{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;(0,n.V)("function"===typeof e,"listener must be a function."),(0,n.V)("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),n=t.stateId;try{const a=n===i||n===i+1&&!function(e,t){return e!==R&&(e===F||"undefined"===typeof t||(r=e,t.filter((e=>r.indexOf(e)>-1))).length>0);var r}(t.dirtyHandlerIds,r);a||e()}finally{i=n}}))}subscribeToOffsetChange(e){(0,n.V)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,n.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,n.V)(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return g(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,n.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!g(n,i))return!1;const a=this.getTargetIds();if(!a.length)return!1;const o=a.indexOf(e);return r?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?q((a=n,{x:(i=t).x+a.x,y:i.y+a.y}),r):null;var i,a}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?q(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}let G=0;var W;function Y(e,t){t&&Array.isArray(e)?e.forEach((e=>Y(e,!1))):(0,n.V)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Z(e){K.length||(X(),!0),K[K.length]=e}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(W||(W={}));var X,K=[],J=0;function Q(){for(;J1024){for(var t=0,r=K.length-J;t{this.dragSources.delete(e),this.types.delete(e)}))}removeTarget(e){(0,n.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:C,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,n.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,n.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=se(e);return this.types.set(n,t),e===W.SOURCE?this.dragSources.set(n,r):e===W.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}function he(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,w.y$)(V,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),a=new H(i,new ue(i)),o=new _(i,a),s=e(o,t,r);return o.receiveBackend(s),o}},42685:function(e){"use strict";e.exports=function(e,t,r){var n=e+t,i=n-e,a=t-i,o=e-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},42706:function(e,t,r){"use strict";r.d(t,{A:function(){return l}});var n=r(46082),i=r(7505),a=r(57977),o=r(11096),s=r(13388);function l(e,t,r,a){return function(l){var h,f,d,p=t(l),g=(0,n.A)(),m=t(g),v=!1,y={point:x,lineStart:_,lineEnd:w,polygonStart:function(){y.point=T,y.lineStart=k,y.lineEnd=A,f=[],h=[]},polygonEnd:function(){y.point=x,y.lineStart=_,y.lineEnd=w,f=(0,s.Am)(f);var e=(0,o.A)(h,a);f.length?(v||(l.polygonStart(),v=!0),(0,i.A)(f,u,e,r,l)):e&&(v||(l.polygonStart(),v=!0),l.lineStart(),r(null,null,1,l),l.lineEnd()),v&&(l.polygonEnd(),v=!1),f=h=null},sphere:function(){l.polygonStart(),l.lineStart(),r(null,null,1,l),l.lineEnd(),l.polygonEnd()}};function x(t,r){e(t,r)&&l.point(t,r)}function b(e,t){p.point(e,t)}function _(){y.point=b,p.lineStart()}function w(){y.point=x,p.lineEnd()}function T(e,t){d.push([e,t]),m.point(e,t)}function k(){m.lineStart(),d=[]}function A(){T(d[0][0],d[0][1]),m.lineEnd();var e,t,r,n,i=m.clean(),a=g.result(),o=a.length;if(d.pop(),h.push(d),d=null,o)if(1&i){if((t=(r=a[0]).length-1)>0){for(v||(l.polygonStart(),v=!0),l.lineStart(),e=0;e1&&2&i&&a.push(a.pop().concat(a.shift())),f.push(a.filter(c))}return y}}function c(e){return e.length>1}function u(e,t){return((e=e.x)[0]<0?e[1]-a.TW-a.Ni:a.TW-e[1])-((t=t.x)[0]<0?t[1]-a.TW-a.Ni:a.TW-t[1])}},42745:function(e,t,r){"use strict";var n=r(97451),i=r(20184).axisHoverFormat,a=r(4216).r,o=r(49762),s=r(42837),l=r(87241).extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the x coordinates of the vector field","and of the displayed cones."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the y coordinates of the vector field","and of the displayed cones."].join(" ")},z:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the z coordinates of the vector field","and of the displayed cones."].join(" ")},u:{valType:"data_array",editType:"calc",description:"Sets the x components of the vector field."},v:{valType:"data_array",editType:"calc",description:"Sets the y components of the vector field."},w:{valType:"data_array",editType:"calc",description:"Sets the z components of the vector field."},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled",description:["Determines whether `sizeref` is set as a *scaled* (i.e unitless) scalar","(normalized by the max u/v/w norm in the vector field) or as","*absolute* value (in the same units as the vector field)."].join(" ")},sizeref:{valType:"number",editType:"calc",min:0,description:["Adjusts the cone size scaling.","The size of the cones is determined by their u/v/w norm multiplied a factor and `sizeref`.",'This factor (computed internally) corresponds to the minimum "time" to travel across',"two successive x/y/z positions at the average velocity of those two successive positions.","All cones in a given trace use the same factor.","With `sizemode` set to *scaled*, `sizeref` is unitless, its default value is *0.5*","With `sizemode` set to *absolute*, `sizeref` has the same units as the u/v/w vector field,","its the default value is half the sample's maximum vector norm."].join(" ")},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm",description:["Sets the cones' anchor with respect to their x/y/z positions.","Note that *cm* denote the cone's center of mass which corresponds to","1/4 from the tail to tip."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets the text elements associated with the cones.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},hovertemplate:a({editType:"calc"},{keys:["norm"]}),uhoverformat:i("u",1),vhoverformat:i("v",1),whoverformat:i("w",1),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach((function(e){c[e]=o[e]})),c.hoverinfo=l({},s.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),c.transforms=void 0,e.exports=c},42770:function(e,t,r){"use strict";var n=r(5601);e.exports=function(e){return e?n(e):[0,0,0,1]}},42837:function(e,t,r){"use strict";var n=r(5153),i=r(97280);e.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:n({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with `*reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:i.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["WARNING: All transforms are deprecated and may be removed from the API in next major version.","An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},42890:function(e,t,r){"use strict";var n=r(47401),i=r(26800),a=r(60829),o=r(50775).name,s=a.buttons;function l(e,t,r){function o(r,i){return n.coerce(e,t,a,r,i)}o("visible",i(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,i){return n.coerce(e,t,s,r,i)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(e,t){i(e,t,{name:o,handleItemDefaults:l})}},42900:function(e,t,r){"use strict";e.exports=function(e,t){var r=new u(e);return r.update(t),r};var n=r(46198),i=r(14134),a=r(11369),o=r(25008),s=r(8439),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function u(e){this.gl=e,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(e)}var h=u.prototype;function f(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}h.update=function(e){function t(t,r,n){if(n in e){var i,a=e[n],o=this[n];(t?Array.isArray(a)&&Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s<3;++s)if(i[s]!==o[s])return!0}return!1}e=e||{};var r,a=t.bind(this,!1,Number),o=t.bind(this,!1,Boolean),l=t.bind(this,!1,String),c=t.bind(this,!0,(function(e){if(Array.isArray(e)){if(3===e.length)return[+e[0],+e[1],+e[2],1];if(4===e.length)return[+e[0],+e[1],+e[2],+e[3]]}return[0,0,0,1]})),u=!1,h=!1;if("bounds"in e)for(var f=e.bounds,d=0;d<2;++d)for(var p=0;p<3;++p)f[d][p]!==this.bounds[d][p]&&(h=!0),this.bounds[d][p]=f[d][p];if("ticks"in e){r=e.ticks,u=!0,this.autoTicks=!1;for(d=0;d<3;++d)this.tickSpacing[d]=0}else a("tickSpacing")&&(this.autoTicks=!0,h=!0);if(this._firstInit&&("ticks"in e||"tickSpacing"in e||(this.autoTicks=!0),h=!0,u=!0,this._firstInit=!1),h&&this.autoTicks&&(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(d=0;d<3;++d)r[d].sort((function(e,t){return e.x-t.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o("tickEnable"),l("tickFont")&&(u=!0),a("tickSize"),a("tickAngle"),a("tickPad"),c("tickColor");var g=l("labels");l("labelFont")&&(g=!0),o("labelEnable"),a("labelSize"),a("labelPad"),c("labelColor"),o("lineEnable"),o("lineMirror"),a("lineWidth"),c("lineColor"),o("lineTickEnable"),o("lineTickMirror"),a("lineTickLength"),a("lineTickWidth"),c("lineTickColor"),o("gridEnable"),a("gridWidth"),c("gridColor"),o("zeroEnable"),c("zeroLineColor"),a("zeroLineWidth"),o("backgroundEnable"),c("backgroundColor"),this._text?this._text&&(g||u)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var d=[new f,new f,new f];function p(e,t,r,n,i){for(var a=e.primalOffset,o=e.primalMinor,s=e.mirrorOffset,l=e.mirrorMinor,c=n[t],u=0;u<3;++u)if(t!==u){var h=a,f=s,d=o,p=l;c&1<0?(d[u]=-1,p[u]=0):(d[u]=0,p[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};h.isOpaque=function(){return!0},h.isTransparent=function(){return!1},h.drawTransparent=function(e){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];h.draw=function(e){e=e||m;for(var t=this.gl,r=e.model||l,n=e.view||l,i=e.projection||l,a=this.bounds,s=e._ortho||!1,u=o(r,n,i,a,s),h=u.cubeEdges,f=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/t.drawingBufferHeight,A=0;A<3;++A)this.lastCubeProps.cubeEdges[A]=h[A],this.lastCubeProps.axis[A]=f[A];var M=d;for(A=0;A<3;++A)p(d[A],A,this.bounds,h,f);t=this.gl;var S,E=g;for(A=0;A<3;++A)this.backgroundEnable[A]?E[A]=f[A]:E[A]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(A=0;A<3;++A){var L=[0,0,0];f[A]>0?L[A]=a[1][A]:L[A]=a[0][A];for(var C=0;C<2;++C){var I=(A+1+C)%3,D=(A+1+(1^C))%3;this.gridEnable[I]&&this._lines.drawGrid(I,D,this.bounds,L,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(C=0;C<2;++C){I=(A+1+C)%3,D=(A+1+(1^C))%3;this.zeroEnable[D]&&Math.min(a[0][D],a[1][D])<=0&&Math.max(a[0][D],a[1][D])>=0&&this._lines.drawZero(I,D,this.bounds,L,this.zeroLineColor[D],this.zeroLineWidth[D]*this.pixelRatio)}}for(A=0;A<3;++A){this.lineEnable[A]&&this._lines.drawAxisLine(A,this.bounds,M[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&&this._lines.drawAxisLine(A,this.bounds,M[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var P=c(v,M[A].primalMinor),O=c(y,M[A].mirrorMinor),z=this.lineTickLength;for(C=0;C<3;++C){var R=k/r[5*C];P[C]*=z[C]*R,O[C]*=z[C]*R}this.lineTickEnable[A]&&this._lines.drawAxisTicks(A,M[A].primalOffset,P,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&&this._lines.drawAxisTicks(A,M[A].mirrorOffset,O,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,j;function N(e){(j=[0,0,0])[e]=1}function B(e,t,r){var n=(e+1)%3,i=(e+2)%3,a=t[n],o=t[i],s=r[n],l=r[i];a>0&&l>0||a>0&&l<0||a<0&&l>0||a<0&&l<0?N(n):(o>0&&s>0||o>0&&s<0||o<0&&s>0||o<0&&s<0)&&N(i)}for(A=0;A<3;++A){var U=M[A].primalMinor,V=M[A].mirrorMinor,q=c(x,M[A].primalOffset);for(C=0;C<3;++C)this.lineTickEnable[A]&&(q[C]+=k*U[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var H=[0,0,0];if(H[A]=1,this.tickEnable[A]){-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]="auto"):this.tickAlign[A]=-1,F=1,"auto"===(S=[this.tickAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(""+S[0]),j=[0,0,0],B(A,U,V);for(C=0;C<3;++C)q[C]+=k*U[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],q,this.tickColor[A],H,j,S)}if(this.labelEnable[A]){F=0,j=[0,0,0],this.labels[A].length>4&&(N(A),F=1),"auto"===(S=[this.labelAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(""+S[0]);for(C=0;C<3;++C)q[C]+=k*U[C]*this.labelPad[C]/r[5*C];q[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],q,this.labelColor[A],[0,0,0],j,S)}}this._text.unbind()},h.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},42910:function(e,t){"use strict";t.selectMode=function(e){return"lasso"===e||"select"===e},t.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.openMode=function(e){return"drawline"===e||"drawopenpath"===e},t.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}},42940:function(e,t,r){"use strict";e.exports=r(28755)},42993:function(e,t,r){"use strict";r.d(t,{A:function(){return s},T:function(){return o}});var n=r(57977),i=r(36056),a=r(58712);function o(e,t){var r=(0,n.gn)(t),i=(0,n.gn)(e)*r;return[r*(0,n.F8)(e)/i,(0,n.F8)(t)/i]}function s(){return(0,a.A)(o).scale(144.049).clipAngle(60)}o.invert=(0,i.I)(n.rY)},43015:function(e,t,r){"use strict";var n=r(62258),i=r(62282),a=r(35722),o=r(47401),s=o.strTranslate,l=r(41707),c=r(31454),u=r(72456),h=r(66807),f=r(77063),d=r(52783),p=r(82559),g=r(8204);function m(e,t,r,n){var i=o.ensureSingle(e,"rect",g.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),a=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(t,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,"stroke-width":u})}function v(e,t,r,n){var i=t._fullLayout;o.ensureSingleById(i._topdefs,"clipPath",n._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:n._width,height:n._height})}function y(e,t,r,i){var s,c=t.calcdata,u=e.selectAll("g."+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append("g").attr("class",(function(e){return g.rangePlotClassName+" "+e})).call(l.setClipUrl,i._clipId,t),u.order(),u.exit().remove(),u.each((function(e,o){var l=n.select(this),u=0===o,d=f.getFromId(t,e,"y"),p=d._name,g=i[p],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[p]={type:d.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():d.range.slice(),calendar:d.calendar},d.rangebreaks&&(m.layout[p].rangebreaks=d.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[p];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:e,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot="xy",x.mainplotinfo=s),h.rangePlot(t,x,function(e,t){for(var r=[],n=0;n=n.max)t=F[r+1];else if(e=n.pmax)t=F[r+1];else if(e=0?s.push("0"):t.indexOf(-(l+1))>=0?s.push("s["+l+"]-1"):(s.push("-1"),a.push("1"),o.push("s["+l+"]-2"));var c=".lo("+a.join()+").hi("+o.join()+")";if(0===a.length&&(c=""),i>0){n.push("if(1");for(l=0;l=0||t.indexOf(-(l+1))>=0||n.push("&&s[",l,"]>2");n.push("){grad",i,"(src.pick(",s.join(),")",c);for(l=0;l=0||t.indexOf(-(l+1))>=0||n.push(",dst.pick(",s.join(),",",l,")",c);n.push(");")}for(l=0;l1){dst.set(",s.join(),",",u,",0.5*(src.get(",f.join(),")-src.get(",d.join(),")))}else{dst.set(",s.join(),",",u,",0)};"):n.push("if(s[",u,"]>1){diff(",h,",src.pick(",f.join(),")",c,",src.pick(",d.join(),")",c,");}else{zero(",h,");};");break;case"mirror":0===i?n.push("dst.set(",s.join(),",",u,",0);"):n.push("zero(",h,");");break;case"wrap":var p=s.slice(),g=s.slice();t[l]<0?(p[u]="s["+u+"]-2",g[u]="0"):(p[u]="s["+u+"]-1",g[u]="1"),0===i?n.push("if(s[",u,"]>2){dst.set(",s.join(),",",u,",0.5*(src.get(",p.join(),")-src.get(",g.join(),")))}else{dst.set(",s.join(),",",u,",0)};"):n.push("if(s[",u,"]>2){diff(",h,",src.pick(",p.join(),")",c,",src.pick(",g.join(),")",c,");}else{zero(",h,");};");break;default:throw new Error("ndarray-gradient: Invalid boundary condition")}}i>0&&n.push("};")}for(var s=0;s<1<":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(i,(function(e){switch(e){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}},43503:function(e){var t=Math.PI,r=s(120);function n(e,t,r,n){return["C",e,t,r,n,r,n]}function i(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function a(e,n,i,s,l,c,u,h,f,d){if(d)T=d[0],k=d[1],_=d[2],w=d[3];else{var p=o(e,n,-l);e=p.x,n=p.y;var g=(e-(h=(p=o(h,f,-l)).x))/2,m=(n-(f=p.y))/2,v=g*g/(i*i)+m*m/(s*s);v>1&&(i*=v=Math.sqrt(v),s*=v);var y=i*i,x=s*s,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&&(b=1);var _=b*i*m/s+(e+h)/2,w=b*-s*g/i+(n+f)/2,T=Math.asin(((n-w)/s).toFixed(9)),k=Math.asin(((f-w)/s).toFixed(9));(T=e<_?t-T:T)<0&&(T=2*t+T),(k=h<_?t-k:k)<0&&(k=2*t+k),u&&T>k&&(T-=2*t),!u&&k>T&&(k-=2*t)}if(Math.abs(k-T)>r){var A=k,M=h,S=f;k=T+r*(u&&k>T?1:-1);var E=a(h=_+i*Math.cos(k),f=w+s*Math.sin(k),i,s,l,0,u,M,S,[k,A,_,w])}var L=Math.tan((k-T)/4),C=4/3*i*L,I=4/3*s*L,D=[2*e-(e+C*Math.sin(T)),2*n-(n-I*Math.cos(T)),h+C*Math.sin(k),f-I*Math.cos(k),h,f];if(d)return D;E&&(D=D.concat(E));for(var P=0;P7&&(r.push(v.splice(0,7)),v.unshift("C"));break;case"S":var x=d,b=p;"C"!=t&&"S"!=t||(x+=x-o,b+=b-l),v=["C",x,b,v[1],v[2],v[3],v[4]];break;case"T":"Q"==t||"T"==t?(h=2*d-h,f=2*p-f):(h=d,f=p),v=i(d,p,h,f,v[1],v[2]);break;case"Q":h=v[1],f=v[2],v=i(d,p,v[1],v[2],v[3],v[4]);break;case"L":v=n(d,p,v[1],v[2]);break;case"H":v=n(d,p,v[1],p);break;case"V":v=n(d,p,d,v[1]);break;case"Z":v=n(d,p,c,u)}t=y,d=v[v.length-2],p=v[v.length-1],v.length>4?(o=v[v.length-4],l=v[v.length-3]):(o=d,l=p),r.push(v)}return r}},43533:function(e,t,r){"use strict";var n=r(62258),i=r(87717).GW,a=r(94276),o=r(47401),s=r(33419).TEXTPAD,l=r(74835).toMoveInsideBar,c=r(77846).recordMinTextSize,u=r(22740),h=r(49506);function f(e){return a.isHierarchyRoot(e)?"":a.getPtId(e)}e.exports=function(e,t,r,d,p){var g=e._fullLayout,m=t[0],v=m.trace,y="icicle"===v.type,x=m.hierarchy,b=a.findEntryWithLevel(x,v.level),_=n.select(r),w=_.selectAll("g.pathbar"),T=_.selectAll("g.slice");if(!b)return w.remove(),void T.remove();var k=a.isHierarchyRoot(b),A=!g.uniformtext.mode&&a.hasTransition(d),M=a.getMaxDepth(v),S=g._size,E=v.domain,L=S.w*(E.x[1]-E.x[0]),C=S.h*(E.y[1]-E.y[0]),I=L,D=v.pathbar.thickness,P=v.marker.line.width+u.gapWithPathbar,O=v.pathbar.visible?v.pathbar.side.indexOf("bottom")>-1?C+P:-(D+P):0,z={x0:I,x1:I,y0:O,y1:O+D},R=function(e,t,r){var n=v.tiling.pad,i=function(e){return e-n<=t.x0},a=function(e){return e+n>=t.x1},o=function(e){return e-n<=t.y0},s=function(e){return e+n>=t.y1};return e.x0===t.x0&&e.x1===t.x1&&e.y0===t.y0&&e.y1===t.y1?{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1}:{x0:i(e.x0-n)?0:a(e.x0-n)?r[0]:e.x0,x1:i(e.x1+n)?0:a(e.x1+n)?r[0]:e.x1,y0:o(e.y0-n)?0:s(e.y0-n)?r[1]:e.y0,y1:o(e.y1+n)?0:s(e.y1+n)?r[1]:e.y1}},F=null,j={},N={},B=null,U=function(e,t){return t?j[f(e)]:N[f(e)]},V=function(e,t,r,n){if(t)return j[f(x)]||z;var i=N[v.level]||r;return function(e){return e.data.depth-b.data.depth=(n-=(y?m:m.r)-s)){var x=(r+n)/2;r=x,n=x}var b;h?i<(b=a-(y?m:m.b))&&b"===ee?(l.x-=a,c.x-=a,u.x-=a,h.x-=a):"/"===ee?(u.x-=a,h.x-=a,o.x-=a/2,s.x-=a/2):"\\"===ee?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):"<"===ee&&(o.x-=a,s.x-=a),$(l),$(h),$(o),$(c),$(u),$(s),"M"+J(l.x,l.y)+"L"+J(c.x,c.y)+"L"+J(s.x,s.y)+"L"+J(u.x,u.y)+"L"+J(h.x,h.y)+"L"+J(o.x,o.y)+"Z"},toMoveInsideSlice:te,makeUpdateSliceInterpolator:ne,makeUpdateTextInterpolator:ie,handleSlicesExit:ae,hasTransition:A,strTransform:oe}):w.remove()}},43566:function(e,t,r){"use strict";function n(e,t){return e.parent===t.parent?1:2}function i(e,t){return e+t.x}function a(e,t){return Math.max(e,t.y)}function o(){var e=n,t=1,r=1,o=!1;function s(n){var s,l=0;n.eachAfter((function(t){var r=t.children;r?(t.x=function(e){return e.reduce(i,0)/e.length}(r),t.y=function(e){return 1+e.reduce(a,0)}(r)):(t.x=s?l+=e(t,s):0,t.y=0,s=t)}));var c=function(e){for(var t;t=e.children;)e=t[0];return e}(n),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(n),h=c.x-e(c,u)/2,f=u.x+e(u,c)/2;return n.eachAfter(o?function(e){e.x=(e.x-n.x)*t,e.y=(n.y-e.y)*r}:function(e){e.x=(e.x-h)/(f-h)*t,e.y=(1-(n.y?e.y/n.y:1))*r})}return s.separation=function(t){return arguments.length?(e=t,s):e},s.size=function(e){return arguments.length?(o=!1,t=+e[0],r=+e[1],s):o?null:[t,r]},s.nodeSize=function(e){return arguments.length?(o=!0,t=+e[0],r=+e[1],s):o?[t,r]:null},s}function s(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function l(e,t){var r,n,i,a,o,s=new f(e),l=+e.value&&(s.value=e.value),u=[s];for(null==t&&(t=c);r=u.pop();)if(l&&(r.value=+r.data.value),(i=t(r.data))&&(o=i.length))for(r.children=new Array(o),a=o-1;a>=0;--a)u.push(n=r.children[a]=new f(i[a])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(h)}function c(e){return e.children}function u(e){e.data=e.data.data}function h(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function f(e){this.data=e,this.depth=this.height=0,this.parent=null}r.r(t),r.d(t,{cluster:function(){return o},hierarchy:function(){return l},pack:function(){return D},packEnclose:function(){return p},packSiblings:function(){return S},partition:function(){return j},stratify:function(){return H},tree:function(){return J},treemap:function(){return re},treemapBinary:function(){return ne},treemapDice:function(){return F},treemapResquarify:function(){return ae},treemapSlice:function(){return Q},treemapSliceDice:function(){return ie},treemapSquarify:function(){return te}}),f.prototype=l.prototype={constructor:f,count:function(){return this.eachAfter(s)},each:function(e){var t,r,n,i,a=this,o=[a];do{for(t=o.reverse(),o=[];a=t.pop();)if(e(a),r=a.children)for(n=0,i=r.length;n=0;--r)i.push(t[r]);return this},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;e=r.pop(),t=n.pop();for(;e===t;)i=e,e=r.pop(),t=n.pop();return i}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return l(this).eachBefore(u)}};var d=Array.prototype.slice;function p(e){for(var t,r,n=0,i=(e=function(e){for(var t,r,n=e.length;n;)r=Math.random()*n--|0,t=e[n],e[n]=e[r],e[r]=t;return e}(d.call(e))).length,a=[];n0&&r*r>n*n+i*i}function y(e,t){for(var r=0;r(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=e.x-n*s-a*l,r.y=e.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=t.x+n*s-a*l,r.y=t.y+n*l+a*s)):(r.x=t.x+r.r,r.y=t.y)}function T(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function k(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function A(e){this._=e,this.next=null,this.previous=null}function M(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,s,l,c,u,h;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;w(r,t,n=e[2]),t=new A(t),r=new A(r),n=new A(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(s=3;s0)throw new Error("cycle");return a}return r.id=function(t){return arguments.length?(e=E(t),r):e},r.parentId=function(e){return arguments.length?(t=E(e),r):t},r}function G(e,t){return e.parent===t.parent?1:2}function W(e){var t=e.children;return t?t[0]:e.t}function Y(e){var t=e.children;return t?t[t.length-1]:e.t}function Z(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function X(e,t,r){return e.a.parent===t.parent?e.a:r}function K(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function J(){var e=G,t=1,r=1,n=null;function i(i){var l=function(e){for(var t,r,n,i,a,o=new K(e,0),s=[o];t=s.pop();)if(n=t._.children)for(t.children=new Array(a=n.length),i=a-1;i>=0;--i)s.push(r=t.children[i]=new K(n[i],i)),r.parent=t;return(o.parent=new K(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,h=i;i.eachBefore((function(e){e.xu.x&&(u=e),e.depth>h.depth&&(h=e)}));var f=c===u?1:e(c,u)/2,d=f-c.x,p=t/(u.x+f+d),g=r/(h.depth||1);i.eachBefore((function(e){e.x=(e.x+d)*p,e.y=e.depth*g}))}return i}function a(t){var r=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(r){!function(e){for(var t,r=0,n=0,i=e.children,a=i.length;--a>=0;)(t=i[a]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(t);var a=(r[0].z+r[r.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,r,n){if(r){for(var i,a=t,o=t,s=r,l=a.parent.children[0],c=a.m,u=o.m,h=s.m,f=l.m;s=Y(s),a=W(a),s&&a;)l=W(l),(o=Y(o)).a=t,(i=s.z+h-a.z-c+e(s._,a._))>0&&(Z(X(s,t,n),t,i),c+=i,u+=i),h+=s.m,c+=a.m,f+=l.m,u+=o.m;s&&!Y(o)&&(o.t=s,o.m+=h-u),a&&!W(l)&&(l.t=a,l.m+=c-f,n=t)}return n}(t,i,t.parent.A||n[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*r}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(n=!1,t=+e[0],r=+e[1],i):n?null:[t,r]},i.nodeSize=function(e){return arguments.length?(n=!0,t=+e[0],r=+e[1],i):n?[t,r]:null},i}function Q(e,t,r,n,i){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(i-r)/e.value;++sf&&(f=s),m=u*u*g,(d=Math.max(f/m,m/h))>p){u-=s;break}p=d}v.push(o={value:u,dice:l1?t:1)},r}($);function re(){var e=te,t=!1,r=1,n=1,i=[0],a=L,o=L,s=L,l=L,c=L;function u(e){return e.x0=e.y0=0,e.x1=r,e.y1=n,e.eachBefore(h),i=[0],t&&e.eachBefore(R),e}function h(t){var r=i[t.depth],n=t.x0+r,u=t.y0+r,h=t.x1-r,f=t.y1-r;h=r-1){var u=s[t];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var h=c[t],f=n/2+h,d=t+1,p=r-1;for(;d>>1;c[g]l-a){var y=(i*v+o*m)/n;e(t,d,m,i,a,y,l),e(d,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;e(t,d,m,i,a,o,x),e(d,r,v,i,x,o,l)}}(0,l,e.value,t,r,n,i)}function ie(e,t,r,n,i){(1&e.depth?Q:F)(e,t,r,n,i)}var ae=function e(t){function r(e,r,n,i,a){if((o=e._squarify)&&o.ratio===t)for(var o,s,l,c,u,h=-1,f=o.length,d=e.value;++h1?t:1)},r}($)},43592:function(e,t,r){"use strict";var n=r(72601),i=Math.abs,a=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?n(e)*a(i(e)):e}},43659:function(e,t,r){"use strict";var n=r(91174).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,a){if("function"===typeof r)return e(t,null,r);r||(r={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i4))}},43863:function(e,t){"use strict";function r(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=r,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var n=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;e[t]=n<>>8&255]<<16|n[e>>>16&255]<<8|n[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,r){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},43995:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=i.strTranslate,o=r(6412),s=r(60482).LINE_SPACING;function l(e,t){return e.node().getBoundingClientRect()[t]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,r,m){var S=e.text(),E=!e.attr("data-notex")&&"undefined"!==typeof MathJax&&S.match(c),I=n.select(e.node().parentNode);if(!I.empty()){var D=e.attr("class")?e.attr("class").split(" ")[0]:"text";return D+="-math",I.selectAll("svg."+D).remove(),I.selectAll("g."+D+"-group").remove(),e.style("display",null).attr({"data-unformatted":S,"data-math":"N"}),E?(r&&r._promises||[]).push(new Promise((function(t){e.style("display","none");var r=parseInt(e.node().style.fontSize,10),o={fontSize:r};!function(e,t,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if("SVG"!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),(function(){var r="math-output-"+i.randstr({},64);return l=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(u,"\\lt ").replace(h,"\\gt ")),MathJax.Hub.Typeset(l.node())}),(function(){var t=n.select("body").select("#MathJax_SVG_glyphs");if(l.select(".MathJax_SVG").empty()||!l.select("svg").node())i.log("There was an error in the tex syntax.",e),r();else{var o=l.select("svg").node().getBoundingClientRect();r(l.select(".MathJax_SVG"),t,o)}if(l.remove(),"SVG"!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&&(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(E[2],o,(function(n,i,o){I.selectAll("svg."+D).remove(),I.selectAll("g."+D+"-group").remove();var s=n&&n.select("svg");if(!s||!s.node())return P(),void t();var c=I.append("g").classed(D+"-group",!0).attr({"pointer-events":"none","data-unformatted":S,"data-math":"Y"});c.node().appendChild(s.node()),i&&i.node()&&s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:D,height:o.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.node().style.fill||"black",h=s.select("g");h.attr({fill:u,stroke:u});var f=l(h,"width"),d=l(h,"height"),p=+e.attr("x")-f*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],g=-(r||l(e,"height"))/4;"y"===D[0]?(c.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+")"+a(-f/2,g-d/2)}),s.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===D[0]?s.attr({x:e.attr("x"),y:g-d/2}):"a"===D[0]&&0!==D.indexOf("atitle")?s.attr({x:0,y:g}):s.attr({x:p,y:+e.attr("y")+g-d/2}),m&&m.call(e,c),t(c)}))}))):P(),e}function P(){I.empty()||(D=e.attr("class")+"-math",I.select("svg."+D).remove()),e.text("").style("white-space","pre");var r=function(e,t){t=t.replace(v," ");var r,a=!1,l=[],c=-1;function u(){c++;var t=document.createElementNS(o.svg,"tspan");n.select(t).attr({class:"line",dy:c*s+"em"}),e.appendChild(t),r=t;var i=l;if(l=[{node:t}],i.length>1)for(var a=1;a doesnt match end tag <"+e+">. Pretending it did match.",t),r=l[l.length-1].node}else i.log("Ignoring unexpected end tag .",t)}var E=b.test(t);E?u():(r=e,l=[{node:e}]);for(var I=t.split(y),D=0;D|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},d={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},g="\u200b",m=["http:","https:","mailto:","",void 0,":"],v=t.NEWLINES=/(\r\n?|\n)/g,y=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=//i;t.BR_TAG_ALL=//gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,T=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,k=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function A(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&L(n)}var M=/(^|;)\s*color:/;t.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,n=void 0!==t.allowedTags?t.allowedTags:["br"],i=e.split(y),a=[],o="",s=0,l=0;l3?a.push(c.substr(0,d-3)+"..."):a.push(c.substr(0,d));break}o=""}}return a.join("")};var S={mu:"\u03bc",amp:"&",lt:"<",gt:">",nbsp:"\xa0",times:"\xd7",plusmn:"\xb1",deg:"\xb0"},E=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L(e){return e.replace(E,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):S[t])||e}))}function C(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var i=r.protocol,a=n.protocol;return-1!==m.indexOf(i)&&-1!==m.indexOf(a)?t:""}function I(e,t,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return a="bottom"===l?function(){return c.bottom-n.height}:"middle"===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===s?function(){return c.right-n.width}:"center"===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-u.left,t=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(e,t);e=l[0],t=l[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}t.convertEntities=L,t.sanitizeHTML=function(e){e=e.replace(v," ");for(var t=document.createElement("p"),r=t,i=[],a=e.split(y),o=0;o0){r=Math.round(Math.pow(10,t));return Math.ceil(e/r)*r}return Math.ceil(e)}function v(e){return"boolean"!==typeof e||e}e.exports={createScene:function(e){(e=e||{}).camera=e.camera||{};var t=e.canvas;if(!t){if(t=document.createElement("canvas"),e.container)e.container.appendChild(t);else document.body.appendChild(t)}var r=e.gl;r||(e.glOptions&&(p=!!e.glOptions.preserveDrawingBuffer),r=function(e,t){var r=null;try{(r=e.getContext("webgl",t))||(r=e.getContext("experimental-webgl",t))}catch(n){return null}return r}(t,e.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:p}));if(!r)throw new Error("webgl not supported");var y=e.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!p}),_=d(r),w=e.cameraObject&&!0===e.cameraObject._ortho||e.camera.projection&&"orthographic"===e.camera.projection.type||!1,T={eye:e.camera.eye||[2,0,0],center:e.camera.center||[0,0,0],up:e.camera.up||[0,1,0],zoomMin:e.camera.zoomMax||.1,zoomMax:e.camera.zoomMin||100,mode:e.camera.mode||"turntable",_ortho:w},k=e.axes||{},A=i(r,k);A.enable=!k.disable;var M=e.spikes||{},S=o(r,M),E=[],L=[],C=[],I=[],D=!0,P=!0,O=new Array(16),z=new Array(16),R={view:null,projection:O,model:z,_ortho:!1},F=(P=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),j=e.cameraObject||n(t,T),N={gl:r,contextLost:!1,pixelRatio:e.pixelRatio||1,canvas:t,selection:x,camera:j,axes:A,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:e.aspectRatio||[1,1,1],pickRadius:e.pickRadius||10,zNear:e.zNear||.01,zFar:e.zFar||1e3,fovy:e.fovy||Math.PI/4,clearColor:e.clearColor||[0,0,0,0],autoResize:v(e.autoResize),autoBounds:v(e.autoBounds),autoScale:!!e.autoScale,autoCenter:v(e.autoCenter),clipToBounds:v(e.clipToBounds),snapToData:!!e.snapToData,onselect:e.onselect||null,onrender:e.onrender||null,onclick:e.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(e){this.aspect[0]=e.x,this.aspect[1]=e.y,this.aspect[2]=e.z,P=!0},setBounds:function(e,t){this.bounds[0][e]=t.min,this.bounds[1][e]=t.max},setClearColor:function(e){this.clearColor=e},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},B=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&&N.autoResize){var e=t.parentNode,r=1,n=1;e&&e!==document.body?(r=e.clientWidth,n=e.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==t.width||a!==t.height){t.width=i,t.height=a;var o=t.style;o.position=o.position||"absolute",o.left="0px",o.top="0px",o.width=r+"px",o.height=n+"px",D=!0}}}N.autoResize&&U();function V(){for(var e=E.length,t=I.length,n=0;n0&&0===C[t-1];)C.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&&(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&&N.oncontextloss())}window.addEventListener("resize",U),N.update=function(e){N._stopped||(e=e||{},D=!0,P=!0)},N.add=function(e){N._stopped||(e.axes=A,E.push(e),L.push(-1),D=!0,P=!0,V())},N.remove=function(e){if(!N._stopped){var t=E.indexOf(e);t<0||(E.splice(t,1),L.pop(),D=!0,P=!0,V())}},N.dispose=function(){if(!N._stopped&&(N._stopped=!0,window.removeEventListener("resize",U),t.removeEventListener("webglcontextlost",q),N.mouseListener.enabled=!1,!N.contextLost)){A.dispose(),S.dispose();for(var e=0;ex.distance)continue;for(var c=0;c0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)>0)){var u,h=Math.floor((t-o.x0)/s.dx),f=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[f][h]:s._hasSource&&(u=s._canvas.el.getContext("2d").getImageData(h,f,1,1).data),u){var d,p=o.hi||s.hoverinfo;if(p){var g=p.split("+");-1!==g.indexOf("all")&&(g=["color"]),-1!==g.indexOf("color")&&(d=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||d)&&(w.push("["+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(", ")),4===x&&w.push(", "+b[3]+_[3]),w.push("]"),w=w.join(""),e.extraText=y.toUpperCase()+": "+w),Array.isArray(s.hovertext)&&Array.isArray(s.hovertext[f])?m=s.hovertext[f][h]:Array.isArray(s.text)&&Array.isArray(s.text[f])&&(m=s.text[f][h]);var T=c.c2p(o.y0+(f+.5)*s.dy),k=o.x0+(h+.5)*s.dx,A=o.y0+(f+.5)*s.dy,M="["+u.slice(0,s.colormodel.length).join(", ")+"]";return[i.extendFlat(e,{index:[f,h],x0:l.c2p(o.x0+h*s.dx),x1:l.c2p(o.x0+(h+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:A,yLabelVal:A,zLabelVal:M,text:m,hovertemplateLabels:{zLabel:M,colorLabel:w,"color[0]Label":b[0]+_[0],"color[1]Label":b[1]+_[1],"color[2]Label":b[2]+_[2],"color[3]Label":b[3]+_[3]}})]}}}},44906:function(e){"use strict";var t={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,r,n){var i,a,o,s,l,c={},u=!1,h=-1,f=0,d=-1;for(a=0;a=0?l=d:(l=d=f,f++),l=0&&e[n][1]>=t;--n){var i=r(e[n]);if(i)return i}}function f(e,t){for(var r=0;r>1],a=[],o=[],s=[];for(r=0;r3*(t+1)?l(this,e):this.left.insert(e):this.left=m([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?l(this,e):this.right.insert(e):this.right=m([e]);else{var r=n.ge(this.leftPoints,e,p),i=n.ge(this.rightPoints,e,g);this.leftPoints.splice(r,0,e),this.rightPoints.splice(i,0,e)}},a.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?c(this,e):2===(s=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?c(this,e):2===(s=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,e,p);athis.mid){var r;if(this.right)if(r=this.right.queryPoint(e,t))return r;return h(this.rightPoints,e,t)}return f(this.leftPoints,t)},a.queryInterval=function(e,t,r){var n;if(ethis.mid&&this.right&&(n=this.right.queryInterval(e,t,r)))return n;return tthis.mid?h(this.rightPoints,e,r):f(this.leftPoints,r)};var y=v.prototype;y.insert=function(e){this.root?this.root.insert(e):this.root=new i(e[0],null,null,[e],[e])},y.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},y.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},y.queryInterval=function(e,t,r){if(e<=t&&this.root)return this.root.queryInterval(e,t,r)},Object.defineProperty(y,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},44988:function(e){e.exports=function(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,c=a+a,u=n*s,h=n*l,f=n*c,d=i*l,p=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return e[0]=1-(d+g),e[1]=h+y,e[2]=f-v,e[3]=0,e[4]=h-y,e[5]=1-(u+g),e[6]=p+m,e[7]=0,e[8]=f+v,e[9]=p-m,e[10]=1-(u+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}},45036:function(e,t,r){"use strict";var n=r(62258),i=r(31454),a=r(47401),o=r(77846).resizeText;function s(e,t,r){var n=t.data.data,o=!t.children,s=n.i,l=a.castOption(r,s,"marker.line.color")||i.defaultLine,c=a.castOption(r,s,"marker.line.width")||0;e.style("stroke-width",c).call(i.fill,n.color).call(i.stroke,l).style("opacity",o?r.leaf.opacity:null)}e.exports={style:function(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");o(e,t,"sunburst"),t.each((function(e){var t=n.select(this),r=e[0].trace;t.style("opacity",r.opacity),t.selectAll("path.surface").each((function(e){n.select(this).call(s,e,r)}))}))},styleOne:s}},45170:function(e,t,r){"use strict";var n=r(47401),i=r(35722),a=r(16545),o=r(12788).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(e,t,r,i,a,o){o=o||[];for(var h=Object.keys(e),f=0;fx.length&&i.push(d("unused",a,v.concat(x.length)));var A,M,S,E,L,C=x.length,I=Array.isArray(k);if(I&&(C=Math.min(C,k.length)),2===b.dimensions)for(M=0;Mx[M].length&&i.push(d("unused",a,v.concat(M,x[M].length)));var D=x[M].length;for(A=0;A<(I?Math.min(D,k[M].length):D);A++)S=I?k[M][A]:k,E=y[M][A],L=x[M][A],n.validate(E,S)?L!==E&&L!==+E&&i.push(d("dynamic",a,v.concat(M,A),E,L)):i.push(d("value",a,v.concat(M,A),E))}else i.push(d("array",a,v.concat(M),y[M]));else for(M=0;M1&&f.push(d("object","layout"))),i.supplyDefaults(p);for(var g=p._fullData,m=r.length,v=0;v>",rrshift:">>>"};!function(){for(var e in s){var r=s[e];t[e]=o({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+r+"c"},funcName:e}),t[e+"eq"]=o({args:["array","array"],body:{args:["a","b"],body:"a"+r+"=b"},rvalue:!0,funcName:e+"eq"}),t[e+"s"]=o({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+r+"s"},funcName:e+"s"}),t[e+"seq"]=o({args:["array","scalar"],body:{args:["a","s"],body:"a"+r+"=s"},rvalue:!0,funcName:e+"seq"})}}();var l={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in l){var r=l[e];t[e]=o({args:["array","array"],body:{args:["a","b"],body:"a="+r+"b"},funcName:e}),t[e+"eq"]=o({args:["array"],body:{args:["a"],body:"a="+r+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var c={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in c){var r=c[e];t[e]=o({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+r+"c"},funcName:e}),t[e+"s"]=o({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+r+"s"},funcName:e+"s"}),t[e+"eq"]=o({args:["array","array"],body:{args:["a","b"],body:"a=a"+r+"b"},rvalue:!0,count:2,funcName:e+"eq"}),t[e+"seq"]=o({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+r+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var u=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;ethis_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),t.norm1=n({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),t.sup=n({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),t.inf=n({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),t.random=o({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),t.assign=o({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),t.assigns=o({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),t.equals=n({args:["array","array"],pre:i,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},45396:function(e,t,r){"use strict";var n=r(62258),i=r(91771),a=r(62282),o=r(47401),s=r(47624).makeColorScaleFuncFromTrace,l=r(6412);function c(e,t){var r=t.length-2,n=o.constrain(o.findBin(e,t),0,r),i=t[n],a=t[n+1],s=o.constrain(n+(e-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&&s!==r&&c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(e,t){var r=t.length-1,n=o.constrain(o.findBin(e,t),0,r),i=t[n],a=(e-i)/(t[n+1]-i)||0;return a<=0?{bin0:n,bin1:n,frac:0}:a<.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function h(e,t,r){e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=Math.round(255*r[3])}e.exports=function(e,t,r,f){var d=t.xaxis,p=t.yaxis;o.makeTraceGroups(f,r,"hm").each((function(t){var r,f,g,m,v,y,x=n.select(this),b=t[0],_=b.trace,w=b.z,T=b.x,k=b.y,A=b.xCenter,M=b.yCenter,S=a.traceIs(_,"contour"),E=S?"best":_.zsmooth,L=w.length,C=o.maxRowLength(w),I=!1,D=!1;for(y=0;void 0===r&&y0;)f=d.c2p(T[y]),y--;for(f0;)v=p.c2p(k[y]),y--;if(vs*l){var d=(f-h)/s;o[u]=1e3*d}}return o}function i(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i=0;t--)r=a[t],s.removeLayer(this.layerIds[r]);for(t=0;t=0;t--){var r=a[t];e.removeLayer(this.layerIds[r]),e.removeSource(this.sourceIds[r])}},e.exports=function(e,t){for(var r=t[0].trace,i=new o(e,r.uid),s=n(e.gd,t),l=i.below=e.belowLookup["trace-"+r.uid],c=0;c0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(o(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}(t,s,l);if(!c)return;if("histogram"===c.type&&l==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=l+"calendar",h=c[u],f={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&l==={h:"x",v:"y"}[c.orientation||"v"]&&(f.noMultiCategory=!0);if(f.autotypenumbers=e.autotypenumbers,o(c,l)){var d=a(c),p=[];for(r=0;r=t[l]&&(s+=1);a[o]=s}}return e}(n(a,!0),r)}};var n=r(33009),i=r(69195)},45830:function(e,t,r){"use strict";var n,i=r(99368),a=r(61228),o=r(1042),s=r(54928),l=r(96183),c=r(99449),u=r(54420),h=r(38421),f=r(18518).toStringTag,d=r(46040),p=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var e,t=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return e=d&&a&&WeakMap!==n?a(new WeakMap,v(this)):this,i(t)&&(p(t)||(t=u(t))),g(e,"__weakMapData__",c("c","$weakMap$"+l())),t?(h(t,(function(t){s(t),e.set(t[0],t[1])})),e):e},d&&(a&&a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(e){return!!m.call(o(e),this.__weakMapData__)&&(delete e[this.__weakMapData__],!0)})),get:c((function(e){if(m.call(o(e),this.__weakMapData__))return e[this.__weakMapData__]})),has:c((function(e){return m.call(o(e),this.__weakMapData__)})),set:c((function(e,t){return g(o(e),this.__weakMapData__,c("c",t)),this})),toString:c((function(){return"[object WeakMap]"}))}),g(n.prototype,f,c("c","WeakMap"))},45854:function(e,t,r){"use strict";e.exports=function(e,t){"object"===typeof t&&null!==t||(t={});return n(e,t.canvas||i,t.context||a,t)};var n=r(5439),i=null,a=null;"undefined"!==typeof document&&((i=document.createElement("canvas")).width=8192,i.height=1024,a=i.getContext("2d"))},45886:function(e,t,r){"use strict";var n=r(62258),i=r(35722),a=r(31454),o=r(41707),s=r(47401),l=r(43995),c=r(92704).arrayEditor,u=r(60482).LINE_SPACING,h=r(50775),f=r(73560);function d(e){return e._index}function p(e,t){return+e.attr(h.menuIndexAttrName)===t._index}function g(e,t,r,n,i,a,o,s){t.active=o,c(e.layout,h.name,t).applyUpdate("active",o),"buttons"===t.type?v(e,n,null,null,t):"dropdown"===t.type&&(i.attr(h.menuIndexAttrName,"-1"),m(e,n,i,a,t),s||v(e,n,i,a,t))}function m(e,t,r,n,i){var a=s.ensureSingle(t,"g",h.headerClassName,(function(e){e.style("pointer-events","all")})),l=i._dims,c=i.active,u=i.buttons[c]||h.blankHeaderOpts,f={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},d={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,e).call(M,i,f,d),s.ensureSingle(t,"text",h.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,i.font).text(h.arrowSymbol[i.direction])})).attr({x:l.headerWidth-h.arrowOffsetX+i.pad.l,y:l.headerHeight/2+h.textOffsetY+i.pad.t}),a.on("click",(function(){r.call(S,String(p(r,i)?-1:i._index)),v(e,t,r,n,i)})),a.on("mouseover",(function(){a.call(w)})),a.on("mouseout",(function(){a.call(T,i)})),o.setTranslate(t,l.lx,l.ly)}function v(e,t,r,a,o){r||(r=t).attr("pointer-events","all");var l=function(e){return-1===+e.attr(h.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?h.dropdownButtonClassName:h.buttonClassName,u=r.selectAll("g."+c).data(s.filterVisible(l)),f=u.enter().append("g").classed(c,!0),d=u.exit();"dropdown"===o.type?(f.attr("opacity","0").transition().attr("opacity","1"),d.transition().attr("opacity","0").remove()):d.remove();var p=0,m=0,v=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?m=v.headerHeight+h.gapButtonHeader:p=v.headerWidth+h.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(m=-h.gapButtonHeader+h.gapButton-v.openHeight),"dropdown"===o.type&&"left"===o.direction&&(p=-h.gapButtonHeader+h.gapButton-v.openWidth);var b={x:v.lx+p+o.pad.l,y:v.ly+m+o.pad.t,yPad:h.gapButton,xPad:h.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,e).call(M,o,b),c.on("click",(function(){n.event.defaultPrevented||(s.execute&&(s.args2&&o.active===l?(g(e,o,0,t,r,a,-1),i.executeAPICommand(e,s.method,s.args2)):(g(e,o,0,t,r,a,l),i.executeAPICommand(e,s.method,s.args))),e.emit("plotly_buttonclicked",{menu:o,button:s,active:o.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&&(u.size()?function(e,t,r,n,i,a){var o,s,l,c=i.direction,u="up"===c||"down"===c,f=i._dims,d=i.active;if(u)for(s=0,l=0;l0?[0]:[]);if(o.enter().append("g").classed(h.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+h.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll("g."+h.headerGroupClassName).data(r,d);l.enter().append("g").classed(h.headerGroupClassName,!0);for(var c=s.ensureSingle(o,"g",h.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;u1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],e=null,r}}}},46198:function(e,t,r){"use strict";e.exports=function(e,t,r,a,s,l){var u=n(e),h=i(e,[{buffer:u,size:3}]),f=o(e);f.attributes.position.location=0;var d=new c(e,f,u,h);return d.update(t,r,a,s,l),d};var n=r(99795),i=r(66405),a=r(45854),o=r(11236).Q,s=window||process.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(e,t,r,n){this.gl=e,this.shader=t,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,h=[0,0];u.bind=function(e,t,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=e,i.view=t,i.projection=r,i.pixelScale=n,h[0]=this.gl.drawingBufferWidth,h[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=h},u.unbind=function(){this.vao.unbind()},u.update=function(e,t,r,n,i){var o=[];function s(e,t,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[t];u||(u=c[t]=function(e,t){try{return a(e,t)}catch(r){return console.warn('error vectorizing text:"'+e+'" error:',r),{cells:[],positions:[]}}}(t,{triangles:!0,font:r,textAlign:"center",textBaseline:"middle",lineSpacing:i,styletags:s}));for(var h=(n||12)/12,f=u.positions,d=u.cells,p=0,g=d.length;p=0;--v){var y=f[m[v]];o.push(h*y[0],-h*y[1],e)}}for(var c=[0,0,0],u=[0,0,0],h=[0,0,0],f=[0,0,0],d={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},p=0;p<3;++p){h[p]=o.length/3|0,s(.5*(e[0][p]+e[1][p]),t[p],r[p],12,1.25,d),f[p]=(o.length/3|0)-h[p],c[p]=o.length/3|0;for(var g=0;g>1,s=a(e[o],t);s<=0?(0===s&&(i=o),r=o+1):s>0&&(n=o-1)}return i}function u(e,t){for(var r=new Array(e.length),i=0,o=r.length;i=e.length||0!==a(e[m],s)););}return r}function h(e,t){if(t<0)return[];for(var r=[],i=(1<0){t+=Math.abs(o(e[0]));for(var r=1;r2){for(l=0;l0&&(h+=.02);var d=new Float32Array(u),p=0,g=-.5*h;for(f=0;fT?u.push({code:"unused",traceType:y,templateCount:w,dataCount:T}):T>w&&u.push({code:"reused",traceType:y,templateCount:w,dataCount:T})}}else u.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var a=t[n],o=g(t,n,r);i(a)?(Array.isArray(t)&&!1===a._template&&a.templateitemname&&u.push({code:"missing",path:o,templateitemname:a.templateitemname}),e(a,o)):Array.isArray(a)&&m(a)&&e(a,o)}}({data:d,layout:f},""),u.length)return u.map(v)}},47216:function(e,t,r){"use strict";var n=r(20184).axisHoverFormat,i=r(4216).a,a=r(4216).r,o=r(97451),s=r(5153),l=r(34418).T,c=r(41707),u=r(20580),h=r(87241).extendFlat;function f(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M* on the "+e+" axis.","Special values in the form of *M* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function d(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function p(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:f("x"),yperiod:f("y"),xperiod0:d("x0"),yperiod0:d("y0"),xperiodalignment:p("x"),yperiodalignment:p("y"),xhoverformat:n("x"),yhoverformat:n("y"),stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:i({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+u.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:a({},{keys:u.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:h({},l,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},marker:h({symbol:{valType:"enumerated",values:c.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:h({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},o("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},o("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:s({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})}},47263:function(e,t,r){"use strict";var n=r(47401);e.exports=function(e,t,r){var i,a,o,s=[],l=[],c=e[0].length,u=e.length;function h(t,r){var n,i=0,a=0;return t>0&&void 0!==(n=e[r][t-1])&&(a++,i+=n),t0&&void 0!==(n=e[r-1][t])&&(a++,i+=n),r0&&a0&&i1e-5);return n.log("Smoother converged to",k,"after",A,"iterations"),e}},47401:function(e,t,r){"use strict";var n=r(62258),i=r(47001).aL,a=r(63539).GP,o=r(83491),s=r(9405),l=s.FP_SAFE,c=-l,u=s.BADNUM,h=e.exports={};h.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var f={};h.warnBadFormat=function(e){var t=String(e);f[t]||(f[t]=1,h.warn('encountered bad format: "'+t+'"'))},h.noFormat=function(e){return String(e)},h.numberFormat=function(e){var t;try{t=a(h.adjustFormat(e))}catch(r){return h.warnBadFormat(e),h.noFormat}return t},h.nestedProperty=r(62368),h.keyedContainer=r(42343),h.relativeAttr=r(50383),h.isPlainObject=r(70161),h.toLogRange=r(1379),h.relinkPrivateKeys=r(4476);var d=r(20168);h.isTypedArray=d.isTypedArray,h.isArrayOrTypedArray=d.isArrayOrTypedArray,h.isArray1D=d.isArray1D,h.ensureArray=d.ensureArray,h.concat=d.concat,h.maxRowLength=d.maxRowLength,h.minRowLength=d.minRowLength;var p=r(59833);h.mod=p.mod,h.modHalf=p.modHalf;var g=r(79452);h.valObjectMeta=g.valObjectMeta,h.coerce=g.coerce,h.coerce2=g.coerce2,h.coerceFont=g.coerceFont,h.coercePattern=g.coercePattern,h.coerceHoverinfo=g.coerceHoverinfo,h.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,h.validate=g.validate;var m=r(18660);h.dateTime2ms=m.dateTime2ms,h.isDateTime=m.isDateTime,h.ms2DateTime=m.ms2DateTime,h.ms2DateTimeLocal=m.ms2DateTimeLocal,h.cleanDate=m.cleanDate,h.isJSDate=m.isJSDate,h.formatDate=m.formatDate,h.incrementMonth=m.incrementMonth,h.dateTick0=m.dateTick0,h.dfltRange=m.dfltRange,h.findExactDates=m.findExactDates,h.MIN_MS=m.MIN_MS,h.MAX_MS=m.MAX_MS;var v=r(84525);h.findBin=v.findBin,h.sorterAsc=v.sorterAsc,h.sorterDes=v.sorterDes,h.distinctVals=v.distinctVals,h.roundUp=v.roundUp,h.sort=v.sort,h.findIndexOfMin=v.findIndexOfMin,h.sortObjectKeys=r(73314);var y=r(61658);h.aggNums=y.aggNums,h.len=y.len,h.mean=y.mean,h.median=y.median,h.midRange=y.midRange,h.variance=y.variance,h.stdev=y.stdev,h.interp=y.interp;var x=r(11604);h.init2dArray=x.init2dArray,h.transposeRagged=x.transposeRagged,h.dot=x.dot,h.translationMatrix=x.translationMatrix,h.rotationMatrix=x.rotationMatrix,h.rotationXYMatrix=x.rotationXYMatrix,h.apply3DTransform=x.apply3DTransform,h.apply2DTransform=x.apply2DTransform,h.apply2DTransform2=x.apply2DTransform2,h.convertCssMatrix=x.convertCssMatrix,h.inverseTransformMatrix=x.inverseTransformMatrix;var b=r(86505);h.deg2rad=b.deg2rad,h.rad2deg=b.rad2deg,h.angleDelta=b.angleDelta,h.angleDist=b.angleDist,h.isFullCircle=b.isFullCircle,h.isAngleInsideSector=b.isAngleInsideSector,h.isPtInsideSector=b.isPtInsideSector,h.pathArc=b.pathArc,h.pathSector=b.pathSector,h.pathAnnulus=b.pathAnnulus;var _=r(51282);h.isLeftAnchor=_.isLeftAnchor,h.isCenterAnchor=_.isCenterAnchor,h.isRightAnchor=_.isRightAnchor,h.isTopAnchor=_.isTopAnchor,h.isMiddleAnchor=_.isMiddleAnchor,h.isBottomAnchor=_.isBottomAnchor;var w=r(93639);h.segmentsIntersect=w.segmentsIntersect,h.segmentDistance=w.segmentDistance,h.getTextLocation=w.getTextLocation,h.clearLocationCache=w.clearLocationCache,h.getVisibleSegment=w.getVisibleSegment,h.findPointOnPath=w.findPointOnPath;var T=r(87241);h.extendFlat=T.extendFlat,h.extendDeep=T.extendDeep,h.extendDeepAll=T.extendDeepAll,h.extendDeepNoArrays=T.extendDeepNoArrays;var k=r(71212);h.log=k.log,h.warn=k.warn,h.error=k.error;var A=r(44790);h.counterRegex=A.counter;var M=r(57257);h.throttle=M.throttle,h.throttleDone=M.done,h.clearThrottle=M.clear;var S=r(38705);function E(e){var t={};for(var r in e)for(var n=e[r],i=0;il||e=t)&&(o(e)&&e>=0&&e%1===0)},h.noop=r(98265),h.identity=r(3847),h.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},h.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},h.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(h.warn("randstr failed uniqueness"),l):e(t,r,n,(i||0)+1):l},h.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)}};return r["_"+t]=e,r},h.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,n,i,a,o=e.length,s=2*o,l=2*t-1,c=new Array(l),u=new Array(o);for(r=0;r=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=e[i]*c[n];u[r]=a}return u},h.syncOrAsync=function(e,t,r){var n;function i(){return h.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(i);return r&&r(t)},h.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},h.noneOrAll=function(e,t,r){if(e){var n,i,a=!1,o=!0;for(n=0;n0?t:0}))},h.fillArray=function(e,t,r,n){if(n=n||h.identity,h.isArrayOrTypedArray(e))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l},h.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var O=/^\w*$/;h.templateString=function(e,t){var r={};return e.replace(h.TEMPLATE_STRING_REGEX,(function(e,n){var i;return O.test(n)?i=t[n]:(r[n]=r[n]||h.nestedProperty(t,n).get,i=r[n]()),h.isValidTextValue(i)?i:""}))};var z={max:10,count:0,name:"hovertemplate"};h.hovertemplateString=function(){return j.apply(z,arguments)};var R={max:10,count:0,name:"texttemplate"};h.texttemplateString=function(){return j.apply(R,arguments)};var F=/^[:|\|]/;function j(e,t,r){var n=this,a=arguments;t||(t={});var o={};return e.replace(h.TEMPLATE_STRING_REGEX,(function(e,s,l){var c,u,f,d="_xother"===s||"_yother"===s,p="_xother_"===s||"_yother_"===s,g="xother_"===s||"yother_"===s,m="xother"===s||"yother"===s||d||g||p,v=s;if((d||p)&&(v=v.substring(1)),(g||p)&&(v=v.substring(0,v.length-1)),m){if(void 0===(c=t[v]))return""}else for(f=3;f=48&&o<=57,c=s>=48&&s<=57;if(l&&(n=10*n+o-48),c&&(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var N=2e9;h.seedPseudoRandom=function(){N=2e9},h.pseudoRandom=function(){var e=N;return N=(69069*N+1)%4294967296,Math.abs(N-e)<429496729?h.pseudoRandom():N/4294967296},h.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},i=h.extractOption(e,t,"htx","hovertext");if(h.isValidTextValue(i))return n(i);var a=h.extractOption(e,t,"tx","text");return h.isValidTextValue(a)?n(a):void 0},h.isValidTextValue=function(e){return e||0===e},h.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(c=1):c=0,h.strTranslate(i-c*(r+o),a-c*(n+s))+h.strScale(c)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")},h.ensureUniformFontSize=function(e,t){var r=h.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},h.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},h.bigFont=function(e){return Math.round(1.2*e)};var B=h.getFirefoxVersion(),U=null!==B&&B<86;h.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},47502:function(e,t,r){"use strict";e.exports=r(37085)},47624:function(e,t,r){"use strict";var n=r(39257),i=r(8757);e.exports={moduleType:"component",name:"colorscale",attributes:r(97451),layoutAttributes:r(88290),supplyLayoutDefaults:r(34165),handleDefaults:r(94060),crossTraceDefaults:r(32727),calc:r(92171),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},47638:function(e){e.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},47685:function(e,t,r){"use strict";var n=r(13531);e.exports=s;var i=o("in",document.body);function a(e,t){var r=n(getComputedStyle(e).getPropertyValue(t));return r[0]*s(r[1],e)}function o(e,t){var r=document.createElement("div");r.style.height="128"+e,t.appendChild(r);var n=a(r,"height")/128;return t.removeChild(r),n}function s(e,t){if(!e)return null;switch(t=t||document.body,e=(e+""||"px").trim().toLowerCase(),t!==window&&t!==document||(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return o(e,t);case"em":return a(t,"font-size");case"rem":return a(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return i;case"cm":return i/2.54;case"mm":return i/25.4;case"pt":return i/72;case"pc":return i/6;case"px":return 1}var r=n(e);if(!isNaN(r[0])&&r[1]){var l=s(r[1],t);return"number"===typeof l?r[0]*l:null}return null}},47752:function(e,t,r){"use strict";e.exports=function(e){for(var t=e.length,r=2*t,n=new Array(r),a=0;a0)if(t[0]!==o[1][0])r=e,e=e.right;else{if(l=c(e.right,t))return l;e=e.left}else{if(t[0]!==o[1][0])return e;var l;if(l=c(e.right,t))return l;e=e.left}}return r}function u(e,t,r,n){this.y=e,this.index=t,this.start=r,this.closed=n}function h(e,t,r,n){this.x=e,this.segment=t,this.create=r,this.index=n}s.prototype.castUp=function(e){var t=n.le(this.coordinates,e[0]);if(t<0)return-1;this.slabs[t];var r=c(this.slabs[t],e),i=-1;if(r&&(i=r.value),this.coordinates[t]===e[0]){var s=null;if(r&&(s=r.key),t>0){var u=c(this.slabs[t-1],e);u&&(s?o(u.key,s)>0&&(s=u.key,i=u.value):(i=u.value,s=u.key))}var h=this.horizontal[t];if(h.length>0){var f=n.ge(h,e[1],l);if(f=h.length)return i;d=h[f]}}if(d.start)if(s){var p=a(s[0],s[1],[e[0],d.y]);s[0][0]>s[1][0]&&(p=-p),p>0&&(i=d.index)}else i=d.index;else d.y!==e[1]&&(i=d.index)}}}return i}},47814:function(e,t,r){"use strict";var n=r(62683);function i(e,t,r,n,i,a,o){this.cells=e,this.neighbor=t,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function a(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]}e.exports=function(e,t,r){var n=function(e,t){for(var r=e.cells(),n=r.length,o=0;o0||l.length>0;){for(;s.length>0;){var d=s.pop();if(c[d]!==-o){c[d]=o;u[d];for(var p=0;p<3;++p){var g=f[3*d+p];g>=0&&0===c[g]&&(h[3*d+p]?l.push(g):(s.push(g),c[g]=o))}}}var m=l;l=s,s=m,l.length=0,o=-o}var v=function(e,t,r){for(var n=0,i=0;in?function(e){return e<=0}:function(e){return e>=0};e.c2g=function(r){var n=e.c2l(r)-t;return(s(n)?n:0)+o},e.g2c=function(r){return e.l2c(r+t-o)},e.g2p=function(e){return e*a},e.c2p=function(t){return e.g2p(e.c2g(t))}}}(e,t);break;case"angularaxis":!function(e,t){var r=e.type;if("linear"===r){var i=e.d2c,s=e.c2d;e.d2c=function(e,t){return function(e,t){return"degrees"===t?a(e):e}(i(e),t)},e.c2d=function(e,t){return s(function(e,t){return"degrees"===t?o(e):e}(e,t))}}e.makeCalcdata=function(t,i){var a,o,s=t[i],l=t._length,c=function(r){return e.d2c(r,t.thetaunit)};if(s){if(n.isTypedArray(s)&&"linear"===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o0&&Math.round(h)===h))return{vals:i};c=h}for(var f=t.calendar,d="start"===l,p="end"===l,g=e[r+"period0"],m=a(g,f)||0,v=[],y=[],x=[],b=i.length,_=0;_A;)k=o(k,-c,f);for(;k<=A;)k=o(k,c,f);T=o(k,-c,f)}else{for(k=m+(w=Math.round((A-m)/u))*u;k>A;)k-=u;for(;k<=A;)k+=u;T=k-u}v[_]=d?T:p?k:(T+k)/2,y[_]=T,x[_]=k}return{vals:v,starts:y,ends:x}}},48152:function(e,t,r){"use strict";var n=r(66905),i=r(47216).line,a=r(42837),o=r(20184).axisHoverFormat,s=r(4216).r,l=r(4216).a,c=r(21532),u=r(87241).extendFlat,h=r(31454);function f(e){return{marker:{color:u({},n.marker.color,{arrayOk:!1,editType:"style",description:"Sets the marker color of all "+e+" values."}),line:{color:u({},n.marker.line.color,{arrayOk:!1,editType:"style",description:"Sets the line color of all "+e+" values."}),width:u({},n.marker.line.width,{arrayOk:!1,editType:"style",description:"Sets the line width of all "+e+" values."}),editType:"style"},editType:"style"},editType:"style"}}e.exports={measure:{valType:"data_array",dflt:[],editType:"calc",description:["An array containing types of values.","By default the values are considered as 'relative'.","However; it is possible to use 'total' to compute the sums.","Also 'absolute' could be applied to reset the computed total","or to declare an initial value where needed."].join(" ")},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc",description:["Sets where the bar base is drawn (in position axis units)."].join(" ")},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),hovertext:n.hovertext,hovertemplate:s({},{keys:c.eventDataKeys}),hoverinfo:u({},a.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple waterfalls, totals","are computed separately (per trace)."].join(" ")},texttemplate:l({editType:"plot"},{keys:c.eventDataKeys.concat(["label"])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f("increasing"),decreasing:f("decreasing"),totals:f("intermediate sums and total"),connector:{line:{color:u({},i.color,{dflt:h.defaultLine}),width:u({},i.width,{editType:"plot"}),dash:i.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot",description:["Sets the shape of connector lines."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if connector lines are drawn. "].join(" ")},editType:"plot"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},48227:function(e,t,r){"use strict";var n=r(47401),i=r(62282),a=r(92704).arrayEditor;function o(e,t){var r,n,i,a,o,l,c,u=e._fullLayout.annotations,h=[],f=[],d=[],p=(t||[]).length;for(r=0;r0||r.explicitOff.length>0},onClick:function(e,t){var r,s,l=o(e,t),c=l.on,u=l.off.concat(l.explicitOff),h={},f=e._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r>>0;e.exports=function(e,t){if(isNaN(e)||isNaN(t))return NaN;if(e===t)return e;if(0===e)return t<0?-i:i;var r=n.hi(e),o=n.lo(e);t>e===e>0?o===a?(r+=1,o=0):o+=1:0===o?(o=a,r-=1):o-=1;return n.pack(o,r)}},48454:function(e,t,r){"use strict";var n=r(9772);t._doPlot=n._doPlot,t.newPlot=n.newPlot,t.restyle=n.restyle,t.relayout=n.relayout,t.redraw=n.redraw,t.update=n.update,t._guiRestyle=n._guiRestyle,t._guiRelayout=n._guiRelayout,t._guiUpdate=n._guiUpdate,t._storeDirectGUIEdit=n._storeDirectGUIEdit,t.react=n.react,t.extendTraces=n.extendTraces,t.prependTraces=n.prependTraces,t.addTraces=n.addTraces,t.deleteTraces=n.deleteTraces,t.moveTraces=n.moveTraces,t.purge=n.purge,t.addFrames=n.addFrames,t.deleteFrames=n.deleteFrames,t.animate=n.animate,t.setPlotConfig=n.setPlotConfig,t.toImage=r(58555),t.validate=r(45170),t.downloadImage=r(75172);var i=r(47213);t.makeTemplate=i.makeTemplate,t.validateTemplate=i.validateTemplate},48465:function(e,t,r){"use strict";e.exports=r(87946)},48474:function(e,t,r){"use strict";e.exports=function(e){var t=(e=e||{}).center||[0,0,0],r=e.rotation||[0,0,0,1],n=e.radius||1;t=[].slice.call(t,0,3),u(r=[].slice.call(r,0,4),r);var i=new h(r,t,Math.log(n));i.setDistanceLimits(e.zoomMin,e.zoomMax),("eye"in e||"up"in e)&&i.lookAt(0,e.eye,e.center,e.up);return i};var n=r(87646),i=r(88019),a=r(15838),o=r(51213),s=r(64842);function l(e,t,r){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(r,2))}function c(e,t,r,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(r,2)+Math.pow(n,2))}function u(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=c(r,n,i,a);o>1e-6?(e[0]=r/o,e[1]=n/o,e[2]=i/o,e[3]=a/o):(e[0]=e[1]=e[2]=0,e[3]=1)}function h(e,t,r){this.radius=n([r]),this.center=n(t),this.rotation=n(e),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var f=h.prototype;f.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},f.recalcMatrix=function(e){this.radius.curve(e),this.center.curve(e),this.rotation.curve(e);var t=this.computedRotation;u(t,t);var r=this.computedMatrix;a(r,t);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l<3;++l){for(var c=0,h=0;h<3;++h)c+=r[l+4*h]*i[h];r[12+l]=-c}},f.getMatrix=function(e,t){this.recalcMatrix(e);var r=this.computedMatrix;if(t){for(var n=0;n<16;++n)t[n]=r[n];return t}return r},f.idle=function(e){this.center.idle(e),this.radius.idle(e),this.rotation.idle(e)},f.flush=function(e){this.center.flush(e),this.radius.flush(e),this.rotation.flush(e)},f.pan=function(e,t,r,n){t=t||0,r=r||0,n=n||0,this.recalcMatrix(e);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],h=i[4],f=i[8],d=u*a+h*o+f*s,p=l(u-=a*d,h-=o*d,f-=s*d);u/=p,h/=p,f/=p;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*h+v*f,b=l(g-=y*a+x*u,m-=y*o+x*h,v-=y*s+x*f);g/=b,m/=b,v/=b;var _=u*t+a*r,w=h*t+o*r,T=f*t+s*r;this.center.move(e,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(e,Math.log(k))},f.rotate=function(e,t,r,n){this.recalcMatrix(e),t=t||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],h=i[5],f=i[9],d=i[2],p=i[6],g=i[10],m=t*a+r*u,v=t*o+r*h,y=t*s+r*f,x=-(p*y-g*v),b=-(g*m-d*y),_=-(d*v-p*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T>1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,A=k[0],M=k[1],S=k[2],E=k[3],L=A*w+E*x+M*_-S*b,C=M*w+E*b+S*x-A*_,I=S*w+E*_+A*b-M*x,D=E*w-A*x-M*b-S*_;if(n){x=d,b=p,_=g;var P=Math.sin(n)/l(x,b,_);x*=P,b*=P,_*=P,D=D*(w=Math.cos(t))-(L=L*w+D*x+C*_-I*b)*x-(C=C*w+D*b+I*x-L*_)*b-(I=I*w+D*_+L*b-C*x)*_}var O=c(L,C,I,D);O>1e-6?(L/=O,C/=O,I/=O,D/=O):(L=C=I=0,D=1),this.rotation.set(e,L,C,I,D)},f.lookAt=function(e,t,r,n){this.recalcMatrix(e),r=r||this.computedCenter,t=t||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,t,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(e,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(r[c]-t[c],2);this.radius.set(e,.5*Math.log(Math.max(l,1e-6))),this.center.set(e,r[0],r[1],r[2])},f.translate=function(e,t,r,n){this.center.move(e,t||0,r||0,n||0)},f.setMatrix=function(e,t){var r=this.computedRotation;s(r,t[0],t[1],t[2],t[4],t[5],t[6],t[8],t[9],t[10]),u(r,r),this.rotation.set(e,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,t);var i=n[15];if(Math.abs(i)>1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(e);var h=Math.exp(this.computedRadius[0]);this.center.set(e,a-n[2]*h,l-n[6]*h,c-n[10]*h),this.radius.idle(e)}else this.center.idle(e),this.radius.idle(e)},f.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},f.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},f.getDistanceLimits=function(e){var t=this.radius.bounds;return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},f.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},f.fromJSON=function(e){var t=this.lastT(),r=e.center;r&&this.center.set(t,r[0],r[1],r[2]);var n=e.rotation;n&&this.rotation.set(t,n[0],n[1],n[2],n[3]);var i=e.distance;i&&i>0&&this.radius.set(t,Math.log(i)),this.setDistanceLimits(e.zoomMin,e.zoomMax)}},48532:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},48544:function(e,t,r){"use strict";var n=r(72952),i=Object.keys(n),a=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(a),s=[];i.forEach((function(e){!function(e){if(-1===o.indexOf(e._cat||e.name)){var t=e.name,r=(e._cat||e.name).toLowerCase();-1===s.indexOf(t)&&s.push(t),-1===s.indexOf(r)&&s.push(r)}}(n[e])})),s.sort(),e.exports={DRAW_MODES:a,backButtons:o,foreButtons:s}},48662:function(e,t,r){"use strict";var n=r(62258),i=r(43566),a=r(87717).GW,o=r(41707),s=r(47401),l=r(43995),c=r(77846),u=c.recordMinTextSize,h=c.clearMinTextSize,f=r(59718),d=r(80084).getRotationAngle,p=f.computeTransform,g=f.transformInsideText,m=r(45036).styleOne,v=r(49651).resizeText,y=r(21379),x=r(84160),b=r(94276);function _(e,r,c,h){var f=e._fullLayout,v=!f.uniformtext.mode&&b.hasTransition(h),_=n.select(c).selectAll("g.slice"),T=r[0],k=T.trace,A=T.hierarchy,M=b.findEntryWithLevel(A,k.level),S=b.getMaxDepth(k),E=f._size,L=k.domain,C=E.w*(L.x[1]-L.x[0]),I=E.h*(L.y[1]-L.y[0]),D=.5*Math.min(C,I),P=T.cx=E.l+E.w*(L.x[1]+L.x[0])/2,O=T.cy=E.t+E.h*(1-L.y[0])-I/2;if(!M)return _.remove();var z=null,R={};v&&_.each((function(e){R[b.getPtId(e)]={rpx0:e.rpx0,rpx1:e.rpx1,x0:e.x0,x1:e.x1,transform:e.transform},!z&&b.isEntry(e)&&(z=e)}));var F=function(e){return i.partition().size([2*Math.PI,e.height+1])(e)}(M).descendants(),j=M.height+1,N=0,B=S;T.hasMultipleRoots&&b.isHierarchyRoot(M)&&(F=F.slice(1),j-=1,N=1,B+=1),F=F.filter((function(e){return e.y1<=B}));var U=d(k.rotation);U&&F.forEach((function(e){e.x0+=U,e.x1+=U}));var V=Math.min(j,S),q=function(e){return(e-N)/V*D},H=function(e,t){return[e*Math.cos(t),-e*Math.sin(t)]},G=function(e){return s.pathAnnulus(e.rpx0,e.rpx1,e.x0,e.x1,P,O)},W=function(e){return P+w(e)[0]*(e.transform.rCenter||0)+(e.transform.x||0)},Y=function(e){return O+w(e)[1]*(e.transform.rCenter||0)+(e.transform.y||0)};(_=_.data(F,b.getPtId)).enter().append("g").classed("slice",!0),v?_.exit().transition().each((function(){var e=n.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var t=function(e){var t,r=b.getPtId(e),n=R[r],i=R[b.getPtId(M)];if(i){var o=(e.x1>i.x1?2*Math.PI:0)+U;t=e.rpx1Z?2*Math.PI:0)+U;t={x0:i,x1:i}}else t={rpx0:D,rpx1:D},s.extendFlat(t,J(e));else t={rpx0:0,rpx1:0};else t={x0:U,x1:U};return a(t,n)}(e);return function(e){return G(t(e))}})):h.attr("d",G),c.call(y,M,e,r,{eventDataKeys:x.eventDataKeys,transitionTime:x.CLICK_TRANSITION_TIME,transitionEasing:x.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),h.call(m,i,k);var d=s.ensureSingle(c,"g","slicetext"),_=s.ensureSingle(d,"text","",(function(e){e.attr("data-notex",1)})),w=s.ensureUniformFontSize(e,b.determineTextFont(k,i,f.font));_.text(t.formatSliceLabel(i,M,k,r,f)).classed("slicetext",!0).attr("text-anchor","middle").call(o.font,w).call(l.convertToTspans,e);var A=o.bBox(_.node());i.transform=g(A,i,T),i.transform.targetX=W(i),i.transform.targetY=Y(i);var S=function(e,t){var r=e.transform;return p(r,t),r.fontSize=w.size,u(k.type,r,f),s.getTextTransform(r)};v?_.transition().attrTween("transform",(function(e){var t=function(e){var t,r=R[b.getPtId(e)],n=e.transform;if(r)t=r;else if(t={rpx1:e.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},z)if(e.parent)if(Z){var i=e.x1>Z?2*Math.PI:0;t.x0=t.x1=i}else s.extendFlat(t,J(e));else t.x0=t.x1=U;else t.x0=t.x1=U;var o=a(t.transform.textPosAngle,e.transform.textPosAngle),l=a(t.rpx1,e.rpx1),c=a(t.x0,e.x0),h=a(t.x1,e.x1),d=a(t.transform.scale,n.scale),p=a(t.transform.rotate,n.rotate),g=0===n.rCenter?3:0===t.transform.rCenter?1/3:1,m=a(t.transform.rCenter,n.rCenter),v=function(e){return m(Math.pow(e,g))};return function(e){var t=l(e),r=c(e),i=h(e),a=v(e),s={pxmid:H(t,(r+i)/2),rpx1:t,transform:{textPosAngle:o(e),rCenter:a,x:n.x,y:n.y}};return u(k.type,n,f),{transform:{targetX:W(s),targetY:Y(s),scale:d(e),rotate:p(e),rCenter:a}}}}(e);return function(e){return S(t(e),A)}})):_.attr("transform",S(i,A))}))}function w(e){return t=e.rpx1,r=e.transform.textPosAngle,[t*Math.sin(r),-t*Math.cos(r)];var t,r}t.plot=function(e,t,r,i){var a,o,s=e._fullLayout,l=s._sunburstlayer,c=!r,u=!s.uniformtext.mode&&b.hasTransition(r);(h("sunburst",s),(a=l.selectAll("g.trace.sunburst").data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),a.order(),u)?(i&&(o=i()),n.transition().duration(r.duration).ease(r.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){l.selectAll("g.trace").each((function(t){_(e,t,this,r)}))}))):(a.each((function(t){_(e,t,this,r)})),s.uniformtext.mode&&v(e,s._sunburstlayer.selectAll(".trace"),"sunburst"));c&&a.exit().remove()},t.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||"none"===o))return"";var l=i.separators,c=n[0],u=e.data.data,h=c.hierarchy,f=b.isHierarchyRoot(e),d=b.getParent(h,e),p=b.getValue(e);if(!a){var g,m=o.split("+"),v=function(e){return-1!==m.indexOf(e)},y=[];if(v("label")&&u.label&&y.push(u.label),u.hasOwnProperty("v")&&v("value")&&y.push(b.formatValue(u.v,l)),!f){v("current path")&&y.push(b.getPath(e.data));var x=0;v("percent parent")&&x++,v("percent entry")&&x++,v("percent root")&&x++;var _=x>1;if(x){var w,T=function(e){g=b.formatPercent(w,l),_&&(g+=" of "+e),y.push(g)};v("percent parent")&&!f&&(w=p/b.getValue(d),T("parent")),v("percent entry")&&(w=p/b.getValue(t),T("entry")),v("percent root")&&(w=p/b.getValue(h),T("root"))}}return v("text")&&(g=s.castOption(r,u.i,"text"),s.isValidTextValue(g)&&y.push(g)),y.join("
")}var k=s.castOption(r,u.i,"texttemplate");if(!k)return"";var A={};u.label&&(A.label=u.label),u.hasOwnProperty("v")&&(A.value=u.v,A.valueLabel=b.formatValue(u.v,l)),A.currentPath=b.getPath(e.data),f||(A.percentParent=p/b.getValue(d),A.percentParentLabel=b.formatPercent(A.percentParent,l),A.parent=b.getPtLabel(d)),A.percentEntry=p/b.getValue(t),A.percentEntryLabel=b.formatPercent(A.percentEntry,l),A.entry=b.getPtLabel(t),A.percentRoot=p/b.getValue(h),A.percentRootLabel=b.formatPercent(A.percentRoot,l),A.root=b.getPtLabel(h),u.hasOwnProperty("color")&&(A.color=u.color);var M=s.castOption(r,u.i,"text");return(s.isValidTextValue(M)||""===M)&&(A.text=M),A.customdata=s.castOption(r,u.i,"customdata"),s.texttemplateString(k,A,i._d3locale,A,r._meta||{})}},48847:function(e,t,r){"use strict";var n=r(166),i=r(83491);function a(e,t){var r,a=Array.isArray(t);function o(e){return i(e)?+e:null}return-1!==n.COMPARISON_OPS2.indexOf(e)?r=o(a?t[0]:t):-1!==n.INTERVAL_OPS.indexOf(e)?r=a?[o(t[0]),o(t[1])]:[o(t),o(t)]:-1!==n.SET_OPS.indexOf(e)&&(r=a?t.map(o):[o(t)]),r}function o(e){return function(t){t=a(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function s(e){return function(t){return{start:t=a(e,t),end:1/0,size:1/0}}}e.exports={"[]":o("[]"),"][":o("]["),">":s(">"),"<":s("<"),"=":s("=")}},48877:function(e,t,r){"use strict";var n=r(47401),i=r(9405).BADNUM,a=r(48128);e.exports=function(e,t,r,o,s,l){var c=e._length,u=t.makeCalcdata(e,o),h=r.makeCalcdata(e,s);u=a(e,t,o,u).vals,h=a(e,r,s,h).vals;var f,d,p,g,m=e.text,v=void 0!==m&&n.isArray1D(m),y=e.hovertext,x=void 0!==y&&n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(h),T=w.vals,k=[],A=T.length,M=_.length;for(f=0;f0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",l(o-.5*h.gripWidth,t._dims.currentValueTotalHeight))}}function E(e,t){var r=e._dims;return r.inputAreaStart+h.stepInset+(r.inputAreaLength-2*h.stepInset)*Math.min(1,Math.max(0,t))}function L(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-h.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*h.stepInset-2*r.inputAreaStart)))}function C(e,t,r){var n=r._dims,i=s.ensureSingle(e,"rect",h.railTouchRectClass,(function(n){n.call(A,t,e,r).style("pointer-events","all")}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,h.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr("opacity",0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(e,t){var r=t._dims,n=r.inputAreaLength-2*h.railInset,i=s.ensureSingle(e,"rect",h.railRectClass);i.attr({width:n,height:h.railWidth,rx:h.railRadius,ry:h.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,t.bordercolor).call(a.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(i,h.railInset,.5*(r.inputAreaWidth-h.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,r=function(e,t){for(var r=e[h.name],n=[],i=0;i0?[0]:[]);function s(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),i.autoMargin(e,m(t))}if(a.enter().append("g").classed(h.containerClassName,!0).style("cursor","ew-resize"),a.exit().each((function(){n.select(this).selectAll("g."+h.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll("g."+h.groupClassName).data(r,v);l.enter().append("g").classed(h.groupClassName,!0),l.exit().each(s).remove();for(var c=0;ct.length&&(e=e.slice(0,t.length)):e=[],i=0;i20&&t?208===e||1114===e?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(e)?a=1:-1!==i.LEFTSTART.indexOf(e)?n=1:-1!==i.TOPSTART.indexOf(e)?a=-1:n=-1;return[n,a]}(f,r,t),p=[l(e,t,[-d[0],-d[1]])],g=e.z.length,m=e.z[0].length,v=t.slice(),y=d.slice();for(u=0;u<1e4;u++){if(f>20?(f=i.CHOOSESADDLE[f][(d[0]||d[1])<0?0:1],e.crossings[h]=i.SADDLEREMAINDER[f]):delete e.crossings[h],!(d=i.NEWDELTA[f])){n.log("Found bad marching index:",f,t,e.level);break}p.push(l(e,t,d)),t[0]+=d[0],t[1]+=d[1],h=t.join(","),a(p[p.length-1],p[p.length-2],s,c)&&p.pop();var x=d[0]&&(t[0]<0||t[0]>m-2)||d[1]&&(t[1]<0||t[1]>g-2);if(t[0]===v[0]&&t[1]===v[1]&&d[0]===y[0]&&d[1]===y[1]||r&&x)break;f=e.crossings[h]}1e4===u&&n.log("Infinite loop in contour?");var b,_,w,T,k,A,M,S,E,L,C,I=a(p[0],p[p.length-1],s,c),D=0,P=.2*e.smoothing,O=[],z=0;for(u=1;u=z;u--)if((b=O[u])=z&&b+O[_]S&&E--,e.edgepaths[E]=C.concat(p,L));break}N||(e.edgepaths[S]=p.concat(L))}for(S=0;S").join(" ")||"";var g=i.ensureSingle(d,"g","slicetext"),k=i.ensureSingle(g,"text","",(function(e){e.attr("data-notex",1)})),L=i.ensureUniformFontSize(e,u.determineTextFont(C,s,E.font,{onPathbar:!0}));k.text(s._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(a.font,L).call(o.convertToTspans,e),s.textBB=a.bBox(k.node()),s.transform=_(s,{fontSize:L.size,onPathbar:!0}),s.transform.fontSize=L.size,T?k.transition().attrTween("transform",(function(e){var t=M(e,f,S,[m,v]);return function(e){return w(t(e))}})):k.attr("transform",w(s))}))}},49532:function(e){var t=!1;if("undefined"!==typeof Float64Array){var r=new Float64Array(1),n=new Uint32Array(r.buffer);if(r[0]=1,t=!0,1072693248===n[1]){e.exports=function(e){return r[0]=e,[n[0],n[1]]},e.exports.pack=function(e,t){return n[0]=e,n[1]=t,r[0]},e.exports.lo=function(e){return r[0]=e,n[0]},e.exports.hi=function(e){return r[0]=e,n[1]}}else if(1072693248===n[0]){e.exports=function(e){return r[0]=e,[n[1],n[0]]},e.exports.pack=function(e,t){return n[1]=e,n[0]=t,r[0]},e.exports.lo=function(e){return r[0]=e,n[1]},e.exports.hi=function(e){return r[0]=e,n[0]}}else t=!1}if(!t){var i=new Buffer(8);e.exports=function(e){return i.writeDoubleLE(e,0,!0),[i.readUInt32LE(0,!0),i.readUInt32LE(4,!0)]},e.exports.pack=function(e,t){return i.writeUInt32LE(e,0,!0),i.writeUInt32LE(t,4,!0),i.readDoubleLE(0,!0)},e.exports.lo=function(e){return i.writeDoubleLE(e,0,!0),i.readUInt32LE(0,!0)},e.exports.hi=function(e){return i.writeDoubleLE(e,0,!0),i.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&n;return 2146435072&n&&(i+=1<<20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}},49563:function(e,t,r){"use strict";var n=r(62258),i=r(31454),a=r(41707);e.exports={style:function(e,t,r){var o=r||n.select(e).selectAll("g.trace.boxes");o.style("opacity",(function(e){return e[0].trace.opacity})),o.each((function(t){var r=n.select(this),o=t[0].trace,s=o.line.width;function l(e,t,r,n){e.style("stroke-width",t+"px").call(i.stroke,r).call(i.fill,n)}var c=r.selectAll("path.box");if("candlestick"===o.type)c.each((function(e){if(!e.empty){var t=n.select(this),r=o[e.dir];l(t,r.line.width,r.line.color,r.fillcolor),t.style("opacity",o.selectedpoints&&!e.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(i.stroke,o.line.color);var u=r.selectAll("path.point");a.pointStyle(u,o,e)}}))},styleOnSelect:function(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,e)}}},49580:function(e,t,r){"use strict";var n=r(47401),i=r(51499),a=r(30337),o=r(94158);e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}a(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var s=t._has("mapbox"),l=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((s||l)&&1===c||s&&l&&2===c)&&(t.dragmode="pan"),o(e,t,r)}},49593:function(e,t,r){"use strict";var n=r(47401),i=r(33333);e.exports=function(e,t,r,a){var o=n.coerce2(e,t,i,"ticklen"),s=n.coerce2(e,t,i,"tickwidth"),l=n.coerce2(e,t,i,"tickcolor",t.color);r("ticks",a.outerTicks||o||s||l?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},49651:function(e,t,r){"use strict";var n=r(62258),i=r(31454),a=r(41707),o=r(47401),s=r(62282),l=r(77846).resizeText,c=r(66905),u=c.textfont,h=c.insidetextfont,f=c.outsidetextfont,d=r(97547);function p(e,t,r){a.pointStyle(e.selectAll("path"),t,r),g(e,t,r)}function g(e,t,r){e.selectAll("text").each((function(e){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,e,t,r));a.font(i,s)}))}function m(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=_(t,r);a=y(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=x(r,t.i,i));return a}function v(e,t,r){return b(u,e.textfont,t,r)}function y(e,t,r,n){var a=v(e,t,r);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(a={color:i.contrast(n),family:a.family,size:a.size}),b(h,e.insidetextfont,t,a)}function x(e,t,r){var n=v(e,t,r);return b(f,e.outsidetextfont,t,n)}function b(e,t,r,n){t=t||{};var i=d.getValue(t.family,r),a=d.getValue(t.size,r),o=d.getValue(t.color,r);return{family:d.coerceString(e.family,i,n.family),size:d.coerceNumber(e.size,a,n.size),color:d.coerceColor(e.color,o,n.color)}}function _(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}e.exports={style:function(e){var t=n.select(e).selectAll("g.barlayer").selectAll("g.trace");l(e,t,"bar");var r=t.size(),i=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===i.barmode&&r>1||0===i.bargap&&0===i.bargroupgap&&!e[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){p(n.select(this),t[0].trace,e)})),s.getComponentMethod("errorbars","style")(t)},styleTextPoints:g,styleOnSelect:function(e,t,r){var i=t[0].trace;i.selectedpoints?function(e,t,r){a.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each((function(e){var i,s=n.select(this);if(e.selected){i=o.ensureUniformFontSize(r,m(s,e,t,r));var l=t.selected.textfont&&t.selected.textfont.color;l&&(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,t)}))}(e.selectAll("text"),t,r)}(r,i,e):(p(r,i,e),s.getComponentMethod("errorbars","style")(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},49682:function(e,t,r){"use strict";r.r(t),r.d(t,{geoAlbers:function(){return Ge},geoAlbersUsa:function(){return Ye},geoArea:function(){return n.Ay},geoAzimuthalEqualArea:function(){return Ze.A},geoAzimuthalEqualAreaRaw:function(){return Ze.n},geoAzimuthalEquidistant:function(){return Xe.A},geoAzimuthalEquidistantRaw:function(){return Xe.j},geoBounds:function(){return i.A},geoCentroid:function(){return a.A},geoCircle:function(){return o.A},geoClipAntimeridian:function(){return s.A},geoClipCircle:function(){return l.A},geoClipExtent:function(){return u},geoClipRectangle:function(){return c.A},geoConicConformal:function(){return rt},geoConicConformalRaw:function(){return tt},geoConicEqualArea:function(){return He},geoConicEqualAreaRaw:function(){return qe},geoConicEquidistant:function(){return at},geoConicEquidistantRaw:function(){return it},geoContains:function(){return R},geoDistance:function(){return S},geoEqualEarth:function(){return ft},geoEqualEarthRaw:function(){return ht},geoEquirectangular:function(){return nt.A},geoEquirectangularRaw:function(){return nt.f},geoGnomonic:function(){return dt.A},geoGnomonicRaw:function(){return dt.T},geoGraticule:function(){return B},geoGraticule10:function(){return U},geoIdentity:function(){return gt},geoInterpolate:function(){return W.A},geoLength:function(){return k},geoMercator:function(){return Qe},geoMercatorRaw:function(){return Je},geoNaturalEarth1:function(){return mt.A},geoNaturalEarth1Raw:function(){return mt.P},geoOrthographic:function(){return vt.A},geoOrthographicRaw:function(){return vt.x},geoPath:function(){return Be},geoProjection:function(){return Ue.A},geoProjectionMutator:function(){return Ue.U},geoRotation:function(){return Ke.A},geoStereographic:function(){return bt},geoStereographicRaw:function(){return xt},geoStream:function(){return y.A},geoTransform:function(){return pt.A},geoTransverseMercator:function(){return wt},geoTransverseMercatorRaw:function(){return _t}});var n=r(80362),i=r(28522),a=r(47875),o=r(19699),s=r(14691),l=r(58979),c=r(42180);function u(){var e,t,r,n=0,i=0,a=960,o=500;return r={stream:function(r){return e&&t===r?e:e=(0,c.A)(n,i,a,o)(t=r)},extent:function(s){return arguments.length?(n=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],e=t=null,r):[[n,i],[a,o]]}}}var h,f,d,p=r(11096),g=r(95935),m=r(57977),v=r(2951),y=r(5543),x=(0,g.A)(),b={sphere:v.A,point:v.A,lineStart:function(){b.point=w,b.lineEnd=_},lineEnd:v.A,polygonStart:v.A,polygonEnd:v.A};function _(){b.point=b.lineEnd=v.A}function w(e,t){e*=m.F2,t*=m.F2,h=e,f=(0,m.F8)(t),d=(0,m.gn)(t),b.point=T}function T(e,t){e*=m.F2,t*=m.F2;var r=(0,m.F8)(t),n=(0,m.gn)(t),i=(0,m.tn)(e-h),a=(0,m.gn)(i),o=n*(0,m.F8)(i),s=d*r-f*n*a,l=f*r+d*n*a;x.add((0,m.FP)((0,m.RZ)(o*o+s*s),l)),h=e,f=r,d=n}function k(e){return x.reset(),(0,y.A)(e,b),+x}var A=[null,null],M={type:"LineString",coordinates:A};function S(e,t){return A[0]=e,A[1]=t,k(M)}var E={Feature:function(e,t){return C(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,n=-1,i=r.length;++n0&&(i=S(e[a],e[a-1]))>0&&r<=i&&n<=i&&(r+n-i)*(1-Math.pow((r-n)/i,2))m.Ni})).map(l)).concat((0,F.y1)((0,m.mk)(a/d)*d,i,d).filter((function(e){return(0,m.tn)(e%g)>m.Ni})).map(c))}return y.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},y.outline=function(){return{type:"Polygon",coordinates:[u(n).concat(h(o).slice(1),u(r).reverse().slice(1),h(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],s=+e[0][1],o=+e[1][1],n>r&&(e=n,n=r,r=e),s>o&&(e=s,s=o,o=e),y.precision(v)):[[n,s],[r,o]]},y.extentMinor=function(r){return arguments.length?(t=+r[0][0],e=+r[1][0],a=+r[0][1],i=+r[1][1],t>e&&(r=t,t=e,e=r),a>i&&(r=a,a=i,i=r),y.precision(v)):[[t,a],[e,i]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],y):[p,g]},y.stepMinor=function(e){return arguments.length?(f=+e[0],d=+e[1],y):[f,d]},y.precision=function(f){return arguments.length?(v=+f,l=j(a,i,90),c=N(t,e,v),u=j(s,o,90),h=N(n,r,v),y):v},y.extentMajor([[-180,-90+m.Ni],[180,90-m.Ni]]).extentMinor([[-180,-80-m.Ni],[180,80+m.Ni]])}function U(){return B()()}var V,q,H,G,W=r(84668),Y=r(35933),Z=(0,g.A)(),X=(0,g.A)(),K={point:v.A,lineStart:v.A,lineEnd:v.A,polygonStart:function(){K.lineStart=J,K.lineEnd=ee},polygonEnd:function(){K.lineStart=K.lineEnd=K.point=v.A,Z.add((0,m.tn)(X)),X.reset()},result:function(){var e=Z/2;return Z.reset(),e}};function J(){K.point=Q}function Q(e,t){K.point=$,V=H=e,q=G=t}function $(e,t){X.add(G*e-H*t),H=e,G=t}function ee(){$(V,q)}var te,re,ne,ie,ae=K,oe=r(73802),se=0,le=0,ce=0,ue=0,he=0,fe=0,de=0,pe=0,ge=0,me={point:ve,lineStart:ye,lineEnd:_e,polygonStart:function(){me.lineStart=we,me.lineEnd=Te},polygonEnd:function(){me.point=ve,me.lineStart=ye,me.lineEnd=_e},result:function(){var e=ge?[de/ge,pe/ge]:fe?[ue/fe,he/fe]:ce?[se/ce,le/ce]:[NaN,NaN];return se=le=ce=ue=he=fe=de=pe=ge=0,e}};function ve(e,t){se+=e,le+=t,++ce}function ye(){me.point=xe}function xe(e,t){me.point=be,ve(ne=e,ie=t)}function be(e,t){var r=e-ne,n=t-ie,i=(0,m.RZ)(r*r+n*n);ue+=i*(ne+e)/2,he+=i*(ie+t)/2,fe+=i,ve(ne=e,ie=t)}function _e(){me.point=ve}function we(){me.point=ke}function Te(){Ae(te,re)}function ke(e,t){me.point=Ae,ve(te=ne=e,re=ie=t)}function Ae(e,t){var r=e-ne,n=t-ie,i=(0,m.RZ)(r*r+n*n);ue+=i*(ne+e)/2,he+=i*(ie+t)/2,fe+=i,de+=(i=ie*e-ne*t)*(ne+e),pe+=i*(ie+t),ge+=3*i,ve(ne=e,ie=t)}var Me=me;function Se(e){this._context=e}Se.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,m.FA)}},result:v.A};var Ee,Le,Ce,Ie,De,Pe=(0,g.A)(),Oe={point:v.A,lineStart:function(){Oe.point=ze},lineEnd:function(){Ee&&Re(Le,Ce),Oe.point=v.A},polygonStart:function(){Ee=!0},polygonEnd:function(){Ee=null},result:function(){var e=+Pe;return Pe.reset(),e}};function ze(e,t){Oe.point=Re,Le=Ie=e,Ce=De=t}function Re(e,t){Ie-=e,De-=t,Pe.add((0,m.RZ)(Ie*Ie+De*De)),Ie=e,De=t}var Fe=Oe;function je(){this._string=[]}function Ne(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Be(e,t){var r,n,i=4.5;function a(e){return e&&("function"===typeof i&&n.pointRadius(+i.apply(this,arguments)),(0,y.A)(e,r(n))),n.result()}return a.area=function(e){return(0,y.A)(e,r(ae)),ae.result()},a.measure=function(e){return(0,y.A)(e,r(Fe)),Fe.result()},a.bounds=function(e){return(0,y.A)(e,r(oe.A)),oe.A.result()},a.centroid=function(e){return(0,y.A)(e,r(Me)),Me.result()},a.projection=function(t){return arguments.length?(r=null==t?(e=null,Y.A):(e=t).stream,a):e},a.context=function(e){return arguments.length?(n=null==e?(t=null,new je):new Se(t=e),"function"!==typeof i&&n.pointRadius(i),a):t},a.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(n.pointRadius(+e),+e),a):i},a.projection(e).context(t)}je.prototype={_radius:4.5,_circle:Ne(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Ne(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Ue=r(58712);function Ve(e){var t=0,r=m.pi/3,n=(0,Ue.U)(e),i=n(t,r);return i.parallels=function(e){return arguments.length?n(t=e[0]*m.F2,r=e[1]*m.F2):[t*m.uj,r*m.uj]},i}function qe(e,t){var r=(0,m.F8)(e),n=(r+(0,m.F8)(t))/2;if((0,m.tn)(n)=.12&&i<.234&&n>=-.425&&n<-.214?s:i>=.166&&i<.234&&n>=-.214&&n<-.115?l:o).invert(e)},u.stream=function(r){return e&&t===r?e:e=function(e){var t=e.length;return{point:function(r,n){for(var i=-1;++i0?t<-m.TW+m.Ni&&(t=-m.TW+m.Ni):t>m.TW-m.Ni&&(t=m.TW-m.Ni);var r=i/(0,m.n7)(et(t),n);return[r*(0,m.F8)(n*e),i-r*(0,m.gn)(n*e)]}return a.invert=function(e,t){var r=i-t,a=(0,m._S)(n)*(0,m.RZ)(e*e+r*r),o=(0,m.FP)(e,(0,m.tn)(r))*(0,m._S)(r);return r*n<0&&(o-=m.pi*(0,m._S)(e)*(0,m._S)(r)),[o/n,2*(0,m.rY)((0,m.n7)(i/a,1/n))-m.TW]},a}function rt(){return Ve(tt).scale(109.5).parallels([30,30])}Je.invert=function(e,t){return[e,2*(0,m.rY)((0,m.oN)(t))-m.TW]};var nt=r(31857);function it(e,t){var r=(0,m.gn)(e),n=e===t?(0,m.F8)(e):(r-(0,m.gn)(t))/(t-e),i=r/n+e;if((0,m.tn)(n)2?e[2]+90:90]):[(e=r())[0],e[1],e[2]-90]},r([0,0,90]).scale(159.155)}xt.invert=(0,yt.I)((function(e){return 2*(0,m.rY)(e)})),_t.invert=function(e,t){return[-t,2*(0,m.rY)((0,m.oN)(e))-m.TW]}},49745:function(e,t,r){"use strict";var n;e.exports=k,k.ReadableState=T;r(92173).EventEmitter;var i=function(e,t){return e.listeners(t).length},a=r(88174),o=r(47397).Buffer,s=r.g.Uint8Array||function(){};var l,c=r(77199);l=c&&c.debuglog?c.debuglog("stream"):function(){};var u,h,f,d=r(52892),p=r(58893),g=r(46782).getHighWaterMark,m=r(91174).F,v=m.ERR_INVALID_ARG_TYPE,y=m.ERR_STREAM_PUSH_AFTER_EOF,x=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(28724)(k,a);var _=p.errorOrDestroy,w=["error","close","destroy","pause","resume"];function T(e,t,i){n=n||r(80291),e=e||{},"boolean"!==typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=r(68435).I),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(80291),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function A(e,t,r,n,i){l("readableAddChunk",t);var a,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}(e,c);else if(i||(a=function(e,t){var r;n=t,o.isBuffer(n)||n instanceof s||"string"===typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(c,t)),a)_(e,a);else if(c.objectMode||t&&t.length>0)if("string"===typeof t||c.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),n)c.endEmitted?_(e,new b):M(e,c,t,!0);else if(c.ended)_(e,new y);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?M(e,c,t,!1):I(e,c)):M(e,c,t,!1)}else n||(c.reading=!1,I(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(C,e))}function C(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function I(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){l("readable nexttick read 0"),e.read(0)}function z(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(N,t,e))}function N(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function B(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):L(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){_(this,new x("_read()"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var a=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?s:g;function o(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",g),r.removeListener("data",h),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function s(){l("onend"),e.end()}n.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",o);var c=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,R(e))}}(r);e.on("drain",c);var u=!1;function h(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==B(n.pipes,e))&&!u&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){l("onerror",t),g(),e.removeListener("error",f),0===i(e,"error")&&_(e,t)}function d(){e.removeListener("finish",p),g()}function p(){l("onfinish"),e.removeListener("close",d),g()}function g(){l("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",d),e.once("finish",p),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?L(this):n.reading||process.nextTick(O,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(P,this),r},k.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(P,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a90&&(d-=180,l=-l),{angle:d,flip:l,p:e.c2p(n,t,r),offsetMultplier:c}}},49757:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},49762:function(e,t,r){"use strict";var n=r(97451),i=r(20184).axisHoverFormat,a=r(4216).r,o=r(20755),s=r(42837),l=r(87241).extendFlat;e.exports=l({x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the X coordinates of the vertices. The nth element of vectors `x`, `y` and `z`","jointly represent the X, Y and Z coordinates of the nth vertex."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Y coordinates of the vertices. The nth element of vectors `x`, `y` and `z`","jointly represent the X, Y and Z coordinates of the nth vertex."].join(" ")},z:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Z coordinates of the vertices. The nth element of vectors `x`, `y` and `z`","jointly represent the X, Y and Z coordinates of the nth vertex."].join(" ")},i:{valType:"data_array",editType:"calc",description:["A vector of vertex indices, i.e. integer values between 0 and the length of the vertex","vectors, representing the *first* vertex of a triangle. For example, `{i[m], j[m], k[m]}`","together represent face m (triangle m) in the mesh, where `i[m] = n` points to the triplet","`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `i` represents a","point in space, which is the first vertex of a triangle."].join(" ")},j:{valType:"data_array",editType:"calc",description:["A vector of vertex indices, i.e. integer values between 0 and the length of the vertex","vectors, representing the *second* vertex of a triangle. For example, `{i[m], j[m], k[m]}` ","together represent face m (triangle m) in the mesh, where `j[m] = n` points to the triplet","`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `j` represents a","point in space, which is the second vertex of a triangle."].join(" ")},k:{valType:"data_array",editType:"calc",description:["A vector of vertex indices, i.e. integer values between 0 and the length of the vertex","vectors, representing the *third* vertex of a triangle. For example, `{i[m], j[m], k[m]}`","together represent face m (triangle m) in the mesh, where `k[m] = n` points to the triplet ","`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `k` represents a","point in space, which is the third vertex of a triangle."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets the text elements associated with the vertices.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},hovertemplate:a({editType:"calc"}),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc",description:["Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the","Delaunay triangulation.","It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate","Delaunay triangulation."].join(" ")},alphahull:{valType:"number",dflt:-1,editType:"calc",description:["Determines how the mesh surface triangles are derived from the set of","vertices (points) represented by the `x`, `y` and `z` arrays, if","the `i`, `j`, `k` arrays are not supplied.","For general use of `mesh3d` it is preferred that `i`, `j`, `k` are","supplied.","If *-1*, Delaunay triangulation is used, which is mainly suitable if the","mesh is a single, more or less layer surface that is perpendicular to `delaunayaxis`.","In case the `delaunayaxis` intersects the mesh surface at more than one point","it will result triangles that are very long in the dimension of `delaunayaxis`.","If *>0*, the alpha-shape algorithm is used. In this case, the positive `alphahull` value","signals the use of the alpha-shape algorithm, _and_ its value","acts as the parameter for the mesh fitting.","If *0*, the convex-hull algorithm is used. It is suitable for convex bodies","or if the intention is to enclose the `x`, `y` and `z` point set into a convex","hull."].join(" ")},intensity:{valType:"data_array",editType:"calc",description:["Sets the intensity values for vertices or cells","as defined by `intensitymode`.","It can be used for plotting fields on meshes."].join(" ")},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc",description:["Determines the source of `intensity` values."].join(" ")},color:{valType:"color",editType:"calc",description:"Sets the color of the whole mesh"},vertexcolor:{valType:"data_array",editType:"calc",description:["Sets the color of each vertex","Overrides *color*. While Red, green and blue colors","are in the range of 0 and 255; in the case of having","vertex color data in RGBA format, the alpha color","should be normalized to be between 0 and 1."].join(" ")},facecolor:{valType:"data_array",editType:"calc",description:["Sets the color of each face","Overrides *color* and *vertexcolor*."].join(" ")},transforms:void 0},n("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not normal smoothing is applied to the meshes,","creating meshes with an angular, low-poly look via flat reflections."].join(" ")},contour:{show:l({},o.contours.x.show,{description:["Sets whether or not dynamic contours are shown on hover"].join(" ")}),color:o.contours.x.color,width:o.contours.x.width,editType:"calc"},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:"calc"},lighting:l({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:"calc"}),showlegend:l({},s.showlegend,{dflt:!1})})},49974:function(e,t,r){"use strict";e.exports=r(83333)},50089:function(e,t,r){"use strict";e.exports={attributes:r(86692),supplyDefaults:r(53459).supplyDefaults,supplyLayoutDefaults:r(18504),layoutAttributes:r(59055),calc:r(93444).calc,crossTraceCalc:r(93444).crossTraceCalc,plot:r(59718).plot,style:r(9884),styleOne:r(59371),moduleType:"trace",name:"pie",basePlotModule:r(84420),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}},50169:function(e){"use strict";function t(e,t,r,n,i,a){var o=["function ",e,"(a,l,h,",n.join(","),"){",a?"":"var i=",r?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",i?".get(m)":"[m]"];return a?t.indexOf("c")<0?o.push(";if(x===y){return m}else if(x<=y){"):o.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):o.push(";if(",t,"){i=m;"),r?o.push("l=m+1}else{h=m-1}"):o.push("h=m-1}else{l=m+1}"),o.push("}"),a?o.push("return -1};"):o.push("return i};"),o.join("")}function r(e,r,n,i){return new Function([t("A","x"+e+"y",r,["y"],!1,i),t("B","x"+e+"y",r,["y"],!0,i),t("P","c(x,y)"+e+"0",r,["y","c"],!1,i),t("Q","c(x,y)"+e+"0",r,["y","c"],!0,i),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""))()}e.exports={ge:r(">=",!1,"GE"),gt:r(">",!1,"GT"),lt:r("<",!0,"LT"),le:r("<=",!0,"LE"),eq:r("-",!0,"EQ",!0)}},50324:function(e,t,r){"use strict";e.exports=function(e,t,r,o,s,l){if(o<=r+1)return r;var c=r,u=o,h=o+r>>>1,f=2*e,d=h,p=s[f*h+t];for(;c=x?(d=y,p=x):v>=_?(d=m,p=v):(d=b,p=_):x>=_?(d=y,p=x):_>=v?(d=m,p=v):(d=b,p=_);for(var w=f*(u-1),T=f*d,k=0;kr&&i[h+t]>c;--u,h-=o){for(var f=h,d=h+o,p=0;pa){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x<3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;oa)for(_=1/Math.sqrt(k),x=0;x<3;++x)b[x]*=_;else for(x=0;x<3;++x)b[x]=0}return i},t.faceNormals=function(e,t,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;oa?1/Math.sqrt(d):0;for(c=0;c<3;++c)f[c]*=d;i[o]=f}return i}},50565:function(e,t,r){var n=r(14955);t.pointVertex=n("./shader/point-vertex.glsl"),t.pointFragment=n("./shader/point-fragment.glsl"),t.pickVertex=n("./shader/pick-vertex.glsl"),t.pickFragment=n("./shader/pick-fragment.glsl")},50608:function(e,t,r){"use strict";function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.d(t,{A:function(){return n}})},50768:function(e,t,r){"use strict";var n=r(96122).VG,i=r(96122).rU,a=r(96122).bb,o=n("\x89PNG\r\n\x1a\n"),s=n("IHDR");e.exports=function(e){if(!(e.length<24)&&i(e,0,o)&&i(e,12,s))return{width:a(e,16),height:a(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},50775:function(e){"use strict";e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25c4",right:"\u25ba",up:"\u25b2",down:"\u25bc"}}},50989:function(e,t,r){"use strict";var n=r(24498);e.exports=function(e,t,r){var i=t.plotContainer;i.select(".scatterlayer").selectAll("*").remove();var a={xaxis:t.xaxis,yaxis:t.yaxis,plot:i,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},o=t.layers.frontplot.select("g.scatterlayer");n(e,a,r,o)}},51008:function(e,t,r){"use strict";var n=r(62258),i=r(31454),a=r(47401),o=r(94276),s=r(77846).resizeText;function l(e,t,r,n){var s,l,c=(n||{}).hovered,u=t.data.data,h=u.i,f=u.color,d=o.isHierarchyRoot(t),p=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(d&&f===r.root.color)p=100,s="rgba(0,0,0,0)",l=0;else if(s=a.castOption(r,h,"marker.line.color")||i.defaultLine,l=a.castOption(r,h,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),f);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(t)?0:r._maxVisibleLayers-(t.data.depth-r._entryDepth):t.data.height+1}else m=t.data.depth-r._entryDepth,r._atRootLevel||m++;if(m>0)for(var x=0;x1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},51303:function(e,t,r){"use strict";var n=r(31454),i=r(77301);e.exports=function(e,t,r,a,o){o||(o={}),o.isContour=!0;var s=i(e,t,r,a,o);return s&&s.forEach((function(e){var t=e.trace;"constraint"===t.contours.type&&(t.fillcolor&&n.opacity(t.fillcolor)?e.color=n.addOpacity(t.fillcolor,1):t.contours.showlines&&n.opacity(t.line.color)&&(e.color=n.addOpacity(t.line.color,1)))})),s}},51478:function(e,t,r){"use strict";var n=r(97451),i=r(83228),a=r(20755),o=r(42837),s=r(87241).extendFlat,l=r(17342).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:"boolean",dflt:!1,description:["Displays/hides tetrahedron shapes between minimum and","maximum iso-values. Often useful when either caps or","surfaces are disabled or filled with values less than 1."].join(" ")},fill:{valType:"number",min:0,max:1,dflt:1,description:["Sets the fill ratio of the `spaceframe` elements. The default fill value","is 1 meaning that they are entirely shaded. Applying a `fill` ratio less","than one would allow the creation of openings parallel to the edges."].join(" ")}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,xhoverformat:i.xhoverformat,yhoverformat:i.yhoverformat,zhoverformat:i.zhoverformat,valuehoverformat:i.valuehoverformat,hovertemplate:i.hovertemplate},n("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),"calc","nested");c.x.editType=c.y.editType=c.z.editType=c.value.editType="calc+clearAxisTypes",c.transforms=void 0},51499:function(e,t,r){"use strict";var n=r(90260),i=r(5153)({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:i,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}},51515:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});var n=(0,r(8036).A)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));t.A=n;var i=n.range},51809:function(e,t,r){"use strict";var n=r(99716),i=r(99716).createConeMesh,a=r(47401).simpleMap,o=r(63750).parseColorScale,s=r(47624).extractOpts,l=r(35839);function c(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&&void 0!==l[t]?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var h={xaxis:0,yaxis:1,zaxis:2},f={tip:1,tail:0,cm:.25,center:.5},d={tip:1,tail:1,cm:.75,center:.5};function p(e,t){var r=e.fullSceneLayout,i=e.dataScale,c={};function u(e,t){var n=r[t],o=i[h[t]];return a(e,(function(e){return n.d2l(e)*o}))}c.vectors=l(u(t.u,"xaxis"),u(t.v,"yaxis"),u(t.w,"zaxis"),t._len),c.positions=l(u(t.x,"xaxis"),u(t.y,"yaxis"),u(t.z,"zaxis"),t._len);var p=s(t);c.colormap=o(t),c.vertexIntensityBounds=[p.min/t._normMax,p.max/t._normMax],c.coneOffset=f[t.anchor],"scaled"===t.sizemode?c.coneSize=t.sizeref||.5:c.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5;var g=n(c),m=t.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=t.lighting.ambient,g.diffuse=t.lighting.diffuse,g.specular=t.lighting.specular,g.roughness=t.lighting.roughness,g.fresnel=t.lighting.fresnel,g.opacity=t.opacity,t._pad=d[t.anchor]*g.vectorScale*g.coneScale*t._normMax,g}u.update=function(e){this.data=e;var t=p(this.scene,e);this.mesh.update(t)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(e,t){var r=e.glplot.gl,n=p(e,t),a=i(r,n),o=new c(e,t.uid);return o.mesh=a,o.data=t,a._trace=o,e.glplot.add(a),o}},51860:function(e,t,r){"use strict";var n=r(47401),i=r(31454).contrast,a=r(33333),o=r(26800);function s(e){var t=["showexponent","showtickprefix","showticksuffix"].filter((function(t){return void 0!==e[t]}));if(t.every((function(r){return e[r]===e[t[0]]}))||1===t.length)return e[t[0]]}function l(e,t){function r(r,i){return n.coerce(e,t,a.tickformatstops,r,i)}r("enabled")&&(r("dtickrange"),r("value"))}e.exports=function(e,t,r,c,u,h){h&&1!==h.pass||function(e,t,r,n,i){var a=s(e),o=r("tickprefix");o&&r("showtickprefix",a);var l=r("ticksuffix",i.tickSuffixDflt);l&&r("showticksuffix",a)}(e,0,r,0,u),h&&2!==h.pass||function(e,t,r,c,u){var h=s(e),f=r("tickprefix");f&&r("showtickprefix",h);var d=r("ticksuffix",u.tickSuffixDflt);d&&r("showticksuffix",h);var p=r("showticklabels");if(p){var g=u.font||{},m=t.color,v=-1!==(t.ticklabelposition||"").indexOf("inside")?i(u.bgColor):m&&m!==a.color.dflt?m:g.color;if(n.coerceFont(r,"tickfont",{family:g.family,size:g.size,color:v}),r("tickangle"),"category"!==c){var y=r("tickformat");o(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:l}),t.tickformatstops.length||delete t.tickformatstops,y||"date"===c||(r("showexponent",h),r("exponentformat"),r("minexponent"),r("separatethousands"))}}}(e,t,r,c,u)}},51890:function(e,t,r){"use strict";e.exports=function(e,t,r,i){var a=n(e,r,i),o=n(t,r,i);if(a>0&&o>0||a<0&&o<0)return!1;var s=n(r,e,t),l=n(i,e,t);if(s>0&&l>0||s<0&&l<0)return!1;if(0===a&&0===o&&0===s&&0===l)return function(e,t,r,n){for(var i=0;i<2;++i){var a=e[i],o=t[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],h=Math.min(c,u);if(Math.max(c,u)=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),n.calendars.thai=o},52098:function(e,t,r){"use strict";e.exports={attributes:r(74545),supplyDefaults:r(34870),plot:r(1819),calc:r(6965),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:r(66807),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{description:["The data describing carpet axis layout is set in `y` and (optionally)","also `x`. If only `y` is present, `x` the plot is interpreted as a","cheater plot and is filled in using the `y` values.","`x` and `y` may either be 2D arrays matching with each dimension matching","that of `a` and `b`, or they may be 1D arrays with total length equal to","that of `a` and `b`."].join(" ")}}},52258:function(e,t,r){"use strict";var n=r(91771).mix,i=r(47401),a=r(92704),o=r(68565),s=r(45784),l=r(90407),c=["xaxis","yaxis","zaxis"],u=13600/187;e.exports=function(e,t,r){var h,f;function d(e,t){return i.coerce(h,f,o,e,t)}for(var p=0;p* and *>=* keep regions greater than `value`","*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`","*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`","Open vs. closed intervals make no difference to constraint display, but","all versions are allowed for consistency with filter transforms."].join(" ")},value:{valType:"any",dflt:0,editType:"calc",description:["Sets the value or values of the constraint boundary.","When `operation` is set to one of the comparison values","("+d+")","*value* is expected to be a number.","When `operation` is set to one of the interval values","("+p+")","*value* is expected to be an array of two numbers where the first","is the lower bound and the second is the upper bound."].join(" ")},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:h({},g.color,{editType:"style+colorbars",description:["Sets the color of the contour level.","Has no effect if `contours.coloring` is set to *lines*."].join(" ")}),width:{valType:"number",min:0,editType:"style+colorbars",description:["Sets the contour line width in (in px)","Defaults to *0.5* when `contours.type` is *levels*.","Defaults to *2* when `contour.type` is *constraint*."].join(" ")},dash:c,smoothing:h({},g.smoothing,{description:["Sets the amount of smoothing for the contour lines,","where *0* corresponds to no smoothing."].join(" ")}),editType:"plot"}},l("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))},52567:function(e,t,r){"use strict";var n=r(62258),i=r(49040),a=r(17333),o=r(41707),s=r(47401),l=r(4361),c=r(49190),u=r(22818),h=r(14612),f=r(77599),d=r(54460),p=r(76142),g=r(26683),m=r(19623);function v(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function x(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]);return Math.sqrt(1-r*r)/r}e.exports=function(e,t,r,b){var _=t.xaxis,w=t.yaxis;s.makeTraceGroups(b,r,"contour").each((function(r){var b=n.select(this),T=r[0],k=T.trace,A=k._carpetTrace=g(e,k),M=e.calcdata[A.index][0];if(A.visible&&"legendonly"!==A.visible){var S=T.a,E=T.b,L=k.contours,C=d(L,t,T),I="constraint"===L.type,D=L._operation,P=I?"="===D?"lines":"fill":L.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(C);var z=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(C,z,R);var F,j,N,B,U=C;"constraint"===L.type&&(U=f(C,D)),function(e,t){var r,n,i,a,o,s,l,c,u;for(r=0;r=0;B--)F=M.clipsegments[B],j=i([],F.x,_.c2p),N=i([],F.y,w.c2p),j.reverse(),N.reverse(),V.push(a(j,N,F.bicubic));var q="M"+V.join("L")+"Z";!function(e,t,r,n,o,l){var c,u,h,f,d=s.ensureSingle(e,"g","contourbg").selectAll("path").data("fill"!==l||o?[]:[0]);d.enter().append("path"),d.exit().remove();var p=[];for(f=0;f=0&&(f=L,p=g):Math.abs(h[1]-f[1])=0&&(f=L,p=g):s.log("endpt to newendpt is not vert. or horz.",h,f,L)}if(p>=0)break;y+=S(h,f),h=f}if(p===t.edgepaths.length){s.log("unclosed perimeter path");break}u=p,(b=-1===x.indexOf(u))&&(u=x[0],y+=S(h,f)+"Z",h=null)}for(u=0;um&&(n.max=m);n.len=n.max-n.min}(n,r,e,i,c,t.height),!(i.len<(t.width+t.height)*h.LABELMIN)))for(var a=Math.min(Math.ceil(i.len/D),h.LABELMAX),o=0;o1);if(!1!==g||c.uirevision){var m=a.newContainer(t,"legend");if(T("uirevision",t.uirevision),!1!==g){T("bgcolor",t.paper_bgcolor),T("bordercolor"),T("borderwidth");var v,y,x,b=i.coerceFont(T,"font",t.font),_="h"===T("orientation");if(_?(v=0,n.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(y=1.1,x="bottom"):(y=-.1,x="top")):(v=1.02,y=1,x="auto"),T("traceorder",f),l.isGrouped(t.legend)&&T("tracegroupgap"),T("itemsizing"),T("itemwidth"),T("itemclick"),T("itemdoubleclick"),T("groupclick"),T("x",v),T("xanchor"),T("y",y),T("yanchor",x),T("valign"),i.noneOrAll(c,m,["x","y"]),T("title.text")){T("title.side",_?"left":"top");var w=i.extendFlat({},b,{size:i.bigFont(b.size)});i.coerceFont(T,"title.font",w)}}}function T(e,t){return i.coerce(c,m,o,e,t)}}},52783:function(e,t,r){"use strict";var n=r(17481),i=r(66982),a=r(473),o=r(47401).removeElement,s=r(56890),l=e.exports={};l.align=r(20474),l.getCursor=r(10065);var c=r(26948);function u(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function h(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(e){var t,r,n,c,f,d,p,g,m=e.gd,v=1,y=m._context.doubleClickDelay,x=e.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,a?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,r){return Math.abs(e)y&&(v=Math.max(v-1,1)),m._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(v,d),!g){var r;try{r=new MouseEvent("click",t)}catch(a){var n=h(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},52855:function(e,t,r){"use strict";var n=r(47401),i=r(7497),a=r(75781),o=r(99727),s=r(20567),l=r(67137),c=r(52416);e.exports=function(e,t,r,u){function h(r,i){return n.coerce(e,t,c,r,i)}if(i(e,t,h,u)){a(e,t,u,h),h("xhoverformat"),h("yhoverformat"),h("text"),h("hovertext"),h("hovertemplate"),h("hoverongaps");var f="constraint"===h("contours.type");h("connectgaps",n.isArray1D(t.z)),f?o(e,t,h,u,r):(s(e,t,h,(function(r){return n.coerce2(e,t,c,r)})),l(e,t,h,u))}else t.visible=!1}},52892:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=i,n=s,o.prototype.copy.call(t,r,n),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0===(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return s(this,function(e){for(var t=1;t>>1;a(p,S);var E=0,L=0;for(T=0;T=o)g(u,h,L--,C=C-o|0);else if(C>=0)g(l,c,E--,C);else if(C<=-o){C=-C-o|0;for(var I=0;I>>1;a(p,E);var L=0,C=0,I=0;for(k=0;k>1===p[2*k+3]>>1&&(P=2,k+=1),D<0){for(var O=-(D>>1)-1,z=0;z>1)-1;0===P?g(l,c,L--,O):1===P?g(u,h,C--,O):2===P&&g(f,d,I--,O)}}},scanBipartite:function(e,t,r,n,i,s,u,h,f,d,v,y){var x=0,b=2*e,_=t,w=t+e,T=1,k=1;n?k=o:T=o;for(var A=i;A>>1;a(p,L);var C=0;for(A=0;A=o?(D=!n,M-=o):(D=!!n,M-=1),D)m(l,c,C++,M);else{var P=y[M],O=b*M,z=v[O+t+1],R=v[O+t+1+e];e:for(var F=0;F>>1;a(p,T);var k=0;for(x=0;x=o)l[k++]=b-o;else{var M=d[b-=1],S=m*b,E=f[S+t+1],L=f[S+t+1+e];e:for(var C=0;C=0;--C)if(l[C]===b){for(O=C+1;O0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(e,t,r,n){function c(r,n){return i.coerce(e,t,a,r,n)}var u=l(c("labels"),c("values")),h=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),h){t._length=h,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var f,d=c("text"),p=c("texttemplate");if(p||(f=c("textinfo",Array.isArray(d)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),p||f&&"none"!==f){var g=c("textposition");s(e,t,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}o(t,n,c);var m=c("hole");if(c("title.text")){var v=c("title.position",m?"middle center":"top center");m||"middle center"!==v||(t.title.position="top center"),i.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},53471:function(e,t,r){"use strict";var n=r(62258),i=r(41707),a=r(31454),o=r(78608),s=o.stylePoints,l=o.styleText;e.exports=function(e,t){t&&function(e,t){var r=t[0].trace,o=t[0].node3;o.style("opacity",t[0].trace.opacity),s(o,r,e),l(o,r,e),o.selectAll("path.js-line").style("fill","none").each((function(e){var t=n.select(this),r=e.trace,o=r.line||{};t.call(a.stroke,o.color).call(i.dashLine,o.dash||"",o.width||0),"none"!==r.fill&&t.call(a.fill,r.fillcolor)}))}(e,t)}},53790:function(e){"use strict";function t(e){return!0===e.visible}function r(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var n,i=(n=e,Array.isArray(n)&&Array.isArray(n[0])&&n[0][0]&&n[0][0].trace?r:t),a=[],o=0;o=10)return null;for(var r=1/0,a=-1/0,o=e.length,s=0;s1e3){n.warn("Too many contours, clipping at 1000",e);break}return l}},54500:function(e,t,r){"use strict";e.exports=function(e,t,r){switch(arguments.length){case 1:return n=[],c(i=e,i,u,!0),n;case 2:return"function"===typeof t?c(e,e,t,!0):function(e,t){return n=[],c(e,t,u,!1),n}(e,t);case 3:return c(e,t,r,!1);default:throw new Error("box-intersect: Invalid arguments")}var i};var n,i=r(32237),a=r(53304),o=r(22417);function s(e,t){for(var r=0;r>>1;if(!(u<=0)){var h,f=i.mallocDouble(2*u*s),d=i.mallocInt32(s);if((s=l(e,u,f,d))>0){if(1===u&&n)a.init(s),h=a.sweepComplete(u,r,0,s,f,d,0,s,f,d);else{var p=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(t,u,p,g))>0&&(a.init(s+c),h=1===u?a.sweepBipartite(u,r,0,s,f,d,0,c,p,g):o(u,r,n,s,f,d,c,p,g),i.free(p),i.free(g))}i.free(f),i.free(d)}return h}}}function u(e,t){n.push([e,t])}},54520:function(e,t,r){"use strict";var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(43659),o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var r=e[f].read();null!==r&&(e[u]=null,e[o]=null,e[s]=null,t(d(r,!1)))}}function g(e){process.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[l]?r(e[l]):t(d(void 0,!0))}))}));var r,n=this[u];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(d(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[h])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(v,(i(t={},f,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var n=r[f].read();n?(r[u]=null,r[o]=null,r[s]=null,e(d(n,!1))):(r[o]=e,r[s]=t)},writable:!0}),t));return r[u]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[u]=null,r[o]=null,r[s]=null,t(e)),void(r[l]=e)}var n=r[o];null!==n&&(r[u]=null,r[o]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),e.on("readable",g.bind(null,r)),r}},54579:function(e,t,r){"use strict";var n=r(47401),i=r(86500);e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("iciclecolorway",t.colorway),r("extendiciclecolors")}},54600:function(e,t,r){"use strict";var n=r(31454),i=function(){};e.exports=function(e){for(var t in e)"function"===typeof e[t]&&(e[t]=i);e.destroy=function(){e.container.parentNode.removeChild(e.container)};var r=document.createElement("div");r.className="no-webgl",r.style.cursor="pointer",r.style.fontSize="24px",r.style.color=n.defaults[0],r.style.position="absolute",r.style.left=r.style.top="0px",r.style.width=r.style.height="100%",r.style["background-color"]=n.lightLine,r.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",r.appendChild(a),e.container.appendChild(r),e.container.style.background="#FFFFFF",e.container.onclick=function(){window.open("https://get.webgl.org")},!1}},54713:function(e,t,r){e.exports={create:r(10833),clone:r(24804),fromValues:r(89091),copy:r(84764),set:r(17237),add:r(70498),subtract:r(82945),multiply:r(597),divide:r(27988),min:r(80065),max:r(56115),scale:r(31927),scaleAndAdd:r(43303),distance:r(9242),squaredDistance:r(96015),length:r(36129),squaredLength:r(26924),negate:r(82523),inverse:r(29965),normalize:r(74858),dot:r(37018),lerp:r(508),random:r(3910),transformMat4:r(35083),transformQuat:r(88074)}},54845:function(e){"use strict";e.exports=function(e,t){var r=0|e.length,n=0|t.length;if(1===r&&1===n)return function(e,t){var r=e+t,n=r-e,i=r-n,a=t-n,o=e-i,s=o+a;if(s)return[s,r];return[r]}(e[0],-t[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,h=e[l],f=u(h),d=-t[c],p=u(d);f=n?(i=h,(l+=1)0,(function(e){u||(u=e),e&&f.forEach(l),a||(f.forEach(l),h(u))}))}));return t.reduce(c)}},54952:function(e,t,r){"use strict";var n=r(8757).hasColorscale,i=r(92171),a=r(77638);e.exports=function(e,t){a.hasLines(t)&&n(t,"line")&&i(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),a.hasMarkers(t)&&(n(t,"marker")&&i(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n(t,"marker.line")&&i(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},54995:function(e,t,r){e.exports=function(e,t){var r=n(e[0],e[1],e[2]),o=n(t[0],t[1],t[2]);i(r,r),i(o,o);var s=a(r,o);return s>1?0:Math.acos(s)};var n=r(12268),i=r(16543),a=r(16283)},55200:function(e,t,r){"use strict";var n=r(68565),i=r(16688).u,a=r(87241).extendFlat,o=r(47401).counterRegex;function s(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}e.exports={_arrayAttrRegexps:[o("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:a(s(0,0,1),{description:["Sets the (x,y,z) components of the 'up' camera vector.","This vector determines the up direction of this scene","with respect to the page.","The default is *{x: 0, y: 0, z: 1}* which means that","the z axis points up."].join(" ")}),center:a(s(0,0,0),{description:["Sets the (x,y,z) components of the 'center' camera vector","This vector determines the translation (x,y,z) space","about the center of this scene.","By default, there is no such translation."].join(" ")}),eye:a(s(1.25,1.25,1.25),{description:["Sets the (x,y,z) components of the 'eye' camera vector.","This vector determines the view point about the origin","of this scene."].join(" ")}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc",description:["Sets the projection type. The projection type could be","either *perspective* or *orthographic*. The default is","*perspective*."].join(" ")},editType:"calc"},editType:"camera"},domain:i({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0},description:["If *cube*, this scene's axes are drawn as a cube,","regardless of the axes' ranges.","If *data*, this scene's axes are drawn","in proportion with the axes' ranges.","If *manual*, this scene's axes are drawn","in proportion with the input of *aspectratio*","(the default behavior if *aspectratio* is provided).","If *auto*, this scene's axes are drawn","using the results of *data* except when one axis","is more than four times the size of the two others,","where in that case the results of *cube* are used."].join(" ")},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"},description:["Sets this scene's axis aspectratio."].join(" ")},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot",description:["Determines the mode of drag interactions for this scene."].join(" ")},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions for this scene."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in camera attributes.","Defaults to `layout.uirevision`."].join(" ")},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera",description:"Obsolete. Use `camera` instead."}}}},55265:function(e,t,r){"use strict";var n=r(37762);e.exports=function(e,t,r){var i={},a=r[t.subplot]._subplot.mockAxis,o=e.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},55344:function(e,t,r){"use strict";var n=r(96122).VG,i=r(96122).rU,a=r(96122).bb,o=n("8BPS\0\x01");e.exports=function(e){if(!(e.length<22)&&i(e,0,o))return{width:a(e,18),height:a(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},55503:function(e,t,r){"use strict";var n=r(69726);function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i=0;c--)if(u[c]!==h[c])return!1;for(c=u.length-1;c>=0;c--)if(!x(e[s=u[c]],t[s],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,r,n){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(r){t=r}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&v(i,r,"Missing expected exception"+n);var a="string"===typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&_(i,r)||s)&&v(i,r,"Got unwanted exception"+n),e&&i&&r&&!_(i,r)||!e&&i)throw i}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return g(m(e.actual),128)+" "+e.operator+" "+g(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=p(t),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(f.AssertionError,Error),f.fail=v,f.ok=y,f.equal=function(e,t,r){e!=t&&v(e,t,r,"==",f.equal)},f.notEqual=function(e,t,r){e==t&&v(e,t,r,"!=",f.notEqual)},f.deepEqual=function(e,t,r){x(e,t,!1)||v(e,t,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,r){x(e,t,!0)||v(e,t,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,r){x(e,t,!1)&&v(e,t,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,r,n){x(t,r,!0)&&v(t,r,n,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,r){e!==t&&v(e,t,r,"===",f.strictEqual)},f.notStrictEqual=function(e,t,r){e===t&&v(e,t,r,"!==",f.notStrictEqual)},f.throws=function(e,t,r){w(!0,e,t,r)},f.doesNotThrow=function(e,t,r){w(!1,e,t,r)},f.ifError=function(e){if(e)throw e},f.strict=n((function e(t,r){t||v(t,!0,r,"==",e)}),f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var T=Object.keys||function(e){var t=[];for(var r in e)s.call(e,r)&&t.push(r);return t}},55627:function(e,t,r){var n=r(60107);e.exports=function(){var e=n();return{get:function(t,r){var n=e(t);return n.hasOwnProperty("value")?n.value:r},set:function(t,r){return e(t).value=r,this},has:function(t){return"value"in e(t)},delete:function(t){return delete e(t).value}}}},55636:function(e,t,r){"use strict";var n=r(96122).VG,i=r(96122).rU,a=r(96122).$l,o=n("BM");e.exports=function(e){if(!(e.length<26)&&i(e,0,o))return{width:a(e,18),height:a(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},55792:function(e,t,r){"use strict";var n=r(28963),i=r(15282);function a(e){return new Function("y","return function(){return y}")(e)}function o(e,t){for(var r=new Array(e),n=0;n4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+r);return"gl.uniformMatrix"+a+"fv(locations["+t+"],false,obj"+e+")"}throw new i("","Unknown uniform data type for "+name+": "+r)}if((a=r.charCodeAt(r.length-1)-48)<2||a>4)throw new i("","Invalid data type");switch(r.charAt(0)){case"b":case"i":return"gl.uniform"+a+"iv(locations["+t+"],obj"+e+")";case"v":return"gl.uniform"+a+"fv(locations["+t+"],obj"+e+")";default:throw new i("","Unrecognized data type for vector "+name+": "+r)}}}function c(e,t){if("object"!==typeof t)return[[e,t]];var r=[];for(var n in t){var i=t[n],a=e;parseInt(n)+""===n?a+="["+n+"]":a+="."+n,"object"===typeof i?r.push.apply(r,c(a,i)):r.push([a,i])}return r}function u(t){for(var n=["return function updateProperty(obj){"],i=c("",t),a=0;a4)throw new i("","Invalid data type");return"b"===e.charAt(0)?o(r,!1):o(r,0)}if(0===e.indexOf("mat")&&4===e.length){var r;if((r=e.charCodeAt(e.length-1)-48)<2||r>4)throw new i("","Invalid uniform dimension type for matrix "+name+": "+e);return o(r*r,0)}throw new i("","Unknown uniform data type for "+name+": "+e)}}(r[c].type);var d}function f(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var r=0;r0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(e){return new M(e)},S.plot=function(e,t,r){var n=this,i=t[this.id],a=[],o=!1;for(var s in w.layerNameToAdjective)if("frame"!==s&&i["show"+s]){o=!0;break}for(var l=0;l0&&a._module.calcGeoJSON(i,t)}if(!this.updateProjection(e,t)){this.viewInitial&&this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(t,r),this.updateDims(t,r),this.updateFx(t,r),p.generalUpdatePerTraceModule(this.graphDiv,this,e,r);var o=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=o.selectAll(".point"),this.dataPoints.text=o.selectAll("text"),this.dataPaths.line=o.selectAll(".js-line");var s=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=s.selectAll("path"),this.render()}},S.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],l=t._size,u=n.domain,h=n.projection,f=n.lonaxis,d=n.lataxis,p=f._ax,g=d._ax,v=this.projection=function(e){var t=e.projection,r=t.type,n=w.projNames[r];n="geo"+c.titleCase(n);for(var l=(i[n]||s[n])(),u=e._isSatellite?180*Math.acos(1/t.distance)/Math.PI:e._isClipped?w.lonaxisSpan[r]/2:null,h=["center","rotate","parallels","clipExtent"],f=function(e){return e?l:[]},d=0;du*Math.PI/180}return!1},l.getPath=function(){return a().projection(l)},l.getBounds=function(e){return l.getPath().bounds(e)},l.precision(w.precision),e._isSatellite&&l.tilt(t.tilt).distance(t.distance);u&&l.clipAngle(u-w.clipPad);return l}(n),y=[[l.l+l.w*u.x[0],l.t+l.h*(1-u.y[1])],[l.l+l.w*u.x[1],l.t+l.h*(1-u.y[0])]],x=n.center||{},b=h.rotation||{},_=f.range||[],T=d.range||[];if(n.fitbounds){p._length=y[1][0]-y[0][0],g._length=y[1][1]-y[0][1],p.range=m(r,p),g.range=m(r,g);var k=(p.range[0]+p.range[1])/2,A=(g.range[0]+g.range[1])/2;if(n._isScoped)x={lon:k,lat:A};else if(n._isClipped){x={lon:k,lat:A},b={lon:k,lat:A,roll:b.roll};var M=h.type,S=w.lonaxisSpan[M]/2||180,L=w.lataxisSpan[M]/2||90;_=[k-S,k+S],T=[A-L,A+L]}else x={lon:k,lat:A},b={lon:k,lat:b.lat,roll:b.roll}}v.center([x.lon-b.lon,x.lat-b.lat]).rotate([-b.lon,-b.lat,b.roll]).parallels(h.parallels);var C=E(_,T);v.fitExtent(y,C);var I=this.bounds=v.getBounds(C),D=this.fitScale=v.scale(),P=v.translate();if(n.fitbounds){var O=v.getBounds(E(p.range,g.range)),z=Math.min((I[1][0]-I[0][0])/(O[1][0]-O[0][0]),(I[1][1]-I[0][1])/(O[1][1]-O[0][1]));isFinite(z)?v.scale(z*D):c.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(h.scale*D);var R=this.midPt=[(I[0][0]+I[1][0])/2,(I[0][1]+I[1][1])/2];if(v.translate([P[0]+(R[0]-P[0]),P[1]+(R[1]-P[1])]).clipExtent(I),n._isAlbersUsa){var F=v([x.lon,x.lat]),j=v.translate();v.translate([j[0]-(F[0]-j[0]),j[1]-(F[1]-j[1])])}},S.updateBaseLayers=function(e,t){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function s(e){return"lonaxis"===e||"lataxis"===e}function l(e){return Boolean(w.lineLayers[e])}function c(e){return Boolean(w.fillLayers[e])}var u=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(e){return l(e)||c(e)?t["show"+e]:!s(e)||t[e].showgrid})),d=r.framework.selectAll(".layer").data(u,String);d.exit().each((function(e){delete a[e],delete o[e],n.select(this).remove()})),d.enter().append("g").attr("class",(function(e){return"layer "+e})).each((function(e){var t=a[e]=n.select(this);"bg"===e?r.bgRect=t.append("rect").style("pointer-events","all"):s(e)?o[e]=t.append("path").style("fill","none"):"backplot"===e?t.append("g").classed("choroplethlayer",!0):"frontplot"===e?t.append("g").classed("scatterlayer",!0):l(e)?o[e]=t.append("path").style("fill","none").style("stroke-miterlimit",2):c(e)&&(o[e]=t.append("path").style("stroke","none"))})),d.order(),d.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];"frame"===r?n.datum(w.sphereSVG):l(r)||c(r)?n.datum(A(i,i.objects[r])):s(r)&&n.datum(function(e,t,r){var n,i,a,o=1e-6,s=2.5,l=t[e],c=w.scopeDefaults[t.scope];"lonaxis"===e?(n=c.lonaxisRange,i=c.lataxisRange,a=function(e,t){return[e,t]}):"lataxis"===e&&(n=c.lataxisRange,i=c.lonaxisRange,a=function(e,t){return[t,e]});var u={type:"linear",range:[n[0],n[1]-o],tick0:l.tick0,dtick:l.dtick};g.setConvert(u,r);var h=g.calcTicks(u);t.isScoped||"lonaxis"!==e||h.pop();for(var f=h.length,d=new Array(f),p=0;p-1&&b(n.event,i,[r.xaxis],[r.yaxis],r.id,h),s.indexOf("event")>-1&&d.click(i,n.event))}))}function f(e){return r.projection.invert([e[0]+r.xaxis._offset,e[1]+r.yaxis._offset])}},S.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,i="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",i),e.clipRect=e.clipDef.append("rect"),e.framework=n.select(e.container).append("g").attr("class","geo "+e.id).call(f.setClipUrl,i,t),e.project=function(t){var r=e.projection(t);return r?[r[0]-e.xaxis._offset,r[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(t){return e.project(t)[0]}},e.yaxis={_id:"y",c2p:function(t){return e.project(t)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},g.setConvert(e.mockAxis,r)},S.saveViewInitial=function(e){var t,r=e.center||{},n=e.projection,i=n.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":n.scale},t=e._isScoped?{"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?{"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat}:{"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":i.lon},c.extendFlat(this.viewInitial,t)},S.render=function(){var e,t=this.projection,r=t.getPath();function n(e){var r=t(e.lonlat);return r?u(r[0],r[1]):null}function i(e){return t.isLonLatOverEdges(e.lonlat)?"none":null}for(e in this.basePaths)this.basePaths[e].attr("d",r);for(e in this.dataPaths)this.dataPaths[e].attr("d",(function(e){return r(e.geojson)}));for(e in this.dataPoints)this.dataPoints[e].attr("display",i).attr("transform",n)}},56240:function(e,t,r){"use strict";var n=r(47624),i=r(63846),a=r(22632),o=r(23003);e.exports=function(e,t){var r=i(e,t),s=r[0].z;a(t,s);var l,c=t.contours,u=n.extractOpts(t);if("heatmap"===c.coloring&&u.auto&&!1===t.autocontour){var h=c.start,f=o(c),d=c.size||1,p=Math.floor((f-h)/d)+1;isFinite(d)||(d=1,p=1);var g=h-d/2;l=[g,g+p*d]}else l=s;return n.calc(e,t,{vals:l,cLetter:"z"}),r}},56249:function(e,t,r){"use strict";var n=r(88403),i=r(35198),a=r(87396),o=r(90035),s=r(1101),l=r(27606);e.exports=function e(t,r){if(n(t))return r?l(t,e(r)):[t[0].clone(),t[1].clone()];var c,u,h=0;if(i(t))c=t.clone();else if("string"===typeof t)c=o(t);else{if(0===t)return[a(0),a(1)];if(t===Math.floor(t))c=a(t);else{for(;t!==Math.floor(t);)t*=Math.pow(2,256),h-=256;c=a(t)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if("string"===typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),h+=256;u=a(r)}else u=a(1);h>0?c=c.ushln(h):h<0&&(u=u.ushln(-h));return s(c,u)}},56308:function(e,t,r){"use strict";e.exports=function(e,t){var r,a,o,s;if(t[0][0]t[1][0]))return i(t,e);r=t[1],a=t[0]}if(e[0][0]e[1][0]))return-i(e,t);o=e[1],s=e[0]}var l=n(r,a,s),c=n(r,a,o);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return a[0]-s[0]};var n=r(30223);function i(e,t){var r,i,a,o;if(t[0][0]t[1][0])){var s=Math.min(e[0][1],e[1][1]),l=Math.max(e[0][1],e[1][1]),c=Math.min(t[0][1],t[1][1]),u=Math.max(t[0][1],t[1][1]);return lu?s-u:l-u}r=t[1],i=t[0]}e[0][1]y&&(y=a.source[t]),a.target[t]>y&&(y=a.target[t]);var x,b=y+1;e.node._count=b;var _=e.node.groups,w={};for(t=0;t<_.length;t++){var T=_[t];for(x=0;x0&&s(E,b)&&s(L,b)&&(!w.hasOwnProperty(E)||!w.hasOwnProperty(L)||w[E]!==w[L])){w.hasOwnProperty(L)&&(L=w[L]),w.hasOwnProperty(E)&&(E=w[E]),L=+L,f[E=+E]=f[L]=!0;var C="";a.label&&a.label[t]&&(C=a.label[t]);var I=null;C&&d.hasOwnProperty(C)&&(I=d[C]),c.push({pointNumber:t,label:C,color:u?a.color[t]:a.color,customdata:h?a.customdata[t]:a.customdata,concentrationscale:I,source:E,target:L,value:+S}),M.source.push(E),M.target.push(L)}}var D=b+_.length,P=o(r.color),O=o(r.customdata),z=[];for(t=0;tb-1,childrenNodes:[],pointNumber:t,label:R,color:P?r.color[t]:r.color,customdata:O?r.customdata[t]:r.customdata})}var F=!1;return function(e,t,r){for(var a=i.init2dArray(e,0),o=0;o1}))}(D,M.source,M.target)&&(F=!0),{circular:F,links:c,nodes:z,groups:_,groupLookup:w}}e.exports=function(e,t){var r=c(t);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},56890:function(e,t,r){"use strict";var n=r(44790).counter;e.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},57005:function(e,t,r){"use strict";var n=r(77638);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:r(47216),supplyDefaults:r(23335),crossTraceDefaults:r(67780),calc:r(28864).calc,crossTraceCalc:r(88515),arraysToCalcdata:r(79475),plot:r(24498),colorbar:r(78666),formatLabels:r(62542),style:r(78608).style,styleOnSelect:r(78608).styleOnSelect,hoverPoints:r(62967),selectPoints:r(70473),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r(66807),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},57071:function(e){e.exports=function(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}},57176:function(e,t,r){"use strict";const n=r(76266),i=r(81128),a=r(98162),o=r(40973),s=r(69726),l=r(88927),{float32:c,fract32:u}=r(69968);e.exports=function(e,t){"function"===typeof e?(t||(t={}),t.regl=e):t=e;t.length&&(t.positions=t);if(!(e=t.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r,f,d,p,g,m,v=e._gl,y={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return p=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),f=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),d=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),g=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=e.buffer({usage:"static",type:"float",data:h}),T(t),r=e({vert:"\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t",frag:"\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t",uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(e,t)=>[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]},attributes:{color:{buffer:p,offset:(e,t)=>4*t.offset,divisor:1},position:{buffer:f,offset:(e,t)=>8*t.offset,divisor:1},positionFract:{buffer:d,offset:(e,t)=>8*t.offset,divisor:1},error:{buffer:g,offset:(e,t)=>16*t.offset,divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:e,gl:v,canvas:v.canvas,groups:x}),b;function b(e){e?T(e):null===e&&k(),_()}function _(t){if("number"===typeof t)return w(t);t&&!Array.isArray(t)&&(t=[t]),e._refresh(),x.forEach(((e,r)=>{e&&(t&&(t[r]?e.draw=!0:e.draw=!1),e.draw?w(r):e.draw=!0)}))}function w(e){"number"===typeof e&&(e=x[e]),null!=e&&e&&e.count&&e.color&&e.opacity&&e.positions&&e.positions.length>1&&(e.scaleRatio=[e.scale[0]*e.viewport.width,e.scale[1]*e.viewport.height],r(e),e.after&&e.after(e))}function T(e){if(!e)return;null!=e.length?"number"===typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let t=0,r=0;if(b.groups=x=e.map(((e,c)=>{let h=x[c];return e?("function"===typeof e?e={after:e}:"number"===typeof e[0]&&(e={positions:e}),e=o(e,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),h||(x[c]=h={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},e=s({},y,e)),a(h,e,[{lineWidth:e=>.5*+e,capSize:e=>.5*+e,opacity:parseFloat,errors:e=>(e=l(e),r+=e.length,e),positions:(e,r)=>(e=l(e,"float64"),r.count=Math.floor(e.length/2),r.bounds=n(e,2),r.offset=t,t+=r.count,e)},{color:(e,t)=>{let r=t.count;if(e||(e="transparent"),!Array.isArray(e)||"number"===typeof e[0]){let t=e;e=Array(r);for(let n=0;n{let n=t.bounds;return e||(e=n),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=u(t.scale),t.translateFract=u(t.translate),e},viewport:e=>{let t;return Array.isArray(e)?t={x:e[0],y:e[1],width:e[2]-e[0],height:e[3]-e[1]}:e?(t={x:e.x||e.left||0,y:e.y||e.top||0},e.right?t.width=e.right-t.x:t.width=e.w||e.width||0,e.bottom?t.height=e.bottom-t.y:t.height=e.h||e.height||0):t={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},t}}]),h):h})),t||r){let e=x.reduce(((e,t,r)=>e+(t?t.count:0)),0),t=new Float64Array(2*e),r=new Uint8Array(4*e),n=new Float32Array(4*e);x.forEach(((e,i)=>{if(!e)return;let{positions:a,count:o,offset:s,color:l,errors:c}=e;o&&(r.set(l,4*s),n.set(c,4*s),t.set(a,2*s))}));var h=c(t);f(h);var m=u(t,h);d(m),p(r),g(n)}}function k(){f.destroy(),d.destroy(),p.destroy(),g.destroy(),m.destroy()}};const h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},57257:function(e,t){"use strict";var r={};function n(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,i){var a=r[e],o=Date.now();if(!a){for(var s in r)r[s].tsa.ts+t?l():a.timer=setTimeout((function(){l(),a.timer=null}),t)},t.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var r=t.onDone;t.onDone=function(){r&&r(),e(),t.onDone=null}})):Promise.resolve()},t.clear=function(e){if(e)n(r[e]),delete r[e];else for(var i in r)t.clear(i)}},57415:function(e,t,r){"use strict";var n=r(62258),i=r(62282),a=r(35722),o=r(31454),s=r(41707),l=r(47401),c=l.strTranslate,u=r(43995),h=r(77063),f=r(60482),d=f.LINE_SPACING,p=f.FROM_TL,g=f.FROM_BR,m=r(94316),v=r(33231);function y(e){return e._id}function x(e,t,r){var n=l.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,r)).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,n){l.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(s.font,t.font).text(function(e,t){if(e.label)return t?l.templateString(e.label,t):e.label;return"all"===e.step?"all":e.count+e.step.charAt(0)}(r,n._fullLayout._meta)).call((function(e){u.convertToTspans(e,n)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=h.list(e,"x",!0),r=[],n=0;n=c&&(y.marker.cluster=p.tree),y.marker&&(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&&_.length>1&&l.extendFlat(y.line,s.linePositions(e,d,_)),y.text&&(l.extendFlat(y.text,{positions:_},s.textPosition(e,d,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(e,d,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(e,d,y.text,y.markerUnsel))),y.fill&&!f.fill2d&&(f.fill2d=!0),y.marker&&!f.scatter2d&&(f.scatter2d=!0),y.line&&!f.line2d&&(f.line2d=!0),y.text&&!f.glText&&(f.glText=!0),f.lineOptions.push(y.line),f.fillOptions.push(y.fill),f.markerOptions.push(y.marker),f.markerSelectedOptions.push(y.markerSel),f.markerUnselectedOptions.push(y.markerUnsel),f.textOptions.push(y.text),f.textSelectedOptions.push(y.textSel),f.textUnselectedOptions.push(y.textUnsel),f.selectBatch.push([]),f.unselectBatch.push([]),p.x=w,p.y=T,p.rawx=w,p.rawy=T,p.r=m,p.theta=v,p.positions=_,p._scene=f,p.index=f.count,f.count++}})),a(e,t,r)}}},57481:function(e,t,r){"use strict";var n=e.exports={},i=r(73437).locationmodeToLayer,a=r(46615).N4;n.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")},n.getTopojsonPath=function(e,t){return e+t+".json"},n.getTopojsonFeatures=function(e,t){var r=i[e.locationmode],n=t.objects[r];return a(t,n).features}},57775:function(e,t,r){"use strict";e.exports=r(79933)("forEach")},57977:function(e,t,r){"use strict";r.d(t,{$t:function(){return i},F2:function(){return u},F8:function(){return x},FA:function(){return l},FP:function(){return d},HQ:function(){return T},Ml:function(){return w},Ni:function(){return n},RZ:function(){return _},Rm:function(){return v},TW:function(){return o},_S:function(){return b},bo:function(){return A},gn:function(){return p},gz:function(){return s},mk:function(){return g},n7:function(){return y},oN:function(){return m},pi:function(){return a},qR:function(){return k},rY:function(){return f},tn:function(){return h},uj:function(){return c}});var n=1e-6,i=1e-12,a=Math.PI,o=a/2,s=a/4,l=2*a,c=180/a,u=a/180,h=Math.abs,f=Math.atan,d=Math.atan2,p=Math.cos,g=Math.ceil,m=Math.exp,v=(Math.floor,Math.log),y=Math.pow,x=Math.sin,b=Math.sign||function(e){return e>0?1:e<0?-1:0},_=Math.sqrt,w=Math.tan;function T(e){return e>1?0:e<-1?a:Math.acos(e)}function k(e){return e>1?o:e<-1?-o:Math.asin(e)}function A(e){return(e=x(e/2))*e}},58048:function(e,t,r){"use strict";var n=r(31454),i=r(8757).hasColorscale,a=r(94060),o=r(47401).coercePattern;e.exports=function(e,t,r,s,l){var c=r("marker.color",s),u=i(e,"marker");u&&a(e,t,l,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),i(e,"marker.line")&&a(e,t,l,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},58058:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=r(41707),o=r(9405).BADNUM,s=r(74835),l=r(77846).clearMinTextSize;e.exports=function(e,t,r,c){var u=e._fullLayout;l("waterfall",u),s.plot(e,t,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(e,t,r,s){var l=t.xaxis,c=t.yaxis;i.makeTraceGroups(s,r,"trace bars").each((function(r){var s=n.select(this),u=r[0].trace,h=i.ensureSingle(s,"g","lines");if(u.connector&&u.connector.visible){var f="h"===u.orientation,d=u.connector.mode,p=h.selectAll("g.line").data(i.identity);p.enter().append("g").classed("line",!0),p.exit().remove();var g=p.size();p.each((function(r,s){if(s===g-1||r.cNext){var u=function(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,f),h=u[0],p=u[1],m="";h[0]!==o&&p[0]!==o&&h[1]!==o&&p[1]!==o&&("spanning"===d&&!r.isSum&&s>0&&(m+=f?"M"+h[0]+","+p[1]+"V"+p[0]:"M"+h[1]+","+p[0]+"H"+h[0]),"between"!==d&&(r.isSum||s0){var x,b,_,w,T,k=e.xa,A=e.ya;"h"===d.orientation?(T=t,x="y",_=A,b="x",w=k):(T=r,x="x",_=k,b="y",w=A);var M=f[e.index];if(T>=M.span[0]&&T<=M.span[1]){var S=n.extendFlat({},e),E=w.c2p(T,!0),L=o.getKdeValue(M,d,T),C=o.getPositionOnKdePath(M,d,E),I=_._offset,D=_._length;S[x+"0"]=C[0],S[x+"1"]=C[1],S[b+"0"]=S[b+"1"]=E,S[b+"Label"]=b+": "+i.hoverLabelText(w,T,d[b+"hoverformat"])+", "+f[0].t.labels.kde+" "+L.toFixed(3),S.spikeDistance=y[0].spikeDistance;var P=x+"Spike";S[P]=y[0][P],y[0].spikeDistance=void 0,y[0][P]=void 0,S.hovertemplate=!1,v.push(S),(u={stroke:e.color})[x+"1"]=n.constrain(I+C[0],I,I+D),u[x+"2"]=n.constrain(I+C[1],I,I+D),u[b+"1"]=u[b+"2"]=w._offset+E}}g&&(v=v.concat(y))}-1!==p.indexOf("points")&&(c=a.hoverOnPoints(e,t,r));var O=h.selectAll(".violinline-"+d.uid).data(u?[0]:[]);return O.enter().append("line").classed("violinline-"+d.uid,!0).attr("stroke-width",1.5),O.exit().remove(),O.attr(u),"closest"===s?c?[c]:v:c?(v.push(c),v):v}},58097:function(e,t,r){"use strict";r.d(t,{Y:function(){return o}});var n=r(8036),i=r(53129),a=(0,n.A)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*i.Tt)}),(function(e,t){return(t-e)/i.Tt}),(function(e){return e.getUTCSeconds()}));t.A=a;var o=a.range},58124:function(e,t,r){"use strict";var n=r(62967),i=r(47401).fillText;e.exports=function(e,t,r,a){var o=n(e,t,r,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/e.ya._length,c=e.xa._length,u=c*l/2,h=c-u;return s.x0=Math.max(Math.min(s.x0,h),u),s.x1=Math.max(Math.min(s.x1,h),u),o}var f=s.cd[s.index];s.a=f.a,s.b=f.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var d=s.trace,p=d._carpet,g=d._module.formatLabels(f,d);s.yLabel=g.yLabel,delete s.text;var m=[];if(!d.hovertemplate){var v=(f.hi||d.hoverinfo).split("+");-1!==v.indexOf("all")&&(v=["a","b","text"]),-1!==v.indexOf("a")&&y(p.aaxis,f.a),-1!==v.indexOf("b")&&y(p.baxis,f.b),m.push("y: "+s.yLabel),-1!==v.indexOf("text")&&i(f,d,m),s.extraText=m.join("
")}return o}function y(e,t){var r;r=e.labelprefix&&e.labelprefix.length>0?e.labelprefix.replace(/ = $/,""):e._hovertitle,m.push(r+": "+t.toFixed(3)+e.labelsuffix)}}},58198:function(e,t,r){"use strict";var n=r(13373).eV,i=r(42256),a="table";t.name=a,t.plot=function(e){var t=n(e.calcdata,a)[0];t.length&&i(e,t)},t.clean=function(e,t,r,n){var i=n._has&&n._has(a),o=t._has&&t._has(a);i&&!o&&n._paperdiv.selectAll(".table").remove()}},58233:function(e,t,r){"use strict";const n=r(8084),i=r(40973),a=r(76266),o=r(60940),s=r(84168),l=r(94947),c=r(88927);function u(e,t){if(!(this instanceof u))return new u(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=n(e),this.canvas=this.scatter.canvas}function h(e,t,r){return(null!=e.id?e.id:e)<<16|(255&t)<<8|255&r}function f(e,t,r){let n,i,a,o,s,l,c,u,h=e[t],f=e[r];return h.length>2?(n=h[0],a=h[2],i=h[1],o=h[3]):h.length?(n=i=h[0],a=o=h[1]):(n=h.x,i=h.y,a=h.x+h.width,o=h.y+h.height),f.length>2?(s=f[0],c=f[2],l=f[1],u=f[3]):f.length?(s=l=f[0],c=u=f[1]):(s=f.x,l=f.y,c=f.x+f.width,u=f.y+f.height),[s,i,c,o]}function d(e){if("number"===typeof e)return[e,e,e,e];if(2===e.length)return[e[0],e[1],e[0],e[1]];{let t=l(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}e.exports=u,u.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=o((()=>{this.draw(),this.dirty=!0,this.planned=null}))):(this.draw(),this.dirty=!0,o((()=>{this.dirty=!1}))),this)},u.prototype.update=function(...e){if(!e.length)return;for(let n=0;ne)continue;if(!s.lower&&i{t[a+r]=n}))}this.scatter.draw(...t)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},58243:function(e){e.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},58408:function(e,t,r){"use strict";var n=r(47401),i=r(31454),a=r(76510),o=r(75781),s=r(20975);function l(e,t,r,n){var a=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",i.addOpacity(a,.5))}e.exports=function(e,t,r,i){function c(r,i){return n.coerce(e,t,s,r,i)}a(e,t,c,i)?(o(e,t,i,c,{x:!0}),c("xhoverformat"),c("yhoverformat"),c("line.width"),l(e,t,c,"increasing"),l(e,t,c,"decreasing"),c("text"),c("hovertext"),c("whiskerwidth"),i._requestRangeslider[t.xaxis]=!0):t.visible=!1}},58548:function(e,t,r){"use strict";var n=r(35722);t.name="sunburst",t.plot=function(e,r,i,a){n.plotBasePlot(t.name,e,r,i,a)},t.clean=function(e,r,i,a){n.cleanBasePlot(t.name,e,r,i,a)}},58555:function(e,t,r){"use strict";var n=r(83491),i=r(9772),a=r(35722),o=r(47401),s=r(4475),l=r(4979),c=r(66434),u=r(20817).version,h={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};e.exports=function(e,t){var r,f,d,p;function g(e){return!(e in t)||o.validate(t[e],h[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],f=e.layout||{},d=e.config||{},p={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),f=o.extendDeep({},e.layout),d=e._context,p=e._fullLayout||{}),!g("width")&&null!==t.width||!g("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Export format is not "+o.join2(h.format.values,", "," or ")+".");var m={};function v(e,r){return o.coerce(t,m,h,e,r)}var y=v("format"),x=v("width"),b=v("height"),_=v("scale"),w=v("setBackground"),T=v("imageDataOnly"),k=document.createElement("div");k.style.position="absolute",k.style.left="-5000px",document.body.appendChild(k);var A=o.extendFlat({},f);x?A.width=x:null===t.width&&n(p.width)&&(A.width=p.width),b?A.height=b:null===t.height&&n(p.height)&&(A.height=p.height);var M=o.extendFlat({},d,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(e){setTimeout(e,s.getDelay(k._fullLayout))}))}function L(){return new Promise((function(e,t){var r=l(k,y,_),n=k._fullLayout.width,h=k._fullLayout.height;function f(){i.purge(k),document.body.removeChild(k)}if("full-json"===y){var d=a.graphJson(k,!1,"keepdata","object",!0,!0);return d.version=u,d=JSON.stringify(d),f(),e(T?d:s.encodeJSON(d))}if(f(),"svg"===y)return e(T?r:s.encodeSVG(r));var p=document.createElement("canvas");p.id=o.randstr(),c({format:y,width:n,height:h,scale:_,canvas:p,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){i.newPlot(k,r,A,M).then(S).then(E).then(L).then((function(t){e(function(e){return T?e.replace(s.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},58712:function(e,t,r){"use strict";r.d(t,{A:function(){return x},U:function(){return b}});var n=r(14691),i=r(58979),a=r(42180),o=r(74443),s=r(35933),l=r(57977),c=r(64377),u=r(72563),h=r(70078),f=r(76409),d=16,p=(0,l.gn)(30*l.F2);function g(e,t){return+t?function(e,t){function r(n,i,a,o,s,c,u,h,f,d,g,m,v,y){var x=u-n,b=h-i,_=x*x+b*b;if(_>4*t&&v--){var w=o+d,T=s+g,k=c+m,A=(0,l.RZ)(w*w+T*T+k*k),M=(0,l.qR)(k/=A),S=(0,l.tn)((0,l.tn)(k)-1)t||(0,l.tn)((x*I+b*D)/_-.5)>.3||o*d+s*g+c*m2?e[2]%360*l.F2:0,V()):[L*l.uj,C*l.uj,I*l.uj]},B.angle=function(e){return arguments.length?(D=e%360*l.F2,V()):D*l.uj},B.reflectX=function(e){return arguments.length?(P=e?-1:1,V()):P<0},B.reflectY=function(e){return arguments.length?(O=e?-1:1,V()):O<0},B.precision=function(e){return arguments.length?(x=g(b,N=e*e),q()):(0,l.RZ)(N)},B.fitExtent=function(e,t){return(0,h.sp)(B,e,t)},B.fitSize=function(e,t){return(0,h.Hv)(B,e,t)},B.fitWidth=function(e,t){return(0,h.G0)(B,e,t)},B.fitHeight=function(e,t){return(0,h.FL)(B,e,t)},function(){return t=e.apply(this,arguments),B.invert=t.invert&&U,V()}}},58763:function(e){"use strict";e.exports={treemapcolorway:{valType:"colorlist",editType:"calc",description:["Sets the default treemap slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendtreemapcolors`."].join(" ")},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the treemap slice colors (whether given by `treemapcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},58859:function(e,t,r){var n=r(97615),i=r(69726);function a(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){return(this._validate(e,t,r,n.local.invalidDate).day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),(r=i.day())+(t>1?16:0)+(t>2?32*(t-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-32*(r-1)+1;return this.newDate(t<=0?t-1:t,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=a},58893:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?a._writableState?a._writableState.errorEmitted?process.nextTick(r,a):(a._writableState.errorEmitted=!0,process.nextTick(t,a,e)):process.nextTick(t,a,e):i?(process.nextTick(r,a),i(e)):process.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},58908:function(e,t,r){var n=r(20918);e.exports=function(e,t,r){function i(e,t,n){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(e,r){a.insertBefore(e,(function(n){return function(e,r,n,i,a,o){var s=t.pointsCompare(r,a);return 0!==s?s:t.pointsSame(n,o)?0:e!==i?e?1:-1:t.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(e.isStart,e.pt,r,n.isStart,n.pt,n.other.pt)<0}))}function s(e,t){var r=function(e,t){var r=n.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(r,e.end),r}(e,t);return function(e,t,r){var i=n.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=i,o(i,e.pt)}(r,e,t),r}function l(e,t){var n=i(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),s(n,e.primary)}function c(i,o){var s=n.create();function c(e){return s.findTransition((function(r){return function(e,r){var n=e.seg.start,i=e.seg.end,a=r.seg.start,o=r.seg.end;return t.pointsCollinear(n,a,o)?t.pointsCollinear(i,a,o)||t.pointAboveOrOnLine(i,a,o)?1:-1:t.pointAboveOrOnLine(n,a,o)?1:-1}(e,r.ev)>0}))}function u(e,n){var i=e.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&&r.checkIntersection(i,a);var h=t.linesIntersect(o,s,c,u);if(!1===h){if(!t.pointsCollinear(o,s,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(s,c))return!1;var f=t.pointsSame(o,c),d=t.pointsSame(s,u);if(f&&d)return n;var p=!f&&t.pointBetween(o,c,u),g=!d&&t.pointBetween(s,c,u);if(f)return g?l(n,s):l(e,u),n;p&&(d||(g?l(n,s):l(e,u)),l(n,o))}else 0===h.alongA&&(-1===h.alongB?l(e,c):0===h.alongB?l(e,h.pt):1===h.alongB&&l(e,u)),0===h.alongB&&(-1===h.alongA?l(n,o):0===h.alongA?l(n,h.pt):1===h.alongA&&l(n,s));return!1}for(var h=[];!a.isEmpty();){var f=a.getHead();if(r&&r.vert(f.pt[0]),f.isStart){r&&r.segmentNew(f.seg,f.primary);var d=c(f),p=d.before?d.before.ev:null,g=d.after?d.after.ev:null;function m(){if(p){var e=u(f,p);if(e)return e}return!!g&&u(f,g)}r&&r.tempStatus(f.seg,!!p&&p.seg,!!g&&g.seg);var v,y=m();if(y){var x;if(e)(x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=f.seg.myFill;r&&r.segmentUpdate(y.seg),f.other.remove(),f.remove()}if(a.getHead()!==f){r&&r.rewind(f.seg);continue}if(e)x=null===f.seg.myFill.below||f.seg.myFill.above!==f.seg.myFill.below,f.seg.myFill.below=g?g.seg.myFill.above:i,f.seg.myFill.above=x?!f.seg.myFill.below:f.seg.myFill.below;else if(null===f.seg.otherFill)v=g?f.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:f.primary?o:i,f.seg.otherFill={above:v,below:v};r&&r.status(f.seg,!!p&&p.seg,!!g&&g.seg),f.other.status=d.insert(n.node({ev:f}))}else{var b=f.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(b.prev)&&s.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!f.primary){var _=f.seg.myFill;f.seg.myFill=f.seg.otherFill,f.seg.otherFill=_}h.push(f.seg)}a.getHead().remove()}return r&&r.done(),h}return e?{addRegion:function(e){for(var n,i,a,o=e[e.length-1],l=0;l0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var n=e.range[0],i=e.range[1];return.5*(n+i-2*m*Math.abs(n-i))}return g}function L(t,r,n,i){if((i||{}).msUTC&&s(t))return+t;var o=u(t,n||e.calendar);if(o===g){if(!s(t))return g;t=+t;var l=Math.floor(10*a.mod(t+.05,1)),c=Math.round(t-l/10);o=u(new Date(c))+l/10}return o}function C(t,r,n){return c(t,r,n||e.calendar)}function I(t){return e._categories[Math.round(t)]}function D(t){if(S(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"===typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return g}function P(t){if(e._categoriesMap)return e._categoriesMap[t]}function O(e){var t=P(e);return void 0!==t?t:s(e)?+e:void 0}function z(e){return s(e)?+e:P(e)}function R(e,t,r){return n.round(r+t*e,2)}function F(e,t,r){return(e-r)/t}var j=function(t){return s(t)?R(t,e._m,e._b):g},N=function(t){return F(t,e._m,e._b)};if(e.rangebreaks){var B="y"===d;j=function(t){if(!s(t))return g;var r=e._rangebreaks.length;if(!r)return R(t,e._m,e._b);var n=B;e.range[0]>e.range[1]&&(n=!n);for(var i=n?-1:1,a=i*t,o=0,l=0;lu)){o=a<(c+u)/2?l:l+1;break}o=l+1}var h=e._B[o]||0;return isFinite(h)?R(t,e._m2,h):0},N=function(t){var r=e._rangebreaks.length;if(!r)return F(t,e._m,e._b);for(var n=0,i=0;ie._rangebreaks[i].pmax&&(n=i+1);return F(t,e._m2,e._B[n])}}e.c2l="log"===e.type?E:h,e.l2c="log"===e.type?M:h,e.l2p=j,e.p2l=N,e.c2p="log"===e.type?function(e,t){return j(E(e,t))}:j,e.p2c="log"===e.type?function(e){return M(N(e))}:N,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=l,e.c2d=e.c2r=e.l2d=e.l2r=h,e.d2p=e.r2p=function(t){return e.l2p(l(t))},e.p2d=e.p2r=N,e.cleanPos=h):"log"===e.type?(e.d2r=e.d2l=function(e,t){return E(l(e),t)},e.r2d=e.r2c=function(e){return M(l(e))},e.d2c=e.r2l=l,e.c2d=e.l2r=h,e.c2r=E,e.l2d=M,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return M(N(e))},e.r2p=function(t){return e.l2p(l(t))},e.p2r=N,e.cleanPos=h):"date"===e.type?(e.d2r=e.r2d=a.identity,e.d2c=e.r2c=e.d2l=e.r2l=L,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,r,n){return e.l2p(L(t,0,n))},e.p2d=e.p2r=function(e,t,r){return C(N(e),t,r)},e.cleanPos=function(t){return a.cleanDate(t,g,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=D,e.r2d=e.c2d=e.l2d=I,e.d2r=e.d2l_noadd=O,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=h,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return I(N(e))},e.r2p=e.d2p,e.p2r=N,e.cleanPos=function(e){return"string"===typeof e&&""!==e?e:h(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=I,e.d2r=e.d2l_noadd=O,e.r2c=function(t){var r=O(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=P,e.l2r=e.c2r=h,e.r2l=O,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return I(N(e))},e.r2p=e.d2p,e.p2r=N,e.cleanPos=function(e){return Array.isArray(e)||"string"===typeof e&&""!==e?e:h(e)},e.setupMultiCategory=function(n){var i,o,s=e._traceIndices,l=e._matchGroup;if(l&&0===e._categories.length)for(var c in l)if(c!==r){var u=t[w.id2name(c)];s=s.concat(u._traceIndices)}var h=[[0,{}],[0,{}]],p=[];for(i=0;ip&&(o[n]=p),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else a.nestedProperty(e,t).set(i)},e.setScale=function(r){var n=t._size;if(e.overlaying){var i=w.getFromId({_fullLayout:t},e.overlaying);e.domain=i.domain}var a=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(a);var s,l,c=e.r2l(e[a][0],o),u=e.r2l(e[a][1],o),h="y"===d;if((h?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(s=0;su&&(f=!f),f&&e._rangebreaks.reverse();var p=f?-1:1;for(e._m2=p*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(h?u:c)),s=0;si&&(i+=7,oi&&(i+=24,o=n&&o=n&&t=s.min&&(es.max&&(s.max=n),i=!1)}i&&c.push({min:e,max:n})}};for(n=0;n0,c=(0,a.tn)(t)>a.Ni;function u(e,r){return(0,a.gn)(e)*(0,a.gn)(r)>t}function h(e,r,i){var o=(0,n.jf)(e),s=(0,n.jf)(r),l=[1,0,0],c=(0,n.r8)(o,s),u=(0,n.W8)(c,c),h=c[0],f=u-h*h;if(!f)return!i&&e;var d=t*u/f,p=-t*h/f,g=(0,n.r8)(l,c),m=(0,n.ly)(l,d),v=(0,n.ly)(c,p);(0,n.ep)(m,v);var y=g,x=(0,n.W8)(m,y),b=(0,n.W8)(y,y),_=x*x-b*((0,n.W8)(m,m)-1);if(!(_<0)){var w=(0,a.RZ)(_),T=(0,n.ly)(y,(-x-w)/b);if((0,n.ep)(T,m),T=(0,n.EV)(T),!i)return T;var k,A=e[0],M=r[0],S=e[1],E=r[1];M0^T[1]<((0,a.tn)(T[0]-A)a.pi^(A<=T[0]&&T[0]<=M)){var I=(0,n.ly)(y,(-x+w)/b);return(0,n.ep)(I,m),[T,(0,n.EV)(I)]}}}function f(t,r){var n=l?e:a.pi-e,i=0;return t<-n?i|=1:t>n&&(i|=2),r<-n?i|=4:r>n&&(i|=8),i}return(0,s.A)(u,(function(e){var t,r,n,i,s;return{lineStart:function(){i=n=!1,s=1},point:function(d,p){var g,m=[d,p],v=u(d,p),y=l?v?0:f(d,p):v?f(d+(d<0?a.pi:-a.pi),p):0;if(!t&&(i=n=v)&&e.lineStart(),v!==n&&(!(g=h(t,m))||(0,o.A)(t,g)||(0,o.A)(m,g))&&(m[2]=1),v!==n)s=0,v?(e.lineStart(),g=h(m,t),e.point(g[0],g[1])):(g=h(t,m),e.point(g[0],g[1],2),e.lineEnd()),t=g;else if(c&&t&&l^v){var x;y&r||!(x=h(m,t,!0))||(s=0,l?(e.lineStart(),e.point(x[0][0],x[0][1]),e.point(x[1][0],x[1][1]),e.lineEnd()):(e.point(x[1][0],x[1][1]),e.lineEnd(),e.lineStart(),e.point(x[0][0],x[0][1],3)))}!v||t&&(0,o.A)(t,m)||e.point(m[0],m[1]),t=m,n=v,r=y},lineEnd:function(){n&&e.lineEnd(),t=null},clean:function(){return s|(i&&n)<<1}}}),(function(t,n,a,o){(0,i.J)(o,e,r,a,t,n)}),l?[0,-e]:[-a.pi,e-a.pi])}},59055:function(e){"use strict";e.exports={hiddenlabels:{valType:"data_array",editType:"calc",description:["hiddenlabels is the funnelarea & pie chart analog of","visible:'legendonly'","but it can contain many labels, and can simultaneously","hide slices from several pies/funnelarea charts"].join(" ")},piecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default pie slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendpiecolors`."].join(" ")},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the pie slice colors (whether given by `piecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},59371:function(e,t,r){"use strict";var n=r(31454),i=r(80084).castOption;e.exports=function(e,t,r){var a=r.marker.line,o=i(a.color,t.pts)||n.defaultLine,s=i(a.width,t.pts)||0;e.style("stroke-width",s).call(n.fill,t.color).call(n.stroke,o)}},59404:function(e,t,r){"use strict";var n=r(54952),i=r(28864).calcMarkerSize,a=r(60465),o=r(37762),s=r(47163).TOO_MANY_POINTS;e.exports=function(e,t){var r=e._fullLayout,l=t.subplot,c=r[l].radialaxis,u=r[l].angularaxis,h=t._r=c.makeCalcdata(t,"r"),f=t._theta=u.makeCalcdata(t,"theta"),d=t._length,p={};d-1&&(h[d[r]].title={text:""});for(r=0;ro.width||c>o.height)&&(o=u)}return{width:o.width,height:o.height,variants:a,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},59718:function(e,t,r){"use strict";var n=r(62258),i=r(35722),a=r(21661),o=r(31454),s=r(41707),l=r(47401),c=l.strScale,u=l.strTranslate,h=r(43995),f=r(77846),d=f.recordMinTextSize,p=f.clearMinTextSize,g=r(33419).TEXTPAD,m=r(80084),v=r(41240),y=r(47401).isValidTextValue;function x(e,t,r){var i=r[0],o=i.cx,s=i.cy,c=i.trace,u="funnelarea"===c.type;"_hasHoverLabel"in c||(c._hasHoverLabel=!1),"_hasHoverEvent"in c||(c._hasHoverEvent=!1),e.on("mouseover",(function(e){var r=t._fullLayout,h=t._fullData[c.index];if(!t._dragging&&!1!==r.hovermode){var f=h.hoverinfo;if(Array.isArray(f)&&(f=a.castHoverinfo({hoverinfo:[m.castOption(f,e.pts)],_module:c._module},r,0)),"all"===f&&(f="label+text+value+percent+name"),h.hovertemplate||"none"!==f&&"skip"!==f&&f){var d=e.rInscribed||0,p=o+e.pxmid[0]*(1-d),g=s+e.pxmid[1]*(1-d),y=r.separators,x=[];if(f&&-1!==f.indexOf("label")&&x.push(e.label),e.text=m.castOption(h.hovertext||h.text,e.pts),f&&-1!==f.indexOf("text")){var b=e.text;l.isValidTextValue(b)&&x.push(b)}e.value=e.v,e.valueLabel=m.formatPieValue(e.v,y),f&&-1!==f.indexOf("value")&&x.push(e.valueLabel),e.percent=e.v/i.vTotal,e.percentLabel=m.formatPiePercent(e.percent,y),f&&-1!==f.indexOf("percent")&&x.push(e.percentLabel);var _=h.hoverlabel,w=_.font,T=[];a.loneHover({trace:c,x0:p-d*i.r,x1:p+d*i.r,y:g,_x0:u?o+e.TL[0]:p-d*i.r,_x1:u?o+e.TR[0]:p+d*i.r,_y0:u?s+e.TL[1]:g-d*i.r,_y1:u?s+e.BL[1]:g+d*i.r,text:x.join("
"),name:h.hovertemplate||-1!==f.indexOf("name")?h.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:m.castOption(_.bgcolor,e.pts)||e.color,borderColor:m.castOption(_.bordercolor,e.pts),fontFamily:m.castOption(w.family,e.pts),fontSize:m.castOption(w.size,e.pts),fontColor:m.castOption(w.color,e.pts),nameLength:m.castOption(_.namelength,e.pts),textAlign:m.castOption(_.align,e.pts),hovertemplate:m.castOption(h.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[v(e,h)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:T}),e.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[v(e,h)],event:n.event})}})),e.on("mouseout",(function(e){var r=t._fullLayout,i=t._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(e.originalEvent=n.event,t.emit("plotly_unhover",{points:[v(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),e.on("click",(function(e){var r=t._fullLayout,i=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[v(e,i)],a.click(t,n.event))}))}function b(e,t,r){var n=m.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=m.castOption(e._input.textfont.color,t.pts));var i=m.castOption(e.insidetextfont.family,t.pts)||m.castOption(e.textfont.family,t.pts)||r.family,a=m.castOption(e.insidetextfont.size,t.pts)||m.castOption(e.textfont.size,t.pts)||r.size;return{color:n||o.contrast(t.color),family:i,size:a}}function _(e,t){for(var r,n,i=0;it&&t>n||r=-4;m-=2)v(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)v(Math.PI*(m+1),"tan")}if(h||d){for(m=4;m>=-4;m-=2)v(Math.PI*(m+1.5),"rad");for(m=4;m>=-4;m-=2)v(Math.PI*(m+.5),"rad")}}if(s||p||h){var y=Math.sqrt(e.width*e.width+e.height*e.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,a.scale>=1)return a;g.push(a)}(p||d)&&((a=T(e,n,o,l,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(a)),(p||f)&&((a=k(e,n,o,l,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_=1)break}return g[x]}function T(e,t,r,n,i){t=Math.max(0,t-2*g);var a=e.width/e.height,o=S(a,n,t,r);return{scale:2*o/e.height,rCenter:A(a,o/t),rotate:M(i)}}function k(e,t,r,n,i){t=Math.max(0,t-2*g);var a=e.height/e.width,o=S(a,n,t,r);return{scale:2*o/e.width,rCenter:A(a,o/t),rotate:M(i+Math.PI/2)}}function A(e,t){return Math.cos(t)-e*t}function M(e){return(180/Math.PI*e+720)%180-90}function S(e,t,r,n){var i=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(e*e+n/2)+e))}function E(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function L(e,t){var r=t.pxmid[0],n=t.pxmid[1],i=e.width/2,a=e.height/2;return r<0&&(i*=-1),n<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function C(e,t){var r,n,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=D(a),-1!==a.title.position.indexOf("top")?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):-1!==a.title.position.indexOf("bottom")&&(o.y+=(1+i)*e.r);var l,c,u=(l=e.r,c=e.trace.aspectratio,l/(void 0===c?1:c)),h=t.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf("left")?(h+=u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):-1!==a.title.position.indexOf("center")?h*=2:-1!==a.title.position.indexOf("right")&&(h+=u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=h/e.titleBox.width,n=I(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function D(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function P(e,t){for(var r=[],n=0;n1?u=(c=r.r)/i.aspectratio:c=(u=r.r)*i.aspectratio,l=(c*=(1+i.baseratio)/2)*u}o=Math.min(o,l/r.vTotal)}for(n=0;n")}if(a){var x=l.castOption(i,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:m.formatPieValue(e.v,n.separators),percent:e.v/r.vTotal,percentLabel:m.formatPiePercent(e.v/r.vTotal,n.separators),color:e.color,text:e.text,customdata:l.castOption(i,e.i,"customdata")}}(t),_=m.getFirstFilled(i.text,t.pts);(y(_)||""===_)&&(b.text=_),t.text=l.texttemplateString(x,b,e._fullLayout._d3locale,b,i._meta||{})}else t.text=""}}function R(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}e.exports={plot:function(e,t){var r=e._fullLayout,a=r._size;p("pie",r),_(t,e),P(t,a);var f=l.makeTraceGroups(r._pielayer,t,"trace").each((function(t){var f=n.select(this),p=t[0],g=p.trace;!function(e){var t,r,n,i=e[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;ti.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(t),f.attr("stroke-linejoin","round"),f.each((function(){var v=n.select(this).selectAll("g.slice").data(t);v.enter().append("g").classed("slice",!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll("path,g").remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]<0?0:1][i.pxmid[0]<0?0:1].push(i);var o=p.cx,c=p.cy,u=n.select(this),f=u.selectAll("path.surface").data([i]);if(f.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),u.call(x,e,t),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v>0&&(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===p.vTotal){var k="M"+(o+i.px0[0])+","+(c+i.px0[1])+C(i.px0,i.pxmid,!0,1)+C(i.pxmid,i.px0,!0,1)+"Z";T?f.attr("d","M"+(o+T*i.px0[0])+","+(c+T*i.px0[1])+C(i.px0,i.pxmid,!1,T)+C(i.pxmid,i.px0,!1,T)+"Z"+k):f.attr("d",k)}else{var A=C(i.px0,i.px1,!0,1);if(T){var M=1-T;f.attr("d","M"+(o+T*i.px1[0])+","+(c+T*i.px1[1])+C(i.px1,i.px0,!1,T)+"l"+M*i.px0[0]+","+M*i.px0[1]+A+"Z")}else f.attr("d","M"+o+","+c+"l"+i.px0[0]+","+i.px0[1]+A+"Z")}z(e,i,p);var S=m.castOption(g.textposition,i.pts),E=u.selectAll("g.slicetext").data(i.text&&"none"!==S?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),f=l.ensureUniformFontSize(e,"outside"===S?function(e,t,r){var n=m.castOption(e.outsidetextfont.color,t.pts)||m.castOption(e.textfont.color,t.pts)||r.color,i=m.castOption(e.outsidetextfont.family,t.pts)||m.castOption(e.textfont.family,t.pts)||r.family,a=m.castOption(e.outsidetextfont.size,t.pts)||m.castOption(e.textfont.size,t.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(s.font,f).call(h.convertToTspans,e);var v,y=s.bBox(u.node());if("outside"===S)v=L(y,i);else if(v=w(y,i,p),"auto"===S&&v.scale<1){var x=l.ensureUniformFontSize(e,g.outsidetextfont);u.call(s.font,x),v=L(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(p.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var A=v.targetY;i.yLabelMin=A-y.height/2,i.yLabelMid=A,i.yLabelMax=A+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=f.size,d(g.type,v,r),t[a].transform=v,u.attr("transform",l.getTextTransform(v))}))}function C(e,t,r,n){var a=n*(t[0]-e[0]),o=n*(t[1]-e[1]);return"a"+n*p.r+","+n*p.r+" 0 "+i.largeArc+(r?" 1 ":" 0 ")+a+","+o}}));var T=n.select(this).selectAll("g.titletext").data(g.title.text?[0]:[]);if(T.enter().append("g").classed("titletext",!0),T.exit().remove(),T.each((function(){var t,r=l.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),i=g.title.text;g._meta&&(i=l.templateString(i,g._meta)),r.text(i).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(s.font,g.title.font).call(h.convertToTspans,e),t="middle center"===g.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(p):C(p,a),r.attr("transform",u(t.x,t.y)+c(Math.min(1,t.scale))+u(t.tx,t.ty))})),_&&function(e,t){var r,n,i,a,o,s,l,c,u,h,f,d,p;function g(e,t){return e.pxmid[1]-t.pxmid[1]}function v(e,t){return t.pxmid[1]-e.pxmid[1]}function y(e,r){r||(r={});var i,c,u,f,d=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),p=n?e.yLabelMin:e.yLabelMax,g=n?e.yLabelMax:e.yLabelMin,v=e.cyFinal+o(e.px0[1],e.px1[1]),y=d-p;if(y*l>0&&(e.labelExtraY=y),Array.isArray(t.pull))for(c=0;c=(m.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*l>0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-p-e.labelExtraY)*l>0&&(e.labelExtraY+=y):(g+e.labelExtraY-v)*l>0&&(i=3*s*Math.abs(c-h.indexOf(e)),(f=u.cxFinal+a(u.px0[0],u.px1[0])+i-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*s>0&&(e.labelExtraX+=f)))}for(n=0;n<2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=e[n][r]).sort(i),u=e[1-n][r],h=u.concat(c),d=[],f=0;fMath.abs(h)?s+="l"+h*e.pxmid[0]/e.pxmid[1]+","+h+"H"+(a+e.labelExtraX+c):s+="l"+e.labelExtraX+","+u+"v"+(h-u)+"h"+c}else s+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;l.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})}else r.select("path.textline").remove()}))}(v,g),_&&g.automargin){var k=s.bBox(f.node()),A=g.domain,M=a.w*(A.x[1]-A.x[0]),S=a.h*(A.y[1]-A.y[0]),E=(.5*M-p.r)/a.w,I=(.5*S-p.r)/a.h;i.autoMargin(e,"pie."+g.uid+".automargin",{xl:A.x[0]-E,xr:A.x[1]+E,yb:A.y[0]-I,yt:A.y[1]+I,l:Math.max(p.cx-p.r-k.left,0),r:Math.max(k.right-(p.cx+p.r),0),b:Math.max(k.bottom-(p.cy+p.r),0),t:Math.max(p.cy-p.r-k.top,0),pad:5})}}))}));setTimeout((function(){f.selectAll("tspan").each((function(){var e=n.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:z,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:C,prerenderTitles:_,layoutAreas:P,attachFxHandlers:x,computeTransform:R}},59756:function(e,t,r){"use strict";var n=r(62282),i=r(47401).isArrayOrTypedArray;e.exports=function(e,t,r,a,o,s){var l,c,u,h=[],f=n.traceIs(e,"contour"),d=n.traceIs(e,"histogram"),p=n.traceIs(e,"gl2d");if(i(t)&&t.length>1&&!d&&"category"!==s.type){var g=t.length;if(!(g<=o))return f?t.slice(0,o):t.slice(0,o+1);if(f||p)h=t.slice(0,o);else if(1===o)h=[t[0]-.5,t[0]+.5];else{for(h=[1.5*t[0]-.5*t[1]],u=1;ui+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var l={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:o.A,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var r=(0,o.f)(e,t);if(!r)return e+"";var n=r[0],i=r[1],s=i-(a=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=n.length;return s===l?n:s>l?n+new Array(s-l+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+(0,o.f)(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var u=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(e){var t,r,o=void 0===e.grouping||void 0===e.thousands?c:(t=u.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return a.reverse().join(r)}),s=void 0===e.currency?"":e.currency[0]+"",f=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",p=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(u.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function y(e){var t=(e=(0,i.A)(e)).fill,r=e.align,n=e.sign,c=e.symbol,u=e.zero,y=e.width,x=e.comma,b=e.precision,_=e.trim,w=e.type;"n"===w?(x=!0,w="g"):l[w]||(void 0===b&&(b=12),_=!0,w="g"),(u||"0"===t&&"="===r)&&(u=!0,t="0",r="=");var T="$"===c?s:"#"===c&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===c?f:/[%p]/.test(w)?g:"",A=l[w],M=/[defgprs%]/.test(w);function S(e){var i,s,l,c=T,f=k;if("c"===w)f=A(e)+f,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:A(Math.abs(e),b),_&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),g&&0===+e&&"+"!==n&&(g=!1),c=(g?"("===n?n:m:"-"===n||"("===n?"":n)+c,f=("s"===w?h[8+a/3]:"")+f+(g&&"("===n?")":""),M)for(i=-1,s=e.length;++i(l=e.charCodeAt(i))||l>57){f=(46===l?d+e.slice(i+1):e.slice(i))+f,e=e.slice(0,i);break}}x&&!u&&(e=o(e,1/0));var S=c.length+e.length+f.length,E=S>1)+c+e+f+E.slice(S);break;default:e=E+c+e+f}return p(e)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return e+""},S}return{format:y,formatPrefix:function(e,t){var r=y(((e=(0,i.A)(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor((0,n.A)(t)/3))),o=Math.pow(10,-a),s=h[8+a/3];return function(e){return r(o*e)+s}}}}},59833:function(e){"use strict";e.exports={mod:function(e,t){var r=e%t;return r<0?r+t:r},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},59881:function(e){"use strict";e.exports=function(){var e,t=Object.assign;return"function"===typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},60004:function(e,t,r){"use strict";var n=r(52783),i=r(42910).drawMode,a=r(62282),o=r(34847),s=o.i000,l=o.i090,c=o.i180,u=o.i270,h=r(75152).clearOutlineControllers,f=r(40591),d=f.pointsShapeRectangle,p=f.pointsShapeEllipse,g=f.writePaths,m=r(70586);e.exports=function e(t,r,o,f){f||(f=0);var v=o.gd;function y(){e(t,r,o,f++),p(t[0])&&x({redrawing:!0})}function x(e){o.isActiveShape=!1;var t=m(r,o);Object.keys(t).length&&a.call((e||{}).redrawing?"relayout":"_guiRelayout",v,t)}var b,_,w,T,k,A=o.isActiveShape,M=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex>=0&&h(v),r.attr("d",g(t)),A&&!f)&&(k=function(e,t){for(var r=0;r1&&(2!==e.length||"Z"!==e[1][0])&&(0===T&&(e[0][0]="M"),t[w]=e,y(),x())}}()}}function D(e,r){!function(e,r){if(t.length)for(var n=0;nn)throw new Error("gl-vao: Too many vertex attributes");for(var i=0;i2*o}(i,t))return"date";var m="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,n=h(r),i=0,o=0,s={},u=0;u2*i}(i,m)?"category":function(e,t){for(var r=e.length,n=0;np.TOO_MANY_POINTS||h.hasMarkers(t)?"rect":"round";if(c&&t.connectgaps){var f=n[0],d=n[1];for(i=0;i1?l[i]:l[0]:l,p=Array.isArray(c)?c.length>1?c[i]:c[0]:c,g=m[d],v=m[p],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/f,x/f]}}return o}}},60482:function(e){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},60536:function(e,t,r){"use strict";var n=r(62405),i=r(16688).u,a=r(33333),o=r(17342).overrideAll,s=r(87241).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:"number",dflt:0,min:0,description:["The minimum value visible on this axis.","The maximum is determined by the sum minus the minimum","values of the other two axes. The full view corresponds to","all the minima set to zero."].join(" ")},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:"ternary"}),bgcolor:{valType:"color",dflt:n.background,description:"Set the background color of the subplot"},sum:{valType:"number",dflt:1,min:0,description:["The number each triplet should sum to,","and the maximum range of each axis"].join(" ")},aaxis:l,baxis:l,caxis:l},"plot","from-root");c.uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `min` and `title`,","if not overridden in the individual axes.","Defaults to `layout.uirevision`."].join(" ")},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `min`,","and `title` if in `editable: true` configuration.","Defaults to `ternary.uirevision`."].join(" ")}},60551:function(e,t,r){"use strict";var n=r(83491),i=r(47401),a=r(9405),o=a.ONEDAY,s=a.ONEWEEK;t.dtick=function(e,t){var r="log"===t,i="date"===t,a="category"===t,s=i?o:1;if(!e)return s;if(n(e))return(e=Number(e))<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if("string"!==typeof e||!i&&!r)return s;var l=e.charAt(0),c=e.substr(1);return(c=n(c)?Number(c):0)<=0||!(i&&"M"===l&&c===Math.round(c)||r&&"L"===l||r&&"D"===l&&(1===c||2===c))?s:e},t.tick0=function(e,t,r,a){return"date"===t?i.cleanDate(e,i.dateTick0(r,a%s===0?1:0)):"D1"!==a&&"D2"!==a?n(e)?Number(e):0:void 0}},60674:function(e,t,r){var n=r(20939);e.exports=function(e,t){var r=n(t),i=[];return i=(i=i.concat(r(e))).concat(r(null))}},60829:function(e,t,r){"use strict";var n=r(5153),i=r(62405),a=r(87241).extendFlat,o=r(17342).overrideAll,s=r(32915),l=r(92704).templatedArray,c=l("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=o(l("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:a(s({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:n({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:i.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")},60940:function(e,t,r){for(var n=r(26262),i="undefined"===typeof window?r.g:window,a=["moz","webkit"],o="AnimationFrame",s=i["request"+o],l=i["cancel"+o]||i["cancelRequest"+o],c=0;!s&&c0){var c=e[r-1];if(0===n(s,c)&&a(c)!==l){r-=1;continue}}e[r++]=s}}return e.length=r,e}},61149:function(e,t,r){"use strict";var n=r(62967);function i(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03b8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,c=[];function u(e,t){c.push(e._hovertitle+": "+t)}if(!t.hovertemplate){var h=l.split("+");-1!==h.indexOf("all")&&(h=["r","theta","text"]),-1!==h.indexOf("r")&&u(i,n.rLabel),-1!==h.indexOf("theta")&&u(a,n.thetaLabel),-1!==h.indexOf("text")&&n.text&&(c.push(n.text),delete n.text),n.extraText=c.join("
")}}e.exports={hoverPoints:function(e,t,r,a){var o=n(e,t,r,a);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=e.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},61182:function(e){e.exports=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}},61228:function(e,t,r){"use strict";e.exports=r(94659)()?Object.setPrototypeOf:r(70115)},61246:function(e){"use strict";e.exports=function(e,t){t=t||new Array(e.length);for(var r=0;r0?(0,n.A)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null},t.A=i;var a=i.range},61491:function(e,t,r){var n=r(97615),i=r(69726);function a(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar,i(a.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4===3||e%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);return(e=i.year())<0&&e++,i.day()+30*(i.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},61540:function(e,t,r){"use strict";var n=r(14144),i=r(94419),a=r(33485),o=r(12085),s=r(63750).parseColorScale,l=r(42770),c=r(47624).extractOpts,u=r(35839);function h(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var f=h.prototype;function d(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}f.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&&void 0!==r[t]?e.textLabel=r[t]:r&&(e.textLabel=r),!0}},f.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n,h=e.x.length,f=u(p(r.xaxis,e.x,t.dataScale[0],e.xcalendar),p(r.yaxis,e.y,t.dataScale[1],e.ycalendar),p(r.zaxis,e.z,t.dataScale[2],e.zcalendar));if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!m(e.i,h)||!m(e.j,h)||!m(e.k,h))return;n=u(g(e.i),g(e.j),g(e.k))}else n=0===e.alphahull?o(f):e.alphahull>0?a(e.alphahull,f):function(e,t){for(var r=["x","y","z"].indexOf(e),n=[],a=t.length,o=0;oa.length)&&(o=a.length),n(r)||(r=!1),i(a[0])){for(l=new Array(o),s=0;se.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},61690:function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=r,i=+new Date,a=i-(n||i);e.diff=a,e.prev=n,e.curr=i,n=i;for(var o=new Array(arguments.length),s=0;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function l(e,t,r,n){for(var i=0,a=Math.min(e.length,r),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,l=o/67108864|0;r.words[0]=s;for(var c=1;c>>26,h=67108863&l,f=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=f;d++){var p=c-d|0;u+=(o=(i=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}r.words[c]=0|h,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o>>24-i&16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],d=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(d).toString(e);r=(p=p.idivn(d)).isZero()?g+r:c[f-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n("undefined"!==typeof o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,d=0|o[1],p=8191&d,g=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,x=0|o[3],b=8191&x,_=x>>>13,w=0|o[4],T=8191&w,k=w>>>13,A=0|o[5],M=8191&A,S=A>>>13,E=0|o[6],L=8191&E,C=E>>>13,I=0|o[7],D=8191&I,P=I>>>13,O=0|o[8],z=8191&O,R=O>>>13,F=0|o[9],j=8191&F,N=F>>>13,B=0|s[0],U=8191&B,V=B>>>13,q=0|s[1],H=8191&q,G=q>>>13,W=0|s[2],Y=8191&W,Z=W>>>13,X=0|s[3],K=8191&X,J=X>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],he=8191&ue,fe=ue>>>13,de=0|s[9],pe=8191&de,ge=de>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(c+(n=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,V))+Math.imul(f,U)|0))<<13)|0;c=((a=Math.imul(f,V))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var ve=(c+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(f,H)|0))<<13)|0;c=((a=a+Math.imul(f,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var ye=(c+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(f,Y)|0))<<13)|0;c=((a=a+Math.imul(f,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,Y)|0,a=a+Math.imul(g,Z)|0;var xe=(c+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(f,K)|0))<<13)|0;c=((a=a+Math.imul(f,J)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,Z)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,K)|0,a=a+Math.imul(g,J)|0;var be=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((a=a+Math.imul(f,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(_,Y)|0,a=a+Math.imul(_,Z)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,K)|0,a=a+Math.imul(y,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,ee)|0;var _e=(c+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((a=a+Math.imul(f,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,V))+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,Z)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(_,K)|0,a=a+Math.imul(_,J)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,a=a+Math.imul(g,ne)|0;var we=(c+(n=n+Math.imul(h,ae)|0)|0)+((8191&(i=(i=i+Math.imul(h,oe)|0)+Math.imul(f,ae)|0))<<13)|0;c=((a=a+Math.imul(f,oe)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(P,U)|0,a=Math.imul(P,V),n=n+Math.imul(L,H)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,Z)|0,n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,J)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,a=a+Math.imul(y,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0;var Te=(c+(n=n+Math.imul(h,le)|0)|0)+((8191&(i=(i=i+Math.imul(h,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((a=a+Math.imul(f,ce)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,U),i=(i=Math.imul(z,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,G)|0,n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(C,Y)|0,a=a+Math.imul(C,Z)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,J)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(_,re)|0,a=a+Math.imul(_,ne)|0,n=n+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(g,le)|0,a=a+Math.imul(g,ce)|0;var ke=(c+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;c=((a=a+Math.imul(f,fe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,U),i=(i=Math.imul(j,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(z,H)|0,i=(i=i+Math.imul(z,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,Z)|0)+Math.imul(P,Y)|0,a=a+Math.imul(P,Z)|0,n=n+Math.imul(L,K)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(C,K)|0,a=a+Math.imul(C,J)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(k,re)|0,a=a+Math.imul(k,ne)|0,n=n+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,oe)|0,n=n+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(y,le)|0,a=a+Math.imul(y,ce)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(g,he)|0,a=a+Math.imul(g,fe)|0;var Ae=(c+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ge)|0)+Math.imul(f,pe)|0))<<13)|0;c=((a=a+Math.imul(f,ge)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(z,Y)|0,i=(i=i+Math.imul(z,Z)|0)+Math.imul(R,Y)|0,a=a+Math.imul(R,Z)|0,n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,J)|0,n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(S,re)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(_,le)|0,a=a+Math.imul(_,ce)|0,n=n+Math.imul(v,he)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,he)|0,a=a+Math.imul(y,fe)|0;var Me=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;c=((a=a+Math.imul(g,ge)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,Y),i=(i=Math.imul(j,Z))+Math.imul(N,Y)|0,a=Math.imul(N,Z),n=n+Math.imul(z,K)|0,i=(i=i+Math.imul(z,J)|0)+Math.imul(R,K)|0,a=a+Math.imul(R,J)|0,n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(M,ae)|0,i=(i=i+Math.imul(M,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,ce)|0,n=n+Math.imul(b,he)|0,i=(i=i+Math.imul(b,fe)|0)+Math.imul(_,he)|0,a=a+Math.imul(_,fe)|0;var Se=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(y,pe)|0))<<13)|0;c=((a=a+Math.imul(y,ge)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(j,K),i=(i=Math.imul(j,J))+Math.imul(N,K)|0,a=Math.imul(N,J),n=n+Math.imul(z,$)|0,i=(i=i+Math.imul(z,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,n=n+Math.imul(D,re)|0,i=(i=i+Math.imul(D,ne)|0)+Math.imul(P,re)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(L,ae)|0,i=(i=i+Math.imul(L,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,ce)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(k,he)|0,a=a+Math.imul(k,fe)|0;var Ee=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ge)|0)+Math.imul(_,pe)|0))<<13)|0;c=((a=a+Math.imul(_,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,ee))+Math.imul(N,$)|0,a=Math.imul(N,ee),n=n+Math.imul(z,re)|0,i=(i=i+Math.imul(z,ne)|0)+Math.imul(R,re)|0,a=a+Math.imul(R,ne)|0,n=n+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(L,le)|0,i=(i=i+Math.imul(L,ce)|0)+Math.imul(C,le)|0,a=a+Math.imul(C,ce)|0,n=n+Math.imul(M,he)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(S,he)|0,a=a+Math.imul(S,fe)|0;var Le=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(k,pe)|0))<<13)|0;c=((a=a+Math.imul(k,ge)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(N,re)|0,a=Math.imul(N,ne),n=n+Math.imul(z,ae)|0,i=(i=i+Math.imul(z,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,n=n+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(P,le)|0,a=a+Math.imul(P,ce)|0,n=n+Math.imul(L,he)|0,i=(i=i+Math.imul(L,fe)|0)+Math.imul(C,he)|0,a=a+Math.imul(C,fe)|0;var Ce=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,ge)|0)+Math.imul(S,pe)|0))<<13)|0;c=((a=a+Math.imul(S,ge)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,ae),i=(i=Math.imul(j,oe))+Math.imul(N,ae)|0,a=Math.imul(N,oe),n=n+Math.imul(z,le)|0,i=(i=i+Math.imul(z,ce)|0)+Math.imul(R,le)|0,a=a+Math.imul(R,ce)|0,n=n+Math.imul(D,he)|0,i=(i=i+Math.imul(D,fe)|0)+Math.imul(P,he)|0,a=a+Math.imul(P,fe)|0;var Ie=(c+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ge)|0)+Math.imul(C,pe)|0))<<13)|0;c=((a=a+Math.imul(C,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,le),i=(i=Math.imul(j,ce))+Math.imul(N,le)|0,a=Math.imul(N,ce),n=n+Math.imul(z,he)|0,i=(i=i+Math.imul(z,fe)|0)+Math.imul(R,he)|0,a=a+Math.imul(R,fe)|0;var De=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(i=(i=i+Math.imul(D,ge)|0)+Math.imul(P,pe)|0))<<13)|0;c=((a=a+Math.imul(P,ge)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(j,he),i=(i=Math.imul(j,fe))+Math.imul(N,he)|0,a=Math.imul(N,fe);var Pe=(c+(n=n+Math.imul(z,pe)|0)|0)+((8191&(i=(i=i+Math.imul(z,ge)|0)+Math.imul(R,pe)|0))<<13)|0;c=((a=a+Math.imul(R,ge)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Oe=(c+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ge))+Math.imul(N,pe)|0))<<13)|0;return c=((a=Math.imul(N,ge))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,l[0]=me,l[1]=ve,l[2]=ye,l[3]=xe,l[4]=be,l[5]=_e,l[6]=we,l[7]=Te,l[8]=ke,l[9]=Ae,l[10]=Me,l[11]=Se,l[12]=Ee,l[13]=Le,l[14]=Ce,l[15]=Ie,l[16]=De,l[17]=Pe,l[18]=Oe,0!==c&&(l[19]=c,r.length++),r};function p(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(d=f),a.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?d(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):p(this,e,t),r},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=i);c--){var h=0|this.words[c];this.words[c]=u<<26-a|h>>>a,u=h&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if("mod"!==t){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var f=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(i,f,h);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),h=t.clone();!t.isZero();){for(var f=0,d=1;0===(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,g=1;0===(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(h)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(l)):(r.isub(t),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var h=0,f=1;0===(r.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new w(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(y,v),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new x;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},w.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var h=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=o;0!==d.cmp(s);){for(var g=d,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var h=c>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},i(T,w),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},61766:function(e,t,r){"use strict";var n=r(62258),i=r(62282),a=r(47401),o=r(41707),s=r(37762);e.exports=function(e,t,r,l){var c=e._fullLayout;if(0!==t.length){var u,h,f,d;l&&(u=l());var p=n.ease(r.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(d),d=null,function(){for(var r={},n=0;nr.duration?(!function(){for(var r={},n=0;n rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,e)}function m(t,r){var n=t.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,h=!!t.xr1,f=!!t.yr1,d=[];if(h){var p=a.simpleMap(t.xr0,i.r2l),g=a.simpleMap(t.xr1,i.r2l),m=p[1]-p[0],v=g[1]-g[0];d[0]=(p[0]*(1-r)+r*g[0]-p[0])/(p[1]-p[0])*c,d[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(p[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(p[1]*(1-r)+r*g[1])}else d[0]=0,d[2]=c;if(f){var y=a.simpleMap(t.yr0,l.r2l),x=a.simpleMap(t.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];d[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,d[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else d[1]=0,d[3]=u;s.drawOne(e,i,{skipTitle:!0}),s.drawOne(e,l,{skipTitle:!0}),s.redrawComponents(e,[i._id,l._id]);var w=h?c/d[2]:1,T=f?u/d[3]:1,k=h?d[0]:0,A=f?d[1]:0,M=h?d[0]/d[2]*c:0,S=f?d[1]/d[3]*u:0,E=i._offset-M,L=l._offset-S;n.clipRect.call(o.setTranslate,k,A).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,L).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(e)}},61809:function(e,t,r){"use strict";e.exports=r(76618)},61814:function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"indicator",basePlotModule:r(75799),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:r(42029),supplyDefaults:r(40762).supplyDefaults,calc:r(38209).calc,plot:r(11447),meta:{description:["An indicator is used to visualize a single `value` along with some","contextual information such as `steps` or a `threshold`, using a","combination of three visual elements: a number, a delta, and/or a gauge.","Deltas are taken with respect to a `reference`.","Gauges can be either angular or bullet (aka linear) gauges."].join(" ")}}},61842:function(e){"use strict";e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},62002:function(e){"use strict";e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},62071:function(e,t,r){"use strict";var n=r(1101);e.exports=function(e,t){return n(e[0].mul(t[1]).sub(e[1].mul(t[0])),e[1].mul(t[1]))}},62153:function(e,t,r){"use strict";var n=r(47216),i=r(97451),a=r(20184).axisHoverFormat,o=r(4216).r,s=r(38857),l=r(56890).idRegex,c=r(92704).templatedArray,u=r(87241).extendFlat,h=n.marker,f=h.line,d=u(i("marker.line",{editTypeOverride:"calc"}),{width:u({},f.width,{editType:"calc"}),editType:"calc"}),p=u(i("marker"),{symbol:h.symbol,size:u({},h.size,{editType:"markerSize"}),sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,opacity:h.opacity,colorbar:h.colorbar,line:d,editType:"calc"});function g(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:l[e],editType:"plot"},description:["Sets the list of "+e+" axes","corresponding to dimensions of this splom trace.","By default, a splom will match the first N "+e+"axes","where N is the number of input dimensions.","Note that, in case where `diagonal.visible` is false and `showupperhalf`","or `showlowerhalf` is false, this splom trace will generate","one less x-axis and one less y-axis."].join(" ")}}p.color.editType=p.cmin.editType=p.cmax.editType="style",e.exports={dimensions:c("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not this dimension is shown on the graph.","Note that even visible false dimension contribute to the","default grid generate by this splom trace."].join(" ")},label:{valType:"string",editType:"calc",description:"Sets the label corresponding to this splom dimension."},values:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the dimension values to be plotted."},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes",description:["Sets the axis type for this dimension's generated","x and y axes.","Note that the axis `type` values set in layout take","precedence over this attribute."].join(" ")},matches:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not the x & y axes generated by this","dimension match.","Equivalent to setting the `matches` axis attribute in the layout","with the correct axis id."].join(" ")},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:u({},s.text,{description:["Sets text elements associated with each (x,y) pair to appear on hover.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates."].join(" ")}),hovertext:u({},s.hovertext,{description:"Same as `text`."}),hovertemplate:o(),xhoverformat:a("x"),yhoverformat:a("y"),marker:p,xaxes:g("x"),yaxes:g("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not subplots on the diagonal are displayed."].join(" ")},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not subplots on the upper half","from the diagonal are displayed."].join(" ")},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not subplots on the lower half","from the diagonal are displayed."].join(" ")},selected:{marker:s.selected.marker,editType:"calc"},unselected:{marker:s.unselected.marker,editType:"calc"},opacity:s.opacity}},62258:function(e,t,r){var n,i;(function(){var a={version:"3.8.0"},o=[].slice,s=function(e){return o.call(e)},l=self.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(l)try{s(l.documentElement.childNodes)[0].nodeType}catch(ga){s=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(ma){var h=this.Element.prototype,f=h.setAttribute,d=h.setAttributeNS,p=this.CSSStyleDeclaration.prototype,g=p.setProperty;h.setAttribute=function(e,t){f.call(this,e,t+"")},h.setAttributeNS=function(e,t,r){d.call(this,e,t,r+"")},p.setProperty=function(e,t,r){g.call(this,e,t+"",r)}}function m(e,t){return et?1:e>=t?0:NaN}function v(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function x(e){return{left:function(t,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=t.length);n>>1;e(t[a],r)<0?n=a+1:i=a}return n},right:function(t,r,n,i){for(arguments.length<3&&(n=0),arguments.length<4&&(i=t.length);n>>1;e(t[a],r)>0?i=a:n=a+1}return n}}}a.ascending=m,a.descending=function(e,t){return te?1:t>=e?0:NaN},a.min=function(e,t){var r,n,i=-1,a=e.length;if(1===arguments.length){for(;++i=n){r=n;break}for(;++in&&(r=n)}else{for(;++i=n){r=n;break}for(;++in&&(r=n)}return r},a.max=function(e,t){var r,n,i=-1,a=e.length;if(1===arguments.length){for(;++i=n){r=n;break}for(;++ir&&(r=n)}else{for(;++i=n){r=n;break}for(;++ir&&(r=n)}return r},a.extent=function(e,t){var r,n,i,a=-1,o=e.length;if(1===arguments.length){for(;++a=n){r=i=n;break}for(;++an&&(r=n),i=n){r=i=n;break}for(;++an&&(r=n),i1)return o/(l-1)},a.deviation=function(){var e=a.variance.apply(this,arguments);return e?Math.sqrt(e):e};var b=x(m);function _(e){return e.length}a.bisectLeft=b.left,a.bisect=a.bisectRight=b.right,a.bisector=function(e){return x(1===e.length?function(t,r){return m(e(t),r)}:e)},a.shuffle=function(e,t,r){(a=arguments.length)<3&&(r=e.length,a<2&&(t=0));for(var n,i,a=r-t;a;)i=Math.random()*a--|0,n=e[a+t],e[a+t]=e[i+t],e[i+t]=n;return e},a.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},a.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],i=new Array(r<0?0:r);t=0;)for(t=(n=e[i]).length;--t>=0;)r[--o]=n[t];return r};var w=Math.abs;function T(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function k(){this._=Object.create(null)}a.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r===1/0)throw new Error("infinite range");var n,i=[],a=function(e){var t=1;for(;e*t%1;)t*=10;return t}(w(r)),o=-1;if(e*=a,t*=a,(r*=a)<0)for(;(n=e+r*++o)>t;)i.push(n/a);else for(;(n=e+r*++o)=n.length)return t?t.call(r,a):e?a.sort(e):a;for(var l,c,u,h,f=-1,d=a.length,p=n[s++],g=new k;++f=n.length)return e;var r=[],a=i[t++];return e.forEach((function(e,n){r.push({key:e,values:s(n,t)})})),a?r.sort((function(e,t){return a(e.key,t.key)})):r}return r.map=function(e,t){return o(t,e,0)},r.entries=function(e){return s(o(a.map,e,0),0)},r.key=function(e){return n.push(e),r},r.sortKeys=function(e){return i[n.length-1]=e,r},r.sortValues=function(t){return e=t,r},r.rollup=function(e){return t=e,r},r},a.set=function(e){var t=new D;if(e)for(var r=0,n=e.length;r=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},a.event=null,a.requote=function(e){return e.replace(q,"\\$&")};var q=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,H={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function G(e){return H(e,X),e}var W=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},Z=function(e,t){var r=e.matches||e[z(e,"matchesSelector")];return Z=function(e,t){return r.call(e,t)},Z(e,t)};"function"===typeof Sizzle&&(W=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,Z=Sizzle.matchesSelector),a.selection=function(){return a.select(l.documentElement)};var X=a.selection.prototype=[];function K(e){return"function"===typeof e?e:function(){return W(e,this)}}function J(e){return"function"===typeof e?e:function(){return Y(e,this)}}X.select=function(e){var t,r,n,i,a=[];e=K(e);for(var o=-1,s=this.length;++o=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),$.hasOwnProperty(r)?{space:$[r],local:e}:e}},X.attr=function(e,t){if(arguments.length<2){if("string"===typeof e){var r=this.node();return(e=a.ns.qualify(e)).local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(t in e)this.each(ee(t,e[t]));return this}return this.each(ee(e,t))},X.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var r=this.node(),n=(e=ne(e)).length,i=-1;if(t=r.classList){for(;++i=0;)(r=n[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},X.sort=function(e){e=fe.apply(this,arguments);for(var t=-1,r=this.length;++t0&&(e=e.slice(0,i));var l=ve.get(e);function c(){var t=this[n];t&&(this.removeEventListener(e,t,t.$),delete this[n])}return l&&(e=l,o=xe),i?t?function(){var i=o(t,s(arguments));c.call(this),this.addEventListener(e,this[n]=i,i.$=r),i._=t}:c:t?F:function(){var t,r=new RegExp("^__on([^.]+)"+a.requote(e)+"$");for(var n in this)if(t=n.match(r)){var i=this[n];this.removeEventListener(t[1],i,i.$),delete this[n]}}}a.selection.enter=pe,a.selection.enter.prototype=ge,ge.append=X.append,ge.empty=X.empty,ge.node=X.node,ge.call=X.call,ge.size=X.size,ge.select=function(e){for(var t,r,n,i,a,o=[],s=-1,l=this.length;++s=t&&(t=i+1);!(o=s[t])&&++t1?Ie:e<-1?-Ie:Math.asin(e)}function ze(e){return((e=Math.exp(e))+1/e)/2}var Re=Math.SQRT2;a.interpolateZoom=function(e,t){var r,n,i=e[0],a=e[1],o=e[2],s=t[0],l=t[1],c=t[2],u=s-i,h=l-a,f=u*u+h*h;if(f0&&(e=e.transition().duration(g)),e.call(w.event)}function S(){s&&s.domain(o.range().map((function(e){return(e-f.x)/f.k})).map(o.invert)),h&&h.domain(c.range().map((function(e){return(e-f.y)/f.k})).map(c.invert))}function E(e){m++||e({type:"zoomstart"})}function L(e){S(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function C(e){--m||(e({type:"zoomend"}),t=null)}function I(){var e=this,t=_.of(e,arguments),r=0,n=a.select(u(e)).on(y,(function(){r=1,A(a.mouse(e),i),L(t)})).on(x,(function(){n.on(y,null).on(x,null),o(r),C(t)})),i=T(a.mouse(e)),o=we(e);Ki.call(e),E(t)}function D(){var e,t=this,r=_.of(t,arguments),n={},o=0,s=".zoom-"+a.event.changedTouches[0].identifier,l="touchmove"+s,c="touchend"+s,u=[],h=a.select(t),d=we(t);function p(){var r=a.touches(t);return e=f.k,r.forEach((function(e){e.identifier in n&&(n[e.identifier]=T(e))})),r}function g(){var e=a.event.target;a.select(e).on(l,m).on(c,y),u.push(e);for(var r=a.event.changedTouches,s=0,h=r.length;s1){v=d[0];var x=d[1],b=v[0]-x[0],_=v[1]-x[1];o=b*b+_*_}}function m(){var s,l,c,u,h=a.touches(t);Ki.call(t);for(var f=0,d=h.length;f360?e-=360:e<0&&(e+=360),e<60?n+(i-n)*e/60:e<180?i:e<240?n+(i-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(i=r<=.5?r*(1+t):r+t-r*t),new it(a(e+120),a(e),a(e-120))}function He(e,t,r){return this instanceof He?(this.h=+e,this.c=+t,void(this.l=+r)):arguments.length<2?e instanceof He?new He(e.h,e.c,e.l):et(e instanceof Ye?e.l:(e=ht((e=a.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new He(e,t,r)}Ve.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,this.l/e)},Ve.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,e*this.l)},Ve.rgb=function(){return qe(this.h,this.s,this.l)},a.hcl=He;var Ge=He.prototype=new Be;function We(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Ye(r,Math.cos(e*=De)*t,Math.sin(e)*t)}function Ye(e,t,r){return this instanceof Ye?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof Ye?new Ye(e.l,e.a,e.b):e instanceof He?We(e.h,e.c,e.l):ht((e=it(e)).r,e.g,e.b):new Ye(e,t,r)}Ge.brighter=function(e){return new He(this.h,this.c,Math.min(100,this.l+Ze*(arguments.length?e:1)))},Ge.darker=function(e){return new He(this.h,this.c,Math.max(0,this.l-Ze*(arguments.length?e:1)))},Ge.rgb=function(){return We(this.h,this.c,this.l).rgb()},a.lab=Ye;var Ze=18,Xe=.95047,Ke=1,Je=1.08883,Qe=Ye.prototype=new Be;function $e(e,t,r){var n=(e+16)/116,i=n+t/500,a=n-r/200;return new it(nt(3.2404542*(i=tt(i)*Xe)-1.5371385*(n=tt(n)*Ke)-.4985314*(a=tt(a)*Je)),nt(-.969266*i+1.8760108*n+.041556*a),nt(.0556434*i-.2040259*n+1.0572252*a))}function et(e,t,r){return e>0?new He(Math.atan2(r,t)*Pe,Math.sqrt(t*t+r*r),e):new He(NaN,NaN,e)}function tt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function rt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function nt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function it(e,t,r){return this instanceof it?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof it?new it(e.r,e.g,e.b):ct(""+e,it,qe):new it(e,t,r)}function at(e){return new it(e>>16,e>>8&255,255&e)}function ot(e){return at(e)+""}Qe.brighter=function(e){return new Ye(Math.min(100,this.l+Ze*(arguments.length?e:1)),this.a,this.b)},Qe.darker=function(e){return new Ye(Math.max(0,this.l-Ze*(arguments.length?e:1)),this.a,this.b)},Qe.rgb=function(){return $e(this.l,this.a,this.b)},a.rgb=it;var st=it.prototype=new Be;function lt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ct(e,t,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=n[2].split(","),n[1]){case"hsl":return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(dt(i[0]),dt(i[1]),dt(i[2]))}return(a=pt.get(e))?t(a.r,a.g,a.b):(null==e||"#"!==e.charAt(0)||isNaN(a=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,l=15&a,l|=l<<4):7===e.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),t(o,s,l))}function ut(e,t,r){var n,i,a=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),s=o-a,l=(o+a)/2;return s?(i=l<.5?s/(o+a):s/(2-o-a),n=e==o?(t-r)/s+(t0&&l<1?0:n),new Ue(n,i,l)}function ht(e,t,r){var n=rt((.4124564*(e=ft(e))+.3575761*(t=ft(t))+.1804375*(r=ft(r)))/Xe),i=rt((.2126729*e+.7151522*t+.072175*r)/Ke);return Ye(116*i-16,500*(n-i),200*(i-rt((.0193339*e+.119192*t+.9503041*r)/Je)))}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}st.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,i=30;return t||r||n?(t&&t=200&&t<300||304===t){try{e=r.call(i,c)}catch(ga){return void o.error.call(i,ga)}o.load.call(i,e)}else o.error.call(i,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=h:c.onreadystatechange=function(){c.readyState>3&&h()},c.onprogress=function(e){var t=a.event;a.event=e;try{o.progress.call(i,c)}finally{a.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(u=e,i):u},i.response=function(e){return r=e,i},["get","post"].forEach((function(e){i[e]=function(){return i.send.apply(i,[e].concat(s(arguments)))}})),i.send=function(r,n,a){if(2===arguments.length&&"function"===typeof n&&(a=n,n=null),c.open(r,e,!0),null==t||"accept"in l||(l.accept=t+",*/*"),c.setRequestHeader)for(var s in l)c.setRequestHeader(s,l[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=a&&i.on("error",a).on("load",(function(e){a(null,e)})),o.beforesend.call(i,c),c.send(null==n?null:n),i},i.abort=function(){return c.abort(),i},a.rebind(i,o,"on"),null==n?i:i.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(n))}pt.forEach((function(e,t){pt.set(e,at(t))})),a.functor=gt,a.xhr=mt(P),a.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function i(e,r,n){arguments.length<3&&(n=r,r=null);var i=vt(e,t,null==r?a:o(r),n);return i.row=function(e){return arguments.length?i.response(null==(r=e)?a:o(e)):r},i}function a(e){return i.parse(e.responseText)}function o(e){return function(t){return i.parse(t.responseText,e)}}function s(t){return t.map(l).join(e)}function l(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var r;return i.parseRows(e,(function(e,n){if(r)return r(e,n-1);var i=function(t){for(var r={},n=e.length,i=0;i=l)return o;if(i)return i=!1,a;var t=c;if(34===e.charCodeAt(t)){for(var r=t;r++24?(isFinite(t)&&(clearTimeout(_t),_t=setTimeout(kt,t)),bt=0):(bt=1,wt(kt))}function At(){for(var e=Date.now(),t=yt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Mt(){for(var e,t=yt,r=1/0;t;)t.c?(t.t1&&(t=e[a[o-2]],r=e[a[o-1]],n=e[s],(r[0]-t[0])*(n[1]-t[1])-(r[1]-t[1])*(n[0]-t[0])<=0);)--o;a[o++]=s}return a.slice(0,o)}function Ct(e,t){return e[0]-t[0]||e[1]-t[1]}a.timer=function(){Tt.apply(this,arguments)},a.timer.flush=function(){At(),Mt()},a.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},a.geom={},a.geom.hull=function(e){var t=St,r=Et;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,i=gt(t),a=gt(r),o=e.length,s=[],l=[];for(n=0;n=0;--n)d.push(e[s[c[n]][2]]);for(n=+h;nMe)s=s.L;else{if(!((i=a-Zt(s,o))>Me)){n>-Me?(t=s.P,r=s):i>-Me?(t=s,r=s.N):t=r=s;break}if(!s.R){t=s;break}s=s.R}var l=qt(e);if(Ft.insert(t,l),t||r){if(t===r)return $t(t),r=qt(t.site),Ft.insert(l,r),l.edge=r.edge=rr(t.site,l.site),Qt(t),void Qt(r);if(r){$t(t),$t(r);var c=t.site,u=c.x,h=c.y,f=e.x-u,d=e.y-h,p=r.site,g=p.x-u,m=p.y-h,v=2*(f*m-d*g),y=f*f+d*d,x=g*g+m*m,b={x:(m*y-d*x)/v+u,y:(f*x-g*y)/v+h};ir(r.edge,c,p,b),l.edge=rr(c,e,null,b),r.edge=rr(e,p,null,b),Qt(t),Qt(r)}else l.edge=rr(t.site,l.site)}}function Yt(e,t){var r=e.site,n=r.x,i=r.y,a=i-t;if(!a)return n;var o=e.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-t;if(!c)return s;var u=s-n,h=1/a-1/c,f=u/c;return h?(-f+Math.sqrt(f*f-2*h*(u*u/(-2*c)-l+c/2+i-a/2)))/h+n:(n+s)/2}function Zt(e,t){var r=e.N;if(r)return Yt(r,t);var n=e.site;return n.y===t?n.x:1/0}function Xt(e){this.site=e,this.edges=[]}function Kt(e,t){return t.angle-e.angle}function Jt(){sr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,i=e.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,h=2*(l*(m=a.y-s)-c*u);if(!(h>=-Se)){var f=l*l+c*c,d=u*u+m*m,p=(m*f-c*d)/h,g=(l*d-u*f)/h,m=g+s,v=Ut.pop()||new Jt;v.arc=e,v.site=i,v.x=p+o,v.y=m+Math.sqrt(p*p+g*g),v.cy=m,e.circle=v;for(var y=null,x=Nt._;x;)if(v.y=s)return;if(f>p){if(a){if(a.y>=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y1)if(f>p){if(a){if(a.y>=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x0)){if(t/=f,f<0){if(t0){if(t>h)return;t>u&&(u=t)}if(t=i-l,f||!(t<0)){if(t/=f,f<0){if(t>h)return;t>u&&(u=t)}else if(f>0){if(t0)){if(t/=d,d<0){if(t0){if(t>h)return;t>u&&(u=t)}if(t=a-c,d||!(t<0)){if(t/=d,d<0){if(t>h)return;t>u&&(u=t)}else if(d>0){if(t0&&(e.a={x:l+u*f,y:c+u*d}),h<1&&(e.b={x:l+h*f,y:c+h*d}),e}}}}}),l=o.length;l--;)(!er(t=o[l],e)||!s(t)||w(t.a.x-t.b.x)Me||w(i-r)>Me)&&(s.splice(o,0,new ar(nr(a.site,u,w(n-h)Me?{x:h,y:w(t-h)Me?{x:w(r-p)Me?{x:f,y:w(t-f)Me?{x:w(r-d)=r&&c.x<=i&&c.y>=n&&c.y<=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=e[s]})),t}function s(e){return e.map((function(e,t){return{x:Math.round(n(e,t)/Me)*Me,y:Math.round(i(e,t)/Me)*Me,i:t}}))}return o.links=function(e){return hr(s(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return hr(s(e)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Kt),u=-1,h=c.length,f=c[h-1].edge,d=f.l===l?f.r:f.l;++ua&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:xr(r,n)})),a=wr.lastIndex;return ag&&(g=l.x),l.y>m&&(m=l.y),c.push(l.x),u.push(l.y);else for(h=0;hg&&(g=x),b>m&&(m=b),c.push(x),u.push(b)}var _=g-d,T=m-p;function k(e,t,r,n,i,a,o,s){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var l=e.x,c=e.y;if(null!=l)if(w(l-r)+w(c-n)<.01)A(e,t,r,n,i,a,o,s);else{var u=e.point;e.x=e.y=e.point=null,A(e,u,l,c,i,a,o,s),A(e,t,r,n,i,a,o,s)}else e.x=r,e.y=n,e.point=t}else A(e,t,r,n,i,a,o,s)}function A(e,t,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r>=l,h=n>=c,f=h<<1|u;e.leaf=!1,u?i=l:o=l,h?a=c:s=c,k(e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,i,a,o,s)}_>T?m=p+_:g=d+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){k(M,e,+v(e,++h),+y(e,h),d,p,g,m)}};if(M.visit=function(e){mr(e,M,d,p,g,m)},M.find=function(e){return function(e,t,r,n,i,a,o){var s,l=1/0;return function e(c,u,h,f,d){if(!(u>a||h>o||f=_)<<1|t>=b,T=w+4;w=0&&!(r=a.interpolators[n](e,t)););return r}function kr(e,t){var r,n=[],i=[],a=e.length,o=t.length,s=Math.min(e.length,t.length);for(r=0;r=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Pr(e){return 1-Math.cos(e*Ie)}function Or(e){return Math.pow(2,10*(e-1))}function zr(e){return 1-Math.sqrt(1-e*e)}function Rr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Fr(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function jr(e){var t,r,n,i=[e.a,e.b],a=[e.c,e.d],o=Br(i),s=Nr(i,a),l=Br(((t=a)[0]+=(n=-s)*(r=i)[0],t[1]+=n*r[1],t))||0;i[0]*a[1]=0?e.slice(0,r):e,i=r>=0?e.slice(r+1):"in";return n=Mr.get(n)||Ar,i=Sr.get(i)||P,t=i(n.apply(null,o.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},a.interpolateHcl=function(e,t){e=a.hcl(e),t=a.hcl(t);var r=e.h,n=e.c,i=e.l,o=t.h-r,s=t.c-n,l=t.l-i;isNaN(s)&&(s=0,n=isNaN(n)?t.c:n);isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360);return function(e){return We(r+o*e,n+s*e,i+l*e)+""}},a.interpolateHsl=function(e,t){e=a.hsl(e),t=a.hsl(t);var r=e.h,n=e.s,i=e.l,o=t.h-r,s=t.s-n,l=t.l-i;isNaN(s)&&(s=0,n=isNaN(n)?t.s:n);isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360);return function(e){return qe(r+o*e,n+s*e,i+l*e)+""}},a.interpolateLab=function(e,t){e=a.lab(e),t=a.lab(t);var r=e.l,n=e.a,i=e.b,o=t.l-r,s=t.a-n,l=t.b-i;return function(e){return $e(r+o*e,n+s*e,i+l*e)+""}},a.interpolateRound=Fr,a.transform=function(e){var t=l.createElementNS(a.ns.prefix.svg,"g");return(a.transform=function(e){if(null!=e){t.setAttribute("transform",e);var r=t.transform.baseVal.consolidate()}return new jr(r?r.matrix:Ur)})(e)},jr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Ur={a:1,b:0,c:0,d:1,e:0,f:0};function Vr(e){return e.length?e.pop()+",":""}function qr(e,t){var r=[],n=[];return e=a.transform(e),t=a.transform(t),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var i=r.push("translate(",null,",",null,")");n.push({i:i-4,x:xr(e[0],t[0])},{i:i-2,x:xr(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(e.translate,t.translate,r,n),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(Vr(r)+"rotate(",null,")")-2,x:xr(e,t)})):t&&r.push(Vr(r)+"rotate("+t+")")}(e.rotate,t.rotate,r,n),function(e,t,r,n){e!==t?n.push({i:r.push(Vr(r)+"skewX(",null,")")-2,x:xr(e,t)}):t&&r.push(Vr(r)+"skewX("+t+")")}(e.skew,t.skew,r,n),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var i=r.push(Vr(r)+"scale(",null,",",null,")");n.push({i:i-4,x:xr(e[0],t[0])},{i:i-2,x:xr(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(Vr(r)+"scale("+t+")")}(e.scale,t.scale,r,n),e=t=null,function(e){for(var t,i=-1,a=n.length;++i0?r=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:r=0})):t>0&&(l.start({type:"start",alpha:r=t}),e=Tt(s.tick)),s):r},s.start=function(){var e,t,r,a=v.length,l=y.length,u=c[0],p=c[1];for(e=0;e=0;)r.push(i[n])}function an(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(a=e.children)&&(i=a.length))for(var i,a,o=-1;++o=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(n,a,a.depth)||0),delete a.children;return an(i,(function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)})),s}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&(nn(e,(function(e){e.children&&(e.value=0)})),an(e,(function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},n},a.layout.partition=function(){var e=a.layout.hierarchy(),t=[1,1];function r(e,t,n,i){var a=e.children;if(e.x=t,e.y=e.depth*i,e.dx=n,e.dy=i,a&&(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++cs&&(s=n),o.push(n)}for(r=0;ri&&(n=r,i=t);return n}function xn(e){return e.reduce(bn,0)}function bn(e,t){return e+t[1]}function _n(e,t){return wn(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function wn(e,t){for(var r=-1,n=+e[0],i=(e[1]-n)/t,a=[];++r<=t;)a[r]=i*r+n;return a}function Tn(e){return[a.min(e),a.max(e)]}function kn(e,t){return e.value-t.value}function An(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function Mn(e,t){e._pack_next=t,t._pack_prev=e}function Sn(e,t){var r=t.x-e.x,n=t.y-e.y,i=e.r+t.r;return.999*i*i>r*r+n*n}function En(e){if((t=e.children)&&(l=t.length)){var t,r,n,i,a,o,s,l,c=1/0,u=-1/0,h=1/0,f=-1/0;if(t.forEach(Ln),(r=t[0]).x=-r.r,r.y=0,x(r),l>1&&((n=t[1]).x=n.r,n.y=0,x(n),l>2))for(Dn(r,n,i=t[2]),x(i),An(r,i),r._pack_prev=i,An(i,n),n=r._pack_next,a=3;a0)for(o=-1;++o=h[0]&&l<=h[1]&&((s=c[a.bisect(f,l,1,p)-1]).y+=g,s.push(i[o]));return c}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(r=gt(e),i):r},i.bins=function(e){return arguments.length?(n="number"===typeof e?function(t){return wn(t,e)}:gt(e),i):n},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},a.layout.pack=function(){var e,t=a.layout.hierarchy().sort(kn),r=0,n=[1,1];function i(i,a){var o=t.call(this,i,a),s=o[0],l=n[0],c=n[1],u=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(s.x=s.y=0,an(s,(function(e){e.r=+u(e.value)})),an(s,En),r){var h=r*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;an(s,(function(e){e.r+=h})),an(s,En),an(s,(function(e){e.r-=h}))}return In(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return i.size=function(e){return arguments.length?(n=e,i):n},i.radius=function(t){return arguments.length?(e=null==t||"function"===typeof t?t:+t,i):e},i.padding=function(e){return arguments.length?(r=+e,i):r},rn(i,t)},a.layout.tree=function(){var e=a.layout.hierarchy().sort(null).value(null),t=Pn,r=[1,1],n=null;function i(i,a){var c=e.call(this,i,a),u=c[0],h=function(e){var t,r={A:null,children:[e]},n=[r];for(;null!=(t=n.pop());)for(var i,a=t.children,o=0,s=a.length;od.x&&(d=e),e.depth>p.depth&&(p=e)}));var g=t(f,d)/2-f.x,m=r[0]/(d.x+t(d,f)/2+g),v=r[1]/(p.depth||1);nn(u,(function(e){e.x=(e.x+g)*m,e.y=e.depth*v}))}return c}function o(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r.length){!function(e){var t,r=0,n=0,i=e.children,a=i.length;for(;--a>=0;)(t=i[a]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,h=s.m,f=l.m;s=zn(s),a=On(a),s&&a;)l=On(l),(o=zn(o)).a=e,(i=s.z+h-a.z-c+t(s._,a._))>0&&(Rn(Fn(s,e,n),e,i),c+=i,u+=i),h+=s.m,c+=a.m,f+=l.m,u+=o.m;s&&!zn(o)&&(o.t=s,o.m+=h-u),a&&!On(l)&&(l.t=a,l.m+=c-f,n=e)}return n}(e,i,e.parent.A||n[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=r[0],e.y=e.depth*r[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(n=null==(r=e)?l:null,i):n?null:r},i.nodeSize=function(e){return arguments.length?(n=null==(r=e)?null:l,i):n?r:null},rn(i,e)},a.layout.cluster=function(){var e=a.layout.hierarchy().sort(null).value(null),t=Pn,r=[1,1],n=!1;function i(i,o){var s,l=e.call(this,i,o),c=l[0],u=0;an(c,(function(e){var r=e.children;r&&r.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(r),e.y=function(e){return 1+a.max(e,(function(e){return e.y}))}(r)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var h=jn(c),f=Nn(c),d=h.x-t(h,f)/2,p=f.x+t(f,h)/2;return an(c,n?function(e){e.x=(e.x-c.x)*r[0],e.y=(c.y-e.y)*r[1]}:function(e){e.x=(e.x-d)/(p-d)*r[0],e.y=(1-(c.y?e.y/c.y:1))*r[1]}),l}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(n=null==(r=e),i):n?null:r},i.nodeSize=function(e){return arguments.length?(n=null!=(r=e),i):n?r:null},rn(i,e)},a.layout.treemap=function(){var e,t=a.layout.hierarchy(),r=Math.round,n=[1,1],i=null,o=Bn,s=!1,l="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var r,n,i=-1,a=e.length;++i0;)s.push(r=c[i-1]),s.area+=r.area,"squarify"!==l||(n=d(s,g))<=f?(c.pop(),f=n):(s.area-=s.pop().area,p(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,f=1/0);s.length&&(p(s,g,a,!0),s.length=s.area=0),t.forEach(h)}}function f(e){var t=e.children;if(t&&t.length){var r,n=o(e),i=t.slice(),a=[];for(u(i,n.dx*n.dy/e.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&&(p(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);t.forEach(f)}}function d(e,t){for(var r,n=e.area,i=0,a=1/0,o=-1,s=e.length;++oi&&(i=r));return t*=t,(n*=n)?Math.max(t*i*c/n,n/(t*a*c)):1/0}function p(e,t,n,i){var a,o=-1,s=e.length,l=n.x,c=n.y,u=t?r(e.area/t):0;if(t==n.dx){for((i||u>n.dy)&&(u=n.dy);++on.dx)&&(u=n.dx);++o1);return e+t*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=a.random.normal.apply(a,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=a.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,r=0;r2?Zn:Hn,l=n?Gr:Hr;return i=o(e,t,l,r),a=o(t,e,l,Tr),s}function s(e){return i(e)}return s.invert=function(e){return a(e)},s.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},s.range=function(e){return arguments.length?(t=e,o()):t},s.rangeRound=function(e){return s.range(e).interpolate(Fr)},s.clamp=function(e){return arguments.length?(n=e,o()):n},s.interpolate=function(e){return arguments.length?(r=e,o()):r},s.ticks=function(t){return $n(e,t)},s.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},s.nice=function(t){return Jn(e,t),o()},s.copy=function(){return Xn(e,t,r,n)},o()}function Kn(e,t){return a.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Jn(e,t){return Gn(e,Wn(Qn(e,t)[2])),Gn(e,Wn(Qn(e,t)[2])),e}function Qn(e,t){null==t&&(t=10);var r=Vn(e),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),a=t/n*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function $n(e,t){return a.range.apply(a,Qn(e,t))}a.scale.linear=function(){return Xn([0,1],[0,1],Tr,!1)};function ei(e,t,r,n){function i(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function a(e){return r?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((n=t.map(Number)).map(i)),o):n},o.base=function(r){return arguments.length?(t=+r,e.domain(n.map(i)),o):t},o.nice=function(){var t=Gn(n.map(i),r?Math:ti);return e.domain(t),n=t.map(a),o},o.ticks=function(){var e=Vn(n),o=[],s=e[0],l=e[1],c=Math.floor(i(s)),u=Math.ceil(i(l)),h=t%1?2:t;if(isFinite(u-c)){if(r){for(;c0;f--)o.push(a(c)*f);for(c=0;o[c]l;u--);o=o.slice(c,u)}return o},o.copy=function(){return ei(e.copy(),t,r,n)},Kn(o,e)}a.scale.log=function(){return ei(a.scale.linear().domain([0,1]),10,!0,[1,10])};var ti={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function ri(e,t,r){var n=ni(t),i=ni(1/t);function a(t){return e(n(t))}return a.invert=function(t){return i(e.invert(t))},a.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(n)),a):r},a.ticks=function(e){return $n(r,e)},a.tickFormat=function(e,t){return d3_scale_linearTickFormat(r,e,t)},a.nice=function(e){return a.domain(Jn(r,e))},a.exponent=function(o){return arguments.length?(n=ni(t=o),i=ni(1/t),e.domain(r.map(n)),a):t},a.copy=function(){return ri(e.copy(),t,r)},Kn(a,e)}function ni(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ii(e,t){var r,n,i;function o(i){return n[((r.get(i)||("range"===t.t?r.set(i,e.push(i)):NaN))-1)%n.length]}function s(t,r){return a.range(e.length).map((function(e){return t+r*e}))}return o.domain=function(n){if(!arguments.length)return e;e=[],r=new k;for(var i,a=-1,s=n.length;++a0?r[n-1]:e[0],nh?0:1;if(c=Ce)return l(c,d)+(s?l(s,1-d):"")+"Z";var p,g,m,v,y,x,b,_,w,T,k,A,M=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&&(m=n===pi?Math.sqrt(s*s+c*c):+n.apply(this,arguments),d||(S*=-1),c&&(S=Oe(m/c*Math.sin(v))),s&&(M=Oe(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(h-S),_=c*Math.sin(h-S);var L=Math.abs(h-u-2*S)<=Ee?0:1;if(S&&bi(y,x,b,_)===d^L){var C=(u+h)/2;y=c*Math.cos(C),x=c*Math.sin(C),b=_=null}}else y=x=0;if(s){w=s*Math.cos(h-M),T=s*Math.sin(h-M),k=s*Math.cos(u+M),A=s*Math.sin(u+M);var I=Math.abs(u-h+2*M)<=Ee?0:1;if(M&&bi(w,T,k,A)===1-d^I){var D=(u+h)/2;w=s*Math.cos(D),T=s*Math.sin(D),k=A=null}}else w=T=0;if(f>Me&&(p=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))>.001){g=s0?0:1}function _i(e,t,r,n,i){var a=e[0]-t[0],o=e[1]-t[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=e[0]+l,h=e[1]+c,f=t[0]+l,d=t[1]+c,p=(u+f)/2,g=(h+d)/2,m=f-u,v=d-h,y=m*m+v*v,x=r-n,b=u*d-f*h,_=(v<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,A=(-b*m+v*_)/y,M=w-p,S=T-g,E=k-p,L=A-g;return M*M+S*S>E*E+L*L&&(w=k,T=A),[[w-l,T-c],[w*r/x,T*r/x]]}function wi(){return!0}function Ti(e){var t=St,r=Et,n=wi,i=Ai,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,h=a.length,f=gt(t),d=gt(r);function p(){l.push("M",i(e(c),o))}for(;++u1&&i.push("H",n[0]);return i.join("")},"step-before":Si,"step-after":Ei,basis:Ii,"basis-open":function(e){if(e.length<4)return Ai(e);var t,r=[],n=-1,i=e.length,a=[0],o=[0];for(;++n<3;)t=e[n],a.push(t[0]),o.push(t[1]);r.push(Di(zi,a)+","+Di(zi,o)),--n;for(;++n9&&(i=3*t/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n);s=-1;for(;++s<=l;)i=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(e))}});function Ai(e){return e.length>1?e.join("L"):e+"Z"}function Mi(e){return e.join("L")+"Z"}function Si(e){for(var t=0,r=e.length,n=e[0],i=[n[0],",",n[1]];++t1){s=t[1],a=e[l],l++,n+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var c=2;cEe)+",1 "+t}function l(e,t,r,n){return"Q 0,0 "+n}return a.radius=function(e){return arguments.length?(r=gt(e),a):r},a.source=function(t){return arguments.length?(e=gt(t),a):e},a.target=function(e){return arguments.length?(t=gt(e),a):t},a.startAngle=function(e){return arguments.length?(n=gt(e),a):n},a.endAngle=function(e){return arguments.length?(i=gt(e),a):i},a},a.svg.diagonal=function(){var e=Bi,t=Ui,r=qi;function n(n,i){var a=e.call(this,n,i),o=t.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(r))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return n.source=function(t){return arguments.length?(e=gt(t),n):e},n.target=function(e){return arguments.length?(t=gt(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},a.svg.diagonal.radial=function(){var e=a.svg.diagonal(),t=qi,r=e.projection;return e.projection=function(e){return arguments.length?r(function(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Ie;return[r*Math.cos(n),r*Math.sin(n)]}}(t=e)):t},e},a.svg.symbol=function(){var e=Gi,t=Hi;function r(r,n){return(Yi.get(e.call(this,r,n))||Wi)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=gt(t),r):e},r.size=function(e){return arguments.length?(t=gt(e),r):t},r};var Yi=a.map({circle:Wi,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Xi)),r=t*Xi;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Zi),r=t*Zi/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Zi),r=t*Zi/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});a.svg.symbolTypes=Yi.keys();var Zi=Math.sqrt(3),Xi=Math.tan(30*De);X.transition=function(e){for(var t,r,n=$i||++ra,i=aa(e),a=[],o=ea||{time:Date.now(),ease:Dr,delay:0,duration:250},s=-1,l=this.length;++s0;)c[--f].call(e,o);if(a>=1)return h.event&&h.event.end.call(e,e.__data__,t),--u.count?delete u[n]:delete e[r],1}h||(a=i.time,o=Tt((function(e){var t=h.delay;if(o.t=t+a,t<=e)return f(e-t);o.c=f}),0,a),h=u[n]={tween:new k,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++u.count)}ta.call=X.call,ta.empty=X.empty,ta.node=X.node,ta.size=X.size,a.transition=function(e,t){return e&&e.transition?$i?e.transition(t):e:a.selection().transition(e)},a.transition.prototype=ta,ta.select=function(e){var t,r,n,i=this.id,a=this.namespace,o=[];e=K(e);for(var s=-1,l=this.length;++srect,.s>rect").attr("width",o[1]-o[0])}function g(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function m(){var h,m,v=this,y=a.select(a.event.target),x=r.of(v,arguments),b=a.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&&n,T=!/^(e|w)$/.test(_)&&i,k=y.classed("extent"),A=we(v),M=a.mouse(v),S=a.select(u(v)).on("keydown.brush",(function(){32==a.event.keyCode&&(k||(h=null,M[0]-=o[1],M[1]-=s[1],k=2),B())})).on("keyup.brush",(function(){32==a.event.keyCode&&2==k&&(M[0]+=o[1],M[1]+=s[1],k=0,B())}));if(a.event.changedTouches?S.on("touchmove.brush",C).on("touchend.brush",D):S.on("mousemove.brush",C).on("mouseup.brush",D),b.interrupt().selectAll("*").interrupt(),k)M[0]=o[0]-M[0],M[1]=s[0]-M[1];else if(_){var E=+/w$/.test(_),L=+/^n/.test(_);m=[o[1-E]-M[0],s[1-L]-M[1]],M[0]=o[E],M[1]=s[L]}else a.event.altKey&&(h=M.slice());function C(){var e=a.mouse(v),t=!1;m&&(e[0]+=m[0],e[1]+=m[1]),k||(a.event.altKey?(h||(h=[(o[0]+o[1])/2,(s[0]+s[1])/2]),M[0]=o[+(e[0]c||d>u||p>h)return l=i,c=r,u=d,h=p,void(o=0);var g=n.lineString([l,i],e.properties);if(!1===t(g,r,a,p,o))return!1;o++,l=i}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");l(e,(function(e,r,i){if(null!==e.geometry){var a=e.geometry.type,o=e.geometry.coordinates;switch(a){case"LineString":if(!1===t(e,r,i,0,0))return!1;break;case"Polygon":for(var s=0;sr)return o[i]-o[i-1];i++}return 30},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=t-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(e,t,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(e=null!=e.year?e.year:e)>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},62656:function(e,t,r){"use strict";e.exports={attributes:r(77843),supplyDefaults:r(13876),colorbar:r(17439),formatLabels:r(55265),calc:r(11251),plot:r(14877),hoverPoints:r(56062),eventData:r(95943),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n>>1,s=e[o];(void 0!==r?r(s,t):s-t)>=0?(a=o,i=o-1):n=o+1}return a}function r(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o];(void 0!==r?r(s,t):s-t)>0?(a=o,i=o-1):n=o+1}return a}function n(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o];(void 0!==r?r(s,t):s-t)<0?(a=o,n=o+1):i=o-1}return a}function i(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o];(void 0!==r?r(s,t):s-t)<=0?(a=o,n=o+1):i=o-1}return a}function a(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=void 0!==r?r(o,t):o-t;if(0===s)return a;s<=0?n=a+1:i=a-1}return-1}function o(e,t,r,n,i,a){return"function"===typeof r?a(e,t,r,void 0===n?0:0|n,void 0===i?e.length-1:0|i):a(e,t,void 0,void 0===r?0:0|r,void 0===n?e.length-1:0|n)}e.exports={ge:function(e,r,n,i,a){return o(e,r,n,i,a,t)},gt:function(e,t,n,i,a){return o(e,t,n,i,a,r)},lt:function(e,t,r,i,a){return o(e,t,r,i,a,n)},le:function(e,t,r,n,a){return o(e,t,r,n,a,i)},eq:function(e,t,r,n,i){return o(e,t,r,n,i,a)}}},62903:function(e){"use strict";function t(e,a){a||(a={}),("string"===typeof e||Array.isArray(e))&&(a.family=e);var o=Array.isArray(a.family)?a.family.join(", "):a.family;if(!o)throw Error("`family` must be defined");var s=a.size||a.fontSize||a.em||48,l=a.weight||a.fontWeight||"",c=(e=[a.style||a.fontStyle||"",l,s].join(" ")+"px "+o,a.origin||"top");if(t.cache[o]&&s<=t.cache[o].em)return r(t.cache[o],c);var u=a.canvas||t.canvas,h=u.getContext("2d"),f={upper:void 0!==a.upper?a.upper:"H",lower:void 0!==a.lower?a.lower:"x",descent:void 0!==a.descent?a.descent:"p",ascent:void 0!==a.ascent?a.ascent:"h",tittle:void 0!==a.tittle?a.tittle:"i",overshoot:void 0!==a.overshoot?a.overshoot:"O"},d=Math.ceil(1.5*s);u.height=d,u.width=.5*d,h.font=e;var p="H",g={top:0};h.clearRect(0,0,d,d),h.textBaseline="top",h.fillStyle="black",h.fillText(p,0,0);var m=n(h.getImageData(0,0,d,d));h.clearRect(0,0,d,d),h.textBaseline="bottom",h.fillText(p,0,d);var v=n(h.getImageData(0,0,d,d));g.lineHeight=g.bottom=d-v+m,h.clearRect(0,0,d,d),h.textBaseline="alphabetic",h.fillText(p,0,d);var y=d-n(h.getImageData(0,0,d,d))-1+m;g.baseline=g.alphabetic=y,h.clearRect(0,0,d,d),h.textBaseline="middle",h.fillText(p,0,.5*d);var x=n(h.getImageData(0,0,d,d));g.median=g.middle=d-x-1+m-.5*d,h.clearRect(0,0,d,d),h.textBaseline="hanging",h.fillText(p,0,.5*d);var b=n(h.getImageData(0,0,d,d));g.hanging=d-b-1+m-.5*d,h.clearRect(0,0,d,d),h.textBaseline="ideographic",h.fillText(p,0,d);var _=n(h.getImageData(0,0,d,d));if(g.ideographic=d-_-1+m,f.upper&&(h.clearRect(0,0,d,d),h.textBaseline="top",h.fillText(f.upper,0,0),g.upper=n(h.getImageData(0,0,d,d)),g.capHeight=g.baseline-g.upper),f.lower&&(h.clearRect(0,0,d,d),h.textBaseline="top",h.fillText(f.lower,0,0),g.lower=n(h.getImageData(0,0,d,d)),g.xHeight=g.baseline-g.lower),f.tittle&&(h.clearRect(0,0,d,d),h.textBaseline="top",h.fillText(f.tittle,0,0),g.tittle=n(h.getImageData(0,0,d,d))),f.ascent&&(h.clearRect(0,0,d,d),h.textBaseline="top",h.fillText(f.ascent,0,0),g.ascent=n(h.getImageData(0,0,d,d))),f.descent&&(h.clearRect(0,0,d,d),h.textBaseline="top",h.fillText(f.descent,0,0),g.descent=i(h.getImageData(0,0,d,d))),f.overshoot){h.clearRect(0,0,d,d),h.textBaseline="top",h.fillText(f.overshoot,0,0);var w=i(h.getImageData(0,0,d,d));g.overshoot=w-y}for(var T in g)g[T]/=s;return g.em=s,t.cache[o]=g,r(g,c)}function r(e,t){var r={};for(var n in"string"===typeof t&&(t=e[t]),e)"em"!==n&&(r[n]=e[n]-t);return r}function n(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/t)}e.exports=t,t.canvas=document.createElement("canvas"),t.cache={}},62936:function(e,t,r){"use strict";var n=r(77470),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(e){return!!n(e)&&!i.test(a.call(e))}},62967:function(e,t,r){"use strict";var n=r(47401),i=r(21661),a=r(62282),o=r(56035),s=r(31454),l=n.fillText;e.exports=function(e,t,r,c){var u=e.cd,h=u[0].trace,f=e.xa,d=e.ya,p=f.c2p(t),g=d.c2p(r),m=[p,g],v=h.hoveron||"",y=-1!==h.mode.indexOf("markers")?3:.5,x=!!h.xperiodalignment,b=!!h.yperiodalignment;if(-1!==v.indexOf("points")){var _=function(e){var t=Math.max(y,e.mrc||0),r=f.c2p(e.x)-p,n=d.c2p(e.y)-g;return Math.max(Math.sqrt(r*r+n*n)-t,1-y/t)},w=i.getDistanceFunction(c,(function(e){if(x){var t=f.c2p(e.xStart),r=f.c2p(e.xEnd);return p>=Math.min(t,r)&&p<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),i=1-1/n,a=Math.abs(f.c2p(e.x)-p);return a=Math.min(t,r)&&g<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),i=1-1/n,a=Math.abs(d.c2p(e.y)-g);return aY!==(N=O[D][1])>=Y&&(R=O[D-1][0],F=O[D][0],N-j&&(z=R+(F-R)*(Y-j)/(N-j),q=Math.min(q,z),H=Math.max(H,z)));q=Math.max(q,0),H=Math.min(H,f._length);var Z=s.defaultLine;return s.opacity(h.fillcolor)?Z=h.fillcolor:s.opacity((h.line||{}).color)&&(Z=h.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:q,x1:H,y0:Y,y1:Y,color:Z,hovertemplate:!1}),delete e.index,h.text&&!Array.isArray(h.text)?e.text=String(h.text):e.text=h.name,[e]}}}},63188:function(e,t,r){"use strict";e.exports=r(85323)},63316:function(e){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},63332:function(e,t,r){"use strict";var n=r(5829),i=r(57775),a=Function.prototype.call;e.exports=function(e,t){var r={},o=arguments[2];return n(t),i(e,(function(e,n,i,s){r[n]=a.call(t,o,e,n,i,s)})),r}},63382:function(e,t,r){"use strict";e.exports=function(e){var t=(e=e||{}).center||[0,0,0],r=e.up||[0,1,0],n=e.right||h(r),i=e.radius||1,a=e.theta||0,u=e.phi||0;if(t=[].slice.call(t,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),"eye"in e){var d=e.eye,p=[d[0]-t[0],d[1]-t[1],d[2]-t[2]];o(n,p,r),c(n[0],n[1],n[2])<1e-6?n=h(r):s(n,n),i=c(p[0],p[1],p[2]);var g=l(r,p)/i,m=l(n,p)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new f(e.zoomMin,e.zoomMax,t,r,n,i,a,u)};var n=r(87646),i=r(51213),a=r(89066),o=r(8156),s=r(16543),l=r(16283);function c(e,t,r){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(r,2))}function u(e){return Math.min(1,Math.max(-1,e))}function h(e){var t=Math.abs(e[0]),r=Math.abs(e[1]),n=Math.abs(e[2]),i=[0,0,0];t>Math.max(r,n)?i[2]=1:r>Math.max(t,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l<3;++l)a+=e[l]*e[l],o+=i[l]*e[l];for(l=0;l<3;++l)i[l]-=o/a*e[l];return s(i,i),i}function f(e,t,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(e,t),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var d=f.prototype;d.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},d.getDistanceLimits=function(e){var t=this.radius.bounds[0];return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},d.recalcMatrix=function(e){this.center.curve(e),this.up.curve(e),this.right.curve(e),this.radius.curve(e),this.angle.curve(e);for(var t=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a<3;++a)i+=t[a]*r[a],n+=t[a]*t[a];var l=Math.sqrt(n),u=0;for(a=0;a<3;++a)r[a]-=t[a]*i/n,u+=r[a]*r[a],t[a]/=l;var h=Math.sqrt(u);for(a=0;a<3;++a)r[a]/=h;var f=this.computedToward;o(f,t,r),s(f,f);var d=Math.exp(this.computedRadius[0]),p=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(p),v=Math.sin(p),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,A=-v*x,M=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a<3;++a){var L=_*r[a]+w*f[a]+T*t[a];E[4*a+1]=k*r[a]+A*f[a]+M*t[a],E[4*a+2]=L,E[4*a+3]=0}var C=E[1],I=E[5],D=E[9],P=E[2],O=E[6],z=E[10],R=I*z-D*O,F=D*P-C*z,j=C*O-I*P,N=c(R,F,j);R/=N,F/=N,j/=N,E[0]=R,E[4]=F,E[8]=j;for(a=0;a<3;++a)S[a]=b[a]+E[2+4*a]*d;for(a=0;a<3;++a){u=0;for(var B=0;B<3;++B)u+=E[a+4*B]*S[B];E[12+a]=-u}E[15]=1},d.getMatrix=function(e,t){this.recalcMatrix(e);var r=this.computedMatrix;if(t){for(var n=0;n<16;++n)t[n]=r[n];return t}return r};var p=[0,0,0];d.rotate=function(e,t,r,n){if(this.angle.move(e,t,r),n){this.recalcMatrix(e);var i=this.computedMatrix;p[0]=i[2],p[1]=i[6],p[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,p);for(c=0;c<3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(e,o[0],o[1],o[2]),this.right.set(e,s[0],s[1],s[2])}},d.pan=function(e,t,r,n){t=t||0,r=r||0,n=n||0,this.recalcMatrix(e);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],h=i[4],f=i[8],d=u*a+h*o+f*s,p=c(u-=a*d,h-=o*d,f-=s*d),g=(u/=p)*t+a*r,m=(h/=p)*t+o*r,v=(f/=p)*t+s*r;this.center.move(e,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(e,Math.log(y))},d.translate=function(e,t,r,n){this.center.move(e,t||0,r||0,n||0)},d.setMatrix=function(e,t,r,n){var a=1;"number"===typeof r&&(a=0|r),(a<0||a>3)&&(a=1);var o=(a+2)%3;t||(this.recalcMatrix(e),t=this.computedMatrix);var s=t[a],l=t[a+4],h=t[a+8];if(n){var f=Math.abs(s),d=Math.abs(l),p=Math.abs(h),g=Math.max(f,d,p);f===g?(s=s<0?-1:1,l=h=0):p===g?(h=h<0?-1:1,s=l=0):(l=l<0?-1:1,s=h=0)}else{var m=c(s,l,h);s/=m,l/=m,h/=m}var v,y,x=t[o],b=t[o+4],_=t[o+8],w=x*s+b*l+_*h,T=c(x-=s*w,b-=l*w,_-=h*w),k=l*(_/=T)-h*(b/=T),A=h*(x/=T)-s*_,M=s*b-l*x,S=c(k,A,M);if(k/=S,A/=S,M/=S,this.center.jump(e,H,G,W),this.radius.idle(e),this.up.jump(e,s,l,h),this.right.jump(e,x,b,_),2===a){var E=t[1],L=t[5],C=t[9],I=E*x+L*b+C*_,D=E*k+L*A+C*M;v=R<0?-Math.PI/2:Math.PI/2,y=Math.atan2(D,I)}else{var P=t[2],O=t[6],z=t[10],R=P*s+O*l+z*h,F=P*x+O*b+z*_,j=P*k+O*A+z*M;v=Math.asin(u(R)),y=Math.atan2(j,F)}this.angle.jump(e,y,v),this.recalcMatrix(e);var N=t[2],B=t[6],U=t[10],V=this.computedMatrix;i(V,t);var q=V[15],H=V[12]/q,G=V[13]/q,W=V[14]/q,Y=Math.exp(this.computedRadius[0]);this.center.jump(e,H-N*Y,G-B*Y,W-U*Y)},d.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},d.idle=function(e){this.center.idle(e),this.up.idle(e),this.right.idle(e),this.radius.idle(e),this.angle.idle(e)},d.flush=function(e){this.center.flush(e),this.up.flush(e),this.right.flush(e),this.radius.flush(e),this.angle.flush(e)},d.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},d.lookAt=function(e,t,r,n){this.recalcMatrix(e),t=t||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s<1e-6)){i/=s,a/=s,o/=s;var l=t[0]-r[0],h=t[1]-r[1],f=t[2]-r[2],d=c(l,h,f);if(!(d<1e-6)){l/=d,h/=d,f/=d;var p=this.computedRight,g=p[0],m=p[1],v=p[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x<.01&&(x=c(g=a*f-o*h,m=o*l-i*f,v=i*h-a*l))<1e-6)){g/=x,m/=x,v/=x,this.up.set(e,i,a,o),this.right.set(e,g,m,v),this.center.set(e,r[0],r[1],r[2]),this.radius.set(e,Math.log(d));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*h+o*f,A=g*l+m*h+v*f,M=(b/=T)*l+(_/=T)*h+(w/=T)*f,S=Math.asin(u(k)),E=Math.atan2(M,A),L=this.angle._state,C=L[L.length-1],I=L[L.length-2];C%=2*Math.PI;var D=Math.abs(C+2*Math.PI-E),P=Math.abs(C-E),O=Math.abs(C-2*Math.PI-E);D=1},d.isTransparent=function(){return this.opacity<1},d.pickSlots=1,d.setPickBase=function(e){this.pickId=e},d.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"lightPosition"in e&&(this.lightPosition=e.lightPosition),"opacity"in e&&(this.opacity=e.opacity),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),void 0!==e.tubeScale&&(this.tubeScale=e.tubeScale),void 0!==e.vectorScale&&(this.vectorScale=e.vectorScale),void 0!==e.coneScale&&(this.coneScale=e.coneScale),void 0!==e.coneOffset&&(this.coneOffset=e.coneOffset),e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(function(e){for(var t=u({colormap:e,nshades:256,format:"rgba"}),r=new Uint8Array(1024),n=0;n<256;++n){for(var i=t[n],a=0;a<3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(e.colormap)),this.texture.generateMipmap());var r=e.cells,n=e.positions,i=e.vectors;if(n&&r&&i){var a=[],o=[],s=[],l=[],h=[];this.cells=r,this.positions=n,this.vectors=i;var f=e.meshColor||[1,1,1,1],d=e.vertexIntensity,p=1/0,g=-1/0;if(d)if(e.vertexIntensityBounds)p=+e.vertexIntensityBounds[0],g=+e.vertexIntensityBounds[1];else for(var m=0;m0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},d.drawPick=function(e){e=e||{};for(var t=this.gl,r=e.model||h,n=e.view||h,i=e.projection||h,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},d.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=e.value[0]+256*e.value[1]+65536*e.value[2],r=this.cells[t],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return"cone"===this.traceType?i.index=Math.floor(r[1]/48):"streamtube"===this.traceType&&(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=t),i},d.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(e,t,r){var s=r.shaders;1===arguments.length&&(e=(t=e).gl);var l=function(e,t){var r=n(e,t.meshShader.vertex,t.meshShader.fragment,null,t.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}(e,s),u=function(e,t){var r=n(e,t.pickShader.vertex,t.pickShader.fragment,null,t.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}(e,s),h=o(e,c(new Uint8Array([255,255,255,255]),[1,1,4]));h.generateMipmap(),h.minFilter=e.LINEAR_MIPMAP_LINEAR,h.magFilter=e.LINEAR;var d=i(e),p=i(e),g=i(e),m=i(e),v=i(e),y=new f(e,h,l,u,d,p,v,g,m,a(e,[{buffer:d,type:e.FLOAT,size:4},{buffer:v,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:e.FLOAT,size:4},{buffer:m,type:e.FLOAT,size:2},{buffer:p,type:e.FLOAT,size:4}]),r.traceType||"cone");return y.update(t),y}},63539:function(e,t,r){"use strict";r.d(t,{GP:function(){return n.GP},OE:function(){return i.A}});var n=r(12724),i=r(59781)},63639:function(e,t,r){"use strict";var n=r(63816),i=r(35642);e.exports=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var r=n(e);return r.space?((t=Array(3))[0]=Math.min(Math.max(r.values[0],0),255),t[1]=Math.min(Math.max(r.values[1],0),255),t[2]=Math.min(Math.max(r.values[2],0),255),"h"===r.space[0]&&(t=i.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t):[]}},63709:function(e,t,r){"use strict";var n=r(47401),i=r(17342).overrideAll,a=r(17504),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,"calc","nested"),scattergl:i(o,"calc","nested")}},supplyDefaults:r(73079),calc:r(23728),makeComputeError:r(20837),plot:r(90306),style:r(26208),hoverInfo:function(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}}},63715:function(e,t,r){"use strict";var n=r(62683),i=r(30223)[3];function a(e,t,r,n,i){this.a=e,this.b=t,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(e,t,r,n){this.a=e,this.b=t,this.type=r,this.idx=n}function s(e,t){var r=e.a[0]-t.a[0]||e.a[1]-t.a[1]||e.type-t.type;return r||(0!==e.type&&(r=i(e.a,e.b,t.b))?r:e.idx-t.idx)}function l(e,t){return i(e.a,e.b,t)}function c(e,t,r,a,o){for(var s=n.lt(t,a,l),c=n.gt(t,a,l),u=s;u1&&i(r[f[d-2]],r[f[d-1]],a)>0;)e.push([f[d-1],f[d-2],o]),d-=1;f.length=d,f.push(o);var p=h.upperIds;for(d=p.length;d>1&&i(r[p[d-2]],r[p[d-1]],a)<0;)e.push([p[d-2],p[d-1],o]),d-=1;p.length=d,p.push(o)}}function u(e,t){var r;return(r=e.a[0]p[0]&&i.push(new o(p,d,2,l),new o(d,p,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l20)return 52;return r+32}},63750:function(e,t,r){"use strict";var n=r(83491),i=r(91771),a=r(5601),o=r(47624),s=r(62405).defaultLine,l=r(20168).isArrayOrTypedArray,c=a(s);function u(e,t){var r=e;return r[3]*=t,r}function h(e){if(n(e))return c;var t=a(e);return t.length?t:c}function f(e){return n(e)?e:1}e.exports={formatColor:function(e,t,r){var n,i,s,d,p,g=e.color,m=l(g),v=l(t),y=o.extractOpts(e),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(e):h,i=m?function(e,t){return void 0===e[t]?c:a(n(e[t]))}:h,s=v?function(e,t){return void 0===e[t]?1:f(e[t])}:f,m||v)for(var b=0;b10&&/[0-9](?:\s|\/)/.test(e)&&(a=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(a=[e[0],e[1],e[2]],r="rgb",o=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(r="rgb",a=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(r="hsl",a=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),o=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(o/=100)):(r="rgb",a=[e>>>16,(65280&e)>>>8,255&e]);return{space:r,values:a,alpha:o}};var i={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},63846:function(e,t,r){"use strict";var n=r(62282),i=r(47401),a=r(37762),o=r(48128),s=r(89834),l=r(92171),c=r(48877),u=r(21605),h=r(82335),f=r(93290),d=r(59756),p=r(9405).BADNUM;function g(e){for(var t=[],r=e.length,n=0;nz){P("x scale is not linear");break}}if(x.length&&"fast"===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;kF){P("y scale is not linear");break}}}var j=i.maxRowLength(T),N="scaled"===t.xtype?"":r,B=d(t,N,m,v,j,M),U="scaled"===t.ytype?"":x,V=d(t,U,b,_,T.length,S);C||(t._extremes[M._id]=a.findExtremes(M,B),t._extremes[S._id]=a.findExtremes(S,V));var q={x:B,y:V,z:T,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&y&&(q.orig_x=y),t.yperiodalignment&&w&&(q.orig_y=w),N&&N.length===B.length-1&&(q.xCenter=N),U&&U.length===V.length-1&&(q.yCenter=U),L&&(q.xRanges=A.xRanges,q.yRanges=A.yRanges,q.pts=A.pts),E||l(e,t,{vals:T,cLetter:"z"}),E&&t.contours&&"heatmap"===t.contours.coloring){var H={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};q.xfill=d(H,N,m,v,j,M),q.yfill=d(H,U,b,_,T.length,S)}return[q]}},63852:function(e,t,r){"use strict";var n=r(95297).drawRaw,i=r(98138),a=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,s=0;s1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+s+'"]').remove():(l._pdata=i(e.glplot.cameraParams,[t.xaxis.r2l(l.x)*r[0],t.yaxis.r2l(l.y)*r[1],t.zaxis.r2l(l.z)*r[2]]),n(e.graphDiv,l,s,e.id,l._xa,l._ya))}}},63899:function(e,t,r){"use strict";var n=r(34914),i=r(98142);e.exports=function(e,t){return n(e,t)||i(e)-i(t)}},64015:function(e,t,r){"use strict";var n,i=r(61228),a=r(99449),o=r(18518),s=r(32e3),l=Object.defineProperty;n=e.exports=function(e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");e=String(e),s.call(this,e),l(this,"__length__",a("",e.length))},i&&i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a("c","String Iterator"))},64111:function(e){"use strict";function t(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t-1}},64311:function(e){"use strict";e.exports=function(e,t,r,n,i){if(t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),n[i]){var a=n[i];e.a=a.a,e.b=a.b,e.c=a.c}else e.a=t.a,e.b=t.b,e.c=t.c;return e}},64364:function(e,t,r){"use strict";var n=r(13373).eV,i=r(79054),a="parcats";t.name=a,t.plot=function(e,t,r,o){var s=n(e.calcdata,a);if(s.length){var l=s[0];i(e,l,r,o)}},t.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}},64377:function(e,t,r){"use strict";r.d(t,{A:function(){return u},y:function(){return o}});var n=r(74443),i=r(57977);function a(e,t){return[(0,i.tn)(e)>i.pi?e+Math.round(-e/i.FA)*i.FA:e,t]}function o(e,t,r){return(e%=i.FA)?t||r?(0,n.A)(l(e),c(t,r)):l(e):t||r?c(t,r):a}function s(e){return function(t,r){return[(t+=e)>i.pi?t-i.FA:t<-i.pi?t+i.FA:t,r]}}function l(e){var t=s(e);return t.invert=s(-e),t}function c(e,t){var r=(0,i.gn)(e),n=(0,i.F8)(e),a=(0,i.gn)(t),o=(0,i.F8)(t);function s(e,t){var s=(0,i.gn)(t),l=(0,i.gn)(e)*s,c=(0,i.F8)(e)*s,u=(0,i.F8)(t),h=u*r+l*n;return[(0,i.FP)(c*a-h*o,l*r-u*n),(0,i.qR)(h*a+c*o)]}return s.invert=function(e,t){var s=(0,i.gn)(t),l=(0,i.gn)(e)*s,c=(0,i.F8)(e)*s,u=(0,i.F8)(t),h=u*a-c*o;return[(0,i.FP)(c*a+u*o,l*r+h*n),(0,i.qR)(h*r-l*n)]},s}function u(e){function t(t){return(t=e(t[0]*i.F2,t[1]*i.F2))[0]*=i.uj,t[1]*=i.uj,t}return e=o(e[0]*i.F2,e[1]*i.F2,e.length>2?e[2]*i.F2:0),t.invert=function(t){return(t=e.invert(t[0]*i.F2,t[1]*i.F2))[0]*=i.uj,t[1]*=i.uj,t},t}a.invert=a},64498:function(e,t,r){"use strict";var n=r(31454),i=r(47401).isArrayOrTypedArray;e.exports=function(e,t,r,a){var o=!1;if(t.marker){var s=t.marker.color,l=(t.marker.line||{}).color;s&&!i(s)?o=s:l&&!i(l)&&(o=l)}a("fillcolor",n.addOpacity((t.line||{}).color||o||r,.5))}},64540:function(e,t,r){"use strict";var n=r(92171),i=r(73698).processGrid,a=r(73698).filter;e.exports=function(e,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=a(t.x,t._len),t._y=a(t.y,t._len),t._z=a(t.z,t._len),t._value=a(t.value,t._len);var r=i(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;for(var o=1/0,s=-1/0,l=0;l0){var h=Math.sqrt(u+1);e[0]=.5*(o-l)/h,e[1]=.5*(s-n)/h,e[2]=.5*(r-a)/h,e[3]=.5*h}else{var f=Math.max(t,a,c);h=Math.sqrt(2*f-u+1);t>=f?(e[0]=.5*h,e[1]=.5*(i+r)/h,e[2]=.5*(s+n)/h,e[3]=.5*(o-l)/h):a>=f?(e[0]=.5*(r+i)/h,e[1]=.5*h,e[2]=.5*(l+o)/h,e[3]=.5*(s-n)/h):(e[0]=.5*(n+s)/h,e[1]=.5*(o+l)/h,e[2]=.5*h,e[3]=.5*(r-i)/h)}return e}},64889:function(e,t,r){"use strict";var n=r(47401),i=r(26800),a=r(14126),o=r(61842).name,s=a.steps;function l(e,t,r){function o(r,i){return n.coerce(e,t,a,r,i)}for(var s=i(e,t,{name:"steps",handleItemDefaults:c}),l=0,u=0;u0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var r,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,h=(s.subplotsRegistry.ternary||{}).attrRegex,f=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(r=0;r3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),p(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var r=0;r0)return e.substr(0,t)}t.hasParent=function(e,t){for(var r=b(t);r;){if(r in e)return!0;r=b(r)}return!1};var _=["x","y","z"];t.clearAxisTypes=function(e,t,r){for(var n=0;nh&&(n.log("parcoords traces support up to "+h+" dimensions at the moment"),p.splice(h));var g=s(e,t,{name:"dimensions",layout:l,handleItemDefaults:d}),m=function(e,t,r,o,s){var l=s("line.color",r);if(i(e,"line")&&n.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),a(e,t,o,s,{prefix:"line.",cLetter:"c"}),l.length;t.line.color=r}return 1/0}(e,t,r,l,u);o(t,l,u),Array.isArray(g)&&g.length||(t.visible=!1),f(t,g,"values",m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,"labelfont",v),n.coerceFont(u,"tickfont",v),n.coerceFont(u,"rangefont",v),u("labelangle"),u("labelside")}},65299:function(e){"use strict";e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},waterfallgap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},65390:function(e,t,r){"use strict";var n=r(75019);e.exports=function(e){var t=["'use strict'","var CACHED={}"],r=[],i=e.funcName+"_cwise_thunk";t.push(["return function ",i,"(",e.shimArgs.join(","),"){"].join(""));for(var a=[],o=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],l=[],c=[],u=0;u0&&(l.push("array"+e.arrayArgs[0]+".shape.length===array"+h+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[u]))),c.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+h+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[u])+"]"))}for(e.arrayArgs.length>1&&(t.push("if (!("+l.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex--\x3e0;) {"),t.push("if (!("+c.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}")),u=0;u9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==t&&(o=r,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===t?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(e){var t=n.instance().fromJD(e),r=t.year(),i=t.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)++o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r=0&&h("surfacecolor",d||p);for(var g=["x","y","z"],m=0;m<3;++m){var v="projection."+g[m];h(v+".show")&&(h(v+".opacity"),h(v+".scale"))}var y=n.getComponentMethod("errorbars","supplyDefaults");y(e,t,d||p||r,{axis:"z"}),y(e,t,d||p||r,{axis:"y",inherit:"z"}),y(e,t,d||p||r,{axis:"x",inherit:"z"})}else t.visible=!1}},66357:function(e){"use strict";e.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e}},66405:function(e,t,r){"use strict";var n=r(93157),i=r(71277);function a(e){this.bindVertexArrayOES=e.bindVertexArray.bind(e),this.createVertexArrayOES=e.createVertexArray.bind(e),this.deleteVertexArrayOES=e.deleteVertexArray.bind(e)}e.exports=function(e,t,r,o){var s,l=e.createVertexArray?new a(e):e.getExtension("OES_vertex_array_object");return(s=l?n(e,l):i(e)).update(t,r,o),s}},66434:function(e,t,r){"use strict";var n=r(47401),i=r(92173).EventEmitter,a=r(4475);e.exports=function(e){var t=e.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=e.svg,c=e.format||"png";if(n.isIE()&&"svg"!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),e.promise?r:t.emit("error",u)}var h,f,d=e.canvas,p=e.scale||1,g=e.width||300,m=e.height||150,v=p*g,y=p*m,x=d.getContext("2d"),b=new s;"svg"===c||n.isSafari()?f=a.encodeSVG(l):(h=a.createBlob(l,"svg"),f=a.createObjectURL(h)),d.width=v,d.height=y,b.onload=function(){var r;switch(h=null,a.revokeObjectURL(f),"svg"!==c&&x.drawImage(b,0,0,v,y),c){case"jpeg":r=d.toDataURL("image/jpeg");break;case"png":r=d.toDataURL("image/png");break;case"webp":r=d.toDataURL("image/webp");break;case"svg":r=f;break;default:var n="Image format is not jpeg, png, svg or webp.";if(o(new Error(n)),!e.promise)return t.emit("error",n)}i(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(h=null,a.revokeObjectURL(f),o(r),!e.promise)return t.emit("error",r)},b.src=f}));return e.promise?r:t}},66437:function(e,t,r){function n(e){try{if(!r.g.localStorage)return!1}catch(n){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},66532:function(e,t,r){e.exports=function(e){for(var t=e.length,r=[],a=[],s=0;s0&&t[i]===r[0]))return 1;a=e[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]0))return 0;s=-1,a=a.right}else if(c>0)a=a.left;else{if(!(c<0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(e,t){return function(r){return e(r[0],r[1])?0:t(r)}}(l(a),y)};var n=r(30223)[3],i=r(47752),a=r(44965),o=r(50169);function s(){return!0}function l(e){for(var t={},r=0;r>>1,i=e.positions instanceof Float32Array,o=e.idToIndex instanceof Int32Array&&e.idToIndex.length>=n,s=e.positions,l=i?s:a.mallocFloat32(s.length),c=o?e.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),t=0;t>>1;for(r=0;r=t[0]&&a<=t[2]&&o>=t[1]&&o<=t[3]&&n++}return n}(this.points,o),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(c,.33333)));e[0]=2/s,e[4]=2/l,e[6]=-2*o[0]/s-1,e[7]=-2*o[1]/l-1,this.offsetBuffer.bind(),i.bind(),i.attributes.position.pointer(),i.uniforms.matrix=e,i.uniforms.color=this.color,i.uniforms.borderColor=this.borderColor,i.uniforms.pointCloud=u<5,i.uniforms.pointSize=u,i.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),n&&(t[0]=255&r,t[1]=r>>8&255,t[2]=r>>16&255,t[3]=r>>24&255,this.pickBuffer.bind(),i.attributes.pickId.pointer(a.UNSIGNED_BYTE),i.uniforms.pickOffset=t,this.pickOffset=r);var h=a.getParameter(a.BLEND),f=a.getParameter(a.DITHER);return h&&!this.blend&&a.disable(a.BLEND),f&&a.disable(a.DITHER),a.drawArrays(a.POINTS,0,this.pointCount),h&&!this.blend&&a.enable(a.BLEND),f&&a.enable(a.DITHER),r+this.pointCount}}(),l.draw=l.unifiedDraw,l.drawPick=l.unifiedDraw,l.pick=function(e,t,r){var n=this.pickOffset,i=this.pointCount;if(r=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},66797:function(e,t,r){"use strict";var n=r(37762),i=r(47401),a=r(21661),o=r(31454),s=r(47401).fillText,l=r(7677),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(e,t,r,n){var i,s,l=e.cd,c=e.xa,u=l[0].trace,h=l[0].t,f=u.type,d="ohlc"===f?"l":"min",p="ohlc"===f?"h":"max",g=h.bPos||0,m=h.bdPos||h.tickLen,v=h.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(e){var r=function(e){return e.pos+g-t}(e);return a.inbox(r-v,r+v,i)}function b(e){var t=e[d],n=e[p];return t===n||a.inbox(t-r,n-r,i)}function _(e){return(x(e)+b(e))/2}i=e.maxHoverDistance-y,s=e.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,e),!1===e.index)return null;var T=l[e.index];if(T.empty)return null;var k=u[T.dir],A=k.line.color;return o.opacity(A)&&k.line.width?e.color=A:e.color=k.fillcolor,e.x0=c.c2p(T.pos+g-m,!0),e.x1=c.c2p(T.pos+g+m,!0),e.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,e.spikeDistance=_(T)*s/i,e.xSpike=c.c2p(T.pos,!0),e}function h(e,t,r,a){var o=e.cd,s=e.ya,l=o[0].trace,c=o[0].t,h=[],f=u(e,t,r,a);if(!f)return[];var d=o[f.index].hi||l.hoverinfo,p=d.split("+");if(!("all"===d||-1!==p.indexOf("y")))return[];for(var g=["high","open","close","low"],m={},v=0;v"+c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat):((y=i.extendFlat({},f)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat),y.name="",h.push(y),m[b]=y)}return h}function f(e,t,r,i){var a=e.cd,o=e.ya,l=a[0].trace,h=a[0].t,f=u(e,t,r,i);if(!f)return[];var d=a[f.index],p=f.index=d.i,g=d.dir;function m(e){return h.labels[e]+n.hoverLabelText(o,l[e][p],l.yhoverformat)}var v=d.hi||l.hoverinfo,y=v.split("+"),x="all"===v,b=x||-1!==y.indexOf("y"),_=x||-1!==y.indexOf("text"),w=b?[m("open"),m("high"),m("low"),m("close")+" "+c[g]]:[];return _&&s(d,l,w),f.extraText=w.join("
"),f.y0=f.y1=o.c2p(d.yc,!0),[f]}e.exports={hoverPoints:function(e,t,r,n){return e.cd[0].trace.hoverlabel.split?h(e,t,r,n):f(e,t,r,n)},hoverSplit:h,hoverOnPoints:f}},66806:function(e,t,r){"use strict";var n=r(33333),i=r(5153),a=r(87241).extendFlat,o=r(17342).overrideAll;e.exports=o({thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",dflt:1.02,min:-2,max:3,description:["Sets the x position of the color bar (in plot fraction)."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",dflt:.5,min:-2,max:3,description:["Sets the y position of the color bar (in plot fraction)."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:""}),ticklabeloverflow:a({},n.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn."].join(" ")},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({description:"Sets the color bar's tick label font"}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:i({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:["Determines the location of color bar's title","with respect to the color bar.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:i({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root")},66807:function(e,t,r){"use strict";var n=r(62258),i=r(62282),a=r(47401),o=r(35722),s=r(41707),l=r(13373).eV,c=r(77063),u=r(56890),h=r(6412),f=a.ensureSingle;function d(e,t,r){return a.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function p(e,t,r,a,o){for(var c,h,f,d=u.traceLayerClasses,p=e._fullLayout,g=p._modules,m=[],v=[],y=0;y1&&-1!==n.indexOf("Macintosh")&&-1!==n.indexOf("Safari")&&(i=!0),i}},66869:function(e){"use strict";e.exports=function(e,t,r){return 0===e.length?e:t?(r||e.sort(t),function(e,t){for(var r=1,n=e.length,i=e[0],a=e[0],o=1;o2&&(i.push([r].concat(a.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(a.length==t[o])return a.unshift(r),i.push(a);if(a.lengthe.length)&&(t=e.length);for(var r=0,n=new Array(t);r 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),c.vert=f(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),m&&(c.frag=c.frag.replace("smoothstep","smoothStep"),l.frag=l.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(c)}b.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nn)?t.tree=u(e,{bounds:h}):n&&n.length&&(t.tree=n),t.tree){var f={primitive:"points",usage:"static",data:t.tree,type:"uint32"};t.elements?t.elements(f):t.elements=o.elements(f)}var d=v.float32(e);return i({data:d,usage:"dynamic"}),a({data:v.fract32(e,d),usage:"dynamic"}),s({data:new Uint8Array(c),type:"uint8",usage:"stream"}),e}},{marker:function(t,r,n){var i=r.activation;if(i.forEach((function(e){return e&&e.destroy&&e.destroy()})),i.length=0,t&&"number"!==typeof t[0]){for(var a=[],s=0,l=Math.min(t.length,r.count);s=0)return a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)t=e;else{t=new Uint8Array(e.length);for(var o=0,s=e.length;o4*n&&(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*e.length/t);if(n>1)for(var i=.25*(e=e.slice()).length%t;i-1;s--){var l=a[s];if("Version/"===l.substr(0,8)){var c=l.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}}return r}},67645:function(e,t,r){"use strict";var n=r(89407);e.exports=function(e,t,r,n){i||(i=e.FRAMEBUFFER_UNSUPPORTED,a=e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=e.getExtension("WEBGL_draw_buffers");!l&&c&&function(e,t){var r=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n<=r;++n){for(var i=new Array(r),a=0;au||r<0||r>u)throw new Error("gl-fbo: Parameters are too large for FBO");var h=1;if("color"in(n=n||{})){if((h=Math.max(0|n.color,0))<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(h>1){if(!c)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(h>e.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+h+" draw buffers")}}var f=e.UNSIGNED_BYTE,d=e.getExtension("OES_texture_float");if(n.float&&h>0){if(!d)throw new Error("gl-fbo: Context does not support floating point textures");f=e.FLOAT}else n.preferFloat&&h>0&&d&&(f=e.FLOAT);var g=!0;"depth"in n&&(g=!!n.depth);var m=!1;"stencil"in n&&(m=!!n.stencil);return new p(e,t,r,f,h,g,m,c)};var i,a,o,s,l=null;function c(e){return[e.getParameter(e.FRAMEBUFFER_BINDING),e.getParameter(e.RENDERBUFFER_BINDING),e.getParameter(e.TEXTURE_BINDING_2D)]}function u(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function h(e){switch(e){case i:throw new Error("gl-fbo: Framebuffer unsupported");case a:throw new Error("gl-fbo: Framebuffer incomplete attachment");case o:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case s:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function f(e,t,r,i,a,o){if(!i)return null;var s=n(e,t,r,a,i);return s.magFilter=e.NEAREST,s.minFilter=e.NEAREST,s.mipSamples=1,s.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,o,e.TEXTURE_2D,s.handle,0),s}function d(e,t,r,n,i){var a=e.createRenderbuffer();return e.bindRenderbuffer(e.RENDERBUFFER,a),e.renderbufferStorage(e.RENDERBUFFER,n,t,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,i,e.RENDERBUFFER,a),a}function p(e,t,r,n,i,a,o,s){this.gl=e,this._shape=[0|t,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var p=0;p1&&s.drawBuffersWEBGL(l[o]);var y=r.getExtension("WEBGL_depth_texture");y?p?e.depth=f(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&&(e.depth=f(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&&p?e._depth_rb=d(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?e._depth_rb=d(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):p&&(e._depth_rb=d(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){for(e._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(r.deleteRenderbuffer(e._depth_rb),e._depth_rb=null),v=0;vi||r<0||r>i)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=r;for(var a=c(n),o=0;o=0;i--){var a=e[i];if("scatter"===a.type&&a.xaxis===r.xaxis&&a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},67829:function(e,t,r){"use strict";var n=r(31763),i=r(54928),a=Math.max;e.exports=function(e,t){var r,o,s,l=a(arguments.length,2);for(e=Object(i(e)),s=function(n){try{e[n]=t[n]}catch(i){r||(r=i)}},o=1;o=0&&(t=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),l=-1,c=s.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++l0)for(var r,n,i=new Array(r),a=0;a0?s.push(["d",p,"=s",p,"-d",h,"*n",h].join("")):s.push(["d",p,"=s",p].join("")),h=p),0!==(d=e.length-1-l)&&(f>0?s.push(["e",d,"=s",d,"-e",f,"*n",f,",f",d,"=",c[d],"-f",f,"*n",f].join("")):s.push(["e",d,"=s",d,",f",d,"=",c[d]].join("")),f=d)}r.push("var "+s.join(","));var g=["0","n0-1","data","offset"].concat(o(e.length));r.push(["if(n0<=",i,"){","insertionSort(",g.join(","),")}else{","quickSort(",g.join(","),")}"].join("")),r.push("}return "+n);var m=new Function("insertionSort","quickSort",r.join("\n")),v=function(e,t){var r=["'use strict'"],n=["ndarrayInsertionSort",e.join("d"),t].join(""),i=["left","right","data","offset"].concat(o(e.length)),s=a(t),l=["i,j,cptr,ptr=left*s0+offset"];if(e.length>1){for(var c=[],u=1;u1){for(r.push("dptr=0;sptr=ptr"),u=e.length-1;u>=0;--u)0!==(d=e[u])&&r.push(["for(i",d,"=0;i",d,"b){break __l}"].join("")),u=e.length-1;u>=1;--u)r.push("sptr+=e"+u,"dptr+=f"+u,"}");for(r.push("dptr=cptr;sptr=cptr-s0"),u=e.length-1;u>=0;--u)0!==(d=e[u])&&r.push(["for(i",d,"=0;i",d,"=0;--u)0!==(d=e[u])&&r.push(["for(i",d,"=0;i",d,"scratch)){",f("cptr",h("cptr-s0")),"cptr-=s0","}",f("cptr","scratch"));return r.push("}"),e.length>1&&s&&r.push("free(scratch)"),r.push("} return "+n),s?new Function("malloc","free",r.join("\n"))(s[0],s[1]):new Function(r.join("\n"))()}(e,t),y=function(e,t,r){var n=["'use strict'"],s=["ndarrayQuickSort",e.join("d"),t].join(""),l=["left","right","data","offset"].concat(o(e.length)),c=a(t),u=0;n.push(["function ",s,"(",l.join(","),"){"].join(""));var h=["sixth=((right-left+1)/6)|0","index1=left+sixth","index5=right-sixth","index3=(left+right)>>1","index2=index3-sixth","index4=index3+sixth","el1=index1","el2=index2","el3=index3","el4=index4","el5=index5","less=left+1","great=right-1","pivots_are_equal=true","tmp","tmp0","x","y","z","k","ptr0","ptr1","ptr2","comp_pivot1=0","comp_pivot2=0","comp=0"];if(e.length>1){for(var f=[],d=1;d=0;--a)0!==(o=e[a])&&n.push(["for(i",o,"=0;i",o,"1)for(a=0;a1?n.push("ptr_shift+=d"+o):n.push("ptr0+=d"+o),n.push("}"))}}function y(t,r,i,a){if(1===r.length)n.push("ptr0="+p(r[0]));else{for(var o=0;o1)for(o=0;o=1;--o)i&&n.push("pivot_ptr+=f"+o),r.length>1?n.push("ptr_shift+=e"+o):n.push("ptr0+=e"+o),n.push("}")}function x(){e.length>1&&c&&n.push("free(pivot1)","free(pivot2)")}function b(t,r){var i="el"+t,a="el"+r;if(e.length>1){var o="__l"+ ++u;y(o,[i,a],!1,["comp=",g("ptr0"),"-",g("ptr1"),"\n","if(comp>0){tmp0=",i,";",i,"=",a,";",a,"=tmp0;break ",o,"}\n","if(comp<0){break ",o,"}"].join(""))}else n.push(["if(",g(p(i)),">",g(p(a)),"){tmp0=",i,";",i,"=",a,";",a,"=tmp0}"].join(""))}function _(t,r){e.length>1?v([t,r],!1,m("ptr0",g("ptr1"))):n.push(m(p(t),g(p(r))))}function w(t,r,i){if(e.length>1){var a="__l"+ ++u;y(a,[r],!0,[t,"=",g("ptr0"),"-pivot",i,"[pivot_ptr]\n","if(",t,"!==0){break ",a,"}"].join(""))}else n.push([t,"=",g(p(r)),"-pivot",i].join(""))}function T(t,r){e.length>1?v([t,r],!1,["tmp=",g("ptr0"),"\n",m("ptr0",g("ptr1")),"\n",m("ptr1","tmp")].join("")):n.push(["ptr0=",p(t),"\n","ptr1=",p(r),"\n","tmp=",g("ptr0"),"\n",m("ptr0",g("ptr1")),"\n",m("ptr1","tmp")].join(""))}function k(t,r,i){e.length>1?(v([t,r,i],!1,["tmp=",g("ptr0"),"\n",m("ptr0",g("ptr1")),"\n",m("ptr1",g("ptr2")),"\n",m("ptr2","tmp")].join("")),n.push("++"+r,"--"+i)):n.push(["ptr0=",p(t),"\n","ptr1=",p(r),"\n","ptr2=",p(i),"\n","++",r,"\n","--",i,"\n","tmp=",g("ptr0"),"\n",m("ptr0",g("ptr1")),"\n",m("ptr1",g("ptr2")),"\n",m("ptr2","tmp")].join(""))}function A(e,t){T(e,t),n.push("--"+t)}function M(t,r,i){e.length>1?v([t,r],!0,[m("ptr0",g("ptr1")),"\n",m("ptr1",["pivot",i,"[pivot_ptr]"].join(""))].join("")):n.push(m(p(t),g(p(r))),m(p(r),"pivot"+i))}function S(t,r){n.push(["if((",r,"-",t,")<=",i,"){\n","insertionSort(",t,",",r,",data,offset,",o(e.length).join(","),")\n","}else{\n",s,"(",t,",",r,",data,offset,",o(e.length).join(","),")\n","}"].join(""))}function E(t,r,i){e.length>1?(n.push(["__l",++u,":while(true){"].join("")),v([t],!0,["if(",g("ptr0"),"!==pivot",r,"[pivot_ptr]){break __l",u,"}"].join("")),n.push(i,"}")):n.push(["while(",g(p(t)),"===pivot",r,"){",i,"}"].join(""))}return n.push("var "+h.join(",")),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),e.length>1?v(["el1","el2","el3","el4","el5","index1","index3","index5"],!0,["pivot1[pivot_ptr]=",g("ptr1"),"\n","pivot2[pivot_ptr]=",g("ptr3"),"\n","pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n","x=",g("ptr0"),"\n","y=",g("ptr2"),"\n","z=",g("ptr4"),"\n",m("ptr5","x"),"\n",m("ptr6","y"),"\n",m("ptr7","z")].join("")):n.push(["pivot1=",g(p("el2")),"\n","pivot2=",g(p("el4")),"\n","pivots_are_equal=pivot1===pivot2\n","x=",g(p("el1")),"\n","y=",g(p("el3")),"\n","z=",g(p("el5")),"\n",m(p("index1"),"x"),"\n",m(p("index3"),"y"),"\n",m(p("index5"),"z")].join("")),_("index2","left"),_("index4","right"),n.push("if(pivots_are_equal){"),n.push("for(k=less;k<=great;++k){"),w("comp","k",1),n.push("if(comp===0){continue}"),n.push("if(comp<0){"),n.push("if(k!==less){"),T("k","less"),n.push("}"),n.push("++less"),n.push("}else{"),n.push("while(true){"),w("comp","great",1),n.push("if(comp>0){"),n.push("great--"),n.push("}else if(comp<0){"),k("k","less","great"),n.push("break"),n.push("}else{"),A("k","great"),n.push("break"),n.push("}"),n.push("}"),n.push("}"),n.push("}"),n.push("}else{"),n.push("for(k=less;k<=great;++k){"),w("comp_pivot1","k",1),n.push("if(comp_pivot1<0){"),n.push("if(k!==less){"),T("k","less"),n.push("}"),n.push("++less"),n.push("}else{"),w("comp_pivot2","k",2),n.push("if(comp_pivot2>0){"),n.push("while(true){"),w("comp","great",2),n.push("if(comp>0){"),n.push("if(--greatindex5){"),E("less",1,"++less"),E("great",2,"--great"),n.push("for(k=less;k<=great;++k){"),w("comp_pivot1","k",1),n.push("if(comp_pivot1===0){"),n.push("if(k!==less){"),T("k","less"),n.push("}"),n.push("++less"),n.push("}else{"),w("comp_pivot2","k",2),n.push("if(comp_pivot2===0){"),n.push("while(true){"),w("comp","great",2),n.push("if(comp===0){"),n.push("if(--great1&&c?new Function("insertionSort","malloc","free",n.join("\n"))(r,c[0],c[1]):new Function("insertionSort",n.join("\n"))(r)}(e,t,v);return m(v,y)}},68039:function(e,t,r){"use strict";e.exports=r(62656)},68201:function(e,t,r){"use strict";var n=r(47624),i=r(71686),a=r(23003);e.exports={min:"zmin",max:"zmax",calc:function(e,t,r){var o=t.contours,s=t.line,l=o.size||1,c=o.coloring,u=i(t,{isColorbar:!0});if("heatmap"===c){var h=n.extractOpts(t);r._fillgradient=h.reversescale?n.flipScale(h.colorscale):h.colorscale,r._zrange=[h.min,h.max]}else"fill"===c&&(r._fillcolor=u);r._line={color:"lines"===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},68220:function(e,t,r){"use strict";var n=r(87241).extendFlat,i=r(42837),a=r(5153),o=r(97451),s=r(4216).r,l=r(16688).u,c=n({editType:"calc"},o("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot",description:["Sets the shape of the paths.","If `linear`, paths are composed of straight lines.","If `hspline`, paths are composed of horizontal curved splines"].join(" ")},hovertemplate:s({editType:"plot",arrayOk:!1},{keys:["count","probability"],description:["This value here applies when hovering over lines."].join(" ")})});e.exports={domain:l({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:n({},i.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot",description:["Sets the hover interaction mode for the parcats diagram.","If `category`, hover interaction take place per category.","If `color`, hover interactions take place per color per category.","If `dimension`, hover interactions take place across all categories per dimension."].join(" ")},hovertemplate:s({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"],description:["This value here applies when hovering over dimensions.","Note that `*categorycount`, *colorcount* and *bandcolorcount*","are only available when `hoveron` contains the *color* flag"].join(" ")}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot",description:["Sets the drag interaction mode for categories and dimensions.","If `perpendicular`, the categories can only move along a line perpendicular to the paths.","If `freeform`, the categories can freely move on the plane.","If `fixed`, the categories and dimensions are stationary."].join(" ")},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot",description:"Sort paths so that like colors are bundled together within each category."},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot",description:["Sets the path sorting algorithm.","If `forward`, sort paths based on dimension categories from left to right.","If `backward`, sort paths based on dimensions categories from right to left."].join(" ")},labelfont:a({editType:"calc",description:"Sets the font for the `dimension` labels."}),tickfont:a({editType:"calc",description:"Sets the font for the `category` labels."}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc",description:"The shown name of the dimension."},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the categories in the dimension.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories in this dimension appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},ticktext:{valType:"data_array",editType:"calc",description:["Sets alternative tick labels for the categories in this dimension.","Only has an effect if `categoryorder` is set to *array*.","Should be an array the same length as `categoryarray`","Used with `categoryorder`."].join(" ")},values:{valType:"data_array",dflt:[],editType:"calc",description:["Dimension values. `values[n]` represents the category value of the `n`th point in the dataset,","therefore the `values` vector for all dimensions must be the same (longer vectors","will be truncated)."].join(" ")},displayindex:{valType:"integer",editType:"calc",description:["The display index of dimension, from left to right, zero indexed, defaults to dimension","index."].join(" ")},editType:"calc",description:"The dimensions (variables) of the parallel categories diagram.",visible:{valType:"boolean",dflt:!0,editType:"calc",description:"Shows the dimension when set to `true` (the default). Hides the dimension for `false`."}},line:c,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc",description:["The number of observations represented by each state. Defaults to 1 so that each state represents","one observation"].join(" ")},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},68252:function(e,t,r){e.exports=r(31641)({args:["array",{offset:[1],array:0},"scalar","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},post:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\n var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n if((_inline_1_da >= 0) !== (_inline_1_db >= 0)) {\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n }\n }",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg3_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg4_",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:["_inline_1_da","_inline_1_db"]},funcName:"zeroCrossings"})},68370:function(e,t,r){"use strict";var n=r(461);function i(e){for(var t="robustLinearSolve"+e+"d",r=["function ",t,"(A,b){return ["],i=0;i0&&r.push(","),r.push("[");for(var o=0;o0&&r.push(","),o===i?r.push("+b[",a,"]"):r.push("+A[",a,"][",o,"]");r.push("]")}r.push("]),")}r.push("det(A)]}return ",t);var s=new Function("det",r.join(""));return s(e<6?n[e]:n)}var a=[function(){return[0]},function(e,t){return[[t[0]],[e[0][0]]]}];!function(){for(;a.length<6;)a.push(i(a.length));for(var t=[],r=["function dispatchLinearSolve(A,b){switch(A.length){"],n=0;n<6;++n)t.push("s"+n),r.push("case ",n,":return s",n,"(A,b);");r.push("}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve"),t.push("CACHE","g",r.join(""));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n<6;++n)e.exports[n]=a[n]}()},68435:function(e,t,r){"use strict";var n=r(19847).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=h,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},68502:function(e,t,r){"use strict";t.shader=function(e,t,r){return u(e).getShaderReference(t,r)},t.program=function(e,t,r,n,i){return u(e).getProgram(t,r,n,i)};var n=r(15282),i=r(81901),a=new("undefined"===typeof WeakMap?r(55627):WeakMap),o=0;function s(e,t,r,n,i,a,o){this.id=e,this.src=t,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(e){this.gl=e,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0===--this.count){for(var e=this.cache,t=e.gl,r=this.programs,n=0,i=r.length;nplotly-logomark"}}},68565:function(e,t,r){"use strict";var n=r(31454),i=r(33333),a=r(87241).extendFlat,o=r(17342).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:"boolean",dflt:!0,description:["Sets whether or not spikes starting from","data points to this axis' wall are shown on hover."].join(" ")},spikesides:{valType:"boolean",dflt:!0,description:["Sets whether or not spikes extending from the","projection data points to this axis' wall boundaries","are shown on hover."].join(" ")},spikethickness:{valType:"number",min:0,dflt:2,description:"Sets the thickness (in px) of the spikes."},spikecolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the spikes."},showbackground:{valType:"boolean",dflt:!1,description:["Sets whether or not this axis' wall","has a background color."].join(" ")},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)",description:"Sets the background color of this axis' wall."},showaxeslabels:{valType:"boolean",dflt:!0,description:"Sets whether or not this axis is labeled"},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:["-","linear","log","date","category"]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},"plot","from-root")},68570:function(e){e.exports=function(e,t){if("string"!==typeof e)throw new TypeError("must specify type string");if(t=t||{},"undefined"===typeof document&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");"number"===typeof t.width&&(r.width=t.width);"number"===typeof t.height&&(r.height=t.height);var n,i=t;try{var a=[e];0===e.indexOf("webgl")&&a.push("experimental-"+e);for(var o=0;o(n=1))return n;for(;ra?r=i:n=i,i=.5*(n-r)+r}return i},i.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var a=o;function o(e,t){this.x=e,this.y=t}function s(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var r=0;r=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function c(e,t,r,i){var a=new n(e,t,r,i);return function(e){return a.solve(e)}}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),r=Math.sin(e),n=t*this.x-r*this.y,i=r*this.x+t*this.y;return this.x=n,this.y=i,this},_rotateAround:function(e,t){var r=Math.cos(e),n=Math.sin(e),i=t.x+r*(this.x-t.x)-n*(this.y-t.y),a=t.y+n*(this.x-t.x)+r*(this.y-t.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};var u=c(.25,.1,.25,1);function h(e,t,r){return Math.min(r,Math.max(t,e))}function f(e,t,r){var n=r-t,i=((e-t)%n+n)%n+t;return i===t?r:i}function d(e,t,r){if(!e.length)return r(null,[]);var n=e.length,i=new Array(e.length),a=null;e.forEach((function(e,o){t(e,(function(e,t){e&&(a=e),i[o]=t,0===--n&&r(a,i)}))}))}function p(e){var t=[];for(var r in e)t.push(e[r]);return t}function g(e,t){var r=[];for(var n in e)n in t||r.push(n);return r}function m(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];for(var n=0,i=t;n>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}return e()}function _(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function w(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}function T(e,t){return-1!==e.indexOf(t,e.length-t.length)}function k(e,t,r){var n={};for(var i in e)n[i]=t.call(r||this,e[i],i,e);return n}function A(e,t,r){var n={};for(var i in e)t.call(r||this,e[i],i,e)&&(n[i]=e[i]);return n}function M(e){return Array.isArray(e)?e.map(M):"object"===typeof e&&e?k(e,M):e}function S(e,t){for(var r=0;r=0)return!0;return!1}var E={};function L(e){E[e]||("undefined"!==typeof console&&console.warn(e),E[e]=!0)}function C(e,t,r){return(r.y-e.y)*(t.x-e.x)>(t.y-e.y)*(r.x-e.x)}function I(e){for(var t=0,r=0,n=e.length,i=n-1,a=void 0,o=void 0;r@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(function(e,t,n,i){var a=n||i;return r[t]=!a||a.toLowerCase(),""})),r["max-age"]){var n=parseInt(r["max-age"],10);isNaN(n)?delete r["max-age"]:r["max-age"]=n}return r}var z=null;function R(e){if(null==z){var t=e.navigator?e.navigator.userAgent:null;z=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return z}function F(e){try{var t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(r){return!1}}function j(e){return self.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))})))}function N(e){return decodeURIComponent(self.atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}var B,U,V,q,H=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),G=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,W=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,Y={now:H,frame:function(e){var t=G(e);return{cancel:function(){return W(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var r=self.document.createElement("canvas"),n=r.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return r.width=e.width,r.height=e.height,n.drawImage(e,0,0,e.width,e.height),n.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:function(e){return B||(B=self.document.createElement("a")),B.href=e,B.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==U&&(U=self.matchMedia("(prefers-reduced-motion: reduce)")),U.matches)}},Z={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},X={supported:!1,testSupport:Q},K=!1,J=!1;function Q(e){!K&&q&&(J?$(e):V=e)}function $(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,q),e.isContextLost())return;X.supported=!0}catch(r){}e.deleteTexture(t),K=!0}self.document&&((q=self.document.createElement("img")).onload=function(){V&&$(V),V=null,J=!0},q.onerror=function(){K=!0,V=null},q.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var ee="01";function te(){for(var e="1",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="",n=0;n<10;n++)r+=t[Math.floor(62*Math.random())];var i=432e5;return{token:[e,ee,r].join(""),tokenExpiresAt:Date.now()+i}}var re=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function ne(e){return 0===e.indexOf("mapbox:")}re.prototype._createSkuToken=function(){var e=te();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},re.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},re.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},re.prototype.normalizeStyleURL=function(e,t){if(!ne(e))return e;var r=ce(e);return r.path="/styles/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||t)},re.prototype.normalizeGlyphsURL=function(e,t){if(!ne(e))return e;var r=ce(e);return r.path="/fonts/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||t)},re.prototype.normalizeSourceURL=function(e,t){if(!ne(e))return e;var r=ce(e);return r.path="/v4/"+r.authority+".json",r.params.push("secure"),this._makeAPIURL(r,this._customAccessToken||t)},re.prototype.normalizeSpriteURL=function(e,t,r,n){var i=ce(e);return ne(e)?(i.path="/styles/v1"+i.path+"/sprite"+t+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=""+t+r,ue(i))},re.prototype.normalizeTileURL=function(e,t){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!ne(e))return e;var r=ce(e),n=/(\.(png|jpg)\d*)(?=$)/,i=/^.+\/v4\//,a=Y.devicePixelRatio>=2||512===t?"@2x":"",o=X.supported?".webp":"$1";r.path=r.path.replace(n,""+a+o),r.path=r.path.replace(i,"/"),r.path="/v4"+r.path;var s=this._customAccessToken||se(r.params)||Z.ACCESS_TOKEN;return Z.REQUIRE_ACCESS_TOKEN&&s&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,s)},re.prototype.canonicalizeTileURL=function(e,t){var r="/v4/",n=/\.[\w]+$/,i=ce(e);if(!i.path.match(/(^\/v4\/)/)||!i.path.match(n))return e;var a="mapbox://tiles/";a+=i.path.replace(r,"");var o=i.params;return t&&(o=o.filter((function(e){return!e.match(/^access_token=/)}))),o.length&&(a+="?"+o.join("&")),a},re.prototype.canonicalizeTileset=function(e,t){for(var r=!!t&&ne(t),n=[],i=0,a=e.tiles||[];i=1&&self.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(n){L("Unable to write to LocalStorage")}},de.prototype.processRequests=function(e){},de.prototype.postEvent=function(e,t,n,i){var a=this;if(Z.EVENTS_URL){var o=ce(Z.EVENTS_URL);o.params.push("access_token="+(i||Z.ACCESS_TOKEN||""));var s={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:ee,userId:this.anonId},l=t?m(s,t):s,c={url:ue(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([l])};this.pendingRequest=Ze(c,(function(e){a.pendingRequest=null,n(e),a.saveEventData(),a.processRequests(i)}))}},de.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var pe,ge,me=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postMapLoadEvent=function(e,t,r,n){this.skuToken=r,(Z.EVENTS_URL&&n||Z.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return ne(e)||ae(e)})))&&this.queueRequest({id:t,timestamp:Date.now()},n)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&&this.success[n]||(this.anonId||this.fetchEventData(),_(this.anonId)||(this.anonId=b()),this.postEvent(i,{skuToken:this.skuToken},(function(e){e||n&&(t.success[n]=!0)}),e))}},t}(de),ve=function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postTurnstileEvent=function(e,t){Z.EVENTS_URL&&Z.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return ne(e)||ae(e)}))&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var r=fe(Z.ACCESS_TOKEN),n=r?r.u:Z.ACCESS_TOKEN,i=n!==this.eventData.tokenU;_(this.anonId)||(this.anonId=b(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{"enabled.telemetry":!1},(function(e){e||(t.eventData.lastSuccess=a,t.eventData.tokenU=n)}),e)}},t}(de),ye=new ve,xe=ye.postTurnstileEvent.bind(ye),be=new me,_e=be.postMapLoadEvent.bind(be),we="mapbox-tiles",Te=500,ke=50,Ae=42e4;function Me(){self.caches&&!pe&&(pe=self.caches.open(we))}function Se(e,t){if(void 0===ge)try{new Response(new ReadableStream),ge=!0}catch(r){ge=!1}ge?t(e.body):e.blob().then(t)}function Ee(e,t,r){if(Me(),pe){var n={status:t.status,statusText:t.statusText,headers:new self.Headers};t.headers.forEach((function(e,t){return n.headers.set(t,e)}));var i=O(t.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&n.headers.set("Expires",new Date(r+1e3*i["max-age"]).toUTCString()),new Date(n.headers.get("Expires")).getTime()-rDate.now()&&!r["no-cache"]}var De,Pe=1/0;function Oe(e){++Pe>ke&&(e.getActor().send("enforceCacheSizeLimit",Te),Pe=0)}function ze(e){Me(),pe&&pe.then((function(t){t.keys().then((function(r){for(var n=0;n=200&&r.status<300||0===r.status)&&null!==r.response){var n=r.response;if("json"===e.type)try{n=JSON.parse(r.response)}catch(i){return t(i)}t(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else t(new Be(r.statusText,r.status,e.url))},r.send(e.body),{cancel:function(){return r.abort()}}}var Ge=function(e,t){if(!Ve(e.url)){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return qe(e,t);if(P()&&self.worker&&self.worker.actor){var r=!0;return self.worker.actor.send("getResource",e,t,void 0,r)}}return He(e,t)},We=function(e,t){return Ge(m(e,{type:"json"}),t)},Ye=function(e,t){return Ge(m(e,{type:"arrayBuffer"}),t)},Ze=function(e,t){return Ge(m(e,{method:"POST"}),t)};function Xe(e){var t=self.document.createElement("a");return t.href=e,t.protocol===self.document.location.protocol&&t.host===self.document.location.host}var Ke,Je,Qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function $e(e,t,r,n){var i=new self.Image,a=self.URL;i.onload=function(){t(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var o=new self.Blob([new Uint8Array(e)],{type:"image/png"});i.cacheControl=r,i.expires=n,i.src=e.byteLength?a.createObjectURL(o):Qe}function et(e,t){var r=new self.Blob([new Uint8Array(e)],{type:"image/png"});self.createImageBitmap(r).then((function(e){t(null,e)})).catch((function(e){t(new Error("Could not load image because of "+e.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))}))}Ke=[],Je=0;var tt=function(e,t){if(X.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Je>=Z.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:e,callback:t,cancelled:!1,cancel:function(){this.cancelled=!0}};return Ke.push(r),r}Je++;var n=!1,i=function(){if(!n)for(n=!0,Je--;Ke.length&&Je0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},st.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var lt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},ct=function(e,t,r,n){this.message=(e?e+": ":"")+r,n&&(this.identifier=n),null!==t&&void 0!==t&&t.__line__&&(this.line=t.__line__)};function ut(e){var t=e.key,r=e.value;return r?[new ct(t,r,"constants have been deprecated as of v8")]:[]}function ht(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];for(var n=0,i=t;n":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var Lt=[mt,vt,yt,xt,bt,At,_t,St(wt),Mt];function Ct(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ct(e.itemType,t.itemType))&&("number"!==typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var r=0,n=Lt;r255?255:e}function i(e){return e<0?0:e>1?1:e}function a(e){return"%"===e[e.length-1]?n(parseFloat(e)/100*255):n(parseInt(e))}function o(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e){var t,i=e.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(t=parseInt(i.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===i.length&&(t=parseInt(i.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=i.indexOf("("),c=i.indexOf(")");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),h=i.substr(l+1,c-(l+1)).split(","),f=1;switch(u){case"rgba":if(4!==h.length)return null;f=o(h.pop());case"rgb":return 3!==h.length?null:[a(h[0]),a(h[1]),a(h[2]),f];case"hsla":if(4!==h.length)return null;f=o(h.pop());case"hsl":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),g=o(h[2]),m=g<=.5?g*(p+1):g+p-g*p,v=2*g-m;return[n(255*s(v,m,d+1/3)),n(255*s(v,m,d)),n(255*s(v,m,d-1/3)),f];default:return null}}return null}try{t.parseCSSColor=l}catch(c){}})),Ot=Pt.parseCSSColor,zt=function(e,t,r,n){void 0===n&&(n=1),this.r=e,this.g=t,this.b=r,this.a=n};zt.parse=function(e){if(e){if(e instanceof zt)return e;if("string"===typeof e){var t=Ot(e);if(t)return new zt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},zt.prototype.toString=function(){var e=this.toArray(),t=e[0],r=e[1],n=e[2],i=e[3];return"rgba("+Math.round(t)+","+Math.round(r)+","+Math.round(n)+","+i+")"},zt.prototype.toArray=function(){var e=this,t=e.r,r=e.g,n=e.b,i=e.a;return 0===i?[0,0,0,0]:[255*t/i,255*r/i,255*n/i,i]},zt.black=new zt(0,0,0,1),zt.white=new zt(1,1,1,1),zt.transparent=new zt(0,0,0,0),zt.red=new zt(1,0,0,1);var Rt=function(e,t,r){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Rt.prototype.compare=function(e,t){return this.collator.compare(e,t)},Rt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ft=function(e,t,r,n,i){this.text=e,this.image=t,this.scale=r,this.fontStack=n,this.textColor=i},jt=function(e){this.sections=e};jt.fromString=function(e){return new jt([new Ft(e,null,null,null,null)])},jt.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))},jt.factory=function(e){return e instanceof jt?e:jt.fromString(e)},jt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")},jt.prototype.serialize=function(){for(var e=["format"],t=0,r=this.sections;t=0&&e<=255&&"number"===typeof t&&t>=0&&t<=255&&"number"===typeof r&&r>=0&&r<=255?"undefined"===typeof n||"number"===typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[e,t,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"===typeof n?[e,t,r,n]:[e,t,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Ut(e){if(null===e)return!0;if("string"===typeof e)return!0;if("boolean"===typeof e)return!0;if("number"===typeof e)return!0;if(e instanceof zt)return!0;if(e instanceof Rt)return!0;if(e instanceof jt)return!0;if(e instanceof Nt)return!0;if(Array.isArray(e)){for(var t=0,r=e;t2){var s=e[1];if("string"!==typeof s||!(s in Wt)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);a=Wt[s],n++}else a=wt;if(e.length>3){if(null!==e[2]&&("number"!==typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],n++}r=St(a,o)}else r=Wt[i];for(var l=[];n1)&&t.push(n)}}return t.concat(this.args.map((function(e){return e.serialize()})))};var Zt=function(e){this.type=At,this.sections=e};Zt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var r=e[1];if(!Array.isArray(r)&&"object"===typeof r)return t.error("First argument must be an image or text section.");for(var n=[],i=!1,a=1;a<=e.length-1;++a){var o=e[a];if(i&&"object"===typeof o&&!Array.isArray(o)){i=!1;var s=null;if(o["font-scale"]&&!(s=t.parse(o["font-scale"],1,vt)))return null;var l=null;if(o["text-font"]&&!(l=t.parse(o["text-font"],1,St(yt))))return null;var c=null;if(o["text-color"]&&!(c=t.parse(o["text-color"],1,bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var h=t.parse(e[a],1,wt);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:h,scale:null,font:null,textColor:null})}}return new Zt(n)},Zt.prototype.evaluate=function(e){var t=function(t){var r=t.content.evaluate(e);return Vt(r)===Mt?new Ft("",r,null,null,null):new Ft(qt(r),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)};return new jt(this.sections.map(t))},Zt.prototype.eachChild=function(e){for(var t=0,r=this.sections;t-1),r},Xt.prototype.eachChild=function(e){e(this.input)},Xt.prototype.outputDefined=function(){return!1},Xt.prototype.serialize=function(){return["image",this.input.serialize()]};var Kt={"to-boolean":xt,"to-color":bt,"to-number":vt,"to-string":yt},Jt=function(e,t){this.type=e,this.args=t};Jt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var r=e[0];if(("to-boolean"===r||"to-string"===r)&&2!==e.length)return t.error("Expected one argument.");for(var n=Kt[r],i=[],a=1;a4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":Bt(t[0],t[1],t[2],t[3])))return new zt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Gt(r||"Could not parse color from value '"+("string"===typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var o=null,s=0,l=this.args;s=t[2])&&!(e[1]<=t[1])&&!(e[3]>=t[3])}function lr(e,t){var r=ar(e[0]),n=or(e[1]),i=Math.pow(2,t.z);return[Math.round(r*i*nr),Math.round(n*i*nr)]}function cr(e,t,r){var n=e[0]-t[0],i=e[1]-t[1],a=e[0]-r[0],o=e[1]-r[1];return n*o-a*i===0&&n*a<=0&&i*o<=0}function ur(e,t,r){return t[1]>e[1]!==r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function hr(e,t){for(var r=!1,n=0,i=t.length;n0&&h<0||u<0&&h>0}function gr(e,t,r,n){var i=[t[0]-e[0],t[1]-e[1]];return 0!==dr([n[0]-r[0],n[1]-r[1]],i)&&!(!pr(e,t,r,n)||!pr(r,n,e,t))}function mr(e,t,r){for(var n=0,i=r;nr[2]){var i=.5*n,a=e[0]-r[0]>i?-n:r[0]-e[0]>i?n:0;0===a&&(a=e[0]-r[2]>i?-n:r[2]-e[0]>i?n:0),e[0]+=a}ir(t,e)}function wr(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function Tr(e,t,r,n){for(var i=Math.pow(2,n.z)*nr,a=[n.x*nr,n.y*nr],o=[],s=0,l=e;s=0)return!1;var r=!0;return e.eachChild((function(e){r&&!Cr(e,t)&&(r=!1)})),r}Sr.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(Ut(e[1])){var r=e[1];if("FeatureCollection"===r.type)for(var n=0;nt))throw new Gt("Input is not a number.");o=s-1}return 0}Dr.prototype.parse=function(e,t,r,n,i){return void 0===i&&(i={}),t?this.concat(t,r,n)._parse(e,i):this._parse(e,i)},Dr.prototype._parse=function(e,t){function r(e,t,r){return"assert"===r?new Yt(t,[e]):"coerce"===r?new Jt(t,[e]):e}if(null!==e&&"string"!==typeof e&&"boolean"!==typeof e&&"number"!==typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=e[0];if("string"!==typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(e,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if("string"!==o.kind&&"number"!==o.kind&&"boolean"!==o.kind&&"object"!==o.kind&&"array"!==o.kind||"value"!==s.kind)if("color"!==o.kind&&"formatted"!==o.kind&&"resolvedImage"!==o.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,t.typeAnnotation||"coerce");else a=r(a,o,t.typeAnnotation||"assert")}if(!(a instanceof Ht)&&"resolvedImage"!==a.type.kind&&Pr(a)){var l=new $t;try{a=new Ht(a.type,a.evaluate(l))}catch(c){return this.error(c.message),null}}return a}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return"undefined"===typeof e?this.error("'undefined' value invalid. Use null instead."):"object"===typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof e+" instead.")},Dr.prototype.concat=function(e,t,r){var n="number"===typeof e?this.path.concat(e):this.path,i=r?this.scope.concat(r):this.scope;return new Dr(this.registry,n,t||null,i,this.errors)},Dr.prototype.error=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=""+this.key+t.map((function(e){return"["+e+"]"})).join("");this.errors.push(new pt(n,e))},Dr.prototype.checkSubtype=function(e,t){var r=Ct(e,t);return r&&this.error(r),r};var zr=function(e,t,r){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var n=0,i=r;n=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var u=t.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new zr(i,r,n)},zr.prototype.evaluate=function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var i=t.length;return n>=t[i-1]?r[i-1].evaluate(e):r[Or(t,n)].evaluate(e)},zr.prototype.eachChild=function(e){e(this.input);for(var t=0,r=this.outputs;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Nr=Object.freeze({__proto__:null,number:Rr,color:Fr,array:jr}),Br=.95047,Ur=1,Vr=1.08883,qr=4/29,Hr=6/29,Gr=3*Hr*Hr,Wr=Hr*Hr*Hr,Yr=Math.PI/180,Zr=180/Math.PI;function Xr(e){return e>Wr?Math.pow(e,1/3):e/Gr+qr}function Kr(e){return e>Hr?e*e*e:Gr*(e-qr)}function Jr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $r(e){var t=Qr(e.r),r=Qr(e.g),n=Qr(e.b),i=Xr((.4124564*t+.3575761*r+.1804375*n)/Br),a=Xr((.2126729*t+.7151522*r+.072175*n)/Ur);return{l:116*a-16,a:500*(i-a),b:200*(a-Xr((.0193339*t+.119192*r+.9503041*n)/Vr)),alpha:e.a}}function en(e){var t=(e.l+16)/116,r=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=Ur*Kr(t),r=Br*Kr(r),n=Vr*Kr(n),new zt(Jr(3.2404542*r-1.5371385*t-.4985314*n),Jr(-.969266*r+1.8760108*t+.041556*n),Jr(.0556434*r-.2040259*t+1.0572252*n),e.alpha)}function tn(e,t,r){return{l:Rr(e.l,t.l,r),a:Rr(e.a,t.a,r),b:Rr(e.b,t.b,r),alpha:Rr(e.alpha,t.alpha,r)}}function rn(e){var t=$r(e),r=t.l,n=t.a,i=t.b,a=Math.atan2(i,n)*Zr;return{h:a<0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:e.a}}function nn(e){var t=e.h*Yr,r=e.c;return en({l:e.l,a:Math.cos(t)*r,b:Math.sin(t)*r,alpha:e.alpha})}function an(e,t,r){var n=t-e;return e+r*(n>180||n<-180?n-360*Math.round(n/360):n)}function on(e,t,r){return{h:an(e.h,t.h,r),c:Rr(e.c,t.c,r),l:Rr(e.l,t.l,r),alpha:Rr(e.alpha,t.alpha,r)}}var sn={forward:$r,reverse:en,interpolate:tn},ln={forward:rn,reverse:nn,interpolate:on},cn=Object.freeze({__proto__:null,lab:sn,hcl:ln}),un=function(e,t,r,n,i){this.type=e,this.operator=t,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a1})))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!==0)return t.error("Expected an even number of arguments.");if(!(i=t.parse(i,2,vt)))return null;var l=[],c=null;"interpolate-hcl"===r||"interpolate-lab"===r?c=bt:t.expectedType&&"value"!==t.expectedType.kind&&(c=t.expectedType);for(var u=0;u=h)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var g=t.parse(f,p,c);if(!g)return null;c=c||g.type,l.push([h,g])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"===typeof c.N?new un(c,r,n,i,l):t.error("Type "+Et(c)+" is not interpolatable.")},un.prototype.evaluate=function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var i=t.length;if(n>=t[i-1])return r[i-1].evaluate(e);var a=Or(t,n),o=t[a],s=t[a+1],l=un.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(e),u=r[a+1].evaluate(e);return"interpolate"===this.operator?Nr[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?ln.reverse(ln.interpolate(ln.forward(c),ln.forward(u),l)):sn.reverse(sn.interpolate(sn.forward(c),sn.forward(u),l))},un.prototype.eachChild=function(e){e(this.input);for(var t=0,r=this.outputs;t=r.length)throw new Gt("Array index out of bounds: "+t+" > "+(r.length-1)+".");if(t!==Math.floor(t))throw new Gt("Array index must be an integer, but found "+t+" instead.");return r[t]},pn.prototype.eachChild=function(e){e(this.index),e(this.input)},pn.prototype.outputDefined=function(){return!1},pn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var gn=function(e,t){this.type=xt,this.needle=e,this.haystack=t};gn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1,wt),n=t.parse(e[2],2,wt);return r&&n?It(r.type,[xt,yt,vt,mt,wt])?new gn(r,n):t.error("Expected first argument to be of type boolean, string, number or null, but found "+Et(r.type)+" instead"):null},gn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!r)return!1;if(!Dt(t,["boolean","string","number","null"]))throw new Gt("Expected first argument to be of type boolean, string, number or null, but found "+Et(Vt(t))+" instead.");if(!Dt(r,["string","array"]))throw new Gt("Expected second argument to be of type array or string, but found "+Et(Vt(r))+" instead.");return r.indexOf(t)>=0},gn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},gn.prototype.outputDefined=function(){return!0},gn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var mn=function(e,t,r){this.type=vt,this.needle=e,this.haystack=t,this.fromIndex=r};mn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1,wt),n=t.parse(e[2],2,wt);if(!r||!n)return null;if(!It(r.type,[xt,yt,vt,mt,wt]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+Et(r.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,vt);return i?new mn(r,n,i):null}return new mn(r,n)},mn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!Dt(t,["boolean","string","number","null"]))throw new Gt("Expected first argument to be of type boolean, string, number or null, but found "+Et(Vt(t))+" instead.");if(!Dt(r,["string","array"]))throw new Gt("Expected second argument to be of type array or string, but found "+Et(Vt(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(e);return r.indexOf(t,n)}return r.indexOf(t)},mn.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},mn.prototype.outputDefined=function(){return!1},mn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var vn=function(e,t,r,n,i,a){this.inputType=e,this.type=t,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};vn.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!==1)return t.error("Expected an even number of arguments.");var r,n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var i={},a=[],o=2;oNumber.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"===typeof f&&Math.floor(f)!==f)return c.error("Numeric branch labels must be integer values.");if(r){if(c.checkSubtype(r,Vt(f)))return null}else r=Vt(f);if("undefined"!==typeof i[String(f)])return c.error("Branch labels must be unique.");i[String(f)]=a.length}var d=t.parse(l,o,n);if(!d)return null;n=n||d.type,a.push(d)}var p=t.parse(e[1],1,wt);if(!p)return null;var g=t.parse(e[e.length-1],e.length-1,n);return g?"value"!==p.type.kind&&t.concat(1).checkSubtype(r,p.type)?null:new vn(r,n,p,i,a,g):null},vn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(Vt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},vn.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},vn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()},vn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();ir}function An(e,t,r){return t<=r}function Mn(e,t,r){return t>=r}function Sn(e,t,r,n){return 0===n.compare(t,r)}function En(e,t,r,n){return!Sn(e,t,r,n)}function Ln(e,t,r,n){return n.compare(t,r)<0}function Cn(e,t,r,n){return n.compare(t,r)>0}function In(e,t,r,n){return n.compare(t,r)<=0}function Dn(e,t,r,n){return n.compare(t,r)>=0}function Pn(e,t,r){var n="=="!==e&&"!="!==e;return function(){function i(e,t,r){this.type=xt,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return i.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var r=e[0],a=t.parse(e[1],1,wt);if(!a)return null;if(!bn(r,a.type))return t.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Et(a.type)+"'.");var o=t.parse(e[2],2,wt);if(!o)return null;if(!bn(r,o.type))return t.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Et(o.type)+"'.");if(a.type.kind!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return t.error("Cannot compare types '"+Et(a.type)+"' and '"+Et(o.type)+"'.");n&&("value"===a.type.kind&&"value"!==o.type.kind?a=new Yt(o.type,[a]):"value"!==a.type.kind&&"value"===o.type.kind&&(o=new Yt(a.type,[o])));var s=null;if(4===e.length){if("string"!==a.type.kind&&"string"!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,kt)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=Vt(a),l=Vt(o);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Gt('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var c=Vt(a),u=Vt(o);if("string"!==c.kind||"string"!==u.kind)return t(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):t(i,a,o)},i.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t},i}()}xn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1,wt),n=t.parse(e[2],2,vt);if(!r||!n)return null;if(!It(r.type,[St(wt),yt,wt]))return t.error("Expected first argument to be of type array or string, but found "+Et(r.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,vt);return i?new xn(r.type,r,n,i):null}return new xn(r.type,r,n)},xn.prototype.evaluate=function(e){var t=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!Dt(t,["string","array"]))throw new Gt("Expected first argument to be of type array or string, but found "+Et(Vt(t))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(e);return t.slice(r,n)}return t.slice(r)},xn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},xn.prototype.outputDefined=function(){return!1},xn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var On=Pn("==",_n,Sn),zn=Pn("!=",wn,En),Rn=Pn("<",Tn,Ln),Fn=Pn(">",kn,Cn),jn=Pn("<=",An,In),Nn=Pn(">=",Mn,Dn),Bn=function(e,t,r,n,i){this.type=yt,this.number=e,this.locale=t,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Bn.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var r=t.parse(e[1],1,vt);if(!r)return null;var n=e[2];if("object"!==typeof n||Array.isArray(n))return t.error("NumberFormat options argument must be an object.");var i=null;if(n.locale&&!(i=t.parse(n.locale,1,yt)))return null;var a=null;if(n.currency&&!(a=t.parse(n.currency,1,yt)))return null;var o=null;if(n["min-fraction-digits"]&&!(o=t.parse(n["min-fraction-digits"],1,vt)))return null;var s=null;return n["max-fraction-digits"]&&!(s=t.parse(n["max-fraction-digits"],1,vt))?null:new Bn(r,i,a,o,s)},Bn.prototype.evaluate=function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))},Bn.prototype.eachChild=function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)},Bn.prototype.outputDefined=function(){return!1},Bn.prototype.serialize=function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]};var Un=function(e){this.type=vt,this.input=e};Un.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?t.error("Expected argument of type string or array, but found "+Et(r.type)+" instead."):new Un(r):null},Un.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"===typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Gt("Expected value to be of type string or array, but found "+Et(Vt(t))+" instead.")},Un.prototype.eachChild=function(e){e(this.input)},Un.prototype.outputDefined=function(){return!1},Un.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Vn={"==":On,"!=":zn,">":Fn,"<":Rn,">=":Nn,"<=":jn,array:Yt,at:pn,boolean:Yt,case:yn,coalesce:fn,collator:rr,format:Zt,image:Xt,in:gn,"index-of":mn,interpolate:un,"interpolate-hcl":un,"interpolate-lab":un,length:Un,let:dn,literal:Ht,match:vn,number:Yt,"number-format":Bn,object:Yt,slice:xn,step:zr,string:Yt,"to-boolean":Jt,"to-color":Jt,"to-number":Jt,"to-string":Jt,var:Ir,within:Sr};function qn(e,t){var r=t[0],n=t[1],i=t[2],a=t[3];r=r.evaluate(e),n=n.evaluate(e),i=i.evaluate(e);var o=a?a.evaluate(e):1,s=Bt(r,n,i,o);if(s)throw new Gt(s);return new zt(r/255*o,n/255*o,i/255*o,o)}function Hn(e,t){return e in t}function Gn(e,t){var r=t[e];return"undefined"===typeof r?null:r}function Wn(e,t,r,n){for(;r<=n;){var i=r+n>>1;if(t[i]===e)return!0;t[i]>e?n=i-1:r=i+1}return!1}function Yn(e){return{type:e}}function Zn(e){return{result:"success",value:e}}function Xn(e){return{result:"error",value:e}}function Kn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Jn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Qn(e){return!!e.expression&&e.expression.interpolated}function $n(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function ei(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)}function ti(e){return e}function ri(e,t){var r,n,i,a="color"===t.type,o=e.stops&&"object"===typeof e.stops[0][0],s=o||void 0!==e.property,l=o||!s,c=e.type||(Qn(t)?"exponential":"interval");if(a&&((e=ht({},e)).stops&&(e.stops=e.stops.map((function(e){return[e[0],zt.parse(e[1])]}))),e.default?e.default=zt.parse(e.default):e.default=zt.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!cn[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===c)r=oi;else if("interval"===c)r=ai;else if("categorical"===c){r=ii,n=Object.create(null);for(var u=0,h=e.stops;u=e.stops[n-1][0])return e.stops[n-1][1];var i=Or(e.stops.map((function(e){return e[0]})),r);return e.stops[i][1]}function oi(e,t,r){var n=void 0!==e.base?e.base:1;if("number"!==$n(r))return ni(e.default,t.default);var i=e.stops.length;if(1===i)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];var a=Or(e.stops.map((function(e){return e[0]})),r),o=li(r,n,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],l=e.stops[a+1][1],c=Nr[t.type]||ti;if(e.colorSpace&&"rgb"!==e.colorSpace){var u=cn[e.colorSpace];c=function(e,t){return u.reverse(u.interpolate(u.forward(e),u.forward(t),o))}}return"function"===typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=s.evaluate.apply(void 0,e),n=l.evaluate.apply(void 0,e);if(void 0!==r&&void 0!==n)return c(r,n,o)}}:c(s,l,o)}function si(e,t,r){return"color"===t.type?r=zt.parse(r):"formatted"===t.type?r=jt.fromString(r.toString()):"resolvedImage"===t.type?r=Nt.fromString(r.toString()):$n(r)===t.type||"enum"===t.type&&t.values[r]||(r=void 0),ni(r,e.default,t.default)}function li(e,t,r,n){var i=n-r,a=e-r;return 0===i?0:1===t?a/i:(Math.pow(t,a)-1)/(Math.pow(t,i)-1)}er.register(Vn,{error:[Tt,[yt],function(e,t){var r=t[0];throw new Gt(r.evaluate(e))}],typeof:[yt,[wt],function(e,t){return Et(Vt(t[0].evaluate(e)))}],"to-rgba":[St(vt,4),[bt],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[bt,[vt,vt,vt],qn],rgba:[bt,[vt,vt,vt,vt],qn],has:{type:xt,overloads:[[[yt],function(e,t){return Hn(t[0].evaluate(e),e.properties())}],[[yt,_t],function(e,t){var r=t[0],n=t[1];return Hn(r.evaluate(e),n.evaluate(e))}]]},get:{type:wt,overloads:[[[yt],function(e,t){return Gn(t[0].evaluate(e),e.properties())}],[[yt,_t],function(e,t){var r=t[0],n=t[1];return Gn(r.evaluate(e),n.evaluate(e))}]]},"feature-state":[wt,[yt],function(e,t){return Gn(t[0].evaluate(e),e.featureState||{})}],properties:[_t,[],function(e){return e.properties()}],"geometry-type":[yt,[],function(e){return e.geometryType()}],id:[wt,[],function(e){return e.id()}],zoom:[vt,[],function(e){return e.globals.zoom}],"heatmap-density":[vt,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[vt,[],function(e){return e.globals.lineProgress||0}],accumulated:[wt,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[vt,Yn(vt),function(e,t){for(var r=0,n=0,i=t;n":[xt,[yt,wt],function(e,t){var r=t[0],n=t[1],i=e.properties()[r.value],a=n.value;return typeof i===typeof a&&i>a}],"filter-id->":[xt,[wt],function(e,t){var r=t[0],n=e.id(),i=r.value;return typeof n===typeof i&&n>i}],"filter-<=":[xt,[yt,wt],function(e,t){var r=t[0],n=t[1],i=e.properties()[r.value],a=n.value;return typeof i===typeof a&&i<=a}],"filter-id-<=":[xt,[wt],function(e,t){var r=t[0],n=e.id(),i=r.value;return typeof n===typeof i&&n<=i}],"filter->=":[xt,[yt,wt],function(e,t){var r=t[0],n=t[1],i=e.properties()[r.value],a=n.value;return typeof i===typeof a&&i>=a}],"filter-id->=":[xt,[wt],function(e,t){var r=t[0],n=e.id(),i=r.value;return typeof n===typeof i&&n>=i}],"filter-has":[xt,[wt],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[xt,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[xt,[St(yt)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[xt,[St(wt)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[xt,[yt,St(wt)],function(e,t){var r=t[0];return t[1].value.indexOf(e.properties()[r.value])>=0}],"filter-in-large":[xt,[yt,St(wt)],function(e,t){var r=t[0],n=t[1];return Wn(e.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:xt,overloads:[[[xt,xt],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)&&n.evaluate(e)}],[Yn(xt),function(e,t){for(var r=0,n=t;r0&&"string"===typeof e[0]&&e[0]in Vn}function hi(e,t){var r=new Dr(Vn,[],t?yi(t):void 0),n=r.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?Zn(new ci(n,t)):Xn(r.errors)}ci.prototype.evaluateWithoutErrorHandling=function(e,t,r,n,i,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},ci.prototype.evaluate=function(e,t,r,n,i,a){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null===o||void 0===o||"number"===typeof o&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new Gt("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(s){return this._warningHistory[s.message]||(this._warningHistory[s.message]=!0,"undefined"!==typeof console&&console.warn(s.message)),this._defaultValue}};var fi=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Lr(t.expression)};fi.prototype.evaluateWithoutErrorHandling=function(e,t,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,i,a)},fi.prototype.evaluate=function(e,t,r,n,i,a){return this._styleExpression.evaluate(e,t,r,n,i,a)};var di=function(e,t,r,n){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Lr(t.expression),this.interpolationType=n};function pi(e,t){if("error"===(e=hi(e,t)).result)return e;var r=e.value.expression,n=Er(r);if(!n&&!Kn(t))return Xn([new pt("","data expressions not supported")]);var i=Cr(r,["zoom"]);if(!i&&!Jn(t))return Xn([new pt("","zoom expressions not supported")]);var a=vi(r);if(!a&&!i)return Xn([new pt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(a instanceof pt)return Xn([a]);if(a instanceof un&&!Qn(t))return Xn([new pt("",'"interpolate" expressions cannot be used with this property')]);if(!a)return Zn(new fi(n?"constant":"source",e.value));var o=a instanceof un?a.interpolation:void 0;return Zn(new di(n?"camera":"composite",e.value,a.labels,o))}di.prototype.evaluateWithoutErrorHandling=function(e,t,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,i,a)},di.prototype.evaluate=function(e,t,r,n,i,a){return this._styleExpression.evaluate(e,t,r,n,i,a)},di.prototype.interpolationFactor=function(e,t,r){return this.interpolationType?un.interpolationFactor(this.interpolationType,e,t,r):0};var gi=function(e,t){this._parameters=e,this._specification=t,ht(this,ri(this._parameters,this._specification))};function mi(e,t){if(ei(e))return new gi(e,t);if(ui(e)){var r=pi(e,t);if("error"===r.result)throw new Error(r.value.map((function(e){return e.key+": "+e.message})).join(", "));return r.value}var n=e;return"string"===typeof e&&"color"===t.type&&(n=zt.parse(e)),{kind:"constant",evaluate:function(){return n}}}function vi(e){var t=null;if(e instanceof dn)t=vi(e.result);else if(e instanceof fn)for(var r=0,n=e.args;rn.maximum?[new ct(t,r,r+" is greater than the maximum value "+n.maximum)]:[]}function Ti(e){var t,r,n,i=e.valueSpec,a=ft(e.value.type),o={},s="categorical"!==a&&void 0===e.value.property,l=!s,c="array"===$n(e.value.stops)&&"array"===$n(e.value.stops[0])&&"object"===$n(e.value.stops[0][0]),u=bi({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:h,default:p}});return"identity"===a&&s&&u.push(new ct(e.key,e.value,'missing required property "property"')),"identity"===a||e.value.stops||u.push(new ct(e.key,e.value,'missing required property "stops"')),"exponential"===a&&e.valueSpec.expression&&!Qn(e.valueSpec)&&u.push(new ct(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Kn(e.valueSpec)?u.push(new ct(e.key,e.value,"property functions not supported")):s&&!Jn(e.valueSpec)&&u.push(new ct(e.key,e.value,"zoom functions not supported"))),"categorical"!==a&&!c||void 0!==e.value.property||u.push(new ct(e.key,e.value,'"property" property is required')),u;function h(e){if("identity"===a)return[new ct(e.key,e.value,'identity function may not have a "stops" property')];var t=[],r=e.value;return t=t.concat(_i({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:f})),"array"===$n(r)&&0===r.length&&t.push(new ct(e.key,r,"array must have at least one stop")),t}function f(e){var t=[],a=e.value,s=e.key;if("array"!==$n(a))return[new ct(s,a,"array expected, "+$n(a)+" found")];if(2!==a.length)return[new ct(s,a,"array length 2 expected, length "+a.length+" found")];if(c){if("object"!==$n(a[0]))return[new ct(s,a,"object expected, "+$n(a[0])+" found")];if(void 0===a[0].zoom)return[new ct(s,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new ct(s,a,"object stop key must have value")];if(n&&n>ft(a[0].zoom))return[new ct(s,a[0].zoom,"stop zoom values must appear in ascending order")];ft(a[0].zoom)!==n&&(n=ft(a[0].zoom),r=void 0,o={}),t=t.concat(bi({key:s+"[0]",value:a[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:wi,value:d}}))}else t=t.concat(d({key:s+"[0]",value:a[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},a));return ui(dt(a[1]))?t.concat([new ct(s+"[1]",a[1],"expressions are not allowed in function stops.")]):t.concat($i({key:s+"[1]",value:a[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function d(e,n){var s=$n(e.value),l=ft(e.value),c=null!==e.value?e.value:n;if(t){if(s!==t)return[new ct(e.key,c,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new ct(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==a){var u="number expected, "+s+" found";return Kn(i)&&void 0===a&&(u+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ct(e.key,c,u)]}return"categorical"!==a||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==a&&"number"===s&&void 0!==r&&l=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!==typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(var t=0,r=e.slice(1);tt?1:0}function Di(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var t=1;t"===t||"<="===t||">="===t?Oi(e[1],e[2],t):"any"===t?zi(e.slice(1)):"all"===t?["all"].concat(e.slice(1).map(Pi)):"none"===t?["all"].concat(e.slice(1).map(Pi).map(ji)):"in"===t?Ri(e[1],e.slice(2)):"!in"===t?ji(Ri(e[1],e.slice(2))):"has"===t?Fi(e[1]):"!has"===t?ji(Fi(e[1])):"within"!==t||e}function Oi(e,t,r){switch(e){case"$type":return["filter-type-"+r,t];case"$id":return["filter-id-"+r,t];default:return["filter-"+r,e,t]}}function zi(e){return["any"].concat(e.map(Pi))}function Ri(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((function(e){return typeof e!==typeof t[0]}))?["filter-in-large",e,["literal",t.sort(Ii)]]:["filter-in-small",e,["literal",t]]}}function Fi(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ji(e){return["!",e]}function Ni(e){return Ei(dt(e.value))?ki(ht({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Bi(e)}function Bi(e){var t=e.value,r=e.key;if("array"!==$n(t))return[new ct(r,t,"array expected, "+$n(t)+" found")];var n,i=e.styleSpec,a=[];if(t.length<1)return[new ct(r,t,"filter array must have at least 1 element")];switch(a=a.concat(Si({key:r+"[0]",value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),ft(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===ft(t[1])&&a.push(new ct(r,t,'"$type" cannot be use with operator "'+t[0]+'"'));case"==":case"!=":3!==t.length&&a.push(new ct(r,t,'filter array for operator "'+t[0]+'" must have 3 elements'));case"in":case"!in":t.length>=2&&"string"!==(n=$n(t[1]))&&a.push(new ct(r+"[1]",t[1],"string expected, "+n+" found"));for(var o=2;o=u[d+0]&&n>=u[d+1])?(o[f]=!0,a.push(c[f])):o[f]=!1}}},ha.prototype._forEachCell=function(e,t,r,n,i,a,o,s){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(r),h=this._convertToCellCoord(n),f=l;f<=u;f++)for(var d=c;d<=h;d++){var p=this.d*d+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&i.call(this,e,t,r,n,p,a,o,s))return}},ha.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},ha.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},ha.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=ua+this.cells.length+1+1,r=0,n=0;n=0)){var h=e[u];c[u]=pa[l].shallow.indexOf(u)>=0?h:xa(h,t)}e instanceof Error&&(c.message=e.message)}if(c.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(c.$name=l),c}throw new Error("can't serialize object of type "+typeof e)}function ba(e){if(null===e||void 0===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||va(e)||ya(e)||ArrayBuffer.isView(e)||e instanceof fa)return e;if(Array.isArray(e))return e.map(ba);if("object"===typeof e){var t=e.$name||"Object",r=pa[t].klass;if(!r)throw new Error("can't deserialize unregistered class "+t);if(r.deserialize)return r.deserialize(e);for(var n=Object.create(r.prototype),i=0,a=Object.keys(e);i=0?s:ba(s)}}return n}throw new Error("can't deserialize object of type "+typeof e)}var _a=function(){this.first=!0};_a.prototype.update=function(e,t){var r=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoom=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}};function Ta(e){for(var t=0,r=e;t=65097&&e<=65103)||!!wa["CJK Compatibility Ideographs"](e)||!!wa["CJK Compatibility"](e)||!!wa["CJK Radicals Supplement"](e)||!!wa["CJK Strokes"](e)||!(!wa["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||!!wa["CJK Unified Ideographs Extension A"](e)||!!wa["CJK Unified Ideographs"](e)||!!wa["Enclosed CJK Letters and Months"](e)||!!wa["Hangul Compatibility Jamo"](e)||!!wa["Hangul Jamo Extended-A"](e)||!!wa["Hangul Jamo Extended-B"](e)||!!wa["Hangul Jamo"](e)||!!wa["Hangul Syllables"](e)||!!wa.Hiragana(e)||!!wa["Ideographic Description Characters"](e)||!!wa.Kanbun(e)||!!wa["Kangxi Radicals"](e)||!!wa["Katakana Phonetic Extensions"](e)||!(!wa.Katakana(e)||12540===e)||!(!wa["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!wa["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||!!wa["Unified Canadian Aboriginal Syllabics"](e)||!!wa["Unified Canadian Aboriginal Syllabics Extended"](e)||!!wa["Vertical Forms"](e)||!!wa["Yijing Hexagram Symbols"](e)||!!wa["Yi Syllables"](e)||!!wa["Yi Radicals"](e))}function Ea(e){return!(!wa["Latin-1 Supplement"](e)||167!==e&&169!==e&&174!==e&&177!==e&&188!==e&&189!==e&&190!==e&&215!==e&&247!==e)||!(!wa["General Punctuation"](e)||8214!==e&&8224!==e&&8225!==e&&8240!==e&&8241!==e&&8251!==e&&8252!==e&&8258!==e&&8263!==e&&8264!==e&&8265!==e&&8273!==e)||!!wa["Letterlike Symbols"](e)||!!wa["Number Forms"](e)||!(!wa["Miscellaneous Technical"](e)||!(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215))||!(!wa["Control Pictures"](e)||9251===e)||!!wa["Optical Character Recognition"](e)||!!wa["Enclosed Alphanumerics"](e)||!!wa["Geometric Shapes"](e)||!(!wa["Miscellaneous Symbols"](e)||e>=9754&&e<=9759)||!(!wa["Miscellaneous Symbols and Arrows"](e)||!(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243))||!!wa["CJK Symbols and Punctuation"](e)||!!wa.Katakana(e)||!!wa["Private Use Area"](e)||!!wa["CJK Compatibility Forms"](e)||!!wa["Small Form Variants"](e)||!!wa["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e}function La(e){return!(Sa(e)||Ea(e))}function Ca(e){return wa.Arabic(e)||wa["Arabic Supplement"](e)||wa["Arabic Extended-A"](e)||wa["Arabic Presentation Forms-A"](e)||wa["Arabic Presentation Forms-B"](e)}function Ia(e){return e>=1424&&e<=2303||wa["Arabic Presentation Forms-A"](e)||wa["Arabic Presentation Forms-B"](e)}function Da(e,t){return!(!t&&Ia(e))&&!(e>=2304&&e<=3583||e>=3840&&e<=4255||wa.Khmer(e))}function Pa(e){for(var t=0,r=e;t-1&&(Fa=za.error),Ra&&Ra(e)};function Ba(){Ua.fire(new at("pluginStateChange",{pluginStatus:Fa,pluginURL:ja}))}var Ua=new st,Va=function(){return Fa},qa=function(e){return e({pluginStatus:Fa,pluginURL:ja}),Ua.on("pluginStateChange",e),e},Ha=function(e,t,r){if(void 0===r&&(r=!1),Fa===za.deferred||Fa===za.loading||Fa===za.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");ja=Y.resolveURL(e),Fa=za.deferred,Ra=t,Ba(),r||Ga()},Ga=function(){if(Fa!==za.deferred||!ja)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Fa=za.loading,Ba(),ja&&Ye({url:ja},(function(e){e?Na(e):(Fa=za.loaded,Ba())}))},Wa={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Fa===za.loaded||null!=Wa.applyArabicShaping},isLoading:function(){return Fa===za.loading},setState:function(e){Fa=e.pluginStatus,ja=e.pluginURL},isParsed:function(){return null!=Wa.applyArabicShaping&&null!=Wa.processBidirectionalText&&null!=Wa.processStyledBidirectionalText},getPluginURL:function(){return ja}},Ya=function(){Wa.isLoading()||Wa.isLoaded()||"deferred"!==Va()||Ga()},Za=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new _a,this.transition={})};Za.prototype.isSupportedScript=function(e){return Oa(e,Wa.isLoaded())},Za.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Za.prototype.getCrossfadeParameters=function(){var e=this.zoom,t=e-Math.floor(e),r=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}};var Xa=function(e,t){this.property=e,this.value=t,this.expression=mi(void 0===t?e.specification.default:t,e.specification)};Xa.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Xa.prototype.possiblyEvaluate=function(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)};var Ka=function(e){this.property=e,this.value=new Xa(e,void 0)};Ka.prototype.transitioned=function(e,t){return new Qa(this.property,this.value,t,m({},e.transition,this.transition),e.now)},Ka.prototype.untransitioned=function(){return new Qa(this.property,this.value,null,{},0)};var Ja=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};Ja.prototype.getValue=function(e){return M(this._values[e].value.value)},Ja.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Ka(this._values[e].property)),this._values[e].value=new Xa(this._values[e].property,null===t?void 0:M(t))},Ja.prototype.getTransition=function(e){return M(this._values[e].transition)},Ja.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Ka(this._values[e].property)),this._values[e].transition=M(t)||void 0},Ja.prototype.serialize=function(){for(var e={},t=0,r=Object.keys(this._values);tthis.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(nn.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}},t.prototype.interpolate=function(e){return e},t}(io),oo=function(e){this.specification=e};oo.prototype.possiblyEvaluate=function(e,t,r,n){if(void 0!==e.value){if("constant"===e.expression.kind){var i=e.expression.evaluate(t,null,{},r,n);return this._calculate(i,i,i,t)}return this._calculate(e.expression.evaluate(new Za(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Za(Math.floor(t.zoom),t)),e.expression.evaluate(new Za(Math.floor(t.zoom+1),t)),t)}},oo.prototype._calculate=function(e,t,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}},oo.prototype.interpolate=function(e){return e};var so=function(e){this.specification=e};so.prototype.possiblyEvaluate=function(e,t,r,n){return!!e.expression.evaluate(t,null,{},r,n)},so.prototype.interpolate=function(){return!1};var lo=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var r=e[t];r.specification.overridable&&this.overridableProperties.push(t);var n=this.defaultPropertyValues[t]=new Xa(r,void 0),i=this.defaultTransitionablePropertyValues[t]=new Ka(r);this.defaultTransitioningPropertyValues[t]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=n.possiblyEvaluate({})}};ga("DataDrivenProperty",io),ga("DataConstantProperty",no),ga("CrossFadedDataDrivenProperty",ao),ga("CrossFadedProperty",oo),ga("ColorRampProperty",so);var co="-transition",uo=function(e){function t(t,r){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),r.layout&&(this._unevaluatedLayout=new eo(r.layout)),r.paint)){for(var n in this._transitionablePaint=new Ja(r.paint),t.paint)this.setPaintProperty(n,t.paint[n],{validate:!1});for(var i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ro(r.paint)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,r){if(void 0===r&&(r={}),null!==t&&void 0!==t){var n="layers."+this.id+".layout."+e;if(this._validate(sa,n,e,t,r))return}"visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t},t.prototype.getPaintProperty=function(e){return T(e,co)?this._transitionablePaint.getTransition(e.slice(0,-co.length)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,r){if(void 0===r&&(r={}),null!==t&&void 0!==t){var n="layers."+this.id+".paint."+e;if(this._validate(oa,n,e,t,r))return!1}if(T(e,co))return this._transitionablePaint.setTransition(e.slice(0,-co.length),t||void 0),!1;var i=this._transitionablePaint._values[e],a="cross-faded-data-driven"===i.property.specification["property-type"],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(e,s,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,r){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)},t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),A(e,(function(e,t){return void 0!==e&&!("layout"===t&&!Object.keys(e).length)&&!("paint"===t&&!Object.keys(e).length)}))},t.prototype._validate=function(e,t,r,n,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&la(this,e.call(ia,{key:t,layerType:this.type,objectKey:r,value:n,styleSpec:lt,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof to&&Kn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(st),ho={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},fo=function(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},po=128,go=5,mo=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function vo(e,t){void 0===t&&(t=1);var r=0,n=0;return{members:e.map((function(e){var i=yo(e.type),a=r=xo(r,Math.max(t,i)),o=e.components||1;return n=Math.max(n,i),r+=i*o,{name:e.name,type:e.type,components:o,offset:a}})),size:xo(r,Math.max(n,t)),alignment:t}}function yo(e){return ho[e].BYTES_PER_ELEMENT}function xo(e,t){return Math.ceil(e/t)*t}mo.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},mo.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},mo.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},mo.prototype.clear=function(){this.length=0},mo.prototype.resize=function(e){this.reserve(e),this.length=e},mo.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*go),po),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},mo.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var bo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var r=this.length;return this.resize(r+1),this.emplace(r,e,t)},t.prototype.emplace=function(e,t,r){var n=2*e;return this.int16[n+0]=t,this.int16[n+1]=r,e},t}(mo);bo.prototype.bytesPerElement=4,ga("StructArrayLayout2i4",bo);var _o=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)},t.prototype.emplace=function(e,t,r,n,i){var a=4*e;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,e},t}(mo);_o.prototype.bytesPerElement=8,ga("StructArrayLayout4i8",_o);var wo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i,a)},t.prototype.emplace=function(e,t,r,n,i,a,o){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,e},t}(mo);wo.prototype.bytesPerElement=12,ga("StructArrayLayout2i4i12",wo);var To=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i,a)},t.prototype.emplace=function(e,t,r,n,i,a,o){var s=4*e,l=8*e;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,e},t}(mo);To.prototype.bytesPerElement=8,ga("StructArrayLayout2i4ub8",To);var ko=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,n,i,a,o,s,l,c)},t.prototype.emplace=function(e,t,r,n,i,a,o,s,l,c,u){var h=9*e,f=18*e;return this.uint16[h+0]=t,this.uint16[h+1]=r,this.uint16[h+2]=n,this.uint16[h+3]=i,this.uint16[h+4]=a,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint8[f+16]=c,this.uint8[f+17]=u,e},t}(mo);ko.prototype.bytesPerElement=18,ga("StructArrayLayout8ui2ub18",ko);var Ao=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a,o,s,l,c,u,h){var f=this.length;return this.resize(f+1),this.emplace(f,e,t,r,n,i,a,o,s,l,c,u,h)},t.prototype.emplace=function(e,t,r,n,i,a,o,s,l,c,u,h,f){var d=12*e;return this.int16[d+0]=t,this.int16[d+1]=r,this.int16[d+2]=n,this.int16[d+3]=i,this.uint16[d+4]=a,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=l,this.int16[d+8]=c,this.int16[d+9]=u,this.int16[d+10]=h,this.int16[d+11]=f,e},t}(mo);Ao.prototype.bytesPerElement=24,ga("StructArrayLayout4i4ui4i24",Ao);var Mo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r){var n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)},t.prototype.emplace=function(e,t,r,n){var i=3*e;return this.float32[i+0]=t,this.float32[i+1]=r,this.float32[i+2]=n,e},t}(mo);Mo.prototype.bytesPerElement=12,ga("StructArrayLayout3f12",Mo);var So=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var r=1*e;return this.uint32[r+0]=t,e},t}(mo);So.prototype.bytesPerElement=4,ga("StructArrayLayout1ul4",So);var Eo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,e,t,r,n,i,a,o,s,l)},t.prototype.emplace=function(e,t,r,n,i,a,o,s,l,c){var u=10*e,h=5*e;return this.int16[u+0]=t,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[h+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,e},t}(mo);Eo.prototype.bytesPerElement=20,ga("StructArrayLayout6i1ul2ui20",Eo);var Lo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i,a)},t.prototype.emplace=function(e,t,r,n,i,a,o){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,e},t}(mo);Lo.prototype.bytesPerElement=12,ga("StructArrayLayout2i2i2i12",Lo);var Co=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,n,i)},t.prototype.emplace=function(e,t,r,n,i,a){var o=4*e,s=8*e;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,e},t}(mo);Co.prototype.bytesPerElement=16,ga("StructArrayLayout2f1f2i16",Co);var Io=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)},t.prototype.emplace=function(e,t,r,n,i){var a=12*e,o=3*e;return this.uint8[a+0]=t,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,e},t}(mo);Io.prototype.bytesPerElement=12,ga("StructArrayLayout2ub2f12",Io);var Do=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r){var n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)},t.prototype.emplace=function(e,t,r,n){var i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=r,this.uint16[i+2]=n,e},t}(mo);Do.prototype.bytesPerElement=6,ga("StructArrayLayout3ui6",Do);var Po=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g,m)},t.prototype.emplace=function(e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g,m,v){var y=24*e,x=12*e,b=48*e;return this.int16[y+0]=t,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=h,this.float32[x+8]=f,this.uint8[b+36]=d,this.uint8[b+37]=p,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,e},t}(mo);Po.prototype.bytesPerElement=48,ga("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Po);var Oo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g,m,v,y,x,b,_,w,T,k,A,M,S){var E=this.length;return this.resize(E+1),this.emplace(E,e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g,m,v,y,x,b,_,w,T,k,A,M,S)},t.prototype.emplace=function(e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g,m,v,y,x,b,_,w,T,k,A,M,S,E){var L=34*e,C=17*e;return this.int16[L+0]=t,this.int16[L+1]=r,this.int16[L+2]=n,this.int16[L+3]=i,this.int16[L+4]=a,this.int16[L+5]=o,this.int16[L+6]=s,this.int16[L+7]=l,this.uint16[L+8]=c,this.uint16[L+9]=u,this.uint16[L+10]=h,this.uint16[L+11]=f,this.uint16[L+12]=d,this.uint16[L+13]=p,this.uint16[L+14]=g,this.uint16[L+15]=m,this.uint16[L+16]=v,this.uint16[L+17]=y,this.uint16[L+18]=x,this.uint16[L+19]=b,this.uint16[L+20]=_,this.uint16[L+21]=w,this.uint16[L+22]=T,this.uint32[C+12]=k,this.float32[C+13]=A,this.float32[C+14]=M,this.float32[C+15]=S,this.float32[C+16]=E,e},t}(mo);Oo.prototype.bytesPerElement=68,ga("StructArrayLayout8i15ui1ul4f68",Oo);var zo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var r=1*e;return this.float32[r+0]=t,e},t}(mo);zo.prototype.bytesPerElement=4,ga("StructArrayLayout1f4",zo);var Ro=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r){var n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)},t.prototype.emplace=function(e,t,r,n){var i=3*e;return this.int16[i+0]=t,this.int16[i+1]=r,this.int16[i+2]=n,e},t}(mo);Ro.prototype.bytesPerElement=6,ga("StructArrayLayout3i6",Ro);var Fo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r){var n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)},t.prototype.emplace=function(e,t,r,n){var i=2*e,a=4*e;return this.uint32[i+0]=t,this.uint16[a+2]=r,this.uint16[a+3]=n,e},t}(mo);Fo.prototype.bytesPerElement=8,ga("StructArrayLayout1ul2ui8",Fo);var jo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var r=this.length;return this.resize(r+1),this.emplace(r,e,t)},t.prototype.emplace=function(e,t,r){var n=2*e;return this.uint16[n+0]=t,this.uint16[n+1]=r,e},t}(mo);jo.prototype.bytesPerElement=4,ga("StructArrayLayout2ui4",jo);var No=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var r=1*e;return this.uint16[r+0]=t,e},t}(mo);No.prototype.bytesPerElement=2,ga("StructArrayLayout1ui2",No);var Bo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var r=this.length;return this.resize(r+1),this.emplace(r,e,t)},t.prototype.emplace=function(e,t,r){var n=2*e;return this.float32[n+0]=t,this.float32[n+1]=r,e},t}(mo);Bo.prototype.bytesPerElement=8,ga("StructArrayLayout2f8",Bo);var Uo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)},t.prototype.emplace=function(e,t,r,n,i){var a=4*e;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,e},t}(mo);Uo.prototype.bytesPerElement=16,ga("StructArrayLayout4f16",Uo);var Vo=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,r),t}(fo);Vo.prototype.size=20;var qo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Vo(this,e)},t}(Eo);ga("CollisionBoxArray",qo);var Ho=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(t.prototype,r),t}(fo);Ho.prototype.size=48;var Go=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ho(this,e)},t}(Po);ga("PlacedSymbolArray",Go);var Wo=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(e){this._structArray.uint32[this._pos4+12]=e},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(t.prototype,r),t}(fo);Wo.prototype.size=68;var Yo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Wo(this,e)},t}(Oo);ga("SymbolInstanceArray",Yo);var Zo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t}(zo);ga("GlyphOffsetArray",Zo);var Xo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t}(Ro);ga("SymbolLineVertexArray",Xo);var Ko=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(t.prototype,r),t}(fo);Ko.prototype.size=8;var Jo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ko(this,e)},t}(Fo);ga("FeatureIndexArray",Jo);var Qo=vo([{name:"a_pos",components:2,type:"Int16"}],4).members,$o=function(e){void 0===e&&(e=[]),this.segments=e};function es(e,t){return 256*(e=h(Math.floor(e),0,255))+(t=h(Math.floor(t),0,255))}$o.prototype.prepareSegment=function(e,t,r,n){var i=this.segments[this.segments.length-1];return e>$o.MAX_VERTEX_ARRAY_LENGTH&&L("Max vertices per segment is "+$o.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!i||i.vertexLength+e>$o.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i},$o.prototype.get=function(){return this.segments},$o.prototype.destroy=function(){for(var e=0,t=this.segments;e>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}e.exports=t})),ns=t((function(e){function t(e,t){for(var r,n=e.length,i=t^n,a=0;n>=4;)r=1540483477*(65535&(r=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:i^=(255&e.charCodeAt(a+2))<<16;case 2:i^=(255&e.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(a)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}e.exports=t})),is=rs,as=rs,os=ns;is.murmur3=as,is.murmur2=os;var ss=function(){this.ids=[],this.positions=[],this.indexed=!1};ss.prototype.add=function(e,t,r,n){this.ids.push(cs(e)),this.positions.push(t,r,n)},ss.prototype.getPositions=function(e){for(var t=cs(e),r=0,n=this.ids.length-1;r>1;this.ids[i]>=t?n=i:r=i+1}for(var a=[];this.ids[r]===t;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},ss.serialize=function(e,t){var r=new Float64Array(e.ids),n=new Uint32Array(e.positions);return us(r,n,0,r.length-1),t&&t.push(r.buffer,n.buffer),{ids:r,positions:n}},ss.deserialize=function(e){var t=new ss;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t};var ls=Math.pow(2,53)-1;function cs(e){var t=+e;return!isNaN(t)&&t<=ls?t:is(String(e))}function us(e,t,r,n){for(;r>1],a=r-1,o=n+1;;){do{a++}while(e[a]i);if(a>=o)break;hs(e,a,o),hs(t,3*a,3*o),hs(t,3*a+1,3*o+1),hs(t,3*a+2,3*o+2)}o-rOs.max||o.yOs.max)&&(L("Geometry exceeds allowed extent, reduce your vector tile buffer size"),o.x=h(o.x,Os.min,Os.max),o.y=h(o.y,Os.min,Os.max))}return r}function Rs(e,t,r,n,i){e.emplaceBack(2*t+(n+1)/2,2*r+(i+1)/2)}var Fs=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new bo,this.indexArray=new Do,this.segments=new $o,this.programConfigurations=new Es(Qo,e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function js(e,t){for(var r=0;r=3)for(var a=0;a1){if(qs(e,t))return!0;for(var n=0;n1?e.distSqr(r):e.distSqr(r.sub(t)._mult(i)._add(t))}function Ys(e,t){for(var r,n,i,a=!1,o=0;ot.y!==i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(a=!a);return a}function Zs(e,t){for(var r=!1,n=0,i=e.length-1;nt.y!==o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function Xs(e,t,r,n,i){for(var o=0,s=e;o=l.x&&i>=l.y)return!0}var c=[new a(t,r),new a(t,i),new a(n,i),new a(n,r)];if(e.length>2)for(var u=0,h=c;ui.x&&t.x>i.x||e.yi.y&&t.y>i.y)return!1;var a=C(e,t,r[0]);return a!==C(e,t,r[1])||a!==C(e,t,r[2])||a!==C(e,t,r[3])}function Js(e,t,r){var n=t.paint.get(e).value;return"constant"===n.kind?n.value:r.programConfigurations.get(t.id).getMaxValue(e)}function Qs(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function $s(e,t,r,n,i){if(!t[0]&&!t[1])return e;var o=a.convert(t)._mult(i);"viewport"===r&&o._rotate(-n);for(var s=[],l=0;l=Ds||u<0||u>=Ds)){var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),f=h.vertexLength;Rs(this.layoutVertexArray,c,u,-1,-1),Rs(this.layoutVertexArray,c,u,1,-1),Rs(this.layoutVertexArray,c,u,1,1),Rs(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),h.vertexLength+=4,h.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{},n)},ga("CircleBucket",Fs,{omit:["layers"]});var el=new lo({"circle-sort-key":new io(lt.layout_circle["circle-sort-key"])}),tl={paint:new lo({"circle-radius":new io(lt.paint_circle["circle-radius"]),"circle-color":new io(lt.paint_circle["circle-color"]),"circle-blur":new io(lt.paint_circle["circle-blur"]),"circle-opacity":new io(lt.paint_circle["circle-opacity"]),"circle-translate":new no(lt.paint_circle["circle-translate"]),"circle-translate-anchor":new no(lt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new no(lt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new no(lt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new io(lt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new io(lt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new io(lt.paint_circle["circle-stroke-opacity"])}),layout:el},rl="undefined"!==typeof Float32Array?Float32Array:Array;function nl(){var e=new rl(4);return rl!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function il(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+a*s,e[1]=i*l+o*s,e[2]=n*-s+a*l,e[3]=i*-s+o*l,e}function al(){var e=new rl(9);return rl!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function ol(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=-r,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function sl(){var e=new rl(16);return rl!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function ll(e){var t=new rl(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function cl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ul(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=t[9],f=t[10],d=t[11],p=t[12],g=t[13],m=t[14],v=t[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-h*p,A=u*m-f*p,M=u*v-d*p,S=h*m-f*g,E=h*v-d*g,L=f*v-d*m,C=y*L-x*E+b*S+_*M-w*A+T*k;return C?(C=1/C,e[0]=(s*L-l*E+c*S)*C,e[1]=(i*E-n*L-a*S)*C,e[2]=(g*T-m*w+v*_)*C,e[3]=(f*w-h*T-d*_)*C,e[4]=(l*M-o*L-c*A)*C,e[5]=(r*L-i*M+a*A)*C,e[6]=(m*b-p*T-v*x)*C,e[7]=(u*T-f*b+d*x)*C,e[8]=(o*E-s*M+c*k)*C,e[9]=(n*M-r*E-a*k)*C,e[10]=(p*w-g*b+v*y)*C,e[11]=(h*b-u*w-d*y)*C,e[12]=(s*A-o*S-l*k)*C,e[13]=(r*S-n*A+i*k)*C,e[14]=(g*x-p*_-m*y)*C,e[15]=(u*_-h*x+f*y)*C,e):null}function hl(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],f=t[9],d=t[10],p=t[11],g=t[12],m=t[13],v=t[14],y=t[15],x=r[0],b=r[1],_=r[2],w=r[3];return e[0]=x*n+b*s+_*h+w*g,e[1]=x*i+b*l+_*f+w*m,e[2]=x*a+b*c+_*d+w*v,e[3]=x*o+b*u+_*p+w*y,x=r[4],b=r[5],_=r[6],w=r[7],e[4]=x*n+b*s+_*h+w*g,e[5]=x*i+b*l+_*f+w*m,e[6]=x*a+b*c+_*d+w*v,e[7]=x*o+b*u+_*p+w*y,x=r[8],b=r[9],_=r[10],w=r[11],e[8]=x*n+b*s+_*h+w*g,e[9]=x*i+b*l+_*f+w*m,e[10]=x*a+b*c+_*d+w*v,e[11]=x*o+b*u+_*p+w*y,x=r[12],b=r[13],_=r[14],w=r[15],e[12]=x*n+b*s+_*h+w*g,e[13]=x*i+b*l+_*f+w*m,e[14]=x*a+b*c+_*d+w*v,e[15]=x*o+b*u+_*p+w*y,e}function fl(e,t,r){var n,i,a,o,s,l,c,u,h,f,d,p,g=r[0],m=r[1],v=r[2];return t===e?(e[12]=t[0]*g+t[4]*m+t[8]*v+t[12],e[13]=t[1]*g+t[5]*m+t[9]*v+t[13],e[14]=t[2]*g+t[6]*m+t[10]*v+t[14],e[15]=t[3]*g+t[7]*m+t[11]*v+t[15]):(n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],f=t[9],d=t[10],p=t[11],e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=h,e[9]=f,e[10]=d,e[11]=p,e[12]=n*g+s*m+h*v+t[12],e[13]=i*g+l*m+f*v+t[13],e[14]=a*g+c*m+d*v+t[14],e[15]=o*g+u*m+p*v+t[15]),e}function dl(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function pl(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*n,e[5]=o*i+u*n,e[6]=s*i+h*n,e[7]=l*i+f*n,e[8]=c*i-a*n,e[9]=u*i-o*n,e[10]=h*i-s*n,e[11]=f*i-l*n,e}function gl(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],c=t[4],u=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*n,e[1]=o*i+u*n,e[2]=s*i+h*n,e[3]=l*i+f*n,e[4]=c*i-a*n,e[5]=u*i-o*n,e[6]=h*i-s*n,e[7]=f*i-l*n,e}function ml(e,t,r,n,i){var a,o=1/Math.tan(t/2);return e[0]=o/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(n-i),e[10]=(i+n)*a,e[14]=2*i*n*a):(e[10]=-1,e[14]=-2*n),e}function vl(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),c=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*c,e[15]=1,e}Math.hypot||(Math.hypot=function(){for(var e=arguments,t=0,r=arguments.length;r--;)t+=e[r]*e[r];return Math.sqrt(t)});var yl=hl;function xl(){var e=new rl(3);return rl!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function bl(e){var t=new rl(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function _l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function wl(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function Tl(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function kl(e,t){var r=t[0],n=t[1],i=t[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Al(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ml(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=i*l-a*s,e[1]=a*o-n*l,e[2]=n*s-i*o,e}function Sl(e,t,r){var n=t[0],i=t[1],a=t[2];return e[0]=n*r[0]+i*r[3]+a*r[6],e[1]=n*r[1]+i*r[4]+a*r[7],e[2]=n*r[2]+i*r[5]+a*r[8],e}var El=wl;function Ll(){var e=new rl(4);return rl!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Cl(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function Il(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Dl(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,e}function Pl(){var e=new rl(2);return rl!=Float32Array&&(e[0]=0,e[1]=0),e}function Ol(e){var t=e[0],r=e[1];return t*t+r*r}xl(),Ll();var zl=Ol,Rl=(Pl(),function(e){function t(t){e.call(this,t,tl)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new Fs(e)},t.prototype.queryRadius=function(e){var t=e;return Js("circle-radius",this,t)+Js("circle-stroke-width",this,t)+Qs(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,r,n,i,a,o,s){for(var l=$s(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),a.angle,o),c=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),u="map"===this.paint.get("circle-pitch-alignment"),h=u?l:jl(l,s),f=u?c*o:c,d=0,p=n;de.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var o=e.data,s=t.data,l=0;l80*r){n=a=e[0],i=o=e[1];for(var p=r;pa&&(a=s),l>o&&(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return rc(f,d,r,n,i,c),d}function ec(e,t,r,n,i){var a,o;if(i===Cc(e,t,r,n)>0)for(a=t;a=t;a-=n)o=Sc(a,e[a],e[a+1],o);return o&&xc(o,o.next)&&(Ec(o),o=o.next),o}function tc(e,t){if(!e)return e;t||(t=e);var r,n=e;do{if(r=!1,n.steiner||!xc(n,n.next)&&0!==yc(n.prev,n,n.next))n=n.next;else{if(Ec(n),(n=t=n.prev)===n.next)break;r=!0}}while(r||n!==t);return t}function rc(e,t,r,n,i,a,o){if(e){!o&&a&&fc(e,n,i,a);for(var s,l,c=e;e.prev!==e.next;)if(s=e.prev,l=e.next,a?ic(e,n,i,a):nc(e))t.push(s.i/r),t.push(e.i/r),t.push(l.i/r),Ec(e),e=l.next,c=l.next;else if((e=l)===c){o?1===o?rc(e=ac(tc(e),t,r),t,r,n,i,a,2):2===o&&oc(e,t,r,n,i,a):rc(tc(e),t,r,n,i,a,1);break}}}function nc(e){var t=e.prev,r=e,n=e.next;if(yc(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(mc(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&yc(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function ic(e,t,r,n){var i=e.prev,a=e,o=e.next;if(yc(i,a,o)>=0)return!1;for(var s=i.xa.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,u=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=pc(s,l,t,r,n),f=pc(c,u,t,r,n),d=e.prevZ,p=e.nextZ;d&&d.z>=h&&p&&p.z<=f;){if(d!==e.prev&&d!==e.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&yc(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==e.prev&&p!==e.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&yc(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=h;){if(d!==e.prev&&d!==e.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&&yc(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=f;){if(p!==e.prev&&p!==e.next&&mc(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&yc(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function ac(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!xc(i,a)&&bc(i,n,n.next,a)&&kc(i,a)&&kc(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Ec(n),Ec(n.next),n=e=a),n=n.next}while(n!==e);return tc(n)}function oc(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&vc(o,s)){var l=Mc(o,s);return o=tc(o,o.next),l=tc(l,l.next),rc(o,t,r,n,i,a),void rc(l,t,r,n,i,a)}s=s.next}o=o.next}while(o!==e)}function sc(e,t,r,n){var i,a,o,s=[];for(i=0,a=t.length;i=n.next.y&&n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x=n.x&&n.x>=u&&i!==n.x&&mc(ar.x||n.x===r.x&&hc(r,n)))&&(r=n,f=l)),n=n.next}while(n!==c);return r}function hc(e,t){return yc(e.prev,e,t.prev)<0&&yc(t.next,e,e.next)<0}function fc(e,t,r,n){var i=e;do{null===i.z&&(i.z=pc(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,dc(i)}function dc(e){var t,r,n,i,a,o,s,l,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)0!==s&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1);return e}function pc(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function gc(e){var t=e,r=e;do{(t.x=0&&(e-o)*(n-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(i-o)*(n-s)>=0}function vc(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Tc(e,t)&&(kc(e,t)&&kc(t,e)&&Ac(e,t)&&(yc(e.prev,e,t.prev)||yc(e,t.prev,t))||xc(e,t)&&yc(e.prev,e,e.next)>0&&yc(t.prev,t,t.next)>0)}function yc(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function xc(e,t){return e.x===t.x&&e.y===t.y}function bc(e,t,r,n){var i=wc(yc(e,t,r)),a=wc(yc(e,t,n)),o=wc(yc(r,n,e)),s=wc(yc(r,n,t));return i!==a&&o!==s||!(0!==i||!_c(e,r,t))||!(0!==a||!_c(e,n,t))||!(0!==o||!_c(r,e,n))||!(0!==s||!_c(r,t,n))}function _c(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function wc(e){return e>0?1:e<0?-1:0}function Tc(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&bc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function kc(e,t){return yc(e.prev,e,e.next)<0?yc(e,t,e.next)>=0&&yc(e,e.prev,t)>=0:yc(e,t,e.prev)<0||yc(e,e.next,t)<0}function Ac(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{r.y>a!==r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==e);return n}function Mc(e,t){var r=new Lc(e.i,e.x,e.y),n=new Lc(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Sc(e,t,r,n){var i=new Lc(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ec(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Lc(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Cc(e,t,r,n){for(var i=0,a=t,o=r-n;ar;){if(n-r>600){var a=n-r+1,o=t-r+1,s=Math.log(a),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(a-l)/a)*(o-a/2<0?-1:1);Dc(e,t,Math.max(r,Math.floor(t-o*l/a+c)),Math.min(n,Math.floor(t+(a-o)*l/a+c)),i)}var u=e[t],h=r,f=n;for(Pc(e,r,t),i(e[n],u)>0&&Pc(e,r,n);h0;)f--}0===i(e[r],u)?Pc(e,r,f):Pc(e,++f,n),f<=t&&(r=f+1),t<=f&&(n=f-1)}}function Pc(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Oc(e,t){return et?1:0}function zc(e,t){var r=e.length;if(r<=1)return[e];for(var n,i,a=[],o=0;o1)for(var l=0;l0&&(n+=e[i-1].length,r.holes.push(n))}return r},Jl.default=Ql;var Nc=500,Bc=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new bo,this.indexArray=new Do,this.indexArray2=new jo,this.programConfigurations=new Es(Kl,e.layers,e.zoom),this.segments=new $o,this.segments2=new $o,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};Bc.prototype.populate=function(e,t,r){this.hasPattern=Fc("fill",this.layers,t);for(var n=this.layers[0].layout.get("fill-sort-key"),i=[],a=0,o=e;a>3}if(i--,1===n||2===n)o+=e.readSVarint(),s+=e.readSVarint(),1===n&&(t&&l.push(t),t=[]),t.push(new a(o,s));else{if(7!==n)throw new Error("unknown command "+n);t&&t.push(t[0].clone())}}return t&&l.push(t),l},Wc.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;e.pos>3}if(n--,1===r||2===r)(i+=e.readSVarint())s&&(s=i),(a+=e.readSVarint())c&&(c=a);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,s,c]},Wc.prototype.toGeoJSON=function(e,t,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*e,s=this.extent*t,l=this.loadGeometry(),c=Wc.types[this.type];function u(e){for(var t=0;t>3;t=1===n?e.readString():2===n?e.readFloat():3===n?e.readDouble():4===n?e.readVarint64():5===n?e.readVarint():6===n?e.readSVarint():7===n?e.readBoolean():null}return t}function tu(e,t){this.layers=e.readFields(ru,{},t)}function ru(e,t,r){if(3===e){var n=new Jc(r,r.readVarint()+r.pos);n.length&&(t[n.name]=n)}}Qc.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Gc(this._pbf,t,this.extent,this._keys,this._values)};var nu={VectorTile:tu,VectorTileFeature:Gc,VectorTileLayer:Jc},iu=nu.VectorTileFeature.types,au=500,ou=Math.pow(2,13);function su(e,t,r,n,i,a,o,s){e.emplaceBack(t,r,2*Math.floor(n*ou)+o,i*ou*2,a*ou*2,Math.round(s))}var lu=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new wo,this.indexArray=new Do,this.programConfigurations=new Es(Hc,e.layers,e.zoom),this.segments=new $o,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function cu(e,t){return e.x===t.x&&(e.x<0||e.x>Ds)||e.y===t.y&&(e.y<0||e.y>Ds)}function uu(e){return e.every((function(e){return e.x<0}))||e.every((function(e){return e.x>Ds}))||e.every((function(e){return e.y<0}))||e.every((function(e){return e.y>Ds}))}lu.prototype.populate=function(e,t,r){this.features=[],this.hasPattern=Fc("fill-extrusion",this.layers,t);for(var n=0,i=e;n=1){var y=p[m-1];if(!cu(v,y)){h.vertexLength+4>$o.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b>32768&&(g=0),su(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),su(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),g+=b,su(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g),su(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=h.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),h.vertexLength+=4,h.primitiveLength+=2}}}}if(h.vertexLength+l>$o.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===iu[e.type]){for(var w=[],T=[],k=h.vertexLength,A=0,M=s;A=2&&e[l-1].equals(e[l-2]);)l--;for(var c=0;c0;if(T&&v>c){var A=u.dist(d);if(A>2*h){var M=u.sub(u.sub(d)._mult(h/A)._round());this.updateDistance(d,M),this.addCurrentVertex(M,g,0,0,f),d=M}}var S=d&&p,E=S?r:s?"butt":n;if(S&&"round"===E&&(_i&&(E="bevel"),"bevel"===E&&(_>2&&(E="flipbevel"),_100)y=m.mult(-1);else{var L=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(L*(k?-1:1))}this.addCurrentVertex(u,y,0,0,f),this.addCurrentVertex(u,y.mult(-1),0,0,f)}else if("bevel"===E||"fakeround"===E){var C=-Math.sqrt(_*_-1),I=k?C:0,D=k?0:C;if(d&&this.addCurrentVertex(u,g,I,D,f),"fakeround"===E)for(var P=Math.round(180*w/Math.PI/Tu),O=1;O2*h){var B=u.add(p.sub(u)._mult(h/N)._round());this.updateDistance(u,B),this.addCurrentVertex(B,m,0,0,f),u=B}}}}},Su.prototype.addCurrentVertex=function(e,t,r,n,i,a){void 0===a&&(a=!1);var o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*n,c=-t.y-t.x*n;this.addHalfVertex(e,o,s,a,!1,r,i),this.addHalfVertex(e,l,c,a,!0,-n,i),this.distance>Mu/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,r,n,i,a))},Su.prototype.addHalfVertex=function(e,t,r,n,i,a,o){var s=e.x,l=e.y,c=this.scaledDistance*Au;this.layoutVertexArray.emplaceBack((s<<1)+(n?1:0),(l<<1)+(i?1:0),Math.round(bu*t)+128,Math.round(bu*r)+128,1+(0===a?0:a<0?-1:1)|(63&c)<<2,c>>6);var u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),i?this.e2=u:this.e1=u},Su.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Mu-1):this.distance},Su.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.updateScaledDistance()},ga("LineBucket",Su,{omit:["layers","patternFeatures"]});var Eu=new lo({"line-cap":new no(lt.layout_line["line-cap"]),"line-join":new io(lt.layout_line["line-join"]),"line-miter-limit":new no(lt.layout_line["line-miter-limit"]),"line-round-limit":new no(lt.layout_line["line-round-limit"]),"line-sort-key":new io(lt.layout_line["line-sort-key"])}),Lu={paint:new lo({"line-opacity":new io(lt.paint_line["line-opacity"]),"line-color":new io(lt.paint_line["line-color"]),"line-translate":new no(lt.paint_line["line-translate"]),"line-translate-anchor":new no(lt.paint_line["line-translate-anchor"]),"line-width":new io(lt.paint_line["line-width"]),"line-gap-width":new io(lt.paint_line["line-gap-width"]),"line-offset":new io(lt.paint_line["line-offset"]),"line-blur":new io(lt.paint_line["line-blur"]),"line-dasharray":new oo(lt.paint_line["line-dasharray"]),"line-pattern":new ao(lt.paint_line["line-pattern"]),"line-gradient":new so(lt.paint_line["line-gradient"])}),layout:Eu},Cu=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(t,r){return r=new Za(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),e.prototype.possiblyEvaluate.call(this,t,r)},t.prototype.evaluate=function(t,r,n,i){return r=m({},r,{zoom:Math.floor(r.zoom)}),e.prototype.evaluate.call(this,t,r,n,i)},t}(io),Iu=new Cu(Lu.paint.properties["line-width"].specification);Iu.useIntegerZoom=!0;var Du=function(e){function t(t){e.call(this,t,Lu)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&this._updateGradient()},t.prototype._updateGradient=function(){var e=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Wl(e,"lineProgress"),this.gradientTexture=null},t.prototype.recalculate=function(t,r){e.prototype.recalculate.call(this,t,r),this.paint._values["line-floorwidth"]=Iu.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new Su(e)},t.prototype.queryRadius=function(e){var t=e,r=Pu(Js("line-width",this,t),Js("line-gap-width",this,t)),n=Js("line-offset",this,t);return r/2+Math.abs(n)+Qs(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,r,n,i,a,o){var s=$s(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,o),l=o/2*Pu(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),c=this.paint.get("line-offset").evaluate(t,r);return c&&(n=Ou(n,c*o)),Us(s,n,l)},t.prototype.isTileClipped=function(){return!0},t}(uo);function Pu(e,t){return t>0?t+2*e:e}function Ou(e,t){for(var r=[],n=new a(0,0),i=0;i":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};function Hu(e){for(var t="",r=0;r>1,u=-7,h=r?i-1:0,f=r?-1:1,d=e[t+h];for(h+=f,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=256*o+e[t+h],h+=f,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=c}return(d?-1:1)*o*Math.pow(2,a-n)},write:function(e,t,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?f/l:f*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=255&o,d+=p,o/=256,c-=8);e[r+d-p]|=128*g}},Yu=Zu;function Zu(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Zu.Varint=0,Zu.Fixed64=1,Zu.Bytes=2,Zu.Fixed32=5;var Xu=4294967296,Ku=1/Xu,Ju=12,Qu="undefined"===typeof TextDecoder?null:new TextDecoder("utf8");function $u(e,t,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128)return th(e,n,t);if(n|=(127&(i=a[r.pos++]))<<3,i<128)return th(e,n,t);if(n|=(127&(i=a[r.pos++]))<<10,i<128)return th(e,n,t);if(n|=(127&(i=a[r.pos++]))<<17,i<128)return th(e,n,t);if(n|=(127&(i=a[r.pos++]))<<24,i<128)return th(e,n,t);if(n|=(1&(i=a[r.pos++]))<<31,i<128)return th(e,n,t);throw new Error("Expected varint not more than 10 bytes")}function eh(e){return e.type===Zu.Bytes?e.readVarint()+e.pos:e.pos+1}function th(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function rh(e,t){var r,n;if(e>=0?(r=e%4294967296|0,n=e/4294967296|0):(n=~(-e/4294967296),4294967295^(r=~(-e%4294967296))?r=r+1|0:(r=0,n=n+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),nh(r,n,t),ih(n,t)}function nh(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos]=127&e}function ih(e,t){var r=(7&e)<<4;t.buf[t.pos++]|=r|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}function ah(e,t,r){var n=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=e;i--)r.buf[i+n]=r.buf[i]}function oh(e,t){for(var r=0;r>>8,e[r+2]=t>>>16,e[r+3]=t>>>24}function vh(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function yh(e,t,r){for(var n="",i=t;i239?4:l>223?3:l>191?2:1;if(i+u>r)break;1===u?l<128&&(c=l):2===u?128===(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)<=127&&(c=null):3===u?(a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&((c=(15&l)<<12|(63&a)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&((c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),i+=u}return n}function xh(e,t,r){return Qu.decode(e.subarray(t,r))}function bh(e,t,r){for(var n,i,a=0;a55295&&n<57344){if(!i){n>56319||a+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):i=n;continue}if(n<56320){e[r++]=239,e[r++]=191,e[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(e[r++]=239,e[r++]=191,e[r++]=189,i=null);n<128?e[r++]=n:(n<2048?e[r++]=n>>6|192:(n<65536?e[r++]=n>>12|224:(e[r++]=n>>18|240,e[r++]=n>>12&63|128),e[r++]=n>>6&63|128),e[r++]=63&n|128)}return r}Zu.prototype={destroy:function(){this.buf=null},readFields:function(e,t,r){for(r=r||this.length;this.pos>3,a=this.pos;this.type=7&n,e(i,t,this),this.pos===a&&this.skip(n)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=gh(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=vh(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=gh(this.buf,this.pos)+gh(this.buf,this.pos+4)*Xu;return this.pos+=8,e},readSFixed64:function(){var e=gh(this.buf,this.pos)+vh(this.buf,this.pos+4)*Xu;return this.pos+=8,e},readFloat:function(){var e=Wu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Wu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,r,n=this.buf;return t=127&(r=n[this.pos++]),r<128?t:(t|=(127&(r=n[this.pos++]))<<7,r<128?t:(t|=(127&(r=n[this.pos++]))<<14,r<128?t:(t|=(127&(r=n[this.pos++]))<<21,r<128?t:$u(t|=(15&(r=n[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2===1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=Ju&&Qu?xh(this.buf,t,e):yh(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==Zu.Bytes)return e.push(this.readVarint(t));var r=eh(this);for(e=e||[];this.pos127;);else if(t===Zu.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Zu.Fixed32)this.pos+=4;else{if(t!==Zu.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t268435455||e<0?rh(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=bh(this.buf,e,this.pos);var r=this.pos-t;r>=128&&ah(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeFloat:function(e){this.realloc(4),Wu.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Wu.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var r=0;r=128&&ah(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(e,t,r){this.writeTag(e,Zu.Bytes),this.writeRawMessage(t,r)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,oh,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,sh,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,uh,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,lh,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,ch,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,hh,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,fh,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,dh,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,ph,t)},writeBytesField:function(e,t){this.writeTag(e,Zu.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Zu.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Zu.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Zu.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Zu.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Zu.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Zu.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Zu.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Zu.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Zu.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var _h=3;function wh(e,t,r){1===e&&r.readMessage(Th,t)}function Th(e,t,r){if(3===e){var n=r.readMessage(kh,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;t.push({id:i,bitmap:new ql({width:o+2*_h,height:s+2*_h},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function kh(e,t,r){1===e?t.id=r.readVarint():2===e?t.bitmap=r.readBytes():3===e?t.width=r.readVarint():4===e?t.height=r.readVarint():5===e?t.left=r.readSVarint():6===e?t.top=r.readSVarint():7===e&&(t.advance=r.readVarint())}function Ah(e){return new Yu(e).readFields(wh,[])}var Mh=_h;function Sh(e){for(var t=0,r=0,n=0,i=e;n=0;f--){var d=o[f];if(!(h.w>d.w||h.h>d.h)){if(h.x=d.x,h.y=d.y,l=Math.max(l,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===d.w&&h.h===d.h){var p=o.pop();f=0&&n>=e&&Uh[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(e,r),this.sectionIndex=this.sectionIndex.slice(e,r)},jh.prototype.substring=function(e,t){var r=new jh;return r.text=this.text.substring(e,t),r.sectionIndex=this.sectionIndex.slice(e,t),r.sections=this.sections,r},jh.prototype.toString=function(){return this.text},jh.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce((function(t,r){return Math.max(t,e.sections[r].scale)}),0)},jh.prototype.addTextSection=function(e,t){this.text+=e.text,this.sections.push(Fh.forText(e.scale,e.fontStack||t));for(var r=this.sections.length-1,n=0;n=Rh?null:++this.imageSectionID:(this.imageSectionID=zh,this.imageSectionID)};var Uh={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Vh={};function qh(e,t,r,n,i,a){if(t.imageName){var o=n[t.imageName];return o?o.displaySize[0]*t.scale*Gu/a+i:0}var s=r[t.fontStack],l=s&&s[e];return l?l.metrics.advance*t.scale+i:0}function Hh(e,t,r,n,i,a){for(var o=0,s=0;s=0,u=0,h=0;h0&&j>A&&(A=j)}else{var N=r[S.fontStack],B=N&&N[L];if(B&&B.rect)D=B.rect,I=B.metrics;else{var U=t[S.fontStack],V=U&&U[L];if(!V)continue;I=V.metrics}C=(_-S.scale)*Gu}z?(e.verticalizable=!0,k.push({glyph:L,imageName:P,x:f,y:d+C,vertical:z,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:D}),f+=O*S.scale+c):(k.push({glyph:L,imageName:P,x:f,y:d+C,vertical:z,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:D}),f+=I.advance*S.scale+c)}if(0!==k.length){var q=f-c;p=Math.max(q,p),Qh(k,0,k.length-1,m,A)}f=0;var H=a*_+A;T.lineOffset=Math.max(A,w),d+=H,g=Math.max(H,g),++v}else d+=a,++v}var G=d-Ph,W=Kh(o),Y=W.horizontalAlign,Z=W.verticalAlign;$h(e.positionedLines,m,Y,Z,p,g,a,G,i.length),e.top+=-Z*G,e.bottom=e.top+G,e.left+=-Y*p,e.right=e.left+p}function Qh(e,t,r,n,i){if(n||i)for(var a=e[r],o=a.metrics.advance*a.scale,s=(e[r].x+o)*n,l=t;l<=r;l++)e[l].x-=s,e[l].y+=i}function $h(e,t,r,n,i,a,o,s,l){var c=(t-r)*i,u=0;u=a!==o?-s*n-Ph:(-n*l+.5)*o;for(var h=0,f=e;h-r/2;){if(--o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;for(var l=[],c=0;sn;)c-=l.shift().angleDelta;if(c>i)return!1;o++,s+=h.dist(f)}return!0}function uf(e){for(var t=0,r=0;rc){var p=(c-l)/d,g=Rr(h.x,f.x,p),m=Rr(h.y,f.y,p),v=new rf(g,m,f.angleTo(h),u);return v._round(),!o||cf(e,v,s,o,t)?v:void 0}l+=d}}function pf(e,t,r,n,i,a,o,s,l){var c=hf(n,a,o),u=ff(n,i),h=u*o,f=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h=0&&b=0&&_=0&&f+c<=u){var w=new rf(b,_,y,p);w._round(),n&&!cf(e,w,a,n,i)||d.push(w)}}h+=v}return s||d.length||o||(d=gf(e,h/2,r,n,i,a,o,!0,l)),d}function mf(e,t,r,n,i){for(var o=[],s=0;s=n&&f.x>=n||(h.x>=n?h=new a(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round():f.x>=n&&(f=new a(n,h.y+(f.y-h.y)*((n-h.x)/(f.x-h.x)))._round()),h.y>=i&&f.y>=i||(h.y>=i?h=new a(h.x+(f.x-h.x)*((i-h.y)/(f.y-h.y)),i)._round():f.y>=i&&(f=new a(h.x+(f.x-h.x)*((i-h.y)/(f.y-h.y)),i)._round()),c&&h.equals(c[c.length-1])||(c=[h],o.push(c)),c.push(f)))))}return o}var vf=Eh;function yf(e,t,r,n){var i=[],o=e.image,s=o.pixelRatio,l=o.paddedRect.w-2*vf,c=o.paddedRect.h-2*vf,u=e.right-e.left,h=e.bottom-e.top,f=o.stretchX||[[0,l]],d=o.stretchY||[[0,c]],p=function(e,t){return e+t[1]-t[0]},g=f.reduce(p,0),m=d.reduce(p,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,A=0,M=y;if(o.content&&n){var S=o.content;x=xf(f,0,S[0]),_=xf(d,0,S[1]),b=xf(f,S[0],S[2]),w=xf(d,S[1],S[3]),T=S[0]-x,A=S[1]-_,k=S[2]-S[0]-b,M=S[3]-S[1]-w}var E=function(n,i,l,c){var f=_f(n.stretch-x,b,u,e.left),d=wf(n.fixed-T,k,n.stretch,g),p=_f(i.stretch-_,w,h,e.top),v=wf(i.fixed-A,M,i.stretch,m),y=_f(l.stretch-x,b,u,e.left),S=wf(l.fixed-T,k,l.stretch,g),E=_f(c.stretch-_,w,h,e.top),L=wf(c.fixed-A,M,c.stretch,m),C=new a(f,p),I=new a(y,p),D=new a(y,E),P=new a(f,E),O=new a(d/s,v/s),z=new a(S/s,L/s),R=t*Math.PI/180;if(R){var F=Math.sin(R),j=Math.cos(R),N=[j,-F,F,j];C._matMult(N),I._matMult(N),P._matMult(N),D._matMult(N)}var B=n.stretch+n.fixed,U=l.stretch+l.fixed,V=i.stretch+i.fixed,q=c.stretch+c.fixed;return{tl:C,tr:I,bl:P,br:D,tex:{x:o.paddedRect.x+vf+B,y:o.paddedRect.y+vf+V,w:U-B,h:q-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:z,minFontScaleX:k/s/u,minFontScaleY:M/s/h,isSDF:r}};if(n&&(o.stretchX||o.stretchY))for(var L=bf(f,v,g),C=bf(d,y,m),I=0;I0&&(p=Math.max(10,p),this.circleDiameter=p)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&&(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new a(v,g),_=new a(y,g),w=new a(v,m),T=new a(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}e.emplaceBack(t.x,t.y,v,g,y,m,r,n,i)}this.boxEndIndex=e.length},Af=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=Mf),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)};function Mf(e,t){return et?1:0}function Sf(e,t,r){void 0===t&&(t=1),void 0===r&&(r=!1);for(var n=1/0,i=1/0,o=-1/0,s=-1/0,l=e[0],c=0;co)&&(o=u.x),(!c||u.y>s)&&(s=u.y)}var h=o-n,f=s-i,d=Math.min(h,f),p=d/2,g=new Af([],Ef);if(0===d)return new a(n,i);for(var m=n;my.d||!y.d)&&(y=b,r&&console.log("found best %d after %d probes",Math.round(1e4*b.d)/1e4,x)),b.max-y.d<=t||(p=b.h/2,g.push(new Lf(b.p.x-p,b.p.y-p,p,e)),g.push(new Lf(b.p.x+p,b.p.y-p,p,e)),g.push(new Lf(b.p.x-p,b.p.y+p,p,e)),g.push(new Lf(b.p.x+p,b.p.y+p,p,e)),x+=4)}return r&&(console.log("num probes: "+x),console.log("best distance: "+y.d)),y.p}function Ef(e,t){return t.max-e.max}function Lf(e,t,r,n){this.p=new a(e,t),this.h=r,this.d=Cf(this.p,n),this.max=this.d+this.h*Math.SQRT2}function Cf(e,t){for(var r=!1,n=1/0,i=0;ie.y!==u.y>e.y&&e.x<(u.x-c.x)*(e.y-c.y)/(u.y-c.y)+c.x&&(r=!r),n=Math.min(n,Ws(e,c,u))}return(r?1:-1)*Math.sqrt(n)}function If(e){for(var t=0,r=0,n=0,i=e[0],a=0,o=i.length,s=o-1;a0&&(this.data[0]=t,this._down(0)),e}},Af.prototype.peek=function(){return this.data[0]},Af.prototype._up=function(e){for(var t=this,r=t.data,n=t.compare,i=r[e];e>0;){var a=e-1>>1,o=r[a];if(n(i,o)>=0)break;r[e]=o,e=a}r[e]=i},Af.prototype._down=function(e){for(var t=this,r=t.data,n=t.compare,i=this.length>>1,a=r[e];e=0)break;r[e]=s,e=o}r[e]=a};var Df=7,Pf=Number.POSITIVE_INFINITY;function Of(e,t){function r(e,t){var r=0,n=0;t<0&&(t=0);var i=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":n=i-Df;break;case"bottom-right":case"bottom-left":n=-i+Df;break;case"bottom":n=-t+Df;break;case"top":n=t-Df}switch(e){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=t;break;case"right":r=-t}return[r,n]}function n(e,t,r){var n=0,i=0;switch(t=Math.abs(t),r=Math.abs(r),e){case"top-right":case"top-left":case"top":i=r-Df;break;case"bottom-right":case"bottom-left":case"bottom":i=-r+Df}switch(e){case"top-right":case"bottom-right":case"right":n=-t;break;case"top-left":case"bottom-left":case"left":n=t}return[n,i]}return t[1]!==Pf?n(e,t[0],t[1]):r(e,t[0])}function zf(e,t,r,n,i,a,o){e.createArrays();var s=512*e.overscaling;e.tilePixelRatio=Ds/s,e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,c=e.layers[0]._unevaluatedLayout._values,u={};if("composite"===e.textSizeData.kind){var h=e.textSizeData,f=h.minZoom,d=h.maxZoom;u.compositeTextSizes=[c["text-size"].possiblyEvaluate(new Za(f),o),c["text-size"].possiblyEvaluate(new Za(d),o)]}if("composite"===e.iconSizeData.kind){var p=e.iconSizeData,g=p.minZoom,m=p.maxZoom;u.compositeIconSizes=[c["icon-size"].possiblyEvaluate(new Za(g),o),c["icon-size"].possiblyEvaluate(new Za(m),o)]}u.layoutTextSize=c["text-size"].possiblyEvaluate(new Za(e.zoom+1),o),u.layoutIconSize=c["icon-size"].possiblyEvaluate(new Za(e.zoom+1),o),u.textMaxSize=c["text-size"].possiblyEvaluate(new Za(18));for(var v=l.get("text-line-height")*Gu,y="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),x=l.get("text-keep-upright"),b=l.get("text-size"),_=function(){var a=T[w],s=l.get("text-font").evaluate(a,{},o).join(","),c=b.evaluate(a,{},o),h=u.layoutTextSize.evaluate(a,{},o),f=u.layoutIconSize.evaluate(a,{},o),d={horizontal:{},vertical:void 0},p=a.text,g=[0,0];if(p){var m=p.toString(),_=l.get("text-letter-spacing").evaluate(a,{},o)*Gu,k=ka(m)?_:0,A=l.get("text-anchor").evaluate(a,{},o),M=l.get("text-variable-anchor");if(!M){var S=l.get("text-radial-offset").evaluate(a,{},o);g=S?Of(A,[S*Gu,Pf]):l.get("text-offset").evaluate(a,{},o).map((function(e){return e*Gu}))}var E=y?"center":l.get("text-justify").evaluate(a,{},o),C=l.get("symbol-placement"),I="point"===C?l.get("text-max-width").evaluate(a,{},o)*Gu:0,D=function(){e.allowVerticalPlacement&&Ta(m)&&(d.vertical=Bh(p,t,r,i,s,I,v,A,"left",k,g,Dh.vertical,!0,C,h,c))};if(!y&&M){for(var P="auto"===E?M.map((function(e){return Rf(e)})):[E],O=!1,z=0;z=Ds||h.y<0||h.y>=Ds||Vf(e,h,s,r,n,i,f,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,y,w,A,l,b,T,M,p,t,a,c,u,o)};if("line"===S)for(var I=0,D=mf(t.geometry,0,0,Ds,Ds);I1){var B=df(N,k,r.vertical||g,n,m,x);B&&C(N,B)}}else if("Polygon"===t.type)for(var U=0,V=zc(t.geometry,0);UNf&&L(e.layerIds[0]+': Value for "text-size" is >= '+jf+'. Reduce your "text-size".'):"composite"===m.kind&&((v=[nf*d.compositeTextSizes[0].evaluate(o,{},p),nf*d.compositeTextSizes[1].evaluate(o,{},p)])[0]>Nf||v[1]>Nf)&&L(e.layerIds[0]+': Value for "text-size" is >= '+jf+'. Reduce your "text-size".'),e.addSymbols(e.text,g,v,s,a,o,c,t,l.lineStartIndex,l.lineLength,f,p);for(var y=0,x=u;yNf&&L(e.layerIds[0]+': Value for "icon-size" is >= '+jf+'. Reduce your "icon-size".'):"composite"===Z.kind&&((X=[nf*_.compositeIconSizes[0].evaluate(b,{},T),nf*_.compositeIconSizes[1].evaluate(b,{},T)])[0]>Nf||X[1]>Nf)&&L(e.layerIds[0]+': Value for "icon-size" is >= '+jf+'. Reduce your "icon-size".'),e.addSymbols(e.icon,W,X,x,y,b,!1,t,I.lineStartIndex,I.lineLength,-1,T),R=e.icon.placedSymbolArray.length-1,Y&&(P=4*Y.length,e.addSymbols(e.icon,Y,X,x,y,b,Dh.vertical,t,I.lineStartIndex,I.lineLength,-1,T),F=e.icon.placedSymbolArray.length-1)}for(var K in n.horizontal){var J=n.horizontal[K];if(!M){N=is(J.text);var Q=s.layout.get("text-rotate").evaluate(b,{},T);M=new kf(l,t,c,u,h,J,f,d,p,Q)}var $=1===J.positionedLines.length;if(O+=Bf(e,t,J,a,s,p,b,g,I,n.vertical?Dh.horizontal:Dh.horizontalOnly,$?Object.keys(n.horizontal):[K],j,R,_,T),$)break}n.vertical&&(z+=Bf(e,t,n.vertical,a,s,p,b,g,I,Dh.vertical,["vertical"],j,F,_,T));var ee=M?M.boxStartIndex:e.collisionBoxArray.length,te=M?M.boxEndIndex:e.collisionBoxArray.length,re=E?E.boxStartIndex:e.collisionBoxArray.length,ne=E?E.boxEndIndex:e.collisionBoxArray.length,ie=S?S.boxStartIndex:e.collisionBoxArray.length,ae=S?S.boxEndIndex:e.collisionBoxArray.length,oe=C?C.boxStartIndex:e.collisionBoxArray.length,se=C?C.boxEndIndex:e.collisionBoxArray.length,le=-1,ce=function(e,t){return e&&e.circleDiameter?Math.max(e.circleDiameter,t):t};le=ce(M,le),le=ce(E,le),le=ce(S,le);var ue=(le=ce(C,le))>-1?1:0;ue&&(le*=k/Gu),e.glyphOffsetArray.length>=Jf.MAX_GLYPHS&&L("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,j.right>=0?j.right:-1,j.center>=0?j.center:-1,j.left>=0?j.left:-1,j.vertical||-1,R,F,N,ee,te,re,ne,ie,ae,oe,se,c,O,z,D,P,ue,0,f,B,U,le)}function qf(e,t,r,n){var i=e.compareText;if(t in i){for(var a=i[t],o=a.length-1;o>=0;o--)if(n.dist(a[o])0)&&("constant"!==a.value.kind||a.value.value.length>0),c="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,u=i.get("symbol-sort-key");if(this.features=[],l||c){for(var h=t.iconDependencies,f=t.glyphDependencies,d=t.availableImages,p=new Za(this.zoom),g=0,m=e;g=0;for(var P=0,O=k.sections;P=0;s--)a[s]={x:t[s].x,y:t[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=t[s-1].dist(t[s]));for(var l=0;l0},Jf.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Jf.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Jf.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Jf.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Jf.prototype.addIndicesForPlacedSymbol=function(e,t){for(var r=e.placedSymbolArray.get(t),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r=0&&n.indexOf(e)===r&&t.addIndicesForPlacedSymbol(t.text,e)})),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},ga("SymbolBucket",Jf,{omit:["layers","collisionBoxArray","features","compareText"]}),Jf.MAX_GLYPHS=65535,Jf.addDynamicAttributes=Yf;var $f=new lo({"symbol-placement":new no(lt.layout_symbol["symbol-placement"]),"symbol-spacing":new no(lt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new no(lt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new io(lt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new no(lt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new no(lt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new no(lt.layout_symbol["icon-ignore-placement"]),"icon-optional":new no(lt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new no(lt.layout_symbol["icon-rotation-alignment"]),"icon-size":new io(lt.layout_symbol["icon-size"]),"icon-text-fit":new no(lt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new no(lt.layout_symbol["icon-text-fit-padding"]),"icon-image":new io(lt.layout_symbol["icon-image"]),"icon-rotate":new io(lt.layout_symbol["icon-rotate"]),"icon-padding":new no(lt.layout_symbol["icon-padding"]),"icon-keep-upright":new no(lt.layout_symbol["icon-keep-upright"]),"icon-offset":new io(lt.layout_symbol["icon-offset"]),"icon-anchor":new io(lt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new no(lt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new no(lt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new no(lt.layout_symbol["text-rotation-alignment"]),"text-field":new io(lt.layout_symbol["text-field"]),"text-font":new io(lt.layout_symbol["text-font"]),"text-size":new io(lt.layout_symbol["text-size"]),"text-max-width":new io(lt.layout_symbol["text-max-width"]),"text-line-height":new no(lt.layout_symbol["text-line-height"]),"text-letter-spacing":new io(lt.layout_symbol["text-letter-spacing"]),"text-justify":new io(lt.layout_symbol["text-justify"]),"text-radial-offset":new io(lt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new no(lt.layout_symbol["text-variable-anchor"]),"text-anchor":new io(lt.layout_symbol["text-anchor"]),"text-max-angle":new no(lt.layout_symbol["text-max-angle"]),"text-writing-mode":new no(lt.layout_symbol["text-writing-mode"]),"text-rotate":new io(lt.layout_symbol["text-rotate"]),"text-padding":new no(lt.layout_symbol["text-padding"]),"text-keep-upright":new no(lt.layout_symbol["text-keep-upright"]),"text-transform":new io(lt.layout_symbol["text-transform"]),"text-offset":new io(lt.layout_symbol["text-offset"]),"text-allow-overlap":new no(lt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new no(lt.layout_symbol["text-ignore-placement"]),"text-optional":new no(lt.layout_symbol["text-optional"])}),ed={paint:new lo({"icon-opacity":new io(lt.paint_symbol["icon-opacity"]),"icon-color":new io(lt.paint_symbol["icon-color"]),"icon-halo-color":new io(lt.paint_symbol["icon-halo-color"]),"icon-halo-width":new io(lt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new io(lt.paint_symbol["icon-halo-blur"]),"icon-translate":new no(lt.paint_symbol["icon-translate"]),"icon-translate-anchor":new no(lt.paint_symbol["icon-translate-anchor"]),"text-opacity":new io(lt.paint_symbol["text-opacity"]),"text-color":new io(lt.paint_symbol["text-color"],{runtimeType:bt,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new io(lt.paint_symbol["text-halo-color"]),"text-halo-width":new io(lt.paint_symbol["text-halo-width"]),"text-halo-blur":new io(lt.paint_symbol["text-halo-blur"]),"text-translate":new no(lt.paint_symbol["text-translate"]),"text-translate-anchor":new no(lt.paint_symbol["text-translate-anchor"])}),layout:$f},td=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:mt,this.defaultValue=e};td.prototype.evaluate=function(e){if(e.formattedSection){var t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default},td.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},td.prototype.outputDefined=function(){return!1},td.prototype.serialize=function(){return null},ga("FormatSectionOverride",td,{omit:["defaultValue"]});var rd=function(e){function t(t){e.call(this,t,ed)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t,r){if(e.prototype.recalculate.call(this,t,r),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var n=this.layout.get("text-writing-mode");if(n){for(var i=[],a=0,o=n;a",targetMapId:n,sourceMapId:a.mapId})}}},yd.prototype.receive=function(e){var t=e.data,r=t.id;if(r&&(!t.targetMapId||this.mapId===t.targetMapId))if(""===t.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&&n()}else P()||t.mustQueue?(this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,t)},yd.prototype.process=function(){if(this.taskQueue.length){var e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}},yd.prototype.processTask=function(e,t){var r=this;if(""===t.type){var n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n(ba(t.error)):n(null,ba(t.data)))}else{var i=!1,a=R(this.globalScope)?void 0:[],o=t.hasCallback?function(t,n){i=!0,delete r.cancelCallbacks[e],r.target.postMessage({id:e,type:"",sourceMapId:r.mapId,error:t?xa(t):null,data:xa(n,a)},a)}:function(e){i=!0},s=null,l=ba(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error("Could not find function "+t.type));!i&&s&&s.cancel&&(this.cancelCallbacks[e]=s.cancel)}},yd.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var _d=function(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))};_d.prototype.setNorthEast=function(e){return this._ne=e instanceof Td?new Td(e.lng,e.lat):Td.convert(e),this},_d.prototype.setSouthWest=function(e){return this._sw=e instanceof Td?new Td(e.lng,e.lat):Td.convert(e),this},_d.prototype.extend=function(e){var t,r,n=this._sw,i=this._ne;if(e instanceof Td)t=e,r=e;else{if(!(e instanceof _d)){if(Array.isArray(e)){if(4===e.length||e.every(Array.isArray)){var a=e;return this.extend(_d.convert(a))}var o=e;return this.extend(Td.convert(o))}return this}if(t=e._sw,r=e._ne,!t||!r)return this}return n||i?(n.lng=Math.min(t.lng,n.lng),n.lat=Math.min(t.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Td(t.lng,t.lat),this._ne=new Td(r.lng,r.lat)),this},_d.prototype.getCenter=function(){return new Td((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},_d.prototype.getSouthWest=function(){return this._sw},_d.prototype.getNorthEast=function(){return this._ne},_d.prototype.getNorthWest=function(){return new Td(this.getWest(),this.getNorth())},_d.prototype.getSouthEast=function(){return new Td(this.getEast(),this.getSouth())},_d.prototype.getWest=function(){return this._sw.lng},_d.prototype.getSouth=function(){return this._sw.lat},_d.prototype.getEast=function(){return this._ne.lng},_d.prototype.getNorth=function(){return this._ne.lat},_d.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},_d.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},_d.prototype.isEmpty=function(){return!(this._sw&&this._ne)},_d.prototype.contains=function(e){var t=Td.convert(e),r=t.lng,n=t.lat,i=this._sw.lat<=n&&n<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),i&&a},_d.convert=function(e){return!e||e instanceof _d?e:new _d(e)};var wd=6371008.8,Td=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: ("+e+", "+t+")");if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Td.prototype.wrap=function(){return new Td(f(this.lng,-180,180),this.lat)},Td.prototype.toArray=function(){return[this.lng,this.lat]},Td.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Td.prototype.distanceTo=function(e){var t=Math.PI/180,r=this.lat*t,n=e.lat*t,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((e.lng-this.lng)*t);return wd*Math.acos(Math.min(i,1))},Td.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,r=t/Math.cos(Math.PI/180*this.lat);return new _d(new Td(this.lng-r,this.lat-t),new Td(this.lng+r,this.lat+t))},Td.convert=function(e){if(e instanceof Td)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Td(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"===typeof e&&null!==e)return new Td(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var kd=2*Math.PI*wd;function Ad(e){return kd*Math.cos(e*Math.PI/180)}function Md(e){return(180+e)/360}function Sd(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Ed(e,t){return e/Ad(t)}function Ld(e){return 360*e-180}function Cd(e){var t=180-360*e;return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}function Id(e,t){return e*Ad(Cd(t))}function Dd(e){return 1/Math.cos(e*Math.PI/180)}var Pd=function(e,t,r){void 0===r&&(r=0),this.x=+e,this.y=+t,this.z=+r};Pd.fromLngLat=function(e,t){void 0===t&&(t=0);var r=Td.convert(e);return new Pd(Md(r.lng),Sd(r.lat),Ed(t,r.lat))},Pd.prototype.toLngLat=function(){return new Td(Ld(this.x),Cd(this.y))},Pd.prototype.toAltitude=function(){return Id(this.z,this.y)},Pd.prototype.meterInMercatorCoordinateUnits=function(){return 1/kd*Dd(Cd(this.y))};var Od=function(e,t,r){this.z=e,this.x=t,this.y=r,this.key=Fd(0,e,e,t,r)};Od.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Od.prototype.url=function(e,t){var r=xd(this.x,this.y,this.z),n=jd(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",n).replace("{bbox-epsg-3857}",r)},Od.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new a((e.x*t-this.x)*Ds,(e.y*t-this.y)*Ds)},Od.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var zd=function(e,t){this.wrap=e,this.canonical=t,this.key=Fd(e,t.z,t.z,t.x,t.y)},Rd=function(e,t,r,n,i){this.overscaledZ=e,this.wrap=t,this.canonical=new Od(r,+n,+i),this.key=Fd(t,e,r,n,i)};function Fd(e,t,r,n,i){(e*=2)<0&&(e=-1*e-1);var a=1<0;a--)i+=(t&(n=1<this.canonical.z?new Rd(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Rd(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Rd.prototype.calculateScaledKey=function(e,t){var r=this.canonical.z-e;return e>this.canonical.z?Fd(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Fd(this.wrap*+t,e,e,this.canonical.x>>r,this.canonical.y>>r)},Rd.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>t&&e.canonical.y===this.canonical.y>>t},Rd.prototype.children=function(e){if(this.overscaledZ>=e)return[new Rd(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Rd(t,this.wrap,t,r,n),new Rd(t,this.wrap,t,r+1,n),new Rd(t,this.wrap,t,r,n+1),new Rd(t,this.wrap,t,r+1,n+1)]},Rd.prototype.isLessThan=function(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)},Nd.prototype._unpackMapbox=function(e,t,r){return(256*e*256+256*t+r)/10-1e4},Nd.prototype._unpackTerrarium=function(e,t,r){return 256*e+t+r/256-32768},Nd.prototype.getPixels=function(){return new Hl({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Nd.prototype.backfillBorder=function(e,t,r){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var n=t*this.dim,i=t*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(t){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-t*this.dim,l=-r*this.dim,c=a;c=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}},Gd.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new nu.VectorTile(new Yu(this.rawTileData)).layers,this.sourceLayerCoder=new Ud(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Gd.prototype.query=function(e,t,r,n){var i=this;this.loadVTLayers();for(var a=e.params||{},o=Ds/e.tileSize/e.scale,s=Ci(a.filter),l=e.queryGeometry,c=e.queryPadding*o,u=Yd(l),h=this.grid.query(u.minX-c,u.minY-c,u.maxX+c,u.maxY+c),f=Yd(e.cameraQueryGeometry),d=0,p=this.grid3D.query(f.minX-c,f.minY-c,f.maxX+c,f.maxY+c,(function(t,r,n,i){return Xs(e.cameraQueryGeometry,t-c,r-c,n+c,i+c)}));dn)i=!1;else if(t)if(this.expirationTime=E.maxzoom||"none"!==E.visibility&&(l(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(e){return e.id}))))}}}var L=e.mapObject(m.glyphDependencies,(function(e){return Object.keys(e).map(Number)}));Object.keys(L).length?i.send("getGlyphs",{uid:this.uid,stacks:L},(function(e,t){h||(h=e,f=t,D.call(s))})):f={};var C=Object.keys(m.iconDependencies);C.length?i.send("getImages",{icons:C,source:this.source,tileID:this.tileID,type:"icons"},(function(e,t){h||(h=e,d=t,D.call(s))})):d={};var I=Object.keys(m.patternDependencies);function D(){if(h)return a(h);if(f&&d&&p){var t=new o(f),r=new e.ImageAtlas(d,p);for(var i in g){var s=g[i];s instanceof e.SymbolBucket?(l(s.layers,this.zoom,n),e.performSymbolLayout(s,f,t.positions,d,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):s.hasPattern&&(s instanceof e.LineBucket||s instanceof e.FillBucket||s instanceof e.FillExtrusionBucket)&&(l(s.layers,this.zoom,n),s.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status="done",a(null,{buckets:e.values(g).filter((function(e){return!e.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:r,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?t.positions:null})}}I.length?i.send("getImages",{icons:I,source:this.source,tileID:this.tileID,type:"patterns"},(function(e,t){h||(h=e,p=t,D.call(s))})):p={},D.call(this)};var u=function(e,t,r,n){this.actor=e,this.layerIndex=t,this.availableImages=r,this.loadVectorData=n||c,this.loading={},this.loaded={}};u.prototype.loadTile=function(t,r){var n=this,i=t.uid;this.loading||(this.loading={});var a=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),o=this.loading[i]=new s(t);o.abort=this.loadVectorData(t,(function(t,s){if(delete n.loading[i],t||!s)return o.status="done",n.loaded[i]=o,r(t);var l=s.rawData,c={};s.expires&&(c.expires=s.expires),s.cacheControl&&(c.cacheControl=s.cacheControl);var u={};if(a){var h=a.finish();h&&(u.resourceTiming=JSON.parse(JSON.stringify(h)))}o.vectorTile=s.vectorTile,o.parse(s.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(t,n){if(t||!n)return r(t);r(null,e.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=o}))},u.prototype.reloadTile=function(e,t){var r=this,n=this.loaded,i=e.uid,a=this;if(n&&n[i]){var o=n[i];o.showCollisionBoxes=e.showCollisionBoxes;var s=function(e,n){var i=o.reloadCallback;i&&(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),t(e,n)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.prototype.abortTile=function(e,t){var r=this.loading,n=e.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),t()},u.prototype.removeTile=function(e,t){var r=this.loaded,n=e.uid;r&&r[n]&&delete r[n],t()};var h=e.window.ImageBitmap,f=function(){this.loaded={}};f.prototype.loadTile=function(t,r){var n=t.uid,i=t.encoding,a=t.rawImageData,o=h&&a instanceof h?this.getImageData(a):a,s=new e.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},f.prototype.getImageData=function(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:r.width,height:r.height},r.data)},f.prototype.removeTile=function(e){var t=this.loaded,r=e.uid;t&&t[r]&&delete t[r]};var d=p;function p(e,t){var r,n=e&&e.type;if("FeatureCollection"===n)for(r=0;r=0!==!!t&&e.reverse()}var v=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,y=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};y.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],r=0,n=this._feature.geometry;r>31}function R(e,t){for(var r=e.loadGeometry(),n=e.type,i=0,a=0,o=r.length,s=0;s>1;N(e,t,o,n,i,a%2),j(e,t,r,n,o-1,a+1),j(e,t,r,o+1,i,a+1)}}function N(e,t,r,n,i,a){for(;i>n;){if(i-n>600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);N(e,t,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var h=t[2*r+a],f=n,d=i;for(B(e,t,n,r),t[2*i+a]>h&&B(e,t,n,i);fh;)d--}t[2*n+a]===h?B(e,t,n,d):B(e,t,++d,i),d<=r&&(n=d+1),r<=d&&(i=d-1)}}function B(e,t,r,n){U(e,r,n),U(t,2*r,2*n),U(t,2*r+1,2*n+1)}function U(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function V(e,t,r,n,i,a,o){for(var s,l,c=[0,e.length-1,0],u=[];c.length;){var h=c.pop(),f=c.pop(),d=c.pop();if(f-d<=o)for(var p=d;p<=f;p++)s=t[2*p],l=t[2*p+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(e[p]);else{var g=Math.floor((d+f)/2);s=t[2*g],l=t[2*g+1],s>=r&&s<=i&&l>=n&&l<=a&&u.push(e[g]);var m=(h+1)%2;(0===h?r<=s:n<=l)&&(c.push(d),c.push(g-1),c.push(m)),(0===h?i>=s:a>=l)&&(c.push(g+1),c.push(f),c.push(m))}}return u}function q(e,t,r,n,i,a){for(var o=[0,e.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),h=o.pop();if(u-h<=a)for(var f=h;f<=u;f++)H(t[2*f],t[2*f+1],r,n)<=l&&s.push(e[f]);else{var d=Math.floor((h+u)/2),p=t[2*d],g=t[2*d+1];H(p,g,r,n)<=l&&s.push(e[d]);var m=(c+1)%2;(0===c?r-i<=p:n-i<=g)&&(o.push(h),o.push(d-1),o.push(m)),(0===c?r+i>=p:n+i>=g)&&(o.push(d+1),o.push(u),o.push(m))}}return s}function H(e,t,r,n){var i=e-r,a=t-n;return i*i+a*a}k.fromVectorTileJs=A,k.fromGeojsonVt=M,k.GeoJSONWrapper=S;var G=function(e){return e[0]},W=function(e){return e[1]},Y=function(e,t,r,n,i){void 0===t&&(t=G),void 0===r&&(r=W),void 0===n&&(n=64),void 0===i&&(i=Float64Array),this.nodeSize=n,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,o=this.ids=new a(e.length),s=this.coords=new i(2*e.length),l=0;l=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return ie(ie({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:r})}function ee(e){return e/360+.5}function te(e){var t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function re(e){return 360*(e-.5)}function ne(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function ie(e,t){for(var r in t)e[r]=t[r];return e}function ae(e){return e.x}function oe(e){return e.y}function se(e,t,r,n){for(var i,a=n,o=r-t>>1,s=r-t,l=e[t],c=e[t+1],u=e[r],h=e[r+1],f=t+3;fa)i=f,a=d;else if(d===a){var p=Math.abs(f-o);pn&&(i-t>3&&se(e,t,i,n),e[i+2]=a,r-i>3&&se(e,i,r,n))}function le(e,t,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((e-r)*o+(t-n)*s)/(o*o+s*s);l>1?(r=i,n=a):l>0&&(r+=o*l,n+=s*l)}return(o=e-r)*o+(s=t-n)*s}function ce(e,t,r,n){var i={id:"undefined"===typeof e?null:e,type:t,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ue(i),i}function ue(e){var t=e.geometry,r=e.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)he(e,t);else if("Polygon"===r||"MultiLineString"===r)for(var n=0;n0&&(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=t.length-3;t[2]=1,se(t,0,u,r),t[u+2]=1,t.size=Math.abs(o),t.start=0,t.end=t.size}function me(e,t,r,n){for(var i=0;i1?1:r}function xe(e,t,r,n,i,a,o,s){if(n/=t,a>=(r/=t)&&o=n)return null;for(var l=[],c=0;c=r&&p=n)){var g=[];if("Point"===f||"MultiPoint"===f)be(h,g,r,n,i);else if("LineString"===f)_e(h,g,r,n,i,!1,s.lineMetrics);else if("MultiLineString"===f)Te(h,g,r,n,i,!1);else if("Polygon"===f)Te(h,g,r,n,i,!0);else if("MultiPolygon"===f)for(var m=0;m=r&&o<=n&&(t.push(e[a]),t.push(e[a+1]),t.push(e[a+2]))}}function _e(e,t,r,n,i,a,o){for(var s,l,c=we(e),u=0===i?Ae:Me,h=e.start,f=0;fr&&(l=u(c,d,p,m,v,r),o&&(c.start=h+s*l)):y>n?x=r&&(l=u(c,d,p,m,v,r),b=!0),x>n&&y<=n&&(l=u(c,d,p,m,v,n),b=!0),!a&&b&&(o&&(c.end=h+s*l),t.push(c),c=we(e)),o&&(h+=s)}var _=e.length-3;d=e[_],p=e[_+1],g=e[_+2],(y=0===i?d:p)>=r&&y<=n&&ke(c,d,p,g),_=c.length-3,a&&_>=3&&(c[_]!==c[0]||c[_+1]!==c[1])&&ke(c,c[0],c[1],c[2]),c.length&&t.push(c)}function we(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function Te(e,t,r,n,i,a){for(var o=0;oo.maxX&&(o.maxX=u),h>o.maxY&&(o.maxY=h)}return o}function Pe(e,t,r,n){var i=t.geometry,a=t.type,o=[];if("Point"===a||"MultiPoint"===a)for(var s=0;s0&&t.size<(i?o:n))r.numPoints+=t.length/3;else{for(var s=[],l=0;lo)&&(r.numSimplified++,s.push(t[l]),s.push(t[l+1])),r.numPoints++;i&&ze(s,a),e.push(s)}}function ze(e,t){for(var r=0,n=0,i=e.length,a=i-2;n0===t)for(n=0,i=e.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=fe(e,t);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(n=Se(n,t)).length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function je(e,t,r){return 32*((1<=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new Y(s,ae,oe,a,Float32Array),r&&console.log("z%d: %d clusters in %dms",c,s.length,+Date.now()-u)}return r&&console.timeEnd("total time"),this},X.prototype.getClusters=function(e,t){var r=((e[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,e[1])),i=180===e[2]?180:((e[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){var o=this.getClusters([r,n,180,a],t),s=this.getClusters([-180,n,i,a],t);return o.concat(s)}for(var l=this.trees[this._limitZoom(t)],c=[],u=0,h=l.range(ee(r),te(a),ee(i),te(n));u1?this._map(c,!0):null,m=(l<<5)+(t+1)+this.points.length,v=0,y=h;v>5},X.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},X.prototype._map=function(e,t){if(e.numPoints)return t?ie({},e.properties):e.properties;var r=this.points[e.index].properties,n=this.options.map(r);return t&&n===r?ie({},n):n},Fe.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Fe.prototype.splitTile=function(e,t,r,n,i,a,o){for(var s=[e,t,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),t=s.pop(),e=s.pop();var u=1<1&&console.time("creation"),f=this.tiles[h]=De(e,t,r,n,l),this.tileCoords.push({z:t,x:r,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,r,n,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var d="z"+t;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(f.source=e,i){if(t===l.maxZoom||t===i)continue;var p=1<1&&console.time("clipping");var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=xe(e,u,r-_,r+T,0,f.minX,f.maxX,l),b=xe(e,u,r+w,r+k,0,f.minX,f.maxX,l),e=null,x&&(g=xe(x,u,n-_,n+T,1,f.minY,f.maxY,l),m=xe(x,u,n+w,n+k,1,f.minY,f.maxY,l),x=null),b&&(v=xe(b,u,n-_,n+T,1,f.minY,f.maxY,l),y=xe(b,u,n+w,n+k,1,f.minY,f.maxY,l),b=null),c>1&&console.timeEnd("clipping"),s.push(g||[],t+1,2*r,2*n),s.push(m||[],t+1,2*r,2*n+1),s.push(v||[],t+1,2*r+1,2*n),s.push(y||[],t+1,2*r+1,2*n+1)}}},Fe.prototype.getTile=function(e,t,r){var n=this.options,i=n.extent,a=n.debug;if(e<0||e>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",e,t,r);for(var l,c=e,u=t,h=r;!l&&c>0;)c--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[je(c,u,h)];return l&&l.source?(a>1&&console.log("found parent tile z%d-%d-%d",c,u,h),a>1&&console.time("drilling down"),this.splitTile(l.source,c,u,h,e,t,r),a>1&&console.timeEnd("drilling down"),this.tiles[s]?Ce(this.tiles[s],i):null):null};var Ue=function(t){function r(e,r,n,i){t.call(this,e,r,n,Be),i&&(this.loadGeoJSON=i)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&&n.request&&n.request.collectResourceTiming)&&new e.RequestPerformance(n.request);this.loadGeoJSON(n,(function(e,a){if(e||!a)return r(e);if("object"!==typeof a)return r(new Error("Input data given to '"+n.source+"' is not a valid GeoJSON object."));d(a,!0);try{t._geoJSONIndex=n.cluster?new X(Ve(n)).load(a.features):Re(a,n.geojsonVtOptions)}catch(e){return r(e)}t.loaded={};var o={};if(i){var s=i.finish();s&&(o.resourceTiming={},o.resourceTiming[n.source]=JSON.parse(JSON.stringify(s)))}r(null,o)}))}},r.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},r.prototype.reloadTile=function(e,r){var n=this.loaded,i=e.uid;return n&&n[i]?t.prototype.reloadTile.call(this,e,r):this.loadTile(e,r)},r.prototype.loadGeoJSON=function(t,r){if(t.request)e.getJSON(t.request,r);else{if("string"!==typeof t.data)return r(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."));try{return r(null,JSON.parse(t.data))}catch(n){return r(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."))}}},r.prototype.removeSource=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()},r.prototype.getClusterExpansionZoom=function(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(r){t(r)}},r.prototype.getClusterChildren=function(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(r){t(r)}},r.prototype.getClusterLeaves=function(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(r){t(r)}},r}(u);function Ve(t){var r=t.superclusterOptions,n=t.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c1?"@2x":"",l=e.getJSON(r.transformRequest(r.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(function(e,t){l=null,o||(o=e,i=t,u())})),c=e.getImage(r.transformRequest(r.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(function(e,t){c=null,o||(o=e,a=t,u())}));function u(){if(o)n(o);else if(i&&a){var t=e.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,h=l.x,f=l.y,d=l.sdf,p=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new e.RGBAImage({width:c,height:u});e.RGBAImage.copy(t,y,{x:h,y:f},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:p,sdf:d,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}function f(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}r.suppressClick=function(){e.window.addEventListener("click",u,!0),e.window.setTimeout((function(){e.window.removeEventListener("click",u,!0)}),0)},r.mousePos=function(t,r){var n=t.getBoundingClientRect();return new e.Point(r.clientX-n.left-t.clientLeft,r.clientY-n.top-t.clientTop)},r.touchPos=function(t,r){for(var n=t.getBoundingClientRect(),i=[],a=0;a=0?0:t.button},r.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var d=1,p=function(t){function r(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,r=this.requestors;t=0?1.2:1))}function b(e,t,r,n,i,a,o){for(var s=0;s65535)t(new Error("glyphs > 65535 not supported"));else if(a.ranges[s])t(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],w.loadGlyphRange(r,s,n.url,n.requestManager,(function(e,t){if(t){for(var r in t)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=t[+r]);a.ranges[s]=!0}for(var i=0,o=l;i1&&(l=e[++s]);var u=Math.abs(c-l.left),h=Math.abs(c-l.right),f=Math.min(u,h),d=void 0,p=i/r*(n+1);if(l.isDash){var g=n-Math.abs(p);d=Math.sqrt(f*f+g*g)}else d=n-Math.sqrt(f*f+p*p);this.data[o+c]=Math.max(0,Math.min(255,d+128))}},S.prototype.addRegularDash=function(e){for(var t=e.length-1;t>=0;--t){var r=e[t],n=e[t+1];r.zeroLength?e.splice(t,1):n&&n.isDash===r.isDash&&(n.left=r.left,e.splice(t,1))}var i=e[0],a=e[e.length-1];i.isDash===a.isDash&&(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=e[s],c=0;c1&&(l=e[++s]);var u=Math.abs(c-l.left),h=Math.abs(c-l.right),f=Math.min(u,h),d=l.isDash?f:-f;this.data[o+c]=Math.max(0,Math.min(255,d+128))}},S.prototype.addDash=function(t,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var a=0,o=0;o=n.minX&&t.x=n.minY&&t.y0&&(l[new e.OverscaledTileID(t.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+10&&(n.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",n))}}))},r.prototype.onAdd=function(e){this.map=e,this.load()},r.prototype.setData=function(t){var r=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(t){if(t)r.fire(new e.ErrorEvent(t));else{var n={dataType:"source",sourceDataType:"content"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new e.Event("data",n))}})),this},r.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},r.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},r.prototype.getClusterLeaves=function(e,t,r,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:r},n),this},r.prototype._updateWorkerData=function(t){var r=this;this._loaded=!1;var n=e.extend({},this.workerOptions),i=this._data;"string"===typeof i?(n.request=this.map._requestManager.transformRequest(e.browser.resolveURL(i),e.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+".loadData",n,(function(e,i){r._removed||i&&i.abandoned||(r._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[r.id]&&(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:n.source},null),t(e))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(t,r){var n=this,i=t.actor?"reloadTile":"loadTile";t.actor=this.actor;var a={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.request=this.actor.send(i,a,(function(e,a){return delete t.request,t.unloadVectorData(),t.aborted?r(null):e?r(e):(t.loadVectorData(a,n.map.painter,"reloadTile"===i),r(null))}))},r.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},r.prototype.unloadTile=function(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},r.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(e.Evented),z=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),R=function(t){function r(e,r,n,i){t.call(this),this.id=e,this.dispatcher=n,this.coordinates=r.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.load=function(t,r){var n=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new e.ErrorEvent(i)):a&&(n.image=a,t&&(n.coordinates=t),r&&r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,(function(){t.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},r.prototype.onAdd=function(e){this.map=e,this.load()},r.prototype.setCoordinates=function(t){var r=this;this.coordinates=t;var n=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=F(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(e){return r.tileID.getTilePoint(e)._round()}));return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,r=t.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,z.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.loadTile=function(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))},r.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(e.Evented);function F(t){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=t;or.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+r.start(0)+" and "+r.end(0)+"-second mark."))):this.video.currentTime=t}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,r=t.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,z.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(R),N=function(t){function r(r,n,i,a){t.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some((function(e){return!Array.isArray(e)||2!==e.length||e.some((function(e){return"number"!==typeof e}))}))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+r,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+r,null,'missing required property "coordinates"'))),n.animate&&"boolean"!==typeof n.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+r,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"===typeof n.canvas||n.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+r,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+r,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,z.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];ethis.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},J.prototype.has=function(e){return e.wrapped().key in this.data},J.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},J.prototype._getAndRemoveByKey=function(e){var t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value},J.prototype.getByKey=function(e){var t=this.data[e];return t?t[0].value:null},J.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},J.prototype.remove=function(e,t){if(!this.has(e))return this;var r=e.wrapped().key,n=void 0===t?0:this.data[r].indexOf(t),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},J.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this},J.prototype.filter=function(e){var t=[];for(var r in this.data)for(var n=0,i=this.data[r];n1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,n),e.neighboringTiles&&e.neighboringTiles[a]&&(e.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(e){return this.getTileByID(e.key)},r.prototype.getTileByID=function(e){return this._tiles[e]},r.prototype._retainLoadedChildren=function(e,t,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ<=t||a.tileID.overscaledZ>r)){for(var o=a.tileID;a&&a.tileID.overscaledZ>t+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&&a.hasData()&&(o=s)}for(var l=o;l.overscaledZ>t;)if(e[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(e,t){if(e.key in this._loadedParentTiles){var r=this._loadedParentTiles[e.key];return r&&r.tileID.overscaledZ>=t?r:null}for(var n=e.overscaledZ-1;n>=t;n--){var i=e.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(e){var t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)},r.prototype.updateCacheSize=function(e){var t=(Math.ceil(e.width/this._source.tileSize)+1)*(Math.ceil(e.height/this._source.tileSize)+1),r=5,n=Math.floor(t*r),i="number"===typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(e){var t=(e-(void 0===this._prevLng?e:this._prevLng))/360,r=Math.round(t);if(this._prevLng=e,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(t){var n=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)})):(i=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(e){return n._source.hasTile(e)})))):i=[];var a=t.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Qe(this._source.type)){for(var c={},u={},h=0,f=Object.keys(l);hthis._source.maxzoom){var m=p.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&&v.hasData()){n[m.key]=m;continue}}else{var y=p.children(this._source.maxzoom);if(n[y[0].key]&&n[y[1].key]&&n[y[2].key]&&n[y[3].key])continue}for(var x=g.wasRequested(),b=p.overscaledZ-1;b>=a;--b){var _=p.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&&x&&(g=this._addTile(_)),g&&(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var e in this._loadedParentTiles={},this._tiles){for(var t=[],r=void 0,n=this._tiles[e].tileID;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}t.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=t;a0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))},r.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},r.prototype.tilesIn=function(t,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(t):t,l=t.map((function(e){return o.pointCoordinate(e)})),c=s.map((function(e){return o.pointCoordinate(e)})),u=this.getIds(),h=1/0,f=1/0,d=-1/0,p=-1/0,g=0,m=c;g=0&&v[1].y+m>=0){var y=l.map((function(e){return s.getTilePoint(e)})),x=c.map((function(e){return s.getTilePoint(e)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x=e.browser.now())return!0}return!1},r.prototype.setFeatureState=function(e,t,r){e=e||"_geojsonTileLayer",this._state.updateState(e,t,r)},r.prototype.removeFeatureState=function(e,t,r){e=e||"_geojsonTileLayer",this._state.removeFeatureState(e,t,r)},r.prototype.getFeatureState=function(e,t){return e=e||"_geojsonTileLayer",this._state.getState(e,t)},r.prototype.setDependencies=function(e,t,r){var n=this._tiles[e];n&&n.setDependencies(t,r)},r.prototype.reloadTilesForDependencies=function(e,t){for(var r in this._tiles)this._tiles[r].hasDependency(e,t)&&this._reloadTile(r,"reloading");this._cache.filter((function(r){return!r.hasDependency(e,t)}))},r}(e.Evented);function Je(e,t){var r=Math.abs(2*e.wrap)-+(e.wrap<0),n=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||n-r||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Qe(e){return"raster"===e||"image"===e||"video"===e}function $e(){return new e.window.Worker(us.workerUrl)}Ke.maxOverzooming=10,Ke.maxUnderzooming=3;var et="mapboxgl_preloaded_worker_pool",tt=function(){this.active={}};tt.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var wt=function(e,t,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(var a=0;a=-t[0]&&r<=t[0]&&n>=-t[1]&&n<=t[1]}function Et(t,r,n,i,a,o,s,l){var c=i?t.textSizeData:t.iconSizeData,u=e.evaluateSizeForZoom(c,n.transform.zoom),h=[256/n.width*2+1,256/n.height*2+1],f=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();for(var d=t.lineVertexArray,p=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;vMath.abs(n.x-r.x)*i?{useVertical:!0}:(t===e.WritingMode.vertical?r.yn.x)?{needsFlipping:!0}:null}function It(t,r,n,i,a,o,s,l,c,u,h,f,d,p){var g,m=r/24,v=t.lineOffsetX*m,y=t.lineOffsetY*m;if(t.numGlyphs>1){var x=t.glyphStartIndex+t.numGlyphs,b=t.lineStartIndex,_=t.lineStartIndex+t.lineLength,w=Lt(m,l,v,y,n,h,f,t,c,o,d);if(!w)return{notEnoughRoom:!0};var T=At(w.first.point,s).point,k=At(w.last.point,s).point;if(i&&!n){var A=Ct(t.writingMode,T,k,p);if(A)return A}g=[w.first];for(var M=t.glyphStartIndex+1;M0?C.point:Dt(f,L,S,1,a),D=Ct(t.writingMode,S,I,p);if(D)return D}var P=Pt(m*l.getoffsetX(t.glyphStartIndex),v,y,n,h,f,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,c,o,d);if(!P)return{notEnoughRoom:!0};g=[P]}for(var O=0,z=g;O0?1:-1,g=0;i&&(p*=-1,g=Math.PI),p<0&&(g+=Math.PI);for(var m=p>0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(d),w=[];x+b<=_;){if((m+=p)=c)return null;if(y=v,w.push(v),void 0===(v=f[m])){var T=new e.Point(u.getx(m),u.gety(m)),k=At(T,h);if(k.signedDistanceFromCamera>0)v=f[m]=k.point;else{var A=m-p;v=Dt(0===x?o:new e.Point(u.getx(A),u.gety(A)),T,y,_-x+1,h)}}x+=b,b=y.dist(v)}var M=(_-x)/b,S=v.sub(y),E=S.mult(M)._add(y);E._add(S._unit()._perp()._mult(n*p));var L=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:L,path:w}}wt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},wt.prototype.insert=function(e,t,r,n,i){this._forEachCell(t,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},wt.prototype.insertCircle=function(e,t,r,n){this._forEachCell(t-n,r-n,t+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(r),this.circles.push(n)},wt.prototype._insertBoxCell=function(e,t,r,n,i,a){this.boxCells[i].push(a)},wt.prototype._insertCircleCell=function(e,t,r,n,i,a){this.circleCells[i].push(a)},wt.prototype._query=function(e,t,r,n,i,a){if(r<0||e>this.width||n<0||t>this.height)return!i&&[];var o=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(var s=0;s0:o},wt.prototype._queryCircle=function(e,t,r,n,i){var a=e-r,o=e+r,s=t-r,l=t+r;if(o<0||a>this.width||l<0||s>this.height)return!n&&[];var c=[],u={hitTest:n,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,c,u,i),n?c.length>0:c},wt.prototype.query=function(e,t,r,n,i){return this._query(e,t,r,n,!1,i)},wt.prototype.hitTest=function(e,t,r,n,i){return this._query(e,t,r,n,!0,i)},wt.prototype.hitTestCircle=function(e,t,r,n){return this._queryCircle(e,t,r,!0,n)},wt.prototype._queryCell=function(e,t,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,h=0,f=c;h=u[p+0]&&n>=u[p+1]&&(!s||s(this.boxKeys[d]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[d],x1:u[p],y1:u[p+1],x2:u[p+2],y2:u[p+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;vo*o+s*s},wt.prototype._circleAndRectCollide=function(e,t,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(e-(n+s));if(l>s+r)return!1;var c=(o-i)/2,u=Math.abs(t-(i+c));if(u>c+r)return!1;if(l<=s||u<=c)return!0;var h=l-s,f=u-c;return h*h+f*f<=r*r};var Ot=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function zt(e,t){for(var r=0;r=1;D--)I.push(L.path[D]);for(var P=1;P0){for(var F=I[0].clone(),j=I[0].clone(),N=1;N=M.x&&j.x<=S.x&&F.y>=M.y&&j.y<=S.y?[I]:j.xS.x||j.yS.y?[]:e.clipLine([I],M.x,M.y,S.x,S.y)}for(var B=0,U=R;B=this.screenRightBoundary||nthis.screenBottomBoundary},jt.prototype.isInsideGrid=function(e,t,r,n){return r>=0&&e=0&&t0?(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(g=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:m,width:r,height:n,anchor:e,textBoxScale:i,prevAnchor:g},this.markUsedJustification(f,e,h,d),f.allowVerticalPlacement&&(this.markUsedOrientation(f,d,h),this.placedOrientations[h.crossTileID]=d),{shift:v,placedGlyphBoxes:y}):void 0},Zt.prototype.placeLayerBucketPart=function(t,r,n){var i=this,a=t.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,h=a.textPixelRatio,f=a.holdingForFade,d=a.collisionBoxArray,p=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get("text-optional"),v=s.get("icon-optional"),y=s.get("text-allow-overlap"),x=s.get("icon-allow-overlap"),b="map"===s.get("text-rotation-alignment"),_="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),T="viewport-y"===s.get("symbol-z-order"),k=y&&(x||!o.hasIconData()||v),A=x&&(y||!o.hasTextData()||m);!o.collisionArrays&&d&&o.deserializeCollisionBoxes(d);var M=function(t,a){if(!r[t.crossTileID])if(f)i.placements[t.crossTileID]=new Vt(!1,!1,!1);else{var d=!1,T=!1,M=!0,S=null,E={box:null,offscreen:null},L={box:null,offscreen:null},C=null,I=null,D=null,P=0,O=0,z=0;a.textFeatureIndex?P=a.textFeatureIndex:t.useRuntimeCollisionCircles&&(P=t.featureIndex),a.verticalTextFeatureIndex&&(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=e.WritingMode.horizontal;if(o.allowVerticalPlacement&&!r&&i.prevPlacement){var a=i.prevPlacement.placedOrientations[t.crossTileID];a&&(i.placedOrientations[t.crossTileID]=a,n=a,i.markUsedOrientation(o,n,t))}return n},j=function(r,n){if(o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&a.verticalTextBox)for(var i=0,s=o.writingModes;i0&&(N=N.filter((function(e){return e!==B.anchor}))).unshift(B.anchor)}var U=function(e,r,n){for(var a=e.x2-e.x1,s=e.y2-e.y1,c=t.textBoxScale,u=w&&!x?r:null,f={box:[],offscreen:!1},p=y?2*N.length:N.length,m=0;m=N.length,k=i.attemptAnchorPlacement(v,e,a,s,c,b,_,h,l,g,T,t,o,n,u);if(k&&(f=k.placedGlyphBoxes)&&f.box&&f.box.length){d=!0,S=k.shift;break}}return f};j((function(){return U(R,a.iconBox,e.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=E&&E.box&&E.box.length;return o.allowVerticalPlacement&&!n&&t.numVerticalGlyphVertices>0&&r?U(r,a.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}})),E&&(d=E.box,M=E.offscreen);var V=F(E&&E.box);if(!d&&i.prevPlacement){var q=i.prevPlacement.variableOffsets[t.crossTileID];q&&(i.variableOffsets[t.crossTileID]=q,i.markUsedJustification(o,q.anchor,t,V))}}else{var H=function(e,r){var n=i.collisionIndex.placeCollisionBox(e,y,h,l,g.predicate);return n&&n.box&&n.box.length&&(i.markUsedOrientation(o,r,t),i.placedOrientations[t.crossTileID]=r),n};j((function(){return H(R,e.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&r?H(r,e.WritingMode.vertical):{box:null,offscreen:null}})),F(E&&E.box&&E.box.length)}}if(d=(C=E)&&C.box&&C.box.length>0,M=C&&C.offscreen,t.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),W=e.evaluateSizeForFeature(o.textSizeData,p,G),Y=s.get("text-padding"),Z=t.collisionCircleDiameter;I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,W,l,c,u,n,_,g.predicate,Z,Y),d=y||I.circles.length>0&&!I.collisionDetected,M=M&&I.offscreen}if(a.iconFeatureIndex&&(z=a.iconFeatureIndex),a.iconBox){var X=function(e){var t=w&&S?Yt(e,S.x,S.y,b,_,i.transform.angle):e;return i.collisionIndex.placeCollisionBox(t,x,h,l,g.predicate)};T=L&&L.box&&L.box.length&&a.verticalIconBox?(D=X(a.verticalIconBox)).box.length>0:(D=X(a.iconBox)).box.length>0,M=M&&D.offscreen}var K=m||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,J=v||0===t.numIconVertices;if(K||J?J?K||(T=T&&d):d=T&&d:T=d=T&&d,d&&C&&C.box&&(L&&L.box&&O?i.collisionIndex.insertCollisionBox(C.box,s.get("text-ignore-placement"),o.bucketInstanceId,O,g.ID):i.collisionIndex.insertCollisionBox(C.box,s.get("text-ignore-placement"),o.bucketInstanceId,P,g.ID)),T&&D&&i.collisionIndex.insertCollisionBox(D.box,s.get("icon-ignore-placement"),o.bucketInstanceId,z,g.ID),I&&(d&&i.collisionIndex.insertCollisionCircles(I.circles,s.get("text-ignore-placement"),o.bucketInstanceId,P,g.ID),n)){var Q=o.bucketInstanceId,$=i.collisionCircleArrays[Q];void 0===$&&($=i.collisionCircleArrays[Q]=new qt);for(var ee=0;ee=0;--E){var L=S[E];M(o.symbolInstances.get(L),o.collisionArrays[L])}else for(var C=t.symbolInstanceStart;C=0&&(t.text.placedSymbolArray.get(c).crossTileID=a>=0&&c!==a?0:n.crossTileID)}},Zt.prototype.markUsedOrientation=function(t,r,n){for(var i=r===e.WritingMode.horizontal||r===e.WritingMode.horizontalOnly?r:0,a=r===e.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o0||l>0,x=a.numIconVertices>0,b=i.placedOrientations[a.crossTileID],_=b===e.WritingMode.vertical,w=b===e.WritingMode.horizontal||b===e.WritingMode.horizontalOnly;if(y){var T=nr(v.text),k=_?ir:T;p(t.text,s,k);var A=w?ir:T;p(t.text,l,A);var M=v.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=M||_?1:0)})),a.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var S=i.variableOffsets[a.crossTileID];S&&i.markUsedJustification(t,S.anchor,a,b);var E=i.placedOrientations[a.crossTileID];E&&(i.markUsedJustification(t,"left",a,E),i.markUsedOrientation(t,E,a))}if(x){var L=nr(v.icon),C=!(f&&a.verticalPlacedIconSymbolIndex&&_);if(a.placedIconSymbolIndex>=0){var I=C?L:ir;p(t.icon,a.numIconVertices,I),t.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=v.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex>=0){var D=C?ir:L;p(t.icon,a.numVerticalIconVertices,D),t.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden()}}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var P=t.collisionArrays[n];if(P){var O=new e.Point(0,0);if(P.textBox||P.verticalTextBox){var z=!0;if(c){var R=i.variableOffsets[g];R?(O=Wt(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),u&&O._rotate(h?i.transform.angle:-i.transform.angle)):z=!1}P.textBox&&Xt(t.textCollisionBox.collisionVertexArray,v.text.placed,!z||_,O.x,O.y),P.verticalTextBox&&Xt(t.textCollisionBox.collisionVertexArray,v.text.placed,!z||w,O.x,O.y)}var F=Boolean(!w&&P.verticalIconBox);P.iconBox&&Xt(t.iconCollisionBox.collisionVertexArray,v.icon.placed,F,f?O.x:0,f?O.y:0),P.verticalIconBox&&Xt(t.iconCollisionBox.collisionVertexArray,v.icon.placed,!F,f?O.x:0,f?O.y:0)}}},m=0;me},Zt.prototype.setStale=function(){this.stale=!0};var Kt=Math.pow(2,25),Jt=Math.pow(2,24),Qt=Math.pow(2,17),$t=Math.pow(2,16),er=Math.pow(2,9),tr=Math.pow(2,8),rr=Math.pow(2,1);function nr(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,r=Math.floor(127*e.opacity);return r*Kt+t*Jt+r*Qt+t*$t+r*er+t*tr+r*rr+t}var ir=0,ar=function(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ar.prototype.continuePlacement=function(e,t,r,n,i){for(var a=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=r[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new ar(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},or.prototype.commit=function(e){return this.placement.commit(e),this.placement};var sr=512/e.EXTENT/2,lr=function(e,t,r){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;ne.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(e)&&l.findMatches(t.symbolInstances,e,i)}else{var c=o[e.scaledTo(Number(a)).key];c&&c.findMatches(t.symbolInstances,e,i)}}for(var u=0;u0)throw new Error("Unimplemented: "+i.map((function(e){return e.command})).join(", ")+".");return n.forEach((function(e){"setTransition"!==e.command&&r[e.command].apply(r,e.args)})),this.stylesheet=t,!0},r.prototype.addImage=function(t,r){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,r),this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.fire(new e.Event("data",{dataType:"style"}))},r.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},r.prototype.getImage=function(e){return this.imageManager.getImage(e)},r.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.fire(new e.Event("data",{dataType:"style"}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(t,r,n){var i=this;if(void 0===n&&(n={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!r.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(r).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(r.type)>=0)||!this._validate(e.validateStyle.source,"sources."+t,r,null,n)){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var a=this.sourceCaches[t]=new Ke(t,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:t}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+r+'" is using it.')));var n=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],n.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},r.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},r.prototype.addLayer=function(t,r,n){void 0===n&&(n={}),this._checkLoaded();var i=t.id;if(this.getLayer(i))this.fire(new e.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var a;if("custom"===t.type){if(fr(this,e.validateCustomStyleLayer(t)))return;a=e.createStyleLayer(t)}else{if("object"===typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateStyle.layer,"layers."+i,t,{arrayIndex:-1},n))return;a=e.createStyleLayer(t),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&&-1===o)this.fire(new e.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&"custom"!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}}},r.prototype.moveLayer=function(t,r){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==r){var n=this._order.indexOf(t);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&&-1===i?this.fire(new e.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.'))):(this._order.splice(i,0,t),this._layerOrderChanged=!0)}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},r.prototype.removeLayer=function(t){this._checkLoaded();var r=this._layers[t];if(r){r.setEventedParent(null);var n=this._order.indexOf(t);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=r,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],r.onRemove&&r.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},r.prototype.getLayer=function(e){return this._layers[e]},r.prototype.hasLayer=function(e){return e in this._layers},r.prototype.setLayerZoomRange=function(t,r,n){this._checkLoaded();var i=this.getLayer(t);i?i.minzoom===r&&i.maxzoom===n||(null!=r&&(i.minzoom=r),null!=n&&(i.maxzoom=n),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},r.prototype.setFilter=function(t,r,n){void 0===n&&(n={}),this._checkLoaded();var i=this.getLayer(t);if(i){if(!e.deepEqual(i.filter,r))return null===r||void 0===r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(e.validateStyle.filter,"layers."+i.id+".filter",r,null,n)||(i.filter=e.clone$1(r),this._updateLayer(i)))}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},r.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},r.prototype.setLayoutProperty=function(t,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(t);a?e.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getLayoutProperty=function(t,r){var n=this.getLayer(t);if(n)return n.getLayoutProperty(r);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},r.prototype.setPaintProperty=function(t,r,n,i){void 0===i&&(i={}),this._checkLoaded();var a=this.getLayer(t);a?e.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&&this._updateLayer(a),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},r.prototype.setFeatureState=function(t,r){this._checkLoaded();var n=t.source,i=t.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;"geojson"===o&&i?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||i?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),a.setFeatureState(i,t.id,r)):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.removeFeatureState=function(t,r){this._checkLoaded();var n=t.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o="vector"===a?t.sourceLayer:void 0;"vector"!==a||o?r&&"string"!==typeof t.id&&"number"!==typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):i.removeFeatureState(o,t.id,r):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.getFeatureState=function(t){this._checkLoaded();var r=t.source,n=t.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if("vector"!==i.getSource().type||n)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(n,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},r.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,(function(e){return e.serialize()})),layers:this._serializeLayers(this._order)},(function(e){return void 0!==e}))},r.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,r=function(e){return"fill-extrusion"===t._layers[e].type},n={},i=[],a=this._order.length-1;a>=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=e;s=0;p--){var g=this._order[p];if(r(g))for(var m=i.length-1;m>=0;m--){var v=i[m].feature;if(n[v.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Ir="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Dr="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Pr="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",Or="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",zr="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",Rr="#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Fr="attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}",jr="varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Nr="attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}",Br="uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Ur="uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}",Vr="uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",qr="uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}",Hr="varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Gr="uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}",Wr="uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Yr="uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}",Zr="#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Xr="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Kr="uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Jr="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Qr="uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",$r="\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}",en="uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",tn="\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}",rn="uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",nn="\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}",an="uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",on="\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}",sn="uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",ln="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",cn="uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",un="const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}",hn="#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",fn="const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}",dn="#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",pn="const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}",gn=Un("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),mn=Un(yr,xr),vn=Un(br,_r),yn=Un(wr,Tr),xn=Un(kr,Ar),bn=Un(Mr,Sr),_n=Un(Er,Lr),wn=Un(Cr,Ir),Tn=Un(Dr,Pr),kn=Un(Or,zr),An=Un(Rr,Fr),Mn=Un(jr,Nr),Sn=Un(Br,Ur),En=Un(Vr,qr),Ln=Un(Hr,Gr),Cn=Un(Wr,Yr),In=Un(Zr,Xr),Dn=Un(Kr,Jr),Pn=Un(Qr,$r),On=Un(en,tn),zn=Un(rn,nn),Rn=Un(an,on),Fn=Un(sn,ln),jn=Un(cn,un),Nn=Un(hn,fn),Bn=Un(dn,pn);function Un(e,t){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:e=e.replace(r,(function(e,t,r,i,a){return n[a]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nvarying "+r+" "+i+" "+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n"})),vertexSource:t=t.replace(r,(function(e,t,r,i,a){var o="float"===i?"vec2":"vec4",s=a.match(/color/)?"color":o;return n[a]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+r+" "+o+" a_"+a+";\nvarying "+r+" "+i+" "+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = a_"+a+";\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = unpack_mix_"+s+"(a_"+a+", u_"+a+"_t);\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+r+" "+o+" a_"+a+";\n#else\nuniform "+r+" "+i+" u_"+a+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = a_"+a+";\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+r+" "+i+" "+a+" = unpack_mix_"+s+"(a_"+a+", u_"+a+"_t);\n#else\n "+r+" "+i+" "+a+" = u_"+a+";\n#endif\n"}))}}var Vn=Object.freeze({__proto__:null,prelude:gn,background:mn,backgroundPattern:vn,circle:yn,clippingMask:xn,heatmap:bn,heatmapTexture:_n,collisionBox:wn,collisionCircle:Tn,debug:kn,fill:An,fillOutline:Mn,fillOutlinePattern:Sn,fillPattern:En,fillExtrusion:Ln,fillExtrusionPattern:Cn,hillshadePrepare:In,hillshade:Dn,line:Pn,lineGradient:On,linePattern:zn,lineSDF:Rn,raster:Fn,symbolIcon:jn,symbolSDF:Nn,symbolTextAndIcon:Bn}),qn=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};qn.prototype.bind=function(e,t,r,n,i,a,o,s){this.context=e;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&&c>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}function Wn(e,t,r,n){var i=r.imageManager.getPattern(e.from.toString()),a=r.imageManager.getPattern(e.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,h=u*(n.tileID.canonical.x+n.tileID.wrap*c),f=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Nt(n,1,r.transform.tileZoom),u_pixel_coord_upper:[h>>16,f>>16],u_pixel_coord_lower:[65535&h,65535&f]}}Hn.prototype.draw=function(e,t,r,n,i,a,o,s,l,c,u,h,f,d,p,g){var m,v=e.gl;if(!this.failedToCreate){for(var y in e.program.set(this.program),e.setDepthMode(r),e.setStencilMode(n),e.setColorMode(i),e.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);d&&d.setUniforms(e,this.binderUniforms,h,{zoom:f});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[t],b=0,_=u.get();b<_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new qn)).bind(e,this,l,d?d.getPaintVertexBuffers():[],c,w.vertexOffset,p,g),v.drawElements(t,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var Yn=function(t,r,n,i){var a=r.style.light,o=a.properties.get("position"),s=[o.x,o.y,o.z],l=e.create$1();"viewport"===a.properties.get("anchor")&&e.fromRotation(l,-r.transform.angle),e.transformMat3(s,s,l);var c=a.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:a.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Zn=function(t,r,n,i,a,o,s){return e.extend(Yn(t,r,n,i),Gn(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},Xn=function(e){return{u_matrix:e}},Kn=function(t,r,n,i){return e.extend(Xn(t),Gn(n,r,i))},Jn=function(e,t){return{u_matrix:e,u_world:t}},Qn=function(t,r,n,i,a){return e.extend(Kn(t,r,n,i),{u_world:a})},$n=function(t,r,n,i){var a,o,s=t.transform;if("map"===i.paint.get("circle-pitch-alignment")){var l=Nt(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(r.posMatrix,n,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+a,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:o}},ei=function(e,t,r){var n=Nt(r,1,t.zoom),i=Math.pow(2,t.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[t.pixelsToGLUnits[0]/(n*i),t.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},ti=function(e,t,r){return{u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},ri=function(e,t,r){return void 0===r&&(r=1),{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:r}},ni=function(e){return{u_matrix:e}},ii=function(e,t,r,n){return{u_matrix:e,u_extrude_scale:Nt(t,1,r),u_intensity:n}},ai=function(t,r,n,i){var a=e.create();e.ortho(a,0,t.width,t.height,0,0,1);var o=t.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_color_ramp:i,u_opacity:r.paint.get("heatmap-opacity")}},oi=function(e,t,r){var n=r.paint.get("hillshade-shadow-color"),i=r.paint.get("hillshade-highlight-color"),a=r.paint.get("hillshade-accent-color"),o=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(o-=e.transform.angle);var s=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),s),u_image:0,u_latrange:li(e,t.tileID),u_light:[r.paint.get("hillshade-exaggeration"),o],u_shadow:n,u_highlight:i,u_accent:a}},si=function(t,r,n){var i=r.stride,a=e.create();return e.ortho(a,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(a,a,[0,-e.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:t.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}};function li(t,r){var n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new e.MercatorCoordinate(0,i/n).toLngLat().lat,new e.MercatorCoordinate(0,(i+1)/n).toLngLat().lat]}var ci=function(t,r,n){var i=t.transform;return{u_matrix:pi(t,r,n),u_ratio:1/Nt(r,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},ui=function(t,r,n){return e.extend(ci(t,r,n),{u_image:0})},hi=function(t,r,n,i){var a=t.transform,o=di(r,a);return{u_matrix:pi(t,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/Nt(r,1,a.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},fi=function(t,r,n,i,a){var o=t.transform,s=t.lineAtlas,l=di(r,o),c="round"===n.layout.get("line-cap"),u=s.getDash(i.from,c),h=s.getDash(i.to,c),f=u.width*a.fromScale,d=h.width*a.toScale;return e.extend(ci(t,r,n),{u_patternscale_a:[l/f,-u.height/2],u_patternscale_b:[l/d,-h.height/2],u_sdfgamma:s.width/(256*Math.min(f,d)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:h.y,u_mix:a.t})};function di(e,t){return 1/Nt(e,1,t.tileZoom)}function pi(e,t,r){return e.translatePosMatrix(t.tileID.posMatrix,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}var gi=function(e,t,r,n,i){return{u_matrix:e,u_tl_parent:t,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:yi(i.paint.get("raster-saturation")),u_contrast_factor:vi(i.paint.get("raster-contrast")),u_spin_weights:mi(i.paint.get("raster-hue-rotate"))}};function mi(e){e*=Math.PI/180;var t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function vi(e){return e>0?1/(1-e):1+e}function yi(e){return e>0?1-1/(1.001-e):-e}var xi,bi=function(e,t,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},_i=function(t,r,n,i,a,o,s,l,c,u,h){var f=a.transform;return e.extend(bi(t,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+h})},wi=function(t,r,n,i,a,o,s,l,c,u){return e.extend(_i(t,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Ti=function(e,t,r){return{u_matrix:e,u_opacity:t,u_color:r}},ki=function(t,r,n,i,a,o){return e.extend(Wn(i,o,n,a),{u_matrix:t,u_opacity:r})},Ai={fillExtrusion:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_lightpos:new e.Uniform3f(t,r.u_lightpos),u_lightintensity:new e.Uniform1f(t,r.u_lightintensity),u_lightcolor:new e.Uniform3f(t,r.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,r.u_vertical_gradient),u_opacity:new e.Uniform1f(t,r.u_opacity)}},fillExtrusionPattern:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_lightpos:new e.Uniform3f(t,r.u_lightpos),u_lightintensity:new e.Uniform1f(t,r.u_lightintensity),u_lightcolor:new e.Uniform3f(t,r.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,r.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,r.u_height_factor),u_image:new e.Uniform1i(t,r.u_image),u_texsize:new e.Uniform2f(t,r.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,r.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,r.u_scale),u_fade:new e.Uniform1f(t,r.u_fade),u_opacity:new e.Uniform1f(t,r.u_opacity)}},fill:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix)}},fillPattern:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_image:new e.Uniform1i(t,r.u_image),u_texsize:new e.Uniform2f(t,r.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,r.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,r.u_scale),u_fade:new e.Uniform1f(t,r.u_fade)}},fillOutline:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_world:new e.Uniform2f(t,r.u_world)}},fillOutlinePattern:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_world:new e.Uniform2f(t,r.u_world),u_image:new e.Uniform1i(t,r.u_image),u_texsize:new e.Uniform2f(t,r.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,r.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,r.u_scale),u_fade:new e.Uniform1f(t,r.u_fade)}},circle:function(t,r){return{u_camera_to_center_distance:new e.Uniform1f(t,r.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,r.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,r.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,r.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,r.u_matrix)}},collisionBox:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,r.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,r.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,r.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,r.u_overscale_factor)}},collisionCircle:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,r.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,r.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,r.u_viewport_size)}},debug:function(t,r){return{u_color:new e.UniformColor(t,r.u_color),u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_overlay:new e.Uniform1i(t,r.u_overlay),u_overlay_scale:new e.Uniform1f(t,r.u_overlay_scale)}},clippingMask:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix)}},heatmap:function(t,r){return{u_extrude_scale:new e.Uniform1f(t,r.u_extrude_scale),u_intensity:new e.Uniform1f(t,r.u_intensity),u_matrix:new e.UniformMatrix4f(t,r.u_matrix)}},heatmapTexture:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_world:new e.Uniform2f(t,r.u_world),u_image:new e.Uniform1i(t,r.u_image),u_color_ramp:new e.Uniform1i(t,r.u_color_ramp),u_opacity:new e.Uniform1f(t,r.u_opacity)}},hillshade:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_image:new e.Uniform1i(t,r.u_image),u_latrange:new e.Uniform2f(t,r.u_latrange),u_light:new e.Uniform2f(t,r.u_light),u_shadow:new e.UniformColor(t,r.u_shadow),u_highlight:new e.UniformColor(t,r.u_highlight),u_accent:new e.UniformColor(t,r.u_accent)}},hillshadePrepare:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_image:new e.Uniform1i(t,r.u_image),u_dimension:new e.Uniform2f(t,r.u_dimension),u_zoom:new e.Uniform1f(t,r.u_zoom),u_maxzoom:new e.Uniform1f(t,r.u_maxzoom),u_unpack:new e.Uniform4f(t,r.u_unpack)}},line:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_ratio:new e.Uniform1f(t,r.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,r.u_units_to_pixels)}},lineGradient:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_ratio:new e.Uniform1f(t,r.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,r.u_units_to_pixels),u_image:new e.Uniform1i(t,r.u_image)}},linePattern:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_texsize:new e.Uniform2f(t,r.u_texsize),u_ratio:new e.Uniform1f(t,r.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_image:new e.Uniform1i(t,r.u_image),u_units_to_pixels:new e.Uniform2f(t,r.u_units_to_pixels),u_scale:new e.Uniform3f(t,r.u_scale),u_fade:new e.Uniform1f(t,r.u_fade)}},lineSDF:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_ratio:new e.Uniform1f(t,r.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,r.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,r.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,r.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,r.u_sdfgamma),u_image:new e.Uniform1i(t,r.u_image),u_tex_y_a:new e.Uniform1f(t,r.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,r.u_tex_y_b),u_mix:new e.Uniform1f(t,r.u_mix)}},raster:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_tl_parent:new e.Uniform2f(t,r.u_tl_parent),u_scale_parent:new e.Uniform1f(t,r.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,r.u_buffer_scale),u_fade_t:new e.Uniform1f(t,r.u_fade_t),u_opacity:new e.Uniform1f(t,r.u_opacity),u_image0:new e.Uniform1i(t,r.u_image0),u_image1:new e.Uniform1i(t,r.u_image1),u_brightness_low:new e.Uniform1f(t,r.u_brightness_low),u_brightness_high:new e.Uniform1f(t,r.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,r.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,r.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,r.u_spin_weights)}},symbolIcon:function(t,r){return{u_is_size_zoom_constant:new e.Uniform1i(t,r.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,r.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,r.u_size_t),u_size:new e.Uniform1f(t,r.u_size),u_camera_to_center_distance:new e.Uniform1f(t,r.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,r.u_pitch),u_rotate_symbol:new e.Uniform1i(t,r.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,r.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,r.u_fade_change),u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,r.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,r.u_coord_matrix),u_is_text:new e.Uniform1i(t,r.u_is_text),u_pitch_with_map:new e.Uniform1i(t,r.u_pitch_with_map),u_texsize:new e.Uniform2f(t,r.u_texsize),u_texture:new e.Uniform1i(t,r.u_texture)}},symbolSDF:function(t,r){return{u_is_size_zoom_constant:new e.Uniform1i(t,r.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,r.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,r.u_size_t),u_size:new e.Uniform1f(t,r.u_size),u_camera_to_center_distance:new e.Uniform1f(t,r.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,r.u_pitch),u_rotate_symbol:new e.Uniform1i(t,r.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,r.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,r.u_fade_change),u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,r.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,r.u_coord_matrix),u_is_text:new e.Uniform1i(t,r.u_is_text),u_pitch_with_map:new e.Uniform1i(t,r.u_pitch_with_map),u_texsize:new e.Uniform2f(t,r.u_texsize),u_texture:new e.Uniform1i(t,r.u_texture),u_gamma_scale:new e.Uniform1f(t,r.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,r.u_is_halo)}},symbolTextAndIcon:function(t,r){return{u_is_size_zoom_constant:new e.Uniform1i(t,r.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,r.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,r.u_size_t),u_size:new e.Uniform1f(t,r.u_size),u_camera_to_center_distance:new e.Uniform1f(t,r.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,r.u_pitch),u_rotate_symbol:new e.Uniform1i(t,r.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,r.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,r.u_fade_change),u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,r.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,r.u_coord_matrix),u_is_text:new e.Uniform1i(t,r.u_is_text),u_pitch_with_map:new e.Uniform1i(t,r.u_pitch_with_map),u_texsize:new e.Uniform2f(t,r.u_texsize),u_texsize_icon:new e.Uniform2f(t,r.u_texsize_icon),u_texture:new e.Uniform1i(t,r.u_texture),u_texture_icon:new e.Uniform1i(t,r.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,r.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,r.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,r.u_is_halo)}},background:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_opacity:new e.Uniform1f(t,r.u_opacity),u_color:new e.UniformColor(t,r.u_color)}},backgroundPattern:function(t,r){return{u_matrix:new e.UniformMatrix4f(t,r.u_matrix),u_opacity:new e.Uniform1f(t,r.u_opacity),u_image:new e.Uniform1i(t,r.u_image),u_pattern_tl_a:new e.Uniform2f(t,r.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,r.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,r.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,r.u_pattern_br_b),u_texsize:new e.Uniform2f(t,r.u_texsize),u_mix:new e.Uniform1f(t,r.u_mix),u_pattern_size_a:new e.Uniform2f(t,r.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,r.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,r.u_scale_a),u_scale_b:new e.Uniform1f(t,r.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,r.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,r.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,r.u_tile_units_to_pixels)}}};function Mi(t,r,n,i,a,o,s){for(var l=t.context,c=l.gl,u=t.useProgram("collisionBox"),h=[],f=0,d=0,p=0;p0){var _=e.create(),w=y;e.mul(_,v.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(_,_,v.placementViewportMatrix),h.push({circleArray:b,circleOffset:d,transform:w,invTransform:_}),d=f+=b.length/4}x&&u.draw(l,c.LINES,je.disabled,Ue.disabled,t.colorModeForRenderPass(),Ze.disabled,ei(y,t.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,t.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&&h.length){var T=t.useProgram("collisionCircle"),k=new e.StructArrayLayout2f1f2i16;k.resize(4*f),k._trim();for(var A=0,M=0,S=h;M=0&&(g[v.associatedIconIndex]={shiftedAnchor:S,angle:E})}else zt(v.numGlyphs,d)}if(h){p.clear();for(var C=t.icon.placedSymbolArray,I=0;I0){var s=e.browser.now(),l=(s-t.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),h=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),f=!r||Math.abs(r.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),d=f&&t.refreshedUponExpiration?1:e.clamp(f?l:1-c,0,1);return t.refreshedUponExpiration&&l>=1&&(t.refreshedUponExpiration=!1),r?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}function Ji(e,t,r){var n=r.paint.get("background-color"),i=r.paint.get("background-opacity");if(0!==i){var a=e.context,o=a.gl,s=e.transform,l=s.tileSize,c=r.paint.get("background-pattern");if(!e.isPatternMissing(c)){var u=!c&&1===n.a&&1===i&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===u){var h=Ue.disabled,f=e.depthModeForSublayer(0,"opaque"===u?je.ReadWrite:je.ReadOnly),d=e.colorModeForRenderPass(),p=e.useProgram(c?"backgroundPattern":"background"),g=s.coveringTiles({tileSize:l});c&&(a.activeTexture.set(o.TEXTURE0),e.imageManager.bind(e.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v "+n.overscaledZ),ua(t,v+" "+p+"kb"),s.draw(i,a.TRIANGLES,l,c,Ge.alphaBlended,Ze.disabled,ri(o,e.Color.transparent,m),h,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}function ua(e,t){e.initDebugOverlayCanvas();var r=e.debugOverlayCanvas,n=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,r.width,r.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}function ha(e,t,r){var n=e.context,i=r.implementation;if("offscreen"===e.renderPass){var a=i.prerender;a&&(e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),a.call(i,n.gl,e.transform.customLayerMatrix()),n.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),n.setStencilMode(Ue.disabled);var o="3d"===i.renderingMode?new je(e.context.gl.LEQUAL,je.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,je.ReadOnly);n.setDepthMode(o),i.render(n.gl,e.transform.customLayerMatrix()),n.setDirty(),e.setBaseState(),n.bindFramebuffer.set(null)}}var fa={symbol:Li,circle:Ri,heatmap:Fi,line:Ui,fill:Vi,"fill-extrusion":Hi,hillshade:Wi,raster:Xi,background:Ji,debug:la,custom:ha},da=function(e,t){this.context=new Xe(e),this.transform=t,this._tileTextures={},this.setup(),this.numSublayers=Ke.maxUnderzooming+Ke.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new hr,this.gpuTimers={}};da.prototype.resize=function(t,r){if(this.width=t*e.browser.devicePixelRatio,this.height=r*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n256&&this.clearStencil(),r.setColorMode(Ge.disabled),r.setDepthMode(je.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var a=0,o=t;a256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new Ue({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},da.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new Ue({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},da.prototype.stencilConfigForOverlap=function(e){var t,r=this.context.gl,n=e.sort((function(e,t){return t.overscaledZ-e.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();for(var o={},s=0;s=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],T=a[w.source],k=u[w.source];this._renderTileClippingMasks(w,k),this.renderLayer(this,T,w,k)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?t.pop():null},da.prototype.isPatternMissing=function(e){if(!e)return!1;if(!e.from||!e.to)return!0;var t=this.imageManager.getPattern(e.from.toString()),r=this.imageManager.getPattern(e.to.toString());return!t||!r},da.prototype.useProgram=function(e,t){this.cache=this.cache||{};var r=""+e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[r]||(this.cache[r]=new Hn(this.context,Vn[e],t,Ai[e],this._showOverdrawInspector)),this.cache[r]},da.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},da.prototype.setBaseState=function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)},da.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var t=this.context.gl;this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,t.RGBA)}},da.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var pa=function(e,t){this.points=e,this.planes=t};pa.fromInvProjectionMatrix=function(t,r,n){var i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],a=Math.pow(2,n),o=i.map((function(r){return e.transformMat4([],r,t)})).map((function(t){return e.scale$1([],t,1/t[3]/r*a)})),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(t){var r=e.sub([],o[t[0]],o[t[1]]),n=e.sub([],o[t[2]],o[t[1]]),i=e.normalize([],e.cross([],r,n)),a=-e.dot(i,o[t[1]]);return i.concat(a)}));return new pa(o,s)};var ga=function(t,r){this.min=t,this.max=r,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};ga.prototype.quadrant=function(t){for(var r=[t%2===0,t<2],n=e.clone$2(this.min),i=e.clone$2(this.max),a=0;a=0;if(0===o)return 0;o!==r.length&&(n=!1)}if(n)return 2;for(var l=0;l<3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,h=0;hthis.max[l]-this.min[l])return 0}return 1};var ma=function(e,t,r,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=0),isNaN(e)||e<0||isNaN(t)||t<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=r,this.right=n};ma.prototype.interpolate=function(t,r,n){return null!=r.top&&null!=t.top&&(this.top=e.number(t.top,r.top,n)),null!=r.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,r.bottom,n)),null!=r.left&&null!=t.left&&(this.left=e.number(t.left,r.left,n)),null!=r.right&&null!=t.right&&(this.right=e.number(t.right,r.right,n)),this},ma.prototype.getCenter=function(t,r){var n=e.clamp((this.left+t-this.right)/2,0,t),i=e.clamp((this.top+r-this.bottom)/2,0,r);return new e.Point(n,i)},ma.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right},ma.prototype.clone=function(){return new ma(this.top,this.bottom,this.left,this.right)},ma.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var va=function(t,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=t||0,this._maxZoom=r||22,this._minPitch=void 0===n||null===n?0:n,this._maxPitch=void 0===i||null===i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new ma,this._posMatrixCache={},this._alignedPosMatrixCache={}},ya={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};function xa(e,t){var r=!1,n=null,i=function(){n=null,r&&(e(),n=setTimeout(i,t),r=!1)};return function(){return r=!0,n||i(),n}}va.prototype.clone=function(){var e=new va(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._calcMatrices(),e},ya.minZoom.get=function(){return this._minZoom},ya.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},ya.maxZoom.get=function(){return this._maxZoom},ya.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},ya.minPitch.get=function(){return this._minPitch},ya.minPitch.set=function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))},ya.maxPitch.get=function(){return this._maxPitch},ya.maxPitch.set=function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))},ya.renderWorldCopies.get=function(){return this._renderWorldCopies},ya.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},ya.worldSize.get=function(){return this.tileSize*this.scale},ya.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ya.size.get=function(){return new e.Point(this.width,this.height)},ya.bearing.get=function(){return-this.angle/Math.PI*180},ya.bearing.set=function(t){var r=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ya.pitch.get=function(){return this._pitch/Math.PI*180},ya.pitch.set=function(t){var r=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},ya.fov.get=function(){return this._fov/Math.PI*180},ya.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},ya.zoom.get=function(){return this._zoom},ya.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},ya.center.get=function(){return this._center},ya.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},ya.padding.get=function(){return this._edgeInsets.toJSON()},ya.padding.set=function(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())},ya.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},va.prototype.isPaddingEqual=function(e){return this._edgeInsets.equals(e)},va.prototype.interpolatePadding=function(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this._constrain(),this._calcMatrices()},va.prototype.coveringZoomLevel=function(e){var t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)},va.prototype.getVisibleUnwrappedCoordinates=function(t){var r=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new e.Point(0,0)),i=this.pointCoordinate(new e.Point(this.width,0)),a=this.pointCoordinate(new e.Point(this.width,this.height)),o=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=1,u=s-c;u<=l+c;u++)0!==u&&r.push(new e.UnwrappedTileID(u,t));return r},va.prototype.coveringTiles=function(t){var r=this.coveringZoomLevel(t),n=r;if(void 0!==t.minzoom&&rt.maxzoom&&(r=t.maxzoom);var i=e.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=pa.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=r);var c=3,u=function(e){return{aabb:new ga([e*a,0,0],[(e+1)*a,a,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}},h=[],f=[],d=r,p=t.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var g=1;g<=3;g++)h.push(u(-g)),h.push(u(g));for(h.push(u(0));h.length>0;){var m=h.pop(),v=m.x,y=m.y,x=m.fullyVisible;if(!x){var b=m.aabb.intersects(s);if(0===b)continue;x=2===b}var _=m.aabb.distanceX(o),w=m.aabb.distanceY(o),T=Math.max(Math.abs(_),Math.abs(w)),k=c+(1<k&&m.zoom>=l)f.push({tileID:new e.OverscaledTileID(m.zoom===d?p:m.zoom,m.wrap,m.zoom,v,y),distanceSq:e.sqrLen([o[0]-.5-v,o[1]-.5-y])});else for(var A=0;A<4;A++){var M=(v<<1)+A%2,S=(y<<1)+(A>>1);h.push({aabb:m.aabb.quadrant(A),zoom:m.zoom+1,x:M,y:S,wrap:m.wrap,fullyVisible:x})}}return f.sort((function(e,t){return e.distanceSq-t.distanceSq})).map((function(e){return e.tileID}))},va.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},ya.unmodified.get=function(){return this._unmodified},va.prototype.zoomScale=function(e){return Math.pow(2,e)},va.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},va.prototype.project=function(t){var r=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(r)*this.worldSize)},va.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},ya.point.get=function(){return this.project(this.center)},va.prototype.setLocationAtPoint=function(t,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(t),o=new e.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},va.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},va.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},va.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},va.prototype.coordinateLocation=function(e){return e.toLngLat()},va.prototype.pointCoordinate=function(t){var r=0,n=[t.x,t.y,0,1],i=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(i,i,this.pixelMatrixInverse);var a=n[3],o=i[3],s=n[0]/a,l=i[0]/o,c=n[1]/a,u=i[1]/o,h=n[2]/a,f=i[2]/o,d=h===f?0:(r-h)/(f-h);return new e.MercatorCoordinate(e.number(s,l,d)/this.worldSize,e.number(c,u,d)/this.worldSize)},va.prototype.coordinatePoint=function(t){var r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(r,r,this.pixelMatrix),new e.Point(r[0]/r[3],r[1]/r[3])},va.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},va.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},va.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},va.prototype.calculatePosMatrix=function(t,r){void 0===r&&(r=!1);var n=t.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=t.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*t.wrap,l=e.identity(new Float64Array(16));return e.translate(l,l,[s*o,a.y*o,0]),e.scale(l,l,[o/e.EXTENT,o/e.EXTENT,1]),e.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},va.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},va.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var h=this.latRange;a=e.mercatorYfromLat(h[1])*this.worldSize,t=(o=e.mercatorYfromLat(h[0])*this.worldSize)-ao&&(i=o-m)}if(this.lngRange){var v=d.x,y=c.x/2;v-yl&&(n=l-y)}void 0===n&&void 0===i||(this.center=this.unproject(new e.Point(void 0!==n?n:d.x,void 0!==i?i:d.y))),this._unmodified=u,this._constraining=!1}},va.prototype._calcMatrices=function(){if(this.height){var t=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(t)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,h=new Float64Array(16);e.perspective(h,this._fov,this.width/this.height,u,c),h[8]=2*-r.x/this.width,h[9]=2*r.y/this.height,e.scale(h,h,[1,-1,1]),e.translate(h,h,[0,0,-this.cameraToCenterDistance]),e.rotateX(h,h,this._pitch),e.rotateZ(h,h,this.angle),e.translate(h,h,[-s,-l,0]),this.mercatorMatrix=e.scale([],h,[this.worldSize,this.worldSize,this.worldSize]),e.scale(h,h,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=h,this.invProjMatrix=e.invert([],this.projMatrix);var f=this.width%2/2,d=this.height%2/2,p=Math.cos(this.angle),g=Math.sin(this.angle),m=s-Math.round(s)+p*f+g*d,v=l-Math.round(l)+p*d+g*f,y=new Float64Array(h);if(e.translate(y,y,[m>.5?m-1:m,v>.5?v-1:v,0]),this.alignedProjMatrix=y,h=e.create(),e.scale(h,h,[this.width/2,-this.height/2,1]),e.translate(h,h,[1,-1,0]),this.labelPlaneMatrix=h,h=e.create(),e.scale(h,h,[1,-1,1]),e.translate(h,h,[-1,-1,0]),e.scale(h,h,[2/this.width,2/this.height,1]),this.glCoordMatrix=h,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(h=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=h,this._posMatrixCache={},this._alignedPosMatrixCache={}}},va.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},va.prototype.getCameraPoint=function(){var t=this._pitch,r=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,r))},va.prototype.getCameraQueryGeometry=function(t){var r=this.getCameraPoint();if(1===t.length)return[t[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=t;s=3&&!e.some((function(e){return isNaN(e)}))){var t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},ba.prototype._updateHashUnthrottled=function(){var t=this.getHashString();try{e.window.history.replaceState(e.window.history.state,"",t)}catch(r){}};var _a={linearity:.3,easing:e.bezier(0,0,.3,1)},wa=e.extend({deceleration:2500,maxSpeed:1400},_a),Ta=e.extend({deceleration:20,maxSpeed:1400},_a),ka=e.extend({deceleration:1e3,maxSpeed:360},_a),Aa=e.extend({deceleration:1e3,maxSpeed:90},_a),Ma=function(e){this._map=e,this.clear()};function Sa(e,t){(!e.duration||e.duration0&&r-t[0].time>n;)t.shift()},Ma.prototype._onMoveEnd=function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n=this._clickTolerance||this._map.fire(new La(e.type,this._map,e))},Da.prototype.dblclick=function(e){return this._firePreventable(new La(e.type,this._map,e))},Da.prototype.mouseover=function(e){this._map.fire(new La(e.type,this._map,e))},Da.prototype.mouseout=function(e){this._map.fire(new La(e.type,this._map,e))},Da.prototype.touchstart=function(e){return this._firePreventable(new Ca(e.type,this._map,e))},Da.prototype.touchmove=function(e){this._map.fire(new Ca(e.type,this._map,e))},Da.prototype.touchend=function(e){this._map.fire(new Ca(e.type,this._map,e))},Da.prototype.touchcancel=function(e){this._map.fire(new Ca(e.type,this._map,e))},Da.prototype._firePreventable=function(e){if(this._map.fire(e),e.defaultPrevented)return{}},Da.prototype.isEnabled=function(){return!0},Da.prototype.isActive=function(){return!1},Da.prototype.enable=function(){},Da.prototype.disable=function(){};var Pa=function(e){this._map=e};Pa.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Pa.prototype.mousemove=function(e){this._map.fire(new La(e.type,this._map,e))},Pa.prototype.mousedown=function(){this._delayContextMenu=!0},Pa.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new La("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Pa.prototype.contextmenu=function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new La(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()},Pa.prototype.isEnabled=function(){return!0},Pa.prototype.isActive=function(){return!1},Pa.prototype.enable=function(){},Pa.prototype.disable=function(){};var Oa=function(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1};function za(e,t){for(var r={},n=0;nthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=Ra(t),this.touches=za(r,t)))},Ba.prototype.touchmove=function(e,t,r){if(!this.aborted&&this.centroid){var n=za(r,t);for(var i in this.touches){var a=this.touches[i],o=n[i];(!o||o.dist(a)>Na)&&(this.aborted=!0)}}},Ba.prototype.touchend=function(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>ja)&&(this.aborted=!0),0===r.length){var n=!this.aborted&&this.centroid;if(this.reset(),n)return n}};var Ua=function(e){this.singleTap=new Ba(e),this.numTaps=e.numTaps,this.reset()};Ua.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ua.prototype.touchstart=function(e,t,r){this.singleTap.touchstart(e,t,r)},Ua.prototype.touchmove=function(e,t,r){this.singleTap.touchmove(e,t,r)},Ua.prototype.touchend=function(e,t,r){var n=this.singleTap.touchend(e,t,r);if(n){var i=e.timeStamp-this.lastTime0&&(this._active=!0);var i=za(n,r),a=new e.Point(0,0),o=new e.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&&(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(sMath.abs(e.x)}var ao=100,oo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},t.prototype._start=function(e){this._lastPoints=e,io(e[0].sub(e[1]))&&(this._valid=!1)},t.prototype._move=function(e,t,r){var n=e[0].sub(this._lastPoints[0]),i=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},t.prototype.gestureBeginsVertically=function(e,t,r){if(void 0!==this._valid)return this._valid;var n=2,i=e.mag()>=n,a=t.mag()>=n;if(i||a){if(!i||!a)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove0===t.y>0;return io(e)&&io(t)&&o}},t}(Ka),so={panStep:100,bearingStep:15,pitchStep:10},lo=function(){var e=so;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep};function co(e){return e*(2-e)}lo.prototype.reset=function(){this._active=!1},lo.prototype.keydown=function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:co,zoom:r?Math.round(l)+r*(e.shiftKey?2:1):l,bearing:s.getBearing()+n*t._bearingStep,pitch:s.getPitch()+i*t._pitchStep,offset:[-a*t._panStep,-o*t._panStep],center:s.getCenter()},{originalEvent:e})}}}},lo.prototype.enable=function(){this._enabled=!0},lo.prototype.disable=function(){this._enabled=!1,this.reset()},lo.prototype.isEnabled=function(){return this._enabled},lo.prototype.isActive=function(){return this._active};var uo=4.000244140625,ho=.01,fo=1/450,po=2,go=function(t,r){this._map=t,this._el=t.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=ho,this._wheelZoomRate=fo,e.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};go.prototype.setZoomRate=function(e){this._defaultZoomRate=e},go.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},go.prototype.isEnabled=function(){return!!this._enabled},go.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},go.prototype.isZooming=function(){return!!this._zooming},go.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},go.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},go.prototype.wheel=function(t){if(this.isEnabled()){var r=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,n=e.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%uo===0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),t.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=t,this._delta-=r,this._active||this._start(t)),t.preventDefault()}},go.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},go.prototype._start=function(t){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},go.prototype.renderFrame=function(){return this._onScrollFrame()},go.prototype._onScrollFrame=function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&Math.abs(this._delta)>uo?this._wheelZoomRate:this._defaultZoomRate,i=po/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==i&&(i=1/i);var a="number"===typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),"wheel"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s="number"===typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if("wheel"===this._type&&l&&c){var h=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),f=c(h);o=e.number(l,s,f),h<1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&&(this._active=!1,this._finishTimeout=setTimeout((function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},go.prototype._smoothOutEasing=function(t){var r=e.ease;if(this._prevEase){var n=this._prevEase,i=(e.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=e.bezier(o,s,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:r},r},go.prototype.reset=function(){this._active=!1};var mo=function(e,t){this._clickZoom=e,this._tapZoom=t};mo.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},mo.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},mo.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},mo.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var vo=function(){this.reset()};vo.prototype.reset=function(){this._active=!1},vo.prototype.dblclick=function(e,t){return e.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(e.shiftKey?-1:1),around:r.unproject(t)},{originalEvent:e})}}},vo.prototype.enable=function(){this._enabled=!0},vo.prototype.disable=function(){this._enabled=!1,this.reset()},vo.prototype.isEnabled=function(){return this._enabled},vo.prototype.isActive=function(){return this._active};var yo=function(){this._tap=new Ua({numTouches:1,numTaps:1}),this.reset()};yo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},yo.prototype.touchstart=function(e,t,r){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>Fa&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=t[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(e,t,r))},yo.prototype.touchmove=function(e,t,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=t[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,r)},yo.prototype.touchend=function(e,t,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(e,t,r)&&(this._tapTime=e.timeStamp)},yo.prototype.touchcancel=function(){this.reset()},yo.prototype.enable=function(){this._enabled=!0},yo.prototype.disable=function(){this._enabled=!1,this.reset()},yo.prototype.isEnabled=function(){return this._enabled},yo.prototype.isActive=function(){return this._active};var xo=function(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r};xo.prototype.enable=function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},xo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},xo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},xo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var bo=function(e,t,r){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=r};bo.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},bo.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},bo.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},bo.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var _o=function(e,t,r,n){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};_o.prototype.enable=function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},_o.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},_o.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},_o.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},_o.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},_o.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var wo=function(e){return e.zoom||e.drag||e.pitch||e.rotate},To=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e.Event);function ko(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var Ao=function(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ma(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),e.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!1}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[e.window,"blur",void 0]];for(var a=0,o=this._listeners;aa?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-t),T=i.unproject(x.add(b.mult(t*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,p)}n._fireMoveEvents(r)}),(function(e){n._afterEase(r,e)}),t),this},r.prototype._prepareEase=function(t,r,n){void 0===n&&(n={}),this._moving=!0,r||n.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!n.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!n.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!n.pitching&&this.fire(new e.Event("pitchstart",t))},r.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},r.prototype._afterEase=function(t,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new e.Event("zoomend",t)),i&&this.fire(new e.Event("rotateend",t)),a&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}},r.prototype.flyTo=function(t,r){var n=this;if(!t.essential&&e.browser.prefersReducedMotion){var i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,r)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u="zoom"in t?e.clamp(+t.zoom,a.minZoom,a.maxZoom):o,h="bearing"in t?this._normalizeBearing(t.bearing,s):s,f="pitch"in t?+t.pitch:l,d="padding"in t?t.padding:a.padding,p=a.zoomScale(u-o),g=e.Point.convert(t.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=e.LngLat.convert(t.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=t.curve,w=Math.max(a.width,a.height),T=w/p,k=b.mag();if("minZoom"in t){var A=e.clamp(Math.min(t.minZoom,o,u),a.minZoom,a.maxZoom),M=w/a.zoomScale(A-o);_=Math.sqrt(M/k*2)}var S=_*_;function E(e){var t=(T*T-w*w+(e?-1:1)*S*S*k*k)/(2*(e?T:w)*S*k);return Math.log(Math.sqrt(t*t+1)-t)}function L(e){return(Math.exp(e)-Math.exp(-e))/2}function C(e){return(Math.exp(e)+Math.exp(-e))/2}function I(e){return L(e)/C(e)}var D=E(0),P=function(e){return C(D)/C(D+_*e)},O=function(e){return w*((C(D)*I(D+_*e)-L(D))/S)/k},z=(E(1)-D)/_;if(Math.abs(k)<1e-6||!isFinite(z)){if(Math.abs(w-T)<1e-6)return this.easeTo(t,r);var R=Tt.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==h,this._pitching=f!==l,this._padding=!a.isPaddingEqual(d),this._prepareEase(r,!1),this._ease((function(t){var i=t*z,p=1/P(i);a.zoom=1===t?u:o+a.scaleZoom(p),n._rotating&&(a.bearing=e.number(s,h,t)),n._pitching&&(a.pitch=e.number(l,f,t)),n._padding&&(a.interpolatePadding(c,d,t),m=a.centerPoint.add(g));var v=1===t?y:a.unproject(x.add(b.mult(O(i))).mult(p));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),t),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}if(!e){var n=this.handlers;n&&n.stop()}return this},r.prototype._ease=function(t,r,n){!1===n.animate||0===n.duration?(t(1),r()):(this._easeStart=e.browser.now(),this._easeOptions=n,this._onEaseFrame=t,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(t,r){t=e.wrap(t,-180,180);var n=Math.abs(t-r);return Math.abs(t-360-r)180?-360:r<-180?360:0}},r}(e.Evented),So=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};So.prototype.getDefaultPosition=function(){return"bottom-right"},So.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},So.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},So.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var n=r.reduce((function(e,t,n){return t.value&&(e+=t.key+"="+t.value+(n=0)return!1;return!0}))).join(" | ");o!==this._attribHTML&&(this._attribHTML=o,e.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},So.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var Eo=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};Eo.prototype.onAdd=function(e){this._map=e,this._container=r.create("div","mapboxgl-ctrl");var t=r.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Eo.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Eo.prototype.getDefaultPosition=function(){return"bottom-left"},Eo.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Eo.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},Eo.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var Lo=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Lo.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},Lo.prototype.remove=function(e){for(var t=this._currentlyRunning,r=0,n=t?this._queue.concat(t):this._queue;rt.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitchFo)throw new Error("maxPitch must be less than or equal to "+Fo);var i=new va(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(n.call(this,i,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new Lo,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Co,t.locale),this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"===typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof Do))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return r._update(!1)})),this.on("moveend",(function(){return r._update(!1)})),this.on("zoom",(function(){return r._update(!0)})),"undefined"!==typeof e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1)),this.handlers=new Ao(this,t);var a="string"===typeof t.hash&&t.hash||void 0;this._hash=t.hash&&new ba(a).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new So({customAttribution:t.customAttribution})),this.addControl(new Eo,t.logoPosition),this.on("style.load",(function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)})),this.on("data",(function(t){r._update("style"===t.dataType),r.fire(new e.Event(t.dataType+"data",t))})),this.on("dataloading",(function(t){r.fire(new e.Event(t.dataType+"dataloading",t))}))}n&&(i.__proto__=n),i.prototype=Object.create(n&&n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(t,r){if(void 0===r&&t.getDefaultPosition&&(r=t.getDefaultPosition()),void 0===r&&(r="top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=t.onAdd(this);this._controls.push(t);var i=this._controlPositions[r];return-1!==r.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var r=this._controls.indexOf(t);return r>-1&&this._controls.splice(r,1),t.onRemove(this),this},i.prototype.resize=function(t){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),a&&this.fire(new e.Event("moveend",t)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},i.prototype.setMinZoom=function(e){if((e=null===e||void 0===e?Oo:e)>=Oo&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(e){if((e=null===e||void 0===e?Ro:e)=Ro&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()Fo)throw new Error("maxPitch must be less than or equal to "+Fo);if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},i.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},i.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(e,t,r){var n,i=this;if("mouseenter"===e||"mouseover"===e){var a=!1,o=function(n){var o=i.getLayer(t)?i.queryRenderedFeatures(n.point,{layers:[t]}):[];o.length?a||(a=!0,r.call(i,new La(e,i,n.originalEvent,{features:o}))):a=!1};return{layer:t,listener:r,delegates:{mousemove:o,mouseout:function(){a=!1}}}}if("mouseleave"===e||"mouseout"===e){var s=!1,l=function(n){(i.getLayer(t)?i.queryRenderedFeatures(n.point,{layers:[t]}):[]).length?s=!0:s&&(s=!1,r.call(i,new La(e,i,n.originalEvent)))},c=function(t){s&&(s=!1,r.call(i,new La(e,i,t.originalEvent)))};return{layer:t,listener:r,delegates:{mousemove:l,mouseout:c}}}var u=function(e){var n=i.getLayer(t)?i.queryRenderedFeatures(e.point,{layers:[t]}):[];n.length&&(e.features=n,r.call(i,e),delete e.features)};return{layer:t,listener:r,delegates:(n={},n[e]=u,n)}},i.prototype.on=function(e,t,r){if(void 0===r)return n.prototype.on.call(this,e,t);var i=this._createDelegatedListener(e,t,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(e,t,r){if(void 0===r)return n.prototype.once.call(this,e,t);var i=this._createDelegatedListener(e,t,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(e,t,r){var i=this;if(void 0===r)return n.prototype.off.call(this,e,t);var a=function(n){for(var a=n[e],o=0;o180;){var s=n.locationPoint(t);if(s.x>=0&&s.y>=0&&s.x<=n.width&&s.y<=n.height)break;t.lng>n.center.lng?t.lng-=360:t.lng+=360}return t}qo.prototype.down=function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),r.disableDrag()},qo.prototype.move=function(e,t){var r=this.map,n=this.mouseRotate.mousemoveWindow(e,t);if(n&&n.bearingDelta&&r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(e,t);i&&i.pitchDelta&&r.setPitch(r.getPitch()+i.pitchDelta)}},qo.prototype.off=function(){var e=this.element;r.removeEventListener(e,"mousedown",this.mousedown),r.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),r.removeEventListener(e,"touchmove",this.touchmove),r.removeEventListener(e,"touchend",this.touchend),r.removeEventListener(e,"touchcancel",this.reset),this.offTemp()},qo.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(e.window,"mousemove",this.mousemove),r.removeEventListener(e.window,"mouseup",this.mouseup)},qo.prototype.mousedown=function(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),r.mousePos(this.element,t)),r.addEventListener(e.window,"mousemove",this.mousemove),r.addEventListener(e.window,"mouseup",this.mouseup)},qo.prototype.mousemove=function(e){this.move(e,r.mousePos(this.element,e))},qo.prototype.mouseup=function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()},qo.prototype.touchstart=function(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return e.preventDefault()}},this._startPos))},qo.prototype.touchmove=function(e){1!==e.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:function(){return e.preventDefault()}},this._lastPos))},qo.prototype.touchend=function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)t.getEast()||r.latitudet.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},n.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}},n.prototype._updateCamera=function(t){var r=new e.LngLat(t.coords.longitude,t.coords.latitude),n=t.coords.accuracy,i=this._map.getBearing(),a=e.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(t){if(t){var r=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),r=this._map.unproject([1,e]),n=t.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},n.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},n.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Qo)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(t){var n=this;if(this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this._geolocateButton=r.create("button","mapboxgl-ctrl-geolocate",this._container),r.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var a=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Zo(this._dotElement),this._circleElement=r.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Zo({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(t){var r=t.originalEvent&&"resize"===t.originalEvent.type;t.geolocateSource||"ACTIVE_LOCK"!==n._watchState||r||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new e.Event("trackuserlocationend")))}))},n.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jo--,Qo=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Jo>1?(t={maximumAge:6e5,timeout:0},Qo=!0):(t=this.options.positionOptions,Qo=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},n}(e.Evented),es={maxWidth:100,unit:"metric"},ts=function(t){this.options=e.extend({},es,t),e.bindAll(["_onMove","setUnit"],this)};function rs(e,t,r){var n=r&&r.maxWidth||100,i=e._container.clientHeight/2,a=e.unproject([0,i]),o=e.unproject([n,i]),s=a.distanceTo(o);if(r&&"imperial"===r.unit){var l=3.2808*s;l>5280?ns(t,n,l/5280,e._getUIString("ScaleControl.Miles")):ns(t,n,l,e._getUIString("ScaleControl.Feet"))}else r&&"nautical"===r.unit?ns(t,n,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?ns(t,n,s/1e3,e._getUIString("ScaleControl.Kilometers")):ns(t,n,s,e._getUIString("ScaleControl.Meters"))}function ns(e,t,r,n){var i=as(r),a=i/r;e.style.width=t*a+"px",e.innerHTML=i+" "+n}function is(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}function as(e){var t=Math.pow(10,(""+Math.floor(e)).length-1),r=e/t;return t*(r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:is(r))}ts.prototype.getDefaultPosition=function(){return"bottom-left"},ts.prototype._onMove=function(){rs(this._map,this._container,this.options)},ts.prototype.onAdd=function(e){return this._map=e,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ts.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ts.prototype.setUnit=function(e){this.options.unit=e,rs(this._map,this._container,this.options)};var os=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};os.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},os.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},os.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},os.prototype._setupUI=function(){var t=this._fullscreenButton=r.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},os.prototype._updateTitle=function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},os.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},os.prototype._isFullscreen=function(){return this._fullscreen},os.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},os.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var ss={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},ls=function(t){function n(r){t.call(this),this.options=e.extend(Object.create(ss),r),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},n.prototype.setHTML=function(t){var r,n=e.window.document.createDocumentFragment(),i=e.window.document.createElement("body");for(i.innerHTML=t;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},n.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},n.prototype.setDOMContent=function(e){return this._createContent(),this._content.appendChild(e),this._update(),this},n.prototype.addClassName=function(e){this._container&&this._container.classList.add(e)},n.prototype.removeClassName=function(e){this._container&&this._container.classList.remove(e)},n.prototype.toggleClassName=function(e){if(this._container)return this._container.classList.toggle(e)},n.prototype._createContent=function(){this._content&&r.remove(this._content),this._content=r.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},n.prototype._onMouseUp=function(e){this._update(e.point)},n.prototype._onMouseMove=function(e){this._update(e.point)},n.prototype._onDrag=function(e){this._update(e.point)},n.prototype._update=function(e){var t=this,n=this._lngLat||this._trackPointer;if(this._map&&n&&this._content&&(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(e){return t._container.classList.add(e)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Ho(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),a=this.options.anchor,o=cs(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.ythis._map.transform.height-c?["bottom"]:[],i.xthis._map.transform.width-l/2&&s.push("right"),a=0===s.length?"bottom":s.join("-")}var u=i.add(o[a]).round();r.setTransform(this._container,Go[a]+" translate("+u.x+"px,"+u.y+"px)"),Wo(this._container,a,"popup")}},n.prototype._onClose=function(){this.remove()},n}(e.Evented);function cs(t){if(t){if("number"===typeof t){var r=Math.round(Math.sqrt(.5*Math.pow(t,2)));return{center:new e.Point(0,0),top:new e.Point(0,t),"top-left":new e.Point(r,r),"top-right":new e.Point(-r,r),bottom:new e.Point(0,-t),"bottom-left":new e.Point(r,-r),"bottom-right":new e.Point(-r,-r),left:new e.Point(t,0),right:new e.Point(-t,0)}}if(t instanceof e.Point||Array.isArray(t)){var n=e.Point.convert(t);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:e.Point.convert(t.center||[0,0]),top:e.Point.convert(t.top||[0,0]),"top-left":e.Point.convert(t["top-left"]||[0,0]),"top-right":e.Point.convert(t["top-right"]||[0,0]),bottom:e.Point.convert(t.bottom||[0,0]),"bottom-left":e.Point.convert(t["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(t["bottom-right"]||[0,0]),left:e.Point.convert(t.left||[0,0]),right:e.Point.convert(t.right||[0,0])}}return cs(new e.Point(0,0))}var us={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:No,NavigationControl:Vo,GeolocateControl:$o,AttributionControl:So,ScaleControl:ts,FullscreenControl:os,Popup:ls,Marker:Zo,Style:mr,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:at,clearPrewarmedResources:ot,get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return tt.workerCount},set workerCount(e){tt.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return us})),r}()},69089:function(e,t,r){"use strict";var n=r(47216),i=r(66905),a=r(62405),o=r(20184).axisHoverFormat,s=r(4216).r,l=r(87241).extendFlat,c=n.marker,u=c.line;e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the y sample data or coordinates.","See overview for more info."].join(" ")},x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the x sample data or coordinates.","See overview for more info."].join(" ")},x0:{valType:"any",editType:"calc+clearAxisTypes",description:["Sets the x coordinate for single-box traces","or the starting coordinate for multi-box traces","set using q1/median/q3.","See overview for more info."].join(" ")},y0:{valType:"any",editType:"calc+clearAxisTypes",description:["Sets the y coordinate for single-box traces","or the starting coordinate for multi-box traces","set using q1/median/q3.","See overview for more info."].join(" ")},dx:{valType:"number",editType:"calc",description:["Sets the x coordinate step for multi-box traces","set using q1/median/q3."].join(" ")},dy:{valType:"number",editType:"calc",description:["Sets the y coordinate step for multi-box traces","set using q1/median/q3."].join(" ")},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),name:{valType:"string",editType:"calc+clearAxisTypes",description:["Sets the trace name.","The trace name appear as the legend item and on hover.","For box traces, the name will also be used for the position","coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are","missing and the position axis is categorical"].join(" ")},q1:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Quartile 1 values.","There should be as many items as the number of boxes desired."].join(" ")},median:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the median values.","There should be as many items as the number of boxes desired."].join(" ")},q3:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Quartile 3 values.","There should be as many items as the number of boxes desired."].join(" ")},lowerfence:{valType:"data_array",editType:"calc",description:["Sets the lower fence values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `lowerfence` is not provided but a sample (in `y` or `x`) is set,","we compute the lower as the last sample point below 1.5 times the IQR."].join(" ")},upperfence:{valType:"data_array",editType:"calc",description:["Sets the upper fence values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `upperfence` is not provided but a sample (in `y` or `x`) is set,","we compute the lower as the last sample point above 1.5 times the IQR."].join(" ")},notched:{valType:"boolean",editType:"calc",description:["Determines whether or not notches are drawn.","Notches displays a confidence interval around the median.","We compute the confidence interval as median +/- 1.57 * IQR / sqrt(N),","where IQR is the interquartile range and N is the sample size.","If two boxes' notches do not overlap there is 95% confidence their medians differ.","See https://sites.google.com/site/davidsstatistics/home/notched-box-plots for more info.","Defaults to *false* unless `notchwidth` or `notchspan` is set."].join(" ")},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc",description:["Sets the width of the notches relative to","the box' width.","For example, with 0, the notches are as wide as the box(es)."].join(" ")},notchspan:{valType:"data_array",editType:"calc",description:["Sets the notch span from the boxes' `median` values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `notchspan` is not provided but a sample (in `y` or `x`) is set,","we compute it as 1.57 * IQR / sqrt(N),","where N is the sample size."].join(" ")},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc",description:["If *outliers*, only the sample points lying outside the whiskers","are shown","If *suspectedoutliers*, the outlier points are shown and","points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1","are highlighted (see `outliercolor`)","If *all*, all sample points are shown","If *false*, only the box(es) are shown with no sample points","Defaults to *suspectedoutliers* when `marker.outliercolor` or","`marker.line.outliercolor` is set.","Defaults to *all* under the q1/median/q3 signature.","Otherwise defaults to *outliers*."].join(" ")},jitter:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the amount of jitter in the sample points drawn.","If *0*, the sample points align along the distribution axis.","If *1*, the sample points are drawn in a random jitter of width","equal to the width of the box(es)."].join(" ")},pointpos:{valType:"number",min:-2,max:2,editType:"calc",description:["Sets the position of the sample points in relation to the box(es).","If *0*, the sample points are places over the center of the box(es).","Positive (negative) values correspond to positions to the","right (left) for vertical boxes and above (below) for horizontal boxes"].join(" ")},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc",description:["If *true*, the mean of the box(es)' underlying distribution is","drawn as a dashed line inside the box(es).","If *sd* the standard deviation is also drawn.","Defaults to *true* when `mean` is set.","Defaults to *sd* when `sd` is set","Otherwise defaults to *false*."].join(" ")},mean:{valType:"data_array",editType:"calc",description:["Sets the mean values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `mean` is not provided but a sample (in `y` or `x`) is set,","we compute the mean for each box using the sample values."].join(" ")},sd:{valType:"data_array",editType:"calc",description:["Sets the standard deviation values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `sd` is not provided but a sample (in `y` or `x`) is set,","we compute the standard deviation for each box using the sample values."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the box(es).","If *v* (*h*), the distribution is visualized along","the vertical (horizontal)."].join(" ")},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc",description:["Sets the method used to compute the sample's Q1 and Q3 quartiles.","The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3","as computed using method #10 (listed on http://www.amstat.org/publications/jse/v14n3/langford.html).","The *exclusive* method uses the median to divide the ordered dataset into two halves","if the sample is odd, it does not include the median in either half -","Q1 is then the median of the lower half and","Q3 the median of the upper half.","The *inclusive* method also uses the median to divide the ordered dataset into two halves","but if the sample is odd, it includes the median in both halves -","Q1 is then the median of the lower half and","Q3 the median of the upper half."].join(" ")},width:{valType:"number",min:0,dflt:0,editType:"calc",description:["Sets the width of the box in data coordinate","If *0* (default value) the width is automatically selected based on the positions","of other box traces in the same subplot."].join(" ")},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style",description:"Sets the color of the outlier sample points."},symbol:l({},c.symbol,{arrayOk:!1,editType:"plot"}),opacity:l({},c.opacity,{arrayOk:!1,dflt:1,editType:"style"}),size:l({},c.size,{arrayOk:!1,editType:"calc"}),color:l({},c.color,{arrayOk:!1,editType:"style"}),line:{color:l({},u.color,{arrayOk:!1,dflt:a.defaultLine,editType:"style"}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style",description:["Sets the border line color of the outlier sample points.","Defaults to marker.color"].join(" ")},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style",description:["Sets the border line width (in px) of the outlier sample points."].join(" ")},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style",description:"Sets the color of line bounding the box(es)."},width:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the width (in px) of line bounding the box(es)."},editType:"plot"},fillcolor:n.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc",description:["Sets the width of the whiskers relative to","the box' width.","For example, with 1, the whiskers are as wide as the box(es)."].join(" ")},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:"style"},unselected:{marker:n.unselected.marker,editType:"style"},text:l({},n.text,{description:["Sets the text elements associated with each sample value.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),hovertext:l({},n.hovertext,{description:"Same as `text`."}),hovertemplate:s({description:["N.B. This only has an effect when hovering on points."].join(" ")}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style",description:["Do the hover effects highlight individual boxes ","or sample points or both?"].join(" ")}}},69134:function(e,t,r){"use strict";var n=r(47401),i=r(61481),a=r(31454),o=r(16688).N,s=r(18878).handleText,l=r(33419).TEXTPAD,c=r(47624),u=c.hasColorscale,h=c.handleDefaults;e.exports=function(e,t,r,c){function f(r,a){return n.coerce(e,t,i,r,a)}var d=f("labels"),p=f("parents");if(d&&d.length&&p&&p.length){var g=f("values");g&&g.length?f("branchvalues"):f("count"),f("level"),f("maxdepth"),f("tiling.orientation"),f("tiling.flip"),f("tiling.pad");var m=f("text");f("texttemplate"),t.texttemplate||f("textinfo",Array.isArray(m)?"text+label":"label"),f("hovertext"),f("hovertemplate");var v=f("pathbar.visible");s(e,t,c,f,"auto",{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),f("textposition"),f("marker.line.width")&&f("marker.line.color",c.paper_bgcolor),f("marker.colors");var y=t._hasColorscale=u(e,"marker","colors")||(e.marker||{}).coloraxis;y&&h(e,t,c,f,{prefix:"marker.",cLetter:"c"}),f("leaf.opacity",y?1:.7),t._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&&(f("pathbar.thickness",t.pathbar.textfont.size+2*l),f("pathbar.side"),f("pathbar.edgeshape")),f("sort"),f("root.color"),o(t,c,f),t._length=null}else t.visible=!1}},69184:function(e,t,r){"use strict";var n=r(83491),i=r(47401),a=r(62282),o=r(37762),s=r(54846),l=r(86150),c=r(17817),u=r(27350),h=r(76964);function f(e,t,r,s,l){var c,u,h,d,p,g,m,v=s+"bins",y=e._fullLayout,x=t["_"+s+"bingroup"],b=y._histogramBinOpts[x],_="overlay"===y.barmode,w=function(e){return r.r2c(e,0,d)},T=function(e){return r.c2r(e,0,d)},k="date"===r.type?function(e){return e||0===e?i.cleanDate(e,null,d):null}:function(e){return n(e)?Number(e):null};function A(e,t,r){t[e+"Found"]?(t[e]=k(t[e]),null===t[e]&&(t[e]=r[e])):(g[e]=t[e]=r[e],i.nestedProperty(u[0],v+"."+e).set(r[e]))}if(t["_"+s+"autoBinFinished"])delete t["_"+s+"autoBinFinished"];else{u=b.traces;var M=[],S=!0,E=!1,L=!1;for(c=0;cr.r2l(j)&&(B=o.tickIncrement(B,b.size,!0,d)),O.start=r.l2r(B),F||i.nestedProperty(t,v+".start").set(O.start)}var U=b.end,V=r.r2l(P.end),q=void 0!==V;if((b.endFound||q)&&V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,p);O.end=r.l2r(H),q||i.nestedProperty(t,v+".start").set(O.end)}var G="autobin"+s;return!1===t._input[G]&&(t._input[v]=i.extendFlat({},t[v]||{}),delete t._input[G],delete t[G]),[O,p]}e.exports={calc:function(e,t){var r,a,d,p,g=[],m=[],v=o.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),y="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[y],b=t[y+"calendar"],_=t.cumulative,w=f(e,t,v,y),T=w[0],k=w[1],A="string"===typeof T.size,M=[],S=A?M:T,E=[],L=[],C=[],I=0,D=t.histnorm,P=t.histfunc,O=-1!==D.indexOf("density");_.enabled&&O&&(D=D.replace(/ ?density$/,""),O=!1);var z,R="max"===P||"min"===P?null:0,F=l.count,j=c[D],N=!1,B=function(e){return v.r2c(e,0,b)};for(i.isArrayOrTypedArray(t[x])&&"count"!==P&&(z=t[x],N="avg"===P,F=l[P]),r=B(T.start),d=B(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r=0&&p=0;n--)s(n);else if("increasing"===t){for(n=1;n=0;n--)e[n]+=e[n+1];"exclude"===r&&(e.push(0),e.shift())}}(m,_.direction,_.currentbin);var K=Math.min(g.length,m.length),J=[],Q=0,$=K-1;for(r=0;r=Q;r--)if(m[r]){$=r;break}for(r=Q;r<=$;r++)if(n(g[r])&&n(m[r])){var ee={p:g[r],s:m[r],b:0};_.enabled||(ee.pts=C[r],G?ee.ph0=ee.ph1=C[r].length?k[C[r][0]]:g[r]:(t._computePh=!0,ee.ph0=q(M[r]),ee.ph1=q(M[r+1],!0))),J.push(ee)}return 1===J.length&&(J[0].width1=o.tickIncrement(J[0].p,T.size,!1,b)-J[0].p),s(J,t),i.isArrayOrTypedArray(t.selectedpoints)&&i.tagSelected(J,t,Z),J},calcAllAutoBins:f}},69195:function(e,t,r){"use strict";e.exports=function(e){var t=e.length;if(0===t)return[];if(1===t)return[0];for(var r=e[0].length,n=[e[0]],a=[0],o=1;o0?Math.max(r,a):0}}},69502:function(e,t,r){"use strict";var n=r(47401),i=r(95225),a=r(2859),o=r(4475).IMAGE_URL_PREFIX;e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("source"),t.source&&!t.source.match(o)&&delete t.source,t._hasSource=!!t.source;var s,l=r("z");(t._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),t._hasZ||t._hasSource)?(r("x0"),r("y0"),r("dx"),r("dy"),t._hasZ?(r("colormodel","rgb"),r("zmin",(s=a.colormodel[t.colormodel]).zminDflt||s.min),r("zmax",s.zmaxDflt||s.max)):t._hasSource&&(t.colormodel="rgba256",s=a.colormodel[t.colormodel],t.zmin=s.zminDflt,t.zmax=s.zmaxDflt),r("zsmooth"),r("text"),r("hovertext"),r("hovertemplate"),t._length=null):t.visible=!1}},69764:function(e,t,r){"use strict";var n=r(47401),i=r(77063),a=r(62282).traceIs,o=r(18878).handleGroupingDefaults,s=n.nestedProperty,l=r(30807).getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];e.exports=function(e,t){var r,h,f,d,p,g,m,v=t._histogramBinOpts={},y=[],x={},b=[];function _(e,t){return n.coerce(r._input,r,r._module.attributes,e,t)}function w(e){return"v"===e.orientation?"x":"y"}function T(e,r,a){var o=e.uid+"__"+a;r||(r=o);var s=function(e,r){return i.getFromTrace({_fullLayout:t},e,r).type}(e,a),l=e[a+"calendar"]||"",c=v[r],u=!0;c&&(s===c.axType&&l===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(a)):(r=o,s!==c.axType&&n.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+s,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),l!==c.calendar&&n.warn(["Attempted to group the bins of trace",e.index,"set with a",l,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(v[r]={traces:[e],dirs:[a],axType:s,calendar:e[a+"calendar"]||""}),e["_"+a+"bingroup"]=r}for(p=0;p2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e);if(r&&t!==i||t<1||t>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&&t<=i?t-1:t:t-1},toChineseMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);if(t<0||t>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?t>13},isIntercalaryMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(e,t,r){var i,o=this._validateYear(e,n.local.invalidyear),s=f[o-f[0]],l=s>>9&4095,c=s>>5&15,u=31&s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),"d");var h=this.toJD(e,t,r)-i.toJD();return 1+Math.floor(h/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=h[e-h[0]];if(t>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-t?30:29},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,n.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var o=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=function(e,t,r,n,i){var a,o,s;if("object"===typeof e)o=e,a=t||{};else{var l;if(!("number"===typeof e&&e>=1888&&e<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"===typeof t&&t>=1&&t<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"===typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"===typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:l}}s=o.day-1;var c,u=h[o.year-h[0]],d=u>>13;c=d&&(o.month>d||o.isIntercalary)?o.month:o.month-1;for(var p=0;p>9&4095,(g>>5&15)-1,(31&g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(e,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=a.fromJD(e),r=function(e,t,r,n){var i,a;if("object"===typeof e)i=e,a=t||{};else{if(!("number"===typeof e&&e>=1888&&e<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"===typeof t&&t>=1&&t<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"===typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var o=f[i.year-f[0]],s=i.year<<9|i.month<<5|i.day;a.year=s>=o?i.year:i.year-1,o=f[a.year-f[0]];var l,c=new Date(o>>9&4095,(o>>5&15)-1,31&o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var d,p=h[a.year-h[0]];for(d=0;d<13;d++){var g=p&1<<12-d?30:29;if(l>13;!m||d1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}},a.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}},a.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}},71276:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},71277:function(e,t,r){"use strict";var n=r(60096);function i(e){this.gl=e,this._elements=null,this._attributes=null,this._elementsType=e.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(e,t,r){this._elements=t,this._attributes=e,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(e,t,r){r=r||0;var n=this.gl;this._elements?n.drawElements(e,t,this._elementsType,r):n.drawArrays(e,r,t)},e.exports=function(e){return new i(e)}},71342:function(e,t,r){"use strict";var n=r(47401),i=r(77638),a=r(47008),o=r(99144),s=r(60039),l=r(64498),c=r(88297);e.exports=function(e,t,r,u){function h(r,i){return n.coerce(e,t,c,r,i)}var f=function(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}(0,t,h);if(f){if(h("text"),h("texttemplate"),h("hovertext"),h("hovertemplate"),h("mode"),h("below"),i.hasLines(t)&&(o(e,t,r,u,h,{noDash:!0}),h("connectgaps")),i.hasMarkers(t)){a(e,t,r,u,h,{noLine:!0}),h("marker.allowoverlap"),h("marker.angle");var d=t.marker;"circle"!==d.symbol&&(n.isArrayOrTypedArray(d.size)&&(d.size=d.size[0]),n.isArrayOrTypedArray(d.color)&&(d.color=d.color[0]))}i.hasText(t)&&s(e,t,u,h,{noSelect:!0}),h("fill"),"none"!==t.fill&&l(e,t,r,h),n.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1}},71478:function(e){e.exports=function(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],h=e[10],f=e[11],d=e[12],p=e[13],g=e[14],m=e[15];return(t*o-r*a)*(h*m-f*g)-(t*s-n*a)*(u*m-f*p)+(t*l-i*a)*(u*g-h*p)+(r*s-n*o)*(c*m-f*d)-(r*l-i*o)*(c*g-h*d)+(n*l-i*s)*(c*p-u*d)}},71493:function(e,t,r){"use strict";var n=r(47401),i=r(16545),a=r(35722),o=r(90062).z;function s(e,t){var r,s,l,c,u,h,f,d,p,g,m=t.transform,v=t.transformIndex,y=e.transforms[v].groups,x=o(e.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[e];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(e),k=m.styles||[],A={};for(r=0;r1?"%{group} (%{trace})":"%{group}");var l=e.styles,c=o.styles=[];if(l)for(a=0;a1&&n(e[o[u-2]],e[o[u-1]],c)<=0;)u-=1,o.pop();for(o.push(l),u=s.length;u>1&&n(e[s[u-2]],e[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var h=0,f=(i=0,o.length);i0;--d)r[h++]=s[d];return r};var n=r(30223)[3]},71570:function(e,t){"use strict";t.uniforms=function(e,t){for(var r=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),n=[],a=0;a1)for(var l=0;l0||f<0){var v={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[b.side];t.attr("transform",l(v[0],v[1]))}}}return z.call(R),P&&(E?z.on(".opacity",null):(A=0,M=!0,z.text(y).on("mouseover.opacity",(function(){n.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))),z.call(h.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?o.call("_guiRestyle",e,v,t,x):o.call("_guiRelayout",e,v,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(R)})).on("input",(function(e){this.text(e||" ").call(h.positionText,_.x,_.y)}))),z.classed("js-placeholder",M),T}}},72528:function(e,t,r){"use strict";e.exports=a;var n=r(47401).distinctVals,i=r(9405).BADNUM;function a(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,a=[],o=0;oo._length&&(S=S.slice(0,o._length));var L,C=o.tickvals;function I(e,t){return{val:e,text:L[t]}}function D(e,t){return e.val-t.val}if(Array.isArray(C)&&C.length){L=o.ticktext,Array.isArray(L)&&L.length?L.length>C.length?L=L.slice(0,C.length):C.length>L.length&&(C=C.slice(0,L.length)):L=C.map(a(o.tickformat));for(var P=1;P=r||l>=i)return;var c=e.lineLayer.readPixel(s,i-1-l),u=0!==c[3],h=u?c[2]+256*(c[1]+256*c[0]):null,f={x:s,y:l,clientX:t.clientX,clientY:t.clientY,dataIndex:e.model.key,curveNumber:h};h!==R&&(u?a.hover(f):a.unhover&&a.unhover(f),R=h)}})),S.style("opacity",(function(e){return e.pick?0:1})),f.style("background","rgba(255, 255, 255, 0)");var F=f.selectAll("."+y.cn.parcoords).data(M,p);F.exit().remove(),F.enter().append("g").classed(y.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),F.attr("transform",(function(e){return c(e.model.translateX,e.model.translateY)}));var j=F.selectAll("."+y.cn.parcoordsControlView).data(g,p);j.enter().append("g").classed(y.cn.parcoordsControlView,!0),j.attr("transform",(function(e){return c(e.model.pad.l,e.model.pad.t)}));var N=j.selectAll("."+y.cn.yAxis).data((function(e){return e.dimensions}),p);N.enter().append("g").classed(y.cn.yAxis,!0),j.each((function(e){P(N,e,_)})),S.each((function(e){if(e.viewModel){!e.lineLayer||a?e.lineLayer=b(this,e):e.lineLayer.update(e),(e.key||0===e.key)&&(e.viewModel[e.key]=e.lineLayer);var t=!e.context||a;e.lineLayer.render(e.viewModel.panels,t)}})),N.attr("transform",(function(e){return c(e.xScale(e.xIndex),0)})),N.call(n.behavior.drag().origin((function(e){return e})).on("drag",(function(e){var t=e.parent;A.linePickActive(!1),e.x=Math.max(-y.overdrag,Math.min(e.model.width+y.overdrag,n.event.x)),e.canvasX=e.x*e.model.canvasPixelRatio,N.sort((function(e,t){return e.x-t.x})).each((function(t,r){t.xIndex=r,t.x=e===t?t.x:t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio})),P(N,t,_),N.filter((function(t){return 0!==Math.abs(e.xIndex-t.xIndex)})).attr("transform",(function(e){return c(e.xScale(e.xIndex),0)})),n.select(this).attr("transform",c(e.x,0)),N.each((function(r,n,i){i===e.parent.key&&(t.dimensions[n]=r)})),t.contextLayer&&t.contextLayer.render(t.panels,!1,!E(t)),t.focusLayer.render&&t.focusLayer.render(t.panels)})).on("dragend",(function(e){var t=e.parent;e.x=e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio,P(N,t,_),n.select(this).attr("transform",(function(e){return c(e.x,0)})),t.contextLayer&&t.contextLayer.render(t.panels,!1,!E(t)),t.focusLayer&&t.focusLayer.render(t.panels),t.pickLayer&&t.pickLayer.render(t.panels,!0),A.linePickActive(!0),a&&a.axesMoved&&a.axesMoved(t.key,t.dimensions.map((function(e){return e.crossfilterDimensionIndex})))}))),N.exit().remove();var B=N.selectAll("."+y.cn.axisOverlays).data(g,p);B.enter().append("g").classed(y.cn.axisOverlays,!0),B.selectAll("."+y.cn.axis).remove();var U=B.selectAll("."+y.cn.axis).data(g,p);U.enter().append("g").classed(y.cn.axis,!0),U.each((function(e){var t=e.model.height/e.model.tickDistance,r=e.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(t,e.tickFormat).tickValues(e.ordinal?i:null).tickFormat((function(t){return v.isOrdinal(e)?t:O(e.model.dimensions[e.visibleIndex],t)})).scale(r)),h.font(U.selectAll("text"),e.model.tickFont)})),U.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),U.selectAll("text").style("text-shadow",u.makeTextShadow(T)).style("cursor","default");var V=B.selectAll("."+y.cn.axisHeading).data(g,p);V.enter().append("g").classed(y.cn.axisHeading,!0);var q=V.selectAll("."+y.cn.axisTitle).data(g,p);q.enter().append("text").classed(y.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events","auto"),q.text((function(e){return e.label})).each((function(t){var r=n.select(this);h.font(r,t.model.labelFont),u.convertToTspans(r,e)})).attr("transform",(function(e){var t=D(e.model.labelAngle,e.model.labelSide),r=y.axisTitleOffset;return(t.dir>0?"":c(0,2*r+e.model.height))+l(t.degrees)+c(-r*t.dx,-r*t.dy)})).attr("text-anchor",(function(e){var t=D(e.model.labelAngle,e.model.labelSide);return 2*Math.abs(t.dx)>Math.abs(t.dy)?t.dir*t.dx<0?"start":"end":"middle"}));var H=B.selectAll("."+y.cn.axisExtent).data(g,p);H.enter().append("g").classed(y.cn.axisExtent,!0);var G=H.selectAll("."+y.cn.axisExtentTop).data(g,p);G.enter().append("g").classed(y.cn.axisExtentTop,!0),G.attr("transform",c(0,-y.axisExtentOffset));var W=G.selectAll("."+y.cn.axisExtentTopText).data(g,p);W.enter().append("text").classed(y.cn.axisExtentTopText,!0).call(I),W.text((function(e){return z(e,!0)})).each((function(e){h.font(n.select(this),e.model.rangeFont)}));var Y=H.selectAll("."+y.cn.axisExtentBottom).data(g,p);Y.enter().append("g").classed(y.cn.axisExtentBottom,!0),Y.attr("transform",(function(e){return c(0,e.model.height+y.axisExtentOffset)}));var Z=Y.selectAll("."+y.cn.axisExtentBottomText).data(g,p);Z.enter().append("text").classed(y.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(I),Z.text((function(e){return z(e,!1)})).each((function(e){h.font(n.select(this),e.model.rangeFont)})),x.ensureAxisBrush(B,T)}},72563:function(e,t,r){"use strict";function n(e){return{stream:i(e)}}function i(e){return function(t){var r=new a;for(var n in e)r[n]=e[n];return r.stream=t,r}}function a(){}r.d(t,{A:function(){return n},G:function(){return i}}),a.prototype={constructor:a,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},72599:function(e,t,r){"use strict";var n=r(83491),i=r(47401),a=r(47624),o=r(41707),s=r(92380).makeBlank,l=r(40458);function c(e){var t,r=e[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;sv.glText.length){var w=b-v.glText.length;for(p=0;pr&&(isNaN(t[n])||isNaN(t[n+1]));)n-=2;e.positions=t.slice(r,n+2)}return e})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&&v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&&(v.fillOptions=v.fillOptions.map((function(e,t){var n=r[t];if(e&&n&&n[0]&&n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[t],u=[];s._ownfill&&u.push(t),s._nexttrace&&u.push(t+1),u.length&&(v.fillOrder[t]=u);var h,f,d=[],p=c&&c.positions||l.positions;if("tozeroy"===s.fill){for(h=0;hh&&isNaN(p[f+1]);)f-=2;0!==p[h+1]&&(d=[p[h],0]),d=d.concat(p.slice(h,f+2)),0!==p[f+1]&&(d=d.concat([p[f],0]))}else if("tozerox"===s.fill){for(h=0;hh&&isNaN(p[f]);)f-=2;0!==p[h]&&(d=[0,p[h+1]]),d=d.concat(p.slice(h,f+2)),0!==p[f]&&(d=d.concat([0,p[f+1]]))}else if("toself"===s.fill||"tonext"===s.fill){for(d=[],i=0,e.splitNull=!0,a=0;a-1;for(p=0;p.sum`."].join(" ")},b:{valType:"data_array",editType:"calc",description:["Sets the quantity of component `a` in each data point.","If `a`, `b`, and `c` are all provided, they need not be","normalized, only the relative values matter. If only two","arrays are provided they must be normalized to match","`ternary.sum`."].join(" ")},c:{valType:"data_array",editType:"calc",description:["Sets the quantity of component `a` in each data point.","If `a`, `b`, and `c` are all provided, they need not be","normalized, only the relative values matter. If only two","arrays are provided they must be normalized to match","`ternary.sum`."].join(" ")},sum:{valType:"number",dflt:0,min:0,editType:"calc",description:["The number each triplet should sum to,","if only two of `a`, `b`, and `c` are provided.","This overrides `ternary.sum` to normalize this specific","trace, but does not affect the values displayed on the axes.","0 (or missing) means to use ternary.sum"].join(" ")},mode:c({},a.mode,{dflt:"markers"}),text:c({},a.text,{description:["Sets text elements associated with each (a,b,c) point.","If a single string, the same string appears over","all the data points.","If an array of strings, the items are mapped in order to the","the data points in (a,b,c).","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:i({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:c({},a.hovertext,{description:["Sets hover text elements associated with each (a,b,c) point.","If a single string, the same string appears over","all the data points.","If an array of strings, the items are mapped in order to the","the data points in (a,b,c).","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),line:{color:h.color,width:h.width,dash:l,shape:c({},h.shape,{values:["linear","spline"]}),smoothing:h.smoothing,editType:"calc"},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:["none","toself","tonext"],dflt:"none",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","scatterternary has a subset of the options available to scatter.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other."].join(" ")}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:f.width,editType:"calc"},s("marker.line")),gradient:u.gradient,editType:"calc"},s("marker")),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a.hoveron,hovertemplate:n()}},72911:function(e,t,r){"use strict";var n=r(10494),i=r(17342).overrideAll,a=r(92704).templatedArray;e.exports=i(a("annotation",{visible:n.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")},72952:function(e,t,r){"use strict";var n=r(62282),i=r(35722),a=r(77063),o=r(68516),s=r(80535).eraseActiveShape,l=r(47401),c=l._,u=e.exports={};function h(e,t){var r,i,o=t.currentTarget,s=o.getAttribute("data-attr"),l=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},h=a.list(e,null,!0),f=c._cartesianSpikesEnabled;if("zoom"===s){var d,p="in"===l?.5:2,g=(1+p)/2,m=(1-p)/2;for(i=0;ir.deltaY?1.1:1/1.1,a=e.glplot.getAspectratio();e.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(e)}}),!!c&&{passive:!1}),e.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==e.fullSceneLayout.dragmode&&0!==e.camera.mouseListener.buttons){var t=n();e.graphDiv.emit("plotly_relayouting",t)}})),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",(function(r){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:r,layer:e.id})}),!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0},w.render=function(){var e,t=this,r=t.graphDiv,n=t.svgContainer,i=t.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),b(t),t.glplot.axes.update(t.axesOptions);for(var c,u=Object.keys(t.traces),f=null,g=t.glplot.selection,m=0;m")):"isosurface"===e.type||"volume"===e.type?(k.valueLabel=d.hoverLabelText(t._mockAxis,t._mockAxis.d2l(g.traceCoordinate[3]),e.valuehoverformat),E.push("value: "+k.valueLabel),g.textLabel&&E.push(g.textLabel),_=E.join("
")):_=g.textLabel;var L={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};p.appendArrayPointValue(L,w,T),e._module.eventData&&(L=w._module.eventData(L,g,w,{},T));var C={points:[L]};if(t.fullSceneLayout.hovermode){var I=[];p.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:f.name,color:p.castHoverOption(w,T,"bgcolor")||f.color,borderColor:p.castHoverOption(w,T,"bordercolor"),fontFamily:p.castHoverOption(w,T,"font.family"),fontSize:p.castHoverOption(w,T,"font.size"),fontColor:p.castHoverOption(w,T,"font.color"),nameLength:p.castHoverOption(w,T,"namelength"),textAlign:p.castHoverOption(w,T,"align"),hovertemplate:h.castOption(w,T,"hovertemplate"),hovertemplateLabels:h.extendFlat({},L,k),eventData:[L]},{container:n,gd:r,inOut_bbox:I}),L.bbox=I[0]}g.buttons&&g.distance<5?r.emit("plotly_click",C):r.emit("plotly_hover",C),c=C}else p.loneUnhover(n),r.emit("plotly_unhover",c);t.drawAnnotations(t)},w.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){e.glplot.gl.isContextLost()?requestAnimationFrame(t):e.initializeGLPlot()?e.plot.apply(e,e.plotArgs):h.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(t)};var k=["xaxis","yaxis","zaxis"];function A(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=t[o],c=t[o+"calendar"],u=t["_"+o+"length"];if(h.isArrayOrTypedArray(l))for(var f,d=0;d<(u||l.length);d++)if(h.isArrayOrTypedArray(l[d]))for(var p=0;pv[1][o])v[0][o]=-1,v[1][o]=1;else{var C=v[1][o]-v[0][o];v[0][o]-=C/32,v[1][o]+=C/32}if("reversed"===l.autorange){var I=v[0][o];v[0][o]=v[1][o],v[1][o]=I}}else{var D=l.range;v[0][o]=l.r2l(D[0]),v[1][o]=l.r2l(D[1])}v[0][o]===v[1][o]&&(v[0][o]-=1,v[1][o]+=1),y[o]=v[1][o]-v[0][o],n.glplot.setBounds(o,{min:v[0][o]*d[o],max:v[1][o]*d[o]})}var P=u.aspectmode;if("cube"===P)m=[1,1,1];else if("manual"===P){var O=u.aspectratio;m=[O.x,O.y,O.z]}else{if("auto"!==P&&"data"!==P)throw new Error("scene.js aspectRatio was not one of the enumerated types");var z=[1,1,1];for(o=0;o<3;++o){var R=x[c=(l=u[k[o]]).type];z[o]=Math.pow(R.acc,1/R.count)/d[o]}m="data"===P||Math.max.apply(null,z)/Math.min.apply(null,z)<=4?z:[1,1,1]}u.aspectratio.x=h.aspectratio.x=m[0],u.aspectratio.y=h.aspectratio.y=m[1],u.aspectratio.z=h.aspectratio.z=m[2],n.glplot.setAspectratio(u.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:u.aspectratio.x,y:u.aspectratio.y,z:u.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=u.aspectmode);var F=u.domain||null,j=t._size||null;if(F&&j){var N=n.container.style;N.position="absolute",N.left=j.l+F.x[0]*j.w+"px",N.top=j.t+(1-F.y[1])*j.h+"px",N.width=j.w*(F.x[1]-F.x[0])+"px",N.height=j.h*(F.y[1]-F.y[0])+"px"}n.glplot.redraw()}},w.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)},w.getCamera=function(){var e,t=this;return t.camera.view.recalcMatrix(t.camera.view.lastT()),{up:{x:(e=t.camera).up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:!0===e._ortho?"orthographic":"perspective"}}},w.setViewport=function(e){var t,r=this,n=e.camera;r.camera.lookAt.apply(this,[[(t=n).eye.x,t.eye.y,t.eye.z],[t.center.x,t.center.y,t.center.z],[t.up.x,t.up.y,t.up.z]]),r.glplot.setAspectratio(e.aspectratio),"orthographic"===n.projection.type!==r.camera._ortho&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())},w.isCameraChanged=function(e){var t=this.getCamera(),r=h.nestedProperty(e,this.id+".camera").get();function n(e,t,r,n){var i=["up","center","eye"],a=["x","y","z"];return t[i[r]]&&e[i[r]][a[n]]===t[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a<3;a++)for(var o=0;o<3;o++)if(!n(t,r,a,o)){i=!0;break}(!r.projection||t.projection&&t.projection.type!==r.projection.type)&&(i=!0)}return i},w.isAspectChanged=function(e){var t=this.glplot.getAspectratio(),r=h.nestedProperty(e,this.id+".aspectratio").get();return void 0===r||r.x!==t.x||r.y!==t.y||r.z!==t.z},w.saveLayout=function(e){var t,r,n,i,a,o,s=this,l=s.fullLayout,c=s.isCameraChanged(e),f=s.isAspectChanged(e),d=c||f;if(d){var p={};if(c&&(t=s.getCamera(),n=(r=h.nestedProperty(e,s.id+".camera")).get(),p[s.id+".camera"]=n),f&&(i=s.glplot.getAspectratio(),o=(a=h.nestedProperty(e,s.id+".aspectratio")).get(),p[s.id+".aspectratio"]=o),u.call("_storeDirectGUIEdit",e,l._preGUI,p),c)r.set(t),h.nestedProperty(l,s.id+".camera").set(t);if(f)a.set(i),h.nestedProperty(l,s.id+".aspectratio").set(i),s.glplot.redraw()}return d},w.updateFx=function(e,t){var r=this,n=r.camera;if(n)if("orbit"===e)n.mode="orbit",n.keyBindingMode="rotate";else if("turntable"===e){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,c=o.up.z;if(c/Math.sqrt(s*s+l*l+c*c)<.999){var f=r.id+".camera.up",d={x:0,y:0,z:1},p={};p[f]=d;var g=i.layout;u.call("_storeDirectGUIEdit",g,a._preGUI,p),o.up=d,h.nestedProperty(g,f).set(d)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t},w.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(n),t.glplot.redraw();var r=t.glplot.gl,i=r.drawingBufferWidth,a=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var o=new Uint8Array(i*a*4);r.readPixels(0,0,i,a,r.RGBA,r.UNSIGNED_BYTE,o),function(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}(o,i,a);var s=document.createElement("canvas");s.width=i,s.height=a;var l,c=s.getContext("2d"),u=c.createImageData(i,a);switch(u.data.set(o),c.putImageData(u,0,0),e){case"jpeg":l=s.toDataURL("image/jpeg");break;case"webp":l=s.toDataURL("image/webp");break;default:l=s.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(n),l},w.setConvert=function(){for(var e=0;e<3;e++){var t=this.fullSceneLayout[k[e]];d.setConvert(t,this.fullLayout),t.setScale=h.noop}},w.make4thDimension=function(){var e=this,t=e.graphDiv._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},d.setConvert(e._mockAxis,t)},e.exports=_},73044:function(e,t,r){"use strict";var n=r(43566),i=r(43357);e.exports=function(e,t,r){var a=r.flipX,o=r.flipY,s="h"===r.orientation,l=r.maxDepth,c=t[0],u=t[1];l&&(c=(e.height+1)*t[0]/Math.min(e.height+1,l),u=(e.height+1)*t[1]/Math.min(e.height+1,l));var h=n.partition().padding(r.pad.inner).size(s?[t[1],c]:[t[0],u])(e);return(s||a||o)&&i(h,t,{swapXY:s,flipX:a,flipY:o}),h}},73079:function(e,t,r){"use strict";var n=r(83491),i=r(62282),a=r(47401),o=r(92704),s=r(17504);e.exports=function(e,t,r,l){var c="error_"+l.axis,u=o.newContainer(t,c),h=e[c]||{};function f(e,t){return a.coerce(h,u,s,e,t)}if(!1!==f("visible",void 0!==h.array||void 0!==h.value||"sqrt"===h.type)){var d=f("type","array"in h?"data":"percent"),p=!0;"sqrt"!==d&&(p=f("symmetric",!(("data"===d?"arrayminus":"valueminus")in h))),"data"===d?(f("array"),f("traceref"),p||(f("arrayminus"),f("tracerefminus"))):"percent"!==d&&"constant"!==d||(f("value"),p||f("valueminus"));var g="copy_"+l.inherit+"style";if(l.inherit)(t["error_"+l.inherit]||{}).visible&&f(g,!(h.color||n(h.thickness)||n(h.width)));l.inherit&&u[g]||(f("color",r),f("thickness"),f("width",i.traceIs(t,"gl3d")?0:4))}}},73145:function(e,t,r){var n=r(55503),i=r(92021)("stream-parser");e.exports=function(e){var t=e&&"function"==typeof e._transform,r=e&&"function"==typeof e._write;if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");i("extending Parser into stream"),e._bytes=u,e._skipBytes=h,t&&(e._passthrough=f);t?e._transform=p:e._write=d};var a=-1,o=0,s=1,l=2;function c(e){i("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=a,e._parserCallback=null,"function"==typeof e.push&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function u(e,t){n(!this._parserCallback,'there is already a "callback" set!'),n(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||c(this),i("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=o}function h(e,t){n(!this._parserCallback,'there is already a "callback" set!'),n(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||c(this),i("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=s}function f(e,t){n(!this._parserCallback,'There is already a "callback" set!'),n(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||c(this),i("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=l}function d(e,t,r){this._parserInit||c(this),i("write(%o bytes)",e.length),"function"==typeof t&&(r=t),m(this,e,null,r)}function p(e,t,r){this._parserInit||c(this),i("transform(%o bytes)",e.length),"function"!=typeof t&&(t=this._parserOutput),m(this,e,t,r)}function g(e,t,r,n){if(e._parserBytesLeft-=t.length,i("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===o?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===l&&r(t),0!==e._parserBytesLeft)return n;var s=e._parserCallback;if(s&&e._parserState===o&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==o&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=a,e._parserBuffers.splice(0),s){var c=[];t&&c.push(t),r&&c.push(r);var u=s.length>c.length;u&&c.push(v(n));var h=s.apply(e,c);if(!u||n===h)return n}}var m=v((function e(t,r,n,i){return t._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):r.length<=t._parserBytesLeft?function(){return g(t,r,n,i)}:function(){var a=r.slice(0,t._parserBytesLeft);return g(t,a,n,(function(o){return o?i(o):r.length>a.length?function(){return e(t,r.slice(a.length),n,i)}:void 0}))}}));function v(e){return function(){for(var t=e.apply(this,arguments);"function"==typeof t;)t=t();return t}}},73182:function(e,t,r){"use strict";e.exports=r(84909)},73207:function(e,t,r){"use strict";var n=r(47401),i=r(98048),a=r(31454),o=r(16688).N,s=r(18878).handleText,l=r(33419).TEXTPAD,c=r(47624),u=c.hasColorscale,h=c.handleDefaults;e.exports=function(e,t,r,c){function f(r,a){return n.coerce(e,t,i,r,a)}var d=f("labels"),p=f("parents");if(d&&d.length&&p&&p.length){var g=f("values");g&&g.length?f("branchvalues"):f("count"),f("level"),f("maxdepth"),"squarify"===f("tiling.packing")&&f("tiling.squarifyratio"),f("tiling.flip"),f("tiling.pad");var m=f("text");f("texttemplate"),t.texttemplate||f("textinfo",Array.isArray(m)?"text+label":"label"),f("hovertext"),f("hovertemplate");var v=f("pathbar.visible");s(e,t,c,f,"auto",{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),f("textposition");var y=-1!==t.textposition.indexOf("bottom");f("marker.line.width")&&f("marker.line.color",c.paper_bgcolor);var x=f("marker.colors");(t._hasColorscale=u(e,"marker","colors")||(e.marker||{}).coloraxis)?h(e,t,c,f,{prefix:"marker.",cLetter:"c"}):f("marker.depthfade",!(x||[]).length);var b=2*t.textfont.size;f("marker.pad.t",y?b/4:b),f("marker.pad.l",b/4),f("marker.pad.r",b/4),f("marker.pad.b",y?b:b/4),t._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&&(f("pathbar.thickness",t.pathbar.textfont.size+2*l),f("pathbar.side"),f("pathbar.edgeshape")),f("sort"),f("root.color"),o(t,c,f),t._length=null}else t.visible=!1}},73266:function(e,t,r){"use strict";var n=r(84941).wrap;e.exports=function(){return n({})}},73314:function(e){"use strict";e.exports=function(e){return Object.keys(e).sort()}},73435:function(e,t,r){"use strict";var n=r(62282),i=r(47401);function a(e,t,r){var n,a,o,s=!1;if("data"===t.type)n=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;n=e._fullLayout}return a=i.nestedProperty(n,t.prop).get(),(o=r[t.type]=r[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==a&&(s=!0),o[t.prop]=a,{changed:s,value:a}}function o(e,t){var r=[],n=t[0],a={};if("string"===typeof n)a[n]=t[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(e,t,n){r.push({type:"layout",prop:e,value:n})}),"",0),r}function s(e,t){var r,n,a,o,s=[];if(n=t[0],a=t[1],r=t[2],o={},"string"===typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&&(r=a)}return void 0===r&&(r=null),l(o,(function(t,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,e.data.length);r&&(l=Math.min(l,r.length)),a=[];for(var c=0;c0?".":"")+a;i.isPlainObject(o)?l(o,t,s,n+1):t(s,a,o)}}))}t.manageCommandObserver=function(e,r,n,o){var s={},l=!0;r&&r._commandObserver&&(s=r._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,n,s.lookupTable);if(r&&r._commandObserver){if(c)return s;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,s}if(c){a(e,c,s.cache),s.check=function(){if(l){var t=a(e,c,s.cache);return t.changed&&o&&void 0!==s.lookupTable[t.value]&&(s.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[t.value]})).then(s.enable,s.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;hw,A=s.barLength+2*s.barPad,M=s.barWidth+2*s.barPad,S=p,E=m+v;E+M>c&&(E=c-M);var L=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-horizontal",!0).call(i.fill,s.barColor),k?(this.hbar=L.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=v>T,I=s.barWidth+2*s.barPad,D=s.barLength+2*s.barPad,P=p+g,O=m;P+I>l&&(P=l-I);var z=this.container.selectAll("rect.scrollbar-vertical").data(C?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-vertical",!0).call(i.fill,s.barColor),C?(this.vbar=z.attr({rx:s.barRadius,ry:s.barRadius,x:P,y:O,width:I,height:D}),this._vbarYMin=O+D/2,this._vbarTranslateMax=T-D):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,j=C?h+I+.5:h+.5,N=f-.5,B=k?d+M+.5:d+.5,U=o._topdefs.selectAll("#"+R).data(k||C?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",R).append("rect"),k||C?(this._clipRect=U.select("rect").attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(j)-Math.floor(F),height:Math.ceil(B)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:p,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),k||C){var V=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var q=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(q),C&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},s.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.event.deltaY),this.setTranslate(e,t)},s.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,i=r+this._hbarTranslateMax;e=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=t+this._vbarYMin,s=a+this._vbarTranslateMax;t=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(e,t)},s.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,n),this.translateX=e,this.translateY=t,this.container.call(a.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=e/r;this.hbar.call(a.setTranslate,e+i*this._hbarTranslateMax,t)}if(this.vbar){var s=t/n;this.vbar.call(a.setTranslate,e,t+s*this._vbarTranslateMax)}}},73580:function(e){"use strict";e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc",description:["Determines how boxes at the same location coordinate","are displayed on the graph.","If *group*, the boxes are plotted next to one another","centered around the shared location.","If *overlay*, the boxes are plotted over one another,","you might need to set *opacity* to see them multiple boxes.","Has no effect on traces that have *width* set."].join(" ")},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc",description:["Sets the gap (in plot fraction) between boxes of","adjacent location coordinates.","Has no effect on traces that have *width* set."].join(" ")},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc",description:["Sets the gap (in plot fraction) between boxes of","the same location coordinate.","Has no effect on traces that have *width* set."].join(" ")}}},73608:function(e,t,r){"use strict";var n=r(47401),i=r(78899).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(e,t,r,n){var i,a,o=n[0],s=n[1],l=h(Math.sin(t)-Math.sin(e)),c=h(Math.cos(t)-Math.cos(e)),u=Math.tan(r),f=h(1/u),d=l/c,p=s-d*o;return f?l&&c?a=u*(i=p/(u-d)):c?(i=s*f,a=s):(i=o,a=o*u):l&&c?(i=0,a=p):c?(i=0,a=s):i=a=NaN,[i,a]}function u(e,t,r,i){return n.isFullCircle([t,r])?function(e,t){var r,n=t.length,i=new Array(n+1);for(r=0;r1e-10?e:0}function f(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a0?r:1/0})),i=n.mod(r+1,t.length);return[t[r],t[i]]},findIntersectionXY:c,findXYatLength:function(e,t,r,n){var i=-t*r,a=t*t+1,o=2*(t*i-r),s=i*i+r*r-e*e,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,t*c+i+n],[u,t*u+i+n]]},clampTiny:h,pathPolygon:function(e,t,r,n,i,a){return"M"+f(u(e,t,r,n),i,a).join("L")},pathPolygonAnnulus:function(e,t,r,n,i,a,o){var s,l;e1&&(u=g[y-1],f=m[y-1],p=v[y-1]),t=0;tu?"-":"+")+"x")).replace("y",(h>f?"-":"+")+"y")).replace("z",(d>p?"-":"+")+"z");var L=function(){y=0,M=[],S=[],E=[]};(!y||yo&&(o=e);ts&&(s=t)},lineStart:n.A,lineEnd:n.A,polygonStart:n.A,polygonEnd:n.A,result:function(){var e=[[i,a],[o,s]];return o=s=-(a=i=1/0),e}};t.A=l},73926:function(e,t,r){"use strict";var n=r(74545),i=r(31454).addOpacity,a=r(62282),o=r(47401),s=r(37801),l=r(51860),c=r(91289),u=r(58947),h=r(60210);e.exports=function(e,t,r){var f=r.letter,d=r.font||{},p=n[f+"axis"];function g(r,n){return o.coerce(e,t,p,r,n)}function m(r,n){return o.coerce2(e,t,p,r,n)}r.name&&(t._name=r.name,t._id=r.name),g("autotypenumbers",r.autotypenumbersDflt);var v=g("type");("-"===v&&(r.data&&function(e,t){if("-"!==e.type)return;var r=e._id.charAt(0),n=e[r+"calendar"];e.type=h(t,n,{autotypenumbers:e.autotypenumbers})}(t,r.data),"-"===t.type?t.type="linear":v=e.type=t.type),g("smoothing"),g("cheatertype"),g("showticklabels"),g("labelprefix",f+" = "),g("labelsuffix"),g("showtickprefix"),g("showticksuffix"),g("separatethousands"),g("tickformat"),g("exponentformat"),g("minexponent"),g("showexponent"),g("categoryorder"),g("tickmode"),g("tickvals"),g("ticktext"),g("tick0"),g("dtick"),"array"===t.tickmode&&(g("arraytick0"),g("arraydtick")),g("labelpadding"),t._hovertitle=f,"date"===v)&&a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",r.calendar);u(t,r.fullLayout),t.c2p=o.identity;var y=g("color",r.dfltColor),x=y===e.color?y:d.color;g("title.text")&&(o.coerceFont(g,"title.font",{family:d.family,size:o.bigFont(d.size),color:x}),g("title.offset")),g("tickangle"),g("autorange",!t.isValidRange(e.range))&&g("rangemode"),g("range"),t.cleanRange(),g("fixedrange"),s(e,t,g,v),l(e,t,g,v,r),c(e,t,g,{data:r.data,dataAttr:f});var b=m("gridcolor",i(y,.3)),_=m("gridwidth"),w=g("showgrid");w||(delete t.gridcolor,delete t.gridwidth);var T=m("startlinecolor",y),k=m("startlinewidth",_);g("startline",t.showgrid||!!T||!!k)||(delete t.startlinecolor,delete t.startlinewidth);var A=m("endlinecolor",y),M=m("endlinewidth",_);return g("endline",t.showgrid||!!A||!!M)||(delete t.endlinecolor,delete t.endlinewidth),w?(g("minorgridcount"),g("minorgridwidth",_),g("minorgridcolor",i(b,.06)),t.minorgridcount||(delete t.minorgridwidth,delete t.minorgridcolor)):(delete t.gridcolor,delete t.gridWidth),"none"===t.showticklabels&&(delete t.tickfont,delete t.tickangle,delete t.showexponent,delete t.exponentformat,delete t.minexponent,delete t.tickformat,delete t.showticksuffix,delete t.showtickprefix),t.showticksuffix||delete t.ticksuffix,t.showtickprefix||delete t.tickprefix,g("tickmode"),t}},74101:function(e,t,r){var n=r(88363);e.exports=function(e,t){var r,i=[],a=[],o=[],s={},l=[];function c(e){o[e]=!1,s.hasOwnProperty(e)&&Object.keys(s[e]).forEach((function(t){delete s[e][t],o[t]&&c(t)}))}function u(e){var t,n,i=!1;for(a.push(e),o[e]=!0,t=0;t=t}))}(t);for(var r,i=n(e).components.filter((function(e){return e.length>1})),a=1/0,o=0;o0}function S(e){return"auto"===e?0:e}function E(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function L(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||"end",u="end"===c,h="start"===c,f=((a.leftToRight||0)+1)/2,d=1-f,p=i.width,g=i.height,m=Math.abs(t-e),v=Math.abs(n-r),y=m>2*_&&v>2*_?_:0;m-=2*y,v-=2*y;var x=S(l);"auto"!==l||p<=m&&g<=v||!(p>m||g>v)||(p>v||g>m)&&p.01?H:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?H(e):e>t?Math.ceil(e):Math.floor(e)};j=G(j,N,z),N=G(N,j,z),B=G(B,U,!z),U=G(U,B,!z)}var W=A(a.ensureSingle(D,"path"),I,m,v);if(W.style("vector-effect","non-scaling-stroke").attr("d",isNaN((N-j)*(U-B))||V&&e._context.staticPlot?"M0,0Z":"M"+j+","+B+"V"+U+"H"+N+"V"+B+"Z").call(l.setClipUrl,t.layerClipId,e),!I.uniformtext.mode&&R){var Y=l.makePointStyleFns(h);l.singlePointStyle(c,W,h,Y,e)}!function(e,t,r,n,i,s,c,h,d,m,v){var w,T=t.xaxis,M=t.yaxis,C=e._fullLayout;function I(t,r,n){return a.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(l.font,n).call(o.convertToTspans,e)}var D=n[0].trace,P="h"===D.orientation,O=function(e,t,r,n,i){var o,s=t[0].trace,l=s.texttemplate;o=l?function(e,t,r,n,i){var o=t[0].trace,s=a.castOption(o,r,"texttemplate");if(!s)return"";var l,c,h,f,d="waterfall"===o.type,p="funnel"===o.type;"h"===o.orientation?(l="y",c=i,h="x",f=n):(l="x",c=n,h="y",f=i);function g(e){return u(c,c.c2l(e),!0).text}function m(e){return u(f,f.c2l(e),!0).text}var v=t[r],y={};y.label=v.p,y.labelLabel=y[l+"Label"]=g(v.p);var x=a.castOption(o,v.i,"text");(0===x||x)&&(y.text=x);y.value=v.s,y.valueLabel=y[h+"Label"]=m(v.s);var _={};b(_,o,v.i),d&&(y.delta=+v.rawS||v.s,y.deltaLabel=m(y.delta),y.final=v.v,y.finalLabel=m(y.final),y.initial=y.final-y.delta,y.initialLabel=m(y.initial));p&&(y.value=v.s,y.valueLabel=m(y.value),y.percentInitial=v.begR,y.percentInitialLabel=a.formatPercent(v.begR),y.percentPrevious=v.difR,y.percentPreviousLabel=a.formatPercent(v.difR),y.percentTotal=v.sumR,y.percenTotalLabel=a.formatPercent(v.sumR));var w=a.castOption(o,v.i,"customdata");w&&(y.customdata=w);return a.texttemplateString(s,y,e._d3locale,_,y,o._meta||{})}(e,t,r,n,i):s.textinfo?function(e,t,r,n){var i=e[0].trace,o="h"===i.orientation,s="waterfall"===i.type,l="funnel"===i.type;function c(e){return u(o?n:r,e,!0).text}function h(e){return u(o?r:n,+e,!0).text}var f,d=i.textinfo,p=e[t],g=d.split("+"),m=[],v=function(e){return-1!==g.indexOf(e)};v("label")&&m.push(c(e[t].p));v("text")&&(0===(f=a.castOption(i,p.i,"text"))||f)&&m.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;v("initial")&&m.push(h(b)),v("delta")&&m.push(h(y)),v("final")&&m.push(h(x))}if(l){v("value")&&m.push(h(p.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var w=_>1;v("percent initial")&&(f=a.formatPercent(p.begR),w&&(f+=" of initial"),m.push(f)),v("percent previous")&&(f=a.formatPercent(p.difR),w&&(f+=" of previous"),m.push(f)),v("percent total")&&(f=a.formatPercent(p.sumR),w&&(f+=" of total"),m.push(f))}return m.join("
")}(t,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(C,n,i,T,M);w=function(e,t){var r=g.getValue(e.textposition,t);return g.coerceEnumerated(x,r)}(D,i);var z="stack"===m.mode||"relative"===m.mode,R=n[i],F=!z||R._outmost;if(!O||"none"===w||(R.isBlank||s===c||h===d)&&("auto"===w||"inside"===w))return void r.select("text").remove();var j=C.font,N=p.getBarColor(n[i],D),B=p.getInsideTextFont(D,i,j,N),U=p.getOutsideTextFont(D,i,j),V=r.datum();P?"log"===T.type&&V.s0<=0&&(s=T.range[0]0&&W>0&&(G<=Z&&W<=X||G<=X&&W<=Z||(P?Z>=G*(X/W):X>=W*(Z/G)))?w="inside":(w="outside",q.remove(),q=null);else w="inside"}if(!q){var K=(q=I(r,O,Y=a.ensureUniformFontSize(e,"outside"===w?U:B))).attr("transform");if(q.attr("transform",""),G=(H=l.bBox(q.node())).width,W=H.height,q.attr("transform",K),G<=0||W<=0)return void q.remove()}var J,Q=D.textangle;J="outside"===w?function(e,t,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,h=i.height,f=Math.abs(t-e),d=Math.abs(n-r);o=s?d>2*_?_:0:f>2*_?_:0;var p=1;l&&(p=s?Math.min(1,d/h):Math.min(1,f/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(e+t)/2,w=(r+n)/2,T=0,A=0,M=s?k(t,e):k(r,n);s?(b=t-M*o,T=M*v):(w=n+M*o,A=-M*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:A,scale:p,rotate:g}}(s,c,h,d,H,{isHorizontal:P,constrained:"both"===D.constraintext||"outside"===D.constraintext,angle:Q}):L(s,c,h,d,H,{isHorizontal:P,constrained:"both"===D.constraintext||"inside"===D.constraintext,angle:Q,anchor:D.insidetextanchor});J.fontSize=Y.size,f(D.type,J,C),R.transform=J,A(q,C,m,v).attr("transform",a.getTextTransform(J))}(e,t,D,r,d,j,N,B,U,m,v),t.layerClipId&&l.hideOutsideRangePoint(c,D.select("text"),w,C,h.xcalendar,h.ycalendar)}));var B=!1===h.cliponaxis;l.setClipUrl(c,B?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,D,t,m)},toMoveInsideBar:L}},74858:function(e){e.exports=function(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r*r+n*n+i*i+a*a;o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=a*o);return e}},75019:function(e,t,r){"use strict";var n=r(66869);function i(e,t,r){var n,i,a=e.length,o=t.arrayArgs.length,s=t.indexArgs.length>0,l=[],c=[],u=0,h=0;for(n=0;n0&&l.push("var "+c.join(",")),n=a-1;n>=0;--n)u=e[n],l.push(["for(i",n,"=0;i",n,"0&&l.push(["index[",h,"]-=s",h].join("")),l.push(["++index[",u,"]"].join(""))),l.push("}")}return l.join("\n")}function a(e,t,r){for(var n=e.body,i=[],a=[],o=0;o0&&(r=r&&t[n]===t[n-1])}return r?t[0]:t.join("")}e.exports=function(e,t){for(var r=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,s=new Array(e.arrayArgs.length),l=new Array(e.arrayArgs.length),c=0;c0&&x.push("shape=SS.slice(0)"),e.indexArgs.length>0){var b=new Array(r);for(c=0;c0&&y.push("var "+x.join(",")),c=0;c3&&y.push(a(e.pre,e,l));var k=a(e.body,e,l),A=function(e){for(var t=0,r=e[0].length;t0,c=[],u=0;u0;){"].join("")),c.push(["if(j",u,"<",s,"){"].join("")),c.push(["s",t[u],"=j",u].join("")),c.push(["j",u,"=0"].join("")),c.push(["}else{s",t[u],"=",s].join("")),c.push(["j",u,"-=",s,"}"].join("")),l&&c.push(["index[",t[u],"]=j",u].join(""));for(u=0;u3&&y.push(a(e.post,e,l)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+y.join("\n")+"\n----------");var M=[e.funcName||"unnamed","_cwise_loop_",s[0].join("s"),"m",A,o(l)].join("");return new Function(["function ",M,"(",v.join(","),"){",y.join("\n"),"} return ",M].join(""))()}},75152:function(e){"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearSelect:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._drawing=!1}}},75172:function(e,t,r){"use strict";var n=r(47401),i=r(58555),a=r(3513),o=r(4475);e.exports=function(e,t){var r;return n.isPlainObject(e)||(r=n.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise((function(s,l){r&&r._snapshotInProgress&&l(new Error("Snapshotting already in progress.")),n.isIE()&&"svg"!==t.format&&l(new Error(o.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var c=i(e,t),u=t.filename||e.fn||"newplot";u+="."+t.format.replace("-","."),c.then((function(e){return r&&(r._snapshotInProgress=!1),a(e,u,t.format)})).then((function(e){s(e)})).catch((function(e){r&&(r._snapshotInProgress=!1),l(e)}))}))}},75223:function(e){"use strict";e.exports={eventDataKeys:["binNumber"]}},75501:function(e,t,r){var n=r(66129),i=r(772),a="undefined"!==typeof Float64Array;function o(e,t){return e[0]-t[0]}function s(){var e,t=this.stride,r=new Array(t.length);for(e=0;eMath.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&a.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):a.push("ORDER})")),a.push("proto.set=function "+r+"_set("+l.join(",")+",v){"),i?a.push("return this.data.set("+u+",v)}"):a.push("return this.data["+u+"]=v}"),a.push("proto.get=function "+r+"_get("+l.join(",")+"){"),i?a.push("return this.data.get("+u+")}"):a.push("return this.data["+u+"]}"),a.push("proto.index=function "+r+"_index(",l.join(),"){return "+u+"}"),a.push("proto.hi=function "+r+"_hi("+l.join(",")+"){return new "+r+"(this.data,"+o.map((function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")})).join(",")+","+o.map((function(e){return"this.stride["+e+"]"})).join(",")+",this.offset)}");var d=o.map((function(e){return"a"+e+"=this.shape["+e+"]"})),p=o.map((function(e){return"c"+e+"=this.stride["+e+"]"}));a.push("proto.lo=function "+r+"_lo("+l.join(",")+"){var b=this.offset,d=0,"+d.join(",")+","+p.join(","));for(var g=0;g=0){d=i"+g+"|0;b+=c"+g+"*d;a"+g+"-=d}");a.push("return new "+r+"(this.data,"+o.map((function(e){return"a"+e})).join(",")+","+o.map((function(e){return"c"+e})).join(",")+",b)}"),a.push("proto.step=function "+r+"_step("+l.join(",")+"){var "+o.map((function(e){return"a"+e+"=this.shape["+e+"]"})).join(",")+","+o.map((function(e){return"b"+e+"=this.stride["+e+"]"})).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(g=0;g=0){c=(c+this.stride["+g+"]*i"+g+")|0}else{a.push(this.shape["+g+"]);b.push(this.stride["+g+"])}");return a.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),a.push("return function construct_"+r+"(data,shape,stride,offset){return new "+r+"(data,"+o.map((function(e){return"shape["+e+"]"})).join(",")+","+o.map((function(e){return"stride["+e+"]"})).join(",")+",offset)}"),new Function("CTOR_LIST","ORDER",a.join("\n"))(c[e],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(e,t,r,n){if(void 0===e)return(0,c.array[0])([]);"number"===typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var o=t.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s>=0;--s)r[s]=u,u*=t[s]}if(void 0===n){n=0;for(s=0;s=i||(r=i-t.y0)>1e-6&&(t.y0+=r,t.y1+=r),i=t.y1+d}))}(function(e){var t,r,n=e.map((function(e,t){return{x0:e.x0,index:t}})).sort((function(e,t){return e.x0-t.x0})),i=[],a=-1,o=-1/0;for(_=0;_o+p&&(a+=1,t=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=t-s.x0,s.x0+=r,s.x1+=r}return i}(v=k.nodes));n.update(k)}return{circular:b,key:r,trace:a,guid:f.randstr(),horizontal:h,width:g,height:m,nodePad:a.node.pad,nodeLineColor:a.node.line.color,nodeLineWidth:a.node.line.width,linkLineColor:a.link.line.color,linkLineWidth:a.link.line.width,valueFormat:a.valueformat,valueSuffix:a.valuesuffix,textFont:a.textfont,translateX:u.x[0]*e.width+e.margin.l,translateY:e.height-u.y[1]*e.height+e.margin.t,dragParallel:h?m:g,dragPerpendicular:h?g:m,arrangement:a.arrangement,sankey:n,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function A(e,t,r){var n=c(t.color),i=t.source.label+"|"+t.target.label+"__"+r;return t.trace=e.trace,t.curveNumber=e.trace.index,{circular:e.circular,key:i,traceId:e.key,pointNumber:t.pointNumber,link:t,tinyColorHue:u.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:M,linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,parent:e,interactionState:e.interactionState,flow:t.flow}}function M(){return function(e){if(e.link.circular)return function(e){var t=e.width/2,r=e.circularPathData;return"top"===e.circularLinkType?"M "+r.targetX+" "+(r.targetY+t)+" L"+r.rightInnerExtent+" "+(r.targetY+t)+"A"+(r.rightLargeArcRadius+t)+" "+(r.rightSmallArcRadius+t)+" 0 0 1 "+(r.rightFullExtent-t)+" "+(r.targetY-r.rightSmallArcRadius)+"L"+(r.rightFullExtent-t)+" "+r.verticalRightInnerExtent+"A"+(r.rightLargeArcRadius+t)+" "+(r.rightLargeArcRadius+t)+" 0 0 1 "+r.rightInnerExtent+" "+(r.verticalFullExtent-t)+"L"+r.leftInnerExtent+" "+(r.verticalFullExtent-t)+"A"+(r.leftLargeArcRadius+t)+" "+(r.leftLargeArcRadius+t)+" 0 0 1 "+(r.leftFullExtent+t)+" "+r.verticalLeftInnerExtent+"L"+(r.leftFullExtent+t)+" "+(r.sourceY-r.leftSmallArcRadius)+"A"+(r.leftLargeArcRadius+t)+" "+(r.leftSmallArcRadius+t)+" 0 0 1 "+r.leftInnerExtent+" "+(r.sourceY+t)+"L"+r.sourceX+" "+(r.sourceY+t)+"L"+r.sourceX+" "+(r.sourceY-t)+"L"+r.leftInnerExtent+" "+(r.sourceY-t)+"A"+(r.leftLargeArcRadius-t)+" "+(r.leftSmallArcRadius-t)+" 0 0 0 "+(r.leftFullExtent-t)+" "+(r.sourceY-r.leftSmallArcRadius)+"L"+(r.leftFullExtent-t)+" "+r.verticalLeftInnerExtent+"A"+(r.leftLargeArcRadius-t)+" "+(r.leftLargeArcRadius-t)+" 0 0 0 "+r.leftInnerExtent+" "+(r.verticalFullExtent+t)+"L"+r.rightInnerExtent+" "+(r.verticalFullExtent+t)+"A"+(r.rightLargeArcRadius-t)+" "+(r.rightLargeArcRadius-t)+" 0 0 0 "+(r.rightFullExtent+t)+" "+r.verticalRightInnerExtent+"L"+(r.rightFullExtent+t)+" "+(r.targetY-r.rightSmallArcRadius)+"A"+(r.rightLargeArcRadius-t)+" "+(r.rightSmallArcRadius-t)+" 0 0 0 "+r.rightInnerExtent+" "+(r.targetY-t)+"L"+r.targetX+" "+(r.targetY-t)+"Z":"M "+r.targetX+" "+(r.targetY-t)+" L"+r.rightInnerExtent+" "+(r.targetY-t)+"A"+(r.rightLargeArcRadius+t)+" "+(r.rightSmallArcRadius+t)+" 0 0 0 "+(r.rightFullExtent-t)+" "+(r.targetY+r.rightSmallArcRadius)+"L"+(r.rightFullExtent-t)+" "+r.verticalRightInnerExtent+"A"+(r.rightLargeArcRadius+t)+" "+(r.rightLargeArcRadius+t)+" 0 0 0 "+r.rightInnerExtent+" "+(r.verticalFullExtent+t)+"L"+r.leftInnerExtent+" "+(r.verticalFullExtent+t)+"A"+(r.leftLargeArcRadius+t)+" "+(r.leftLargeArcRadius+t)+" 0 0 0 "+(r.leftFullExtent+t)+" "+r.verticalLeftInnerExtent+"L"+(r.leftFullExtent+t)+" "+(r.sourceY+r.leftSmallArcRadius)+"A"+(r.leftLargeArcRadius+t)+" "+(r.leftSmallArcRadius+t)+" 0 0 0 "+r.leftInnerExtent+" "+(r.sourceY-t)+"L"+r.sourceX+" "+(r.sourceY-t)+"L"+r.sourceX+" "+(r.sourceY+t)+"L"+r.leftInnerExtent+" "+(r.sourceY+t)+"A"+(r.leftLargeArcRadius-t)+" "+(r.leftSmallArcRadius-t)+" 0 0 1 "+(r.leftFullExtent-t)+" "+(r.sourceY+r.leftSmallArcRadius)+"L"+(r.leftFullExtent-t)+" "+r.verticalLeftInnerExtent+"A"+(r.leftLargeArcRadius-t)+" "+(r.leftLargeArcRadius-t)+" 0 0 1 "+r.leftInnerExtent+" "+(r.verticalFullExtent-t)+"L"+r.rightInnerExtent+" "+(r.verticalFullExtent-t)+"A"+(r.rightLargeArcRadius-t)+" "+(r.rightLargeArcRadius-t)+" 0 0 1 "+(r.rightFullExtent+t)+" "+r.verticalRightInnerExtent+"L"+(r.rightFullExtent+t)+" "+(r.targetY+r.rightSmallArcRadius)+"A"+(r.rightLargeArcRadius-t)+" "+(r.rightSmallArcRadius-t)+" 0 0 1 "+r.rightInnerExtent+" "+(r.targetY+t)+"L"+r.targetX+" "+(r.targetY+t)+"Z"}(e.link);var t=e.link.source.x1,r=e.link.target.x0,n=i(t,r),a=n(.5),o=n(.5),s=e.link.y0-e.link.width/2,l=e.link.y0+e.link.width/2,c=e.link.y1-e.link.width/2,u=e.link.y1+e.link.width/2;return"M"+t+","+s+"C"+a+","+s+" "+o+","+c+" "+r+","+c+"L"+r+","+u+"C"+o+","+u+" "+a+","+l+" "+t+","+l+"Z"}}function S(e,t){var r=c(t.color),n=l.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=f.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:1===t.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function E(e){e.attr("transform",(function(e){return d(e.node.x0.toFixed(3),e.node.y0.toFixed(3))}))}function L(e){e.call(E)}function C(e,t){e.call(L),t.attr("d",M())}function I(e){e.attr("width",(function(e){return e.node.x1-e.node.x0})).attr("height",(function(e){return e.visibleHeight}))}function D(e){return e.link.width>1||e.linkLineWidth>0}function P(e){return d(e.translateX,e.translateY)+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function O(e,t,r){e.on(".basic",null).on("mouseover.basic",(function(e){e.interactionState.dragInProgress||e.partOfGroup||(r.hover(this,e,t),e.interactionState.hovered=[this,e])})).on("mousemove.basic",(function(e){e.interactionState.dragInProgress||e.partOfGroup||(r.follow(this,e),e.interactionState.hovered=[this,e])})).on("mouseout.basic",(function(e){e.interactionState.dragInProgress||e.partOfGroup||(r.unhover(this,e,t),e.interactionState.hovered=!1)})).on("click.basic",(function(e){e.interactionState.hovered&&(r.unhover(this,e,t),e.interactionState.hovered=!1),e.interactionState.dragInProgress||e.partOfGroup||r.select(this,e,t)}))}function z(e,t,r,i){var o=a.behavior.drag().origin((function(e){return{x:e.node.x0+e.visibleWidth/2,y:e.node.y0+e.visibleHeight/2}})).on("dragstart",(function(a){if("fixed"!==a.arrangement&&(f.ensureSingle(i._fullLayout._infolayer,"g","dragcover",(function(e){i._fullLayout._dragCover=e})),f.raiseToTop(this),a.interactionState.dragInProgress=a.node,F(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),"snap"===a.arrangement)){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):function(e,t,r){!function(e){for(var t=0;t0&&n.forceLayouts[t].alpha(0)}}(0,t,i,r)).stop()}(0,o,a),function(e,t,r,n,i){window.requestAnimationFrame((function a(){var o;for(o=0;o0)window.requestAnimationFrame(a);else{var s=r.node.originalX;r.node.x0=s-r.visibleWidth/2,r.node.x1=s+r.visibleWidth/2,R(r,i)}}))}(e,t,a,o,i)}})).on("drag",(function(r){if("fixed"!==r.arrangement){var n=a.event.x,i=a.event.y;"snap"===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2):("freeform"===r.arrangement&&(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),i=Math.max(0,Math.min(r.size-r.visibleHeight/2,i)),r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2),F(r.node),"snap"!==r.arrangement&&(r.sankey.update(r.graph),C(e.filter(j(r)),t))}})).on("dragend",(function(e){if("fixed"!==e.arrangement){e.interactionState.dragInProgress=!1;for(var t=0;t0;){i[d=o.pop()]=!1;var c=r[d];for(s=0;s0){for(var r=0;r0}function u(e){var t={},r={};switch(e.type){case"circle":n.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":n.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":n.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":i.placement}),n.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":n.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity})}return{layout:t,paint:r}}l.update=function(e){this.visible?this.needsNewImage(e)?this.updateImage(e):this.needsNewSource(e)?(this.removeLayer(),this.updateSource(e),this.updateLayer(e)):this.needsNewLayer(e)?this.updateLayer(e):this.updateStyle(e):(this.updateSource(e),this.updateLayer(e)),this.visible=c(e)},l.needsNewImage=function(e){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===e.sourcetype&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))},l.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type},l.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},l.updateImage=function(e){this.subplot.map.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var t=this.findFollowingMapboxLayerId(this.lookupBelow());null!==t&&this.subplot.map.moveLayer(this.idLayer,t)},l.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,c(e)){var r=function(e){var t,r=e.sourcetype,n=e.source,a={type:r};"geojson"===r?t="data":"vector"===r?t="string"===typeof n?"url":"tiles":"raster"===r?(t="tiles",a.tileSize=256):"image"===r&&(t="url",a.coordinates=e.coordinates);a[t]=n,e.sourceattribution&&(a.attribution=i(e.sourceattribution));return a}(e);t.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(e){if("traces"===e)for(var t=this.subplot.getMapLayers(),r=0;ro.level||o.starts.length&&a===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r":d>c&&(n.prefixBoundary=!0);break;case"<":(dc||n.starts.length&&f===u)&&(n.prefixBoundary=!0);break;case"][":h=Math.min(d[0],d[1]),f=Math.max(d[0],d[1]),hc&&(n.prefixBoundary=!0)}}}},76152:function(e,t,r){var n=r(17186);e.exports=function(e,t,r){t="number"===typeof t?t:1,r=r||": ";var i=e.split(/\r?\n/),a=String(i.length+t-1).length;return i.map((function(e,i){var o=i+t,s=String(o).length;return n(o,a-s)+r+e})).join("\n")}},76184:function(e,t,r){"use strict";var n=r(62258),i=r(41707),a=r(31454),o=r(49158).DESELECTDIM,s=r(49651),l=r(77846).resizeText,c=s.styleTextPoints;e.exports={style:function(e,t,r){var s=r||n.select(e).selectAll("g.funnellayer").selectAll("g.trace");l(e,s,"funnel"),s.style("opacity",(function(e){return e[0].trace.opacity})),s.each((function(t){var r=n.select(this),s=t[0].trace;r.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=s.marker;n.select(this).call(a.fill,e.mc||t.color).call(a.stroke,e.mlc||t.line.color).call(i.dashLine,t.line.dash,e.mlw||t.line.width).style("opacity",s.selectedpoints&&!e.selected?o:1)}})),c(r,s,e),r.selectAll(".regions").each((function(){n.select(this).selectAll("path").style("stroke-width",0).call(a.fill,s.connector.fillcolor)})),r.selectAll(".lines").each((function(){var e=s.connector.line;i.lineGroupStyle(n.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},76266:function(e){"use strict";e.exports=function(e,t){if(!e||null==e.length)throw Error("Argument should be an array");t=null==t?1:Math.floor(t);for(var r=Array(2*t),n=0;ni&&(i=e[o]),e[o]c?e>o?e>1.1*i?i:e>1.1*a?a:o:e>s?s:e>l?l:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function d(e,t,r,n,a,s){if(n&&e>o){var l=p(t,a,s),c=p(r,a,s),u=e===i?0:1;return l[u]!==c[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function p(e,t,r){var n=t.c2d(e,i,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}e.exports=function(e,t,r,n,a){var s,l,c=-1.1*t,f=-.1*t,d=e-f,p=r[0],g=r[1],m=Math.min(h(p+f,p+d,n,a),h(g+f,g+d,n,a)),v=Math.min(h(p+c,p+f,n,a),h(g+c,g+f,n,a));if(m>v&&vo){var y=s===i?1:6,x=s===i?"M12":"M1";return function(t,r){var o=n.c2d(t,i,a),s=o.indexOf("-",y);s>0&&(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c=10&&a(e,t,s)&&(i=o.get_orientation(e.slice(t+6,t+r))),r>=5&&192<=l&&l<=207&&196!==l&&200!==l&&204!==l){if(e.length-t0&&(c.orientation=i),c}t+=r}}},77063:function(e,t,r){"use strict";var n=r(62282),i=r(56890);function a(e,t){if(t&&t.length)for(var r=0;rn?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},t.isLinked=function(e,t){return a(t,e._axisMatchGroups)||a(t,e._axisConstraintGroups)}},77227:function(e,t,r){"use strict";e.exports=r(81524)},77253:function(e,t,r){"use strict";e.exports=r(41262)},77301:function(e,t,r){"use strict";var n=r(21661),i=r(47401),a=r(37762),o=r(47624).extractOpts;e.exports=function(e,t,r,s,l){l||(l={});var c,u,h,f,d=l.isContour,p=e.cd[0],g=p.trace,m=e.xa,v=e.ya,y=p.x,x=p.y,b=p.z,_=p.xCenter,w=p.yCenter,T=p.zmask,k=g.zhoverformat,A=y,M=x;if(!1!==e.index){try{h=Math.round(e.index[1]),f=Math.round(e.index[0])}catch(N){return void i.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(h<0||h>=b[0].length||f<0||f>b.length)return}else{if(n.inbox(t-y[0],t-y[y.length-1],0)>0||n.inbox(r-x[0],r-x[x.length-1],0)>0)return;if(d){var S;for(A=[2*y[0]-y[1]],S=1;S2||Math.abs(n[1]-e[1])>2}(r))return m.scale(t.scale()),void m.translate(t.translate());t.scale(n.event.scale),t.translate([a[0],n.event.translate[1]]),s?v(f)&&(p=v(f),d=[o[0]+(p[0]-s[0]),i[1],i[2]],t.rotate(d),o=d):s=v(r=f),g=!0,e.render();var l=t.rotate(),c=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":c[0],"geo.center.lat":c[1],"geo.projection.rotation.lon":-l[0]})})).on("zoomend",(function(){n.select(this).style(c),g&&h(e,t,y)})),m}function p(e,t){var r,i={r:t.rotate(),k:t.scale()},a=u(0,t),f=function(e){var t=0,r=arguments.length,i=[];for(;++tp?(a=(h>0?90:-90)-d,i=0):(a=Math.asin(h/p)*s-d,i=Math.sqrt(p*p-h*h));var g=180-a-2*d,v=(Math.atan2(f,u)-Math.atan2(c,i))*s,x=(Math.atan2(f,u)-Math.atan2(c,-i))*s,b=m(r[0],r[1],a,v),_=m(r[0],r[1],g,x);return b<=_?[a,v,r[2]]:[g,x,r[2]]}(l,r,h);isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])||(d=h),t.rotate(d),h=d}}else r=g(t,c=e);f.of(this,arguments)({type:"zoom"})})),e=f.of(this,arguments),d++||e({type:"zoomstart"})})).on("zoomend",(function(){var r;n.select(this).style(c),p.call(a,"zoom",null),r=f.of(this,arguments),--d||r({type:"zoomend"}),h(e,t,v)})).on("zoom.redraw",(function(){e.render();var r=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-r[0],"geo.projection.rotation.lat":-r[1]})})),n.rebind(a,f,"on")}function g(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&function(e){var t=e[0]*o,r=e[1]*o,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}(r)}function m(e,t,r,n){var i=v(r-e),a=v(n-t);return Math.sqrt(i*i+a*a)}function v(e){return(e%360+540)%360-180}function y(e,t,r){var n=r*o,i=e.slice(),a=0===t?1:0,s=2===t?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=e[a]*l-e[s]*c,i[s]=e[s]*l+e[a]*c,i}function x(e,t){for(var r=0,n=0,i=e.length;n=55296&&y<=56319&&(w+=e[++r]),w=T?f.call(T,k,w,g):w,t?(d.value=w,p(m,g,d)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(e.length),t&&(m=new t(v)),r=0;r":for(1!==e.length&&n.warn("Contour data invalid for the specified inequality operation."),a=e[0],r=0;r.999&&(i=.999);var a,o=Math.pow(i,2),s=t.vTotal,l=s,c=s*o/(1-o)/s;function u(){var e=Math.sqrt(c);return{x:e,y:-e}}function h(){var e=u();return[e.x,e.y]}var f,d,p=[];for(p.push(h()),f=e.length-1;f>-1;f--)if(!(d=e[f]).hidden){var g=d.v/l;c+=g,p.push(h())}var m=1/0,v=-1/0;for(f=0;f-1;f--)if(!(d=e[f]).hidden){var S=p[M+=1][0],E=p[M][1];d.TL=[-S,E],d.TR=[S,E],d.BL=k,d.BR=A,d.pxmid=w(d.TR,d.BR),k=d.TL,A=d.TR}}(t),u.each((function(){var u=n.select(this).selectAll("g.slice").data(t);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll("path,g").remove();else{o.pointNumber=o.i,o.curveNumber=p.index;var u=f.cx,v=f.cy,y=n.select(this),x=y.selectAll("path.surface").data([o]);x.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),y.call(g,e,t);var w="M"+(u+o.TR[0])+","+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+"Z";x.attr("d",w),b(e,o,f);var T=d.castOption(p.textposition,o.pts),k=y.selectAll("g.slicetext").data(o.text&&"none"!==T?[0]:[]);k.enter().append("g").classed("slicetext",!0),k.exit().remove(),k.each((function(){var f=a.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),d=a.ensureUniformFontSize(e,m(p,o,r.font));f.text(o.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(i.font,d).call(l.convertToTspans,e);var g,y,x,b=i.bBox(f.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=d.size,h(p.type,g,r),t[s].transform=g,f.attr("transform",a.getTextTransform(g))}))}}));var v=n.select(this).selectAll("g.titletext").data(p.title.text?[0]:[]);v.enter().append("g").classed("titletext",!0),v.exit().remove(),v.each((function(){var t=a.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),c=p.title.text;p._meta&&(c=a.templateString(c,p._meta)),t.text(c).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(i.font,p.title.font).call(l.convertToTspans,e);var u=x(f,r._size);t.attr("transform",s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},77843:function(e,t,r){"use strict";var n=r(97451),i=r(4216).r,a=r(42837),o=r(88297),s=r(87241).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:"data_array",editType:"calc",description:["Sets the points' weight.","For example, a value of 10 would be equivalent to having 10 points of weight 1","in the same spot"].join(" ")},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30,description:["Sets the radius of influence of one `lon` / `lat` point in pixels.","Increasing the value makes the densitymapbox trace smoother, but less detailed."].join(" ")},below:{valType:"string",editType:"plot",description:["Determines if the densitymapbox trace will be inserted","before the layer with the specified ID.","By default, densitymapbox traces are placed below the first","layer of type symbol","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))},77846:function(e,t,r){"use strict";var n=r(62258),i=r(47401);function a(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var n=a(e),i=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=oE*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=t.l+t.w*g-i/2,n=t.t+t.h*(1-m)-a/2,d.x0=r,d.y0=n,d.w=i,d.h=a,d.sum=_,d.xaxis={type:"linear",range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:"x"},h(d.xaxis,d.graphDiv._fullLayout),d.xaxis.setScale(),d.xaxis.isPtWithinRange=function(e){return e.a>=d.aaxis.range[0]&&e.a<=d.aaxis.range[1]&&e.b>=d.baxis.range[1]&&e.b<=d.baxis.range[0]&&e.c>=d.caxis.range[1]&&e.c<=d.caxis.range[0]},d.yaxis={type:"linear",range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:"y"},h(d.yaxis,d.graphDiv._fullLayout),d.yaxis.setScale(),d.yaxis.isPtWithinRange=function(){return!0};var A=d.yaxis.domain[0],M=d.aaxis=f({},e.aaxis,{range:[w,_-T-k],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+l*E],anchor:"free",position:0,_id:"y",_length:i});h(M,d.graphDiv._fullLayout),M.setScale();var S=d.baxis=f({},e.baxis,{range:[_-w-k,T],side:"bottom",domain:d.xaxis.domain,anchor:"free",position:0,_id:"x",_length:i});h(S,d.graphDiv._fullLayout),S.setScale();var L=d.caxis=f({},e.caxis,{range:[_-w-T,k],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+l*E],anchor:"free",position:0,_id:"y",_length:i});h(L,d.graphDiv._fullLayout),L.setScale();var C="M"+r+","+(n+a)+"h"+i+"l-"+i/2+",-"+a+"Z";d.clipDef.select("path").attr("d",C),d.layers.plotbg.select("path").attr("d",C);var I="M0,"+a+"h"+i+"l-"+i/2+",-"+a+"Z";d.clipDefRelative.select("path").attr("d",I);var D=s(r,n);d.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),d.clipDefRelative.select("path").attr("transform",null);var P=s(r-S._offset,n+a);d.layers.baxis.attr("transform",P),d.layers.bgrid.attr("transform",P);var O=s(r+i/2,n)+"rotate(30)"+s(0,-M._offset);d.layers.aaxis.attr("transform",O),d.layers.agrid.attr("transform",O);var z=s(r+i/2,n)+"rotate(-30)"+s(0,-L._offset);d.layers.caxis.attr("transform",z),d.layers.cgrid.attr("transform",z),d.drawAxes(!0),d.layers.aline.select("path").attr("d",M.showline?"M"+r+","+(n+a)+"l"+i/2+",-"+a:"M0,0").call(c.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),d.layers.bline.select("path").attr("d",S.showline?"M"+r+","+(n+a)+"h"+i:"M0,0").call(c.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),d.layers.cline.select("path").attr("d",L.showline?"M"+(r+i/2)+","+n+"l"+i/2+","+a:"M0,0").call(c.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),d.graphDiv._context.staticPlot||d.initInteractions(),u.setClipUrl(d.layers.frontplot,d._hasClipOnAxisFalse?null:d.clipId,d.graphDiv)},S.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var c=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?.75*s.tickfont.size:0)+("outside"===s.ticks?.87*s.ticklen:0)),u=(o.showticklabels?o.tickfont.size:0)+("outside"===o.ticks?o.ticklen:0)+3;i["a-title"]=b.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:l(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-c,"text-anchor":"middle"}}),i["b-title"]=b.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:l(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+.83*o.title.font.size+u,"text-anchor":"middle"}}),i["c-title"]=b.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:l(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+.83*s.title.font.size+u,"text-anchor":"middle"}})}},S.drawAx=function(e){var t,r=this,n=r.graphDiv,i=e._name,a=i.charAt(0),s=e._id,l=r.layers[i],c=a+"tickLayout",u=(t=e).ticks+String(t.ticklen)+String(t.showticklabels);r[c]!==u&&(l.selectAll("."+s+"tick").remove(),r[c]=u),e.setScale();var h=p.calcTicks(e),f=p.clipEnds(e,h),d=p.makeTransTickFn(e),g=p.getTickSigns(e)[2],m=o.deg2rad(30),v=g*(e.linewidth||1)/2,y=g*e.ticklen,x=r.w,b=r.h,_="b"===a?"M0,"+v+"l"+Math.sin(m)*y+","+Math.cos(m)*y:"M"+v+",0l"+Math.cos(m)*y+","+-Math.sin(m)*y,w={a:"M0,0l"+b+",-"+x/2,b:"M0,0l-"+x/2+",-"+b,c:"M0,0l-"+b+","+x/2}[a];p.drawTicks(n,e,{vals:"inside"===e.ticks?f:h,layer:l,path:_,transFn:d,crisp:!1}),p.drawGrid(n,e,{vals:f,layer:r.layers[a+"grid"],path:w,transFn:d,crisp:!1}),p.drawLabels(n,e,{vals:h,layer:l,transFn:d,labelFns:p.makeLabelFns(e,0,30)})};var L=A.MINZOOM/2+.87,C="m-0.87,.5h"+L+"v3h-"+(L+5.2)+"l"+(L/2+2.6)+",-"+(.87*L+4.5)+"l2.6,1.5l-"+L/2+","+.87*L+"Z",I="m0.87,.5h-"+L+"v3h"+(L+5.2)+"l-"+(L/2+2.6)+",-"+(.87*L+4.5)+"l-2.6,1.5l"+L/2+","+.87*L+"Z",D="m0,1l"+L/2+","+.87*L+"l2.6,-1.5l-"+(L/2+2.6)+",-"+(.87*L+4.5)+"l-"+(L/2+2.6)+","+(.87*L+4.5)+"l2.6,1.5l"+L/2+",-"+.87*L+"Z",P=!0;function O(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var e,t,r,n,h,f,d,p,v,b,T,k,M=this,S=M.layers.plotbg.select("path").node(),L=M.graphDiv,z=L._fullLayout._zoomlayer;function R(e){var t={};return t[M.id+".aaxis.min"]=e.a,t[M.id+".baxis.min"]=e.b,t[M.id+".caxis.min"]=e.c,t}function F(e,t){var r=L._fullLayout.clickmode;O(L),2===e&&(L.emit("plotly_doubleclick",null),a.call("_guiRelayout",L,R({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===e&&w(t,L,[M.xaxis],[M.yaxis],M.id,M.dragOptions),r.indexOf("event")>-1&&m.click(L,t,M.id)}function j(e,t){return 1-t/M.h}function N(e,t){return 1-(e+(M.h-t)/Math.sqrt(3))/M.w}function B(e,t){return(e-(M.h-t)/Math.sqrt(3))/M.w}function U(i,a){var o=r+i*e,s=n+a*t,l=Math.max(0,Math.min(1,j(0,n),j(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,B(r,n),B(o,s))),g=(l/2+u)*M.w,m=(1-l/2-c)*M.w,y=(g+m)/2,x=m-g,_=(1-l)*M.h,w=_-x/E;x.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),k.transition().style("opacity",1).duration(200),b=!0),L.emit("plotly_relayouting",R(d))}function V(){O(L),d!==h&&(a.call("_guiRelayout",L,R(d)),P&&L.data&&L._context.showTips&&(o.notifier(l(L,"Double-click to zoom back out"),"long"),P=!1))}function q(e,t){var r=e/M.xaxis._m,n=t/M.yaxis._m,i=[(d={a:h.a-n,b:h.b+(r+n)/2,c:h.c-(r-n)/2}).a,d.b,d.c].sort(o.sorterAsc),a=i.indexOf(d.a),l=i.indexOf(d.b),c=i.indexOf(d.c);i[0]<0&&(i[1]+i[0]/2<0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),d={a:i[a],b:i[l],c:i[c]},t=(h.a-d.a)*M.yaxis._m,e=(h.c-d.c-h.b+d.b)*M.xaxis._m);var f=s(M.x0+e,M.y0+t);M.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",f);var p=s(-e,-t);M.clipDefRelative.select("path").attr("transform",p),M.aaxis.range=[d.a,M.sum-d.b-d.c],M.baxis.range=[M.sum-d.a-d.c,d.b],M.caxis.range=[M.sum-d.a-d.b,d.c],M.drawAxes(!1),M._hasClipOnAxisFalse&&M.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,M),L.emit("plotly_relayouting",R(d))}function H(){a.call("_guiRelayout",L,R(d))}this.dragOptions={element:S,gd:L,plotinfo:{id:M.id,domain:L._fullLayout[M.id].domain,xaxis:M.xaxis,yaxis:M.yaxis},subplot:M.id,prepFn:function(a,l,u){M.dragOptions.xaxes=[M.xaxis],M.dragOptions.yaxes=[M.yaxis],e=L._fullLayout._invScaleX,t=L._fullLayout._invScaleY;var g=M.dragOptions.dragmode=L._fullLayout.dragmode;y(g)?M.dragOptions.minDrag=1:M.dragOptions.minDrag=void 0,"zoom"===g?(M.dragOptions.moveFn=U,M.dragOptions.clickFn=F,M.dragOptions.doneFn=V,function(e,t,a){var l=S.getBoundingClientRect();r=t-l.left,n=a-l.top,L._fullLayout._calcInverseTransform(L);var u=L._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],h={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},d=h,f=M.aaxis.range[1]-h.a,p=i(M.graphDiv._fullLayout[M.id].bgcolor).getLuminance(),v="M0,"+M.h+"L"+M.w/2+", 0L"+M.w+","+M.h+"Z",b=!1,T=z.append("path").attr("class","zoombox").attr("transform",s(M.x0,M.y0)).style({fill:p>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),k=z.append("path").attr("class","zoombox-corners").attr("transform",s(M.x0,M.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),M.clearSelect(L)}(0,l,u)):"pan"===g?(M.dragOptions.moveFn=q,M.dragOptions.clickFn=F,M.dragOptions.doneFn=H,h={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},d=h,M.clearSelect(L)):(x(g)||y(g))&&_(a,l,u,M.dragOptions,g)}},S.onmousemove=function(e){m.hover(L,e,M.id),L._fullLayout._lasthover=S,L._fullLayout._hoversubplot=M.id},S.onmouseout=function(e){L._dragging||g.unhover(L,e)},g.init(this.dragOptions)}},78006:function(e){"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},78283:function(e,t,r){"use strict";var n=r(47401),i=r(62282),a=r(83228),o=r(94060);function s(e,t,r,n,a){var s=a("isomin"),l=a("isomax");void 0!==l&&null!==l&&void 0!==s&&null!==s&&s>l&&(t.isomin=null,t.isomax=null);var c=a("x"),u=a("y"),h=a("z"),f=a("value");c&&c.length&&u&&u.length&&h&&h.length&&f&&f.length?(i.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach((function(e){a(e+"hoverformat");var t="caps."+e;a(t+".show")&&a(t+".fill");var r="slices."+e;a(r+".show")&&(a(r+".fill"),a(r+".locations"))})),a("spaceframe.show")&&a("spaceframe.fill"),a("surface.show")&&(a("surface.count"),a("surface.fill"),a("surface.pattern")),a("contour.show")&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach((function(e){a(e)})),o(e,t,n,a,{prefix:"",cLetter:"c"}),t._length=null):t.visible=!1}e.exports={supplyDefaults:function(e,t,r,i){s(e,t,r,i,(function(r,i){return n.coerce(e,t,a,r,i)}))},supplyIsoDefaults:s}},78352:function(e,t,r){"use strict";var n=r(6293),i=[32,126];e.exports=function(e){var t=(e=e||{}).shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),a=e.font,o="number"===typeof e.step?[e.step,e.step]:e.step||[32,32],s=e.chars||i;a&&"string"!==typeof a&&(a=n(a));if(Array.isArray(s)){if(2===s.length&&"number"===typeof s[0]&&"number"===typeof s[1]){for(var l=[],c=s[0],u=0;c<=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split("");t=t.slice(),r.width=t[0],r.height=t[1];var h=r.getContext("2d");h.fillStyle="#000",h.fillRect(0,0,r.width,r.height),h.font=a,h.textAlign="center",h.textBaseline="middle",h.fillStyle="#fff";var f=o[0]/2,d=o[1]/2;for(c=0;ct[0]-o[0]/2&&(f=o[0]/2,d+=o[1]);return r}},78483:function(e,t,r){"use strict";var n=r(62258);e.exports=function(e){n.select(e).selectAll(".im image").style("opacity",(function(e){return e[0].trace.opacity}))}},78608:function(e,t,r){"use strict";var n=r(62258),i=r(41707),a=r(62282);function o(e,t,r){i.pointStyle(e.selectAll("path.point"),t,r)}function s(e,t,r){i.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=n.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(n.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){s(n.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(i.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(i.fillGroupStyle),a.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:s,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll("path.point"),n),i.selectedTextStyle(r.selectAll("text"),n)):(o(r,n,e),s(r,n,e))}}},78666:function(e){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},78899:function(e,t,r){"use strict";var n=r(11604).dot,i=r(9405).BADNUM,a=e.exports={};a.tester=function(e){var t,r=e.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),t=1;ta||c===i||cs)&&(!t||!l(e))}:function(e,t){var l=e[0],c=e[1];if(l===i||la||c===i||cs)return!1;var u,h,f,d,p,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;uMath.max(h,m)||c>Math.max(f,v)))if(cu||Math.abs(n(o,f))>i)return!0;return!1},a.filter=function(e,t){var r=[e[0]],n=0,i=0;function o(o){e.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},79006:function(e,t){!function(){var e={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};function r(){var e=arguments[0],t=r.cache;return t[e]&&t.hasOwnProperty(e)||(t[e]=r.parse(e)),r.format.call(null,t[e],arguments)}r.format=function(t,i){var a,o,s,l,c,u,h,f,d=1,p=t.length,g="",m=[],v=!0,y="";for(o=0;o=0),l[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,l[6]?parseInt(l[6]):0);break;case"e":a=l[7]?a.toExponential(l[7]):a.toExponential();break;case"f":a=l[7]?parseFloat(a).toFixed(l[7]):parseFloat(a);break;case"g":a=l[7]?parseFloat(a).toPrecision(l[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&l[7]?a.substring(0,l[7]):a;break;case"u":a>>>=0;break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}e.json.test(l[8])?m[m.length]=a:(!e.number.test(l[8])||v&&!l[3]?y="":(y=v?"+":"-",a=a.toString().replace(e.sign,"")),u=l[4]?"0"===l[4]?"0":l[4].charAt(1):" ",h=l[6]-(y+a).length,c=l[6]&&h>0?(f=u,Array(h+1).join(f)):"",m[m.length]=l[5]?y+a+c:"0"===u?y+c+a:c+y+a)}return m.join("")},r.cache={},r.parse=function(t){for(var r=t,n=[],i=[],a=0;r;){if(null!==(n=e.text.exec(r)))i[i.length]=n[0];else if(null!==(n=e.modulo.exec(r)))i[i.length]="%";else{if(null===(n=e.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){a|=1;var o=[],s=n[2],l=[];if(null===(l=e.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o[o.length]=l[1];""!==(s=s.substring(l[0].length));)if(null!==(l=e.key_access.exec(s)))o[o.length]=l[1];else{if(null===(l=e.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");o[o.length]=l[1]}n[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i[i.length]=n}r=r.substring(n[0].length)}return i};function n(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}t.sprintf=r,t.vsprintf=function(e,t,n){return(n=(t||[]).slice(0)).splice(0,0,e),r.apply(null,n)}}("undefined"===typeof window||window)},79034:function(e){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},79054:function(e,t,r){"use strict";var n=r(33859);e.exports=function(e,t,r,i){var a=e._fullLayout,o=a._paper,s=a._size;n(e,o,t,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},79213:function(e,t,r){"use strict";e.exports=r(23798)},79406:function(e,t,r){"use strict";var n=r(62967);e.exports=function(e,t,r,i){var a=n(e,t,r,i);if(a&&!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/e.ya._length,l=e.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var h=o.cd[o.index],f=o.trace,d=o.subplot;o.a=h.a,o.b=h.b,o.c=h.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[f.subplot]={_subplot:d};var g=f._module.formatLabels(h,f,p);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=h.hi||f.hoverinfo,v=[];if(!f.hovertemplate){var y=m.split("+");-1!==y.indexOf("all")&&(y=["a","b","c"]),-1!==y.indexOf("a")&&x(d.aaxis,o.aLabel),-1!==y.indexOf("b")&&x(d.baxis,o.bLabel),-1!==y.indexOf("c")&&x(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=f.hovertemplate,a}function x(e,t){v.push(e._hovertitle+": "+t)}}},79452:function(e,t,r){"use strict";var n=r(83491),i=r(91771),a=r(42837),o=r(39257),s=r(31454),l=r(49158).DESELECTDIM,c=r(62368),u=r(44790).counter,h=r(59833).modHalf,f=r(20168).isArrayOrTypedArray;function d(e,r){var n=t.valObjectMeta[r.valType];if(r.arrayOk&&f(e))return!0;if(n.validateFunction)return n.validateFunction(e,r);var i={},a=i,o={set:function(e){a=e}};return n.coerceFunction(e,o,i,r),a!==i}t.valObjectMeta={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it.","Note that typed arrays (e.g. Float32Array) are supported."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){f(e)?t.set(e):void 0!==r&&t.set(r)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),-1===n.values.indexOf(e)?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;ni.max?t.set(r):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,r,i){e%1||!n(e)||void 0!==i.min&&ei.max?t.set(r):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,r,n){if("string"!==typeof e){var i="number"===typeof e;!0!==n.strict&&i?t.set(String(e)):t.set(r)}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){i(e).isValid()?t.set(e):t.set(r)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return i(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(o.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):n(e)?t.set(h(+e,360)):t.set(r)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,r,n){var i=n.regex||u(r);"string"===typeof e&&i.test(e)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r||"string"===typeof e&&!!u(r).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,r,n){if("string"===typeof e)if(-1===(n.extras||[]).indexOf(e)){for(var i=e.split("+"),a=0;ai.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;rr)for(e=r;et)for(e=t;e=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),A=0;A=0;)M+=1;_[y]=M}var S=new Array(r.length);function E(){f.program=o.program(d,f._vref,f._fref,b,_);for(var e=0;e=0?1:-1,i=n*r,l=(0,c.gn)(t),u=(0,c.F8)(t),h=s*u,d=o*l+h*(0,c.gn)(i),p=h*n*(0,c.F8)(i);f.add((0,c.FP)(p,d)),a=e,o=l,s=u}function x(e){return d.reset(),(0,h.A)(e,p),2*d}},80409:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=r(41707),o=r(43995),s=r(73044),l=r(70947).styleOne,c=r(22740),u=r(94276),h=r(21379),f=r(48662).formatSliceLabel,d=!1;e.exports=function(e,t,r,p,g){var m=g.width,v=g.height,y=g.viewX,x=g.viewY,b=g.pathSlice,_=g.toMoveInsideSlice,w=g.strTransform,T=g.hasTransition,k=g.handleSlicesExit,A=g.makeUpdateSliceInterpolator,M=g.makeUpdateTextInterpolator,S=g.prevEntry,E=e._fullLayout,L=t[0].trace,C=-1!==L.textposition.indexOf("left"),I=-1!==L.textposition.indexOf("right"),D=-1!==L.textposition.indexOf("bottom"),P=s(r,[m,v],{flipX:L.tiling.flip.indexOf("x")>-1,flipY:L.tiling.flip.indexOf("y")>-1,orientation:L.tiling.orientation,pad:{inner:L.tiling.pad},maxDepth:L._maxDepth}).descendants(),O=1/0,z=-1/0;P.forEach((function(e){var t=e.depth;t>=L._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(O=Math.min(O,t),z=Math.max(z,t))})),p=p.data(P,u.getPtId),L._maxVisibleLayers=isFinite(z)?z-O+1:0,p.enter().append("g").classed("slice",!0),k(p,d,{},[m,v],b),p.order();var R=null;if(T&&S){var F=u.getPtId(S);p.each((function(e){null===R&&u.getPtId(e)===F&&(R={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})}))}var j=function(){return R||{x0:0,x1:m,y0:0,y1:v}},N=p;return T&&(N=N.transition().each("end",(function(){var t=n.select(this);u.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){s._x0=y(s.x0),s._x1=y(s.x1),s._y0=x(s.y0),s._y1=x(s.y1),s._hoverX=y(s.x1-L.tiling.pad),s._hoverY=x(D?s.y1-L.tiling.pad/2:s.y0+L.tiling.pad/2);var p=n.select(this),g=i.ensureSingle(p,"path","surface",(function(e){e.style("pointer-events","all")}));T?g.transition().attrTween("d",(function(e){var t=A(e,d,j(),[m,v],{orientation:L.tiling.orientation,flipX:L.tiling.flip.indexOf("x")>-1,flipY:L.tiling.flip.indexOf("y")>-1});return function(e){return b(t(e))}})):g.attr("d",b),p.call(h,r,e,t,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,e,{isTransitioning:e._transitioning}),g.call(l,s,L,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text="":s._text=f(s,r,L,t,E)||"";var k=i.ensureSingle(p,"g","slicetext"),S=i.ensureSingle(k,"text","",(function(e){e.attr("data-notex",1)})),P=i.ensureUniformFontSize(e,u.determineTextFont(L,s,E.font));S.text(s._text||" ").classed("slicetext",!0).attr("text-anchor",I?"end":C?"start":"middle").call(a.font,P).call(o.convertToTspans,e),s.textBB=a.bBox(S.node()),s.transform=_(s,{fontSize:P.size}),s.transform.fontSize=P.size,T?S.transition().attrTween("transform",(function(e){var t=M(e,d,j(),[m,v]);return function(e){return w(t(e))}})):S.attr("transform",w(s))})),R}},80442:function(e,t,r){"use strict";var n=r(70006);e.exports=function(e){var t,r,a=[],o=1;if("string"===typeof e)if(n[e])a=n[e].slice(),r="rgb";else if("transparent"===e)o=0,r="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var s=e.slice(1);o=1,(u=s.length)<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===u&&(o=parseInt(s[3]+s[3],16)/255)):(a=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===u&&(o=parseInt(s[6]+s[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),r="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],c="rgb"===l;r=s=l.replace(/a$/,"");var u="cmyk"===s?4:"gray"===s?1:3;a=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===u?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==i[e])return i[e]}return parseFloat(e)})),l===s&&a.push(1),o=c||void 0===a[u]?1:a[u],a=a.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(a=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),r=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(a=[e[0],e[1],e[2]],r="rgb",o=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(r="rgb",a=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(r="hsl",a=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),o=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(o/=100)):(r="rgb",a=[e>>>16,(65280&e)>>>8,255&e]);return{space:r,values:a,alpha:o}};var i={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},80464:function(e,t,r){"use strict";var n=r(9852),i=r(47401);t.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},t.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},t.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},t.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},t.extractPathCoords=function(e,t){var r=[];return e.match(n.segmentRE).forEach((function(e){var a=t[e.charAt(0)].drawn;if(void 0!==a){var o=e.substr(1).match(n.paramRE);!o||o.lengthO&&a>z&&!r.shiftKey?f.getCursor(o/i,1-s/a):"move";d(t,l),P=l.split("-")[0]}}function ee(n){v(e)||(R&&(x=G(r.xanchor)),F&&(T=W(r.yanchor)),"path"===r.type?D=r.path:(c=R?r.x0:G(r.x0),h=F?r.y0:W(r.y0),m=R?r.x1:G(r.x1),y=F?r.y1:W(r.y1)),cy?(k=h,E="y0",A=y,L="y1"):(k=y,E="y1",A=h,L="y0"),$(n),ae(s,r),se(t,r,e),K.moveFn="move"===P?ne:ie,K.altKey=n.altKey)}function te(){v(e)||(d(t),oe(s),b(t,e,r),n.call("_guiRelayout",e,l.getUpdateObj()))}function re(){v(e)||oe(s)}function ne(n,i){if("path"===r.type){var a=function(e){return e},o=a,l=a;R?B("xanchor",r.xanchor=Y(x+n)):(o=function(e){return Y(G(e)+n)},U&&"date"===U.type&&(o=g.encodeDate(o))),F?B("yanchor",r.yanchor=Z(T+i)):(l=function(e){return Z(W(e)+i)},q&&"date"===q.type&&(l=g.encodeDate(l))),B("path",r.path=w(D,o,l))}else R?B("xanchor",r.xanchor=Y(x+n)):(B("x0",r.x0=Y(c+n)),B("x1",r.x1=Y(m+n))),F?B("yanchor",r.yanchor=Z(T+i)):(B("y0",r.y0=Z(h+i)),B("y1",r.y1=Z(y+i)));t.attr("d",_(e,r)),ae(s,r)}function ie(n,i){if(N){var a=function(e){return e},o=a,l=a;R?B("xanchor",r.xanchor=Y(x+n)):(o=function(e){return Y(G(e)+n)},U&&"date"===U.type&&(o=g.encodeDate(o))),F?B("yanchor",r.yanchor=Z(T+i)):(l=function(e){return Z(W(e)+i)},q&&"date"===q.type&&(l=g.encodeDate(l))),B("path",r.path=w(D,o,l))}else if(j){if("resize-over-start-point"===P){var u=c+n,f=F?h-i:h+i;B("x0",r.x0=R?u:Y(u)),B("y0",r.y0=F?f:Z(f))}else if("resize-over-end-point"===P){var d=m+n,p=F?y-i:y+i;B("x1",r.x1=R?d:Y(d)),B("y1",r.y1=F?p:Z(p))}}else{var v=function(e){return-1!==P.indexOf(e)},b=v("n"),V=v("s"),H=v("w"),X=v("e"),K=b?k+i:k,J=V?A+i:A,Q=H?M+n:M,$=X?S+n:S;F&&(b&&(K=k-i),V&&(J=A-i)),(!F&&J-K>z||F&&K-J>z)&&(B(E,r[E]=F?K:Z(K)),B(L,r[L]=F?J:Z(J))),$-Q>O&&(B(C,r[C]=R?Q:Y(Q)),B(I,r[I]=R?$:Y($)))}t.attr("d",_(e,r)),ae(s,r)}function ae(e,t){function r(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]),a=1;n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":a}).classed("visual-cue",!0);var o=G(R?t.xanchor:i.midRange(r?[t.x0,t.x1]:g.extractPathCoords(t.path,p.paramIsX))),s=W(F?t.yanchor:i.midRange(r?[t.y0,t.y1]:g.extractPathCoords(t.path,p.paramIsY)));if(o=g.roundPositionForSharpStrokeRendering(o,a),s=g.roundPositionForSharpStrokeRendering(s,a),R&&F){var l="M"+(o-1-a)+","+(s-1-a)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",l)}else if(R){var c="M"+(o-1-a)+","+(s-9-a)+"v18 h2 v-18 Z";n.attr("d",c)}else{var u="M"+(o-9-a)+","+(s-1-a)+"h18 v2 h-18 Z";n.attr("d",u)}}(R||F)&&r()}function oe(e){e.selectAll(".visual-cue").remove()}function se(e,t,r){var n=t.xref,i=t.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l="";"paper"===n||o.autorange||(l+=n),"paper"===i||s.autorange||(l+=i),u.setClipUrl(e,l?"clip"+r._fullLayout._uid+l:null,r)}f.init(K),X.node().onmousemove=$}(e,O,l,t,r,P):!0===l.editable&&O.style("pointer-events",I||c.opacity(S)*M<=.5?"stroke":"all");O.node().addEventListener("click",(function(){return function(e,t){if(!y(e))return;var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex)return void T(e);e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=T,m(e)}}(e,O)}))}}function b(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function _(e,t){var r,n,o,s,l,c,u,h,f=t.type,d=a.getRefType(t.xref),m=a.getRefType(t.yref),v=a.getFromId(e,t.xref),y=a.getFromId(e,t.yref),x=e._fullLayout._size;if(v?"domain"===d?n=function(e){return v._offset+v._length*e}:(r=g.shapePositionToRange(v),n=function(e){return v._offset+v.r2p(r(e,!0))}):n=function(e){return x.l+x.w*e},y?"domain"===m?s=function(e){return y._offset+y._length*(1-e)}:(o=g.shapePositionToRange(y),s=function(e){return y._offset+y.r2p(o(e,!0))}):s=function(e){return x.t+x.h*(1-e)},"path"===f)return v&&"date"===v.type&&(n=g.decodeDate(n)),y&&"date"===y.type&&(s=g.decodeDate(s)),function(e,t,r){var n=e.path,a=e.xsizemode,o=e.ysizemode,s=e.xanchor,l=e.yanchor;return n.replace(p.segmentRE,(function(e){var n=0,c=e.charAt(0),u=p.paramIsX[c],h=p.paramIsY[c],f=p.numParams[c],d=e.substr(1).replace(p.paramRE,(function(e){return u[n]?e="pixel"===a?t(s)+Number(e):t(e):h[n]&&(e="pixel"===o?r(l)-Number(e):r(e)),++n>f&&(e="X"),e}));return n>f&&(d=d.replace(/[\s,]*X.*/,""),i.log("Ignoring extra params in segment "+e)),c+d}))}(t,n,s);if("pixel"===t.xsizemode){var b=n(t.xanchor);l=b+t.x0,c=b+t.x1}else l=n(t.x0),c=n(t.x1);if("pixel"===t.ysizemode){var _=s(t.yanchor);u=_-t.y0,h=_-t.y1}else u=s(t.y0),h=s(t.y1);if("line"===f)return"M"+l+","+u+"L"+c+","+h;if("rect"===f)return"M"+l+","+u+"H"+c+"V"+h+"H"+l+"Z";var w=(l+c)/2,T=(u+h)/2,k=Math.abs(w-l),A=Math.abs(T-u),M="A"+k+","+A,S=w+k+","+T;return"M"+S+M+" 0 1,1 "+(w+","+(T-A))+M+" 0 0,1 "+S+"Z"}function w(e,t,r){return e.replace(p.segmentRE,(function(e){var n=0,i=e.charAt(0),a=p.paramIsX[i],o=p.paramIsY[i],s=p.numParams[i];return i+e.substr(1).replace(p.paramRE,(function(e){return n>=s||(a[n]?e=t(e):o[n]&&(e=r(e)),n++),e}))}))}function T(e){y(e)&&(e._fullLayout._activeShapeIndex>=0&&(l(e),delete e._fullLayout._activeShapeIndex,m(e)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(e){if(!y(e))return;l(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t c)|0 },"),"generic"===t&&a.push("getters:[0],");for(var s=[],l=[],c=0;c>>7){");for(c=0;c<1<<(1<128&&c%128===0){h.length>0&&f.push("}}");var d="vExtra"+h.length;a.push("case ",c>>>7,":",d,"(m&0x7f,",l.join(),");break;"),f=["function ",d,"(m,",l.join(),"){switch(m){"],h.push(f)}f.push("case ",127&c,":");for(var p=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;xx)&&!(c&1<<_)!==!(c&1<0&&(A="+"+m[b]+"*c");var M=p[b].length/y*.5,S=.5+v[b]/y*.5;k.push("d"+b+"-"+S+"-"+M+"*("+p[b].join("+")+A+")/("+g[b].join("+")+")")}f.push("a.push([",k.join(),"]);","break;")}a.push("}},"),h.length>0&&f.push("}}");var E=[];for(c=0;c<1<b[0]._length||ae<0||ae>_[0]._length)return p.unhoverRaw(e,t)}if(t.pointerX=ie+b[0]._offset,t.pointerY=ae+_[0]._offset,j="xval"in t?v.flat(s,t.xval):v.p2c(b,ie),V="yval"in t?v.flat(s,t.yval):v.p2c(_,ae),!i(j[0])||!i(V[0]))return o.warn("Fx.hover failed",t,e),p.unhoverRaw(e,t)}var ce=1/0;function ue(e,r){for(H=0;H$&&(ee.splice(0,$),ce=ee[0].distance),g&&0!==P&&0===ee.length){Q.distance=P,Q.index=!1;var h=W._module.hoverPoints(Q,K,J,"closest",{hoverLayer:l._hoverlayer});if(h&&(h=h.filter((function(e){return e.spikeDistance<=P}))),h&&h.length){var f,p=h.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(p.length){var m=p[0];i(m.x0)&&i(m.y0)&&(f=fe(m),(!re.vLinePoint||re.vLinePoint.spikeDistance>f.spikeDistance)&&(re.vLinePoint=f))}var y=h.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&&i(x.y0)&&(f=fe(x),(!re.hLinePoint||re.hLinePoint.spikeDistance>f.spikeDistance)&&(re.hLinePoint=f))}}}}}function he(e,t,r){for(var n,i=null,a=1/0,o=0;o0&&Math.abs(e.distance)Te-1;ke--)Ee(ee[ke]);ee=Ae,me()}var Le=e._hoverdata,Ce=[],Ie=B(e),De=U(e);for(q=0;q1||ee.length>1)||"closest"===S&&ne&&ee.length>1,Ge=d.combine(l.plot_bgcolor||d.background,l.paper_bgcolor),We=D(ee,{gd:e,hovermode:S,rotateLabels:He,bgColor:Ge,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance});v.isUnifiedHover(S)||(!function(e,t,r){var n,i,a,o,s,l,c,u=0,h=1,f=e.size(),d=new Array(f),p=0;function g(e){var t=e[0],r=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,a=r.pos+r.dp+r.size-t.pmax,i>.01){for(s=e.length-1;s>=0;s--)e[s].dp+=i;n=!1}if(!(a<.01)){if(i<-.01){for(s=e.length-1;s>=0;s--)e[s].dp-=a;n=!1}if(n){var c=0;for(o=0;ot.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(l=e[o]).pos>t.pmax-1&&(l.del=!0,c--);for(o=0;o=0;s--)e[s].dp-=a;for(o=e.length-1;o>=0&&!(c<=0);o--)(l=e[o]).pos+l.dp+l.size>t.pmax&&(l.del=!0,c--)}}}e.each((function(e){var n=e[t],i="x"===n._id.charAt(0),a=n.range;0===p&&a&&a[0]>a[1]!==i&&(h=-1),d[p++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),d.sort((function(e,t){return e[0].posref-t[0].posref||h*(t[0].traceIndex-e[0].traceIndex)}));for(;!n&&u<=f;){for(u++,n=!0,o=0;o.01&&y.pmin===x.pmin&&y.pmax===x.pmax){for(s=v.length-1;s>=0;s--)v[s].dp+=i;for(m.push.apply(m,v),d.splice(o+1,1),c=0,s=m.length-1;s>=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s>=0;s--)m[s].dp-=a;n=!1}else o++}d.forEach(g)}for(o=d.length-1;o>=0;o--){var b=d[o];for(s=b.length-1;s>=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(We,He?"xa":"ya",l),O(We,He,l._invScaleX,l._invScaleY));if(t.target&&t.target.tagName){var Ye=m.getComponentMethod("annotations","hasClickToShow")(e,Ce);h(n.select(t.target),Ye?"pointer":"")}if(!t.target||a||!function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(e,0,Le))return;Le&&e.emit("plotly_unhover",{event:t,points:Le});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:_,xvals:j,yvals:V})}(e,t,r,a)}))},t.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var i=t.gd,a=B(i),o=U(i),s=!1,l=D(e.map((function(e){var r=e._x0||e.x0||e.x||0,n=e._x1||e.x1||e.x||0,s=e._y0||e.y0||e.y||0,l=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(r,n),h=Math.max(r,n),f=Math.min(s,l),p=Math.max(s,l),g=e.trace;if(m.traceIs(g,"gl3d")){var v=i._fullLayout[g.scene]._scene.container,y=v.offsetLeft,x=v.offsetTop;u+=y,h+=y,f+=x,p+=x}c.bbox={x0:u+o,x1:h+o,y0:f+a,y1:p+a},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||d.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}})),{gd:i,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||d.background,container:n.select(t.container),outerContainer:t.outerContainer||t.container}),c=0,u=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var n=e.y0-e.by/2;e.offset=n-5([\s\S]*)<\/extra>/;function D(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,c=t.rotateLabels,h=t.bgColor,p=t.container,g=t.outerContainer,w=t.commonLabelOpts||{},T=t.fontFamily||y.HOVERFONT,k=t.fontSize||y.HOVERFONTSIZE,A=e[0],E=A.xa,L=A.ya,I=a.charAt(0),D=A[I+"Label"],O=V(r,g),z=O.top,R=O.width,F=O.height,j=void 0!==D&&A.distance<=t.hoverdistance&&("x"===a||"y"===a);if(j){var N,B,U=!0;for(N=0;Ni.width-b?(m=i.width-b,t.attr("d","M"+(b-M)+",0L"+b+","+x+M+"v"+x+(2*S+y.height)+"H-"+b+"V"+x+M+"H"+(b-2*M)+"Z")):t.attr("d","M0,0L"+M+","+x+M+"H"+(S+y.width/2)+"v"+x+(2*S+y.height)+"H-"+(S+y.width/2)+"V"+x+M+"H-"+M+"Z")}else{var _,C,I;"right"===L.side?(_="start",C=1,I="",m=E._offset+E._length):(_="end",C=-1,I="-",m=E._offset),v=L._offset+(A.y0+A.y1)/2,l.attr("text-anchor",_),t.attr("d","M0,0L"+I+M+","+M+"V"+(S+y.height/2)+"h"+I+(2*S+y.width)+"V-"+(S+y.height/2)+"H"+I+M+"V-"+M+"Z");var P,O=y.height/2,R=z-y.top-O,F="clip"+i._uid+"commonlabel"+L._id;if(m=0?ie:ae+le=0?ae:me+le=0?re:ne+ce=0?ne:ve+ce=0,"top"!==e.idealAlign&&G||!W?G?(O+=B/2,e.anchor="start"):e.anchor="middle":(O-=B/2,e.anchor="end");else if(e.pos=O,G=I+N/2+Y<=R,W=I-N/2-Y>=0,"left"!==e.idealAlign&&G||!W)if(G)I+=N/2,e.anchor="start";else{e.anchor="middle";var Z=Y/2,X=I+Z-R,K=I-Z;X>0&&(I-=X),K<0&&(I+=-K)}else I-=N/2,e.anchor="end";w.attr("text-anchor",e.anchor),E&&A.attr("text-anchor",e.anchor),t.attr("transform",s(I,O)+(c?l(_):""))})),ye}function P(e,t,r,n,i,a){var s="",l="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),s=j(e.name,e.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(l+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(l+="y: "+e.yLabel+"
"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(l+=(l?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===i?l=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(l=e.yLabel):l=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(l+=(l?"
":"")+e.text),void 0!==e.extraText&&(l+=(l?"
":"")+e.extraText),a&&""===l&&!e.hovertemplate&&(""===s&&a.remove(),l=s);var h=e.hovertemplate||!1;if(h){var f=e.hovertemplateLabels||e;e[c+"Label"]!==i&&(f[c+"other"]=f[c+"Val"],f[c+"otherLabel"]=f[c+"Label"]),l=(l=o.hovertemplateString(h,f,n._d3locale,e.eventData[0]||{},e.trace._meta)).replace(I,(function(t,r){return s=j(r,e.nameLength),""}))}return[l,s]}function O(e,t,r,i){var a=function(e){return e*r},o=function(e){return e*i};e.each((function(e){var r=n.select(this);if(e.del)return r.remove();var i=r.select("text.nums"),s=e.anchor,l="end"===s?-1:1,c={start:1,end:-1,middle:0}[s],h=c*(M+S),d=h+c*(e.txwidth+S),p=0,g=e.offset,m="middle"===s;m&&(h-=e.tx2width/2,d+=e.txwidth/2+S),t&&(g*=-A,p=e.offset*k),r.select("path").attr("d",m?"M-"+a(e.bx/2+e.tx2width/2)+","+o(g-e.by/2)+"h"+a(e.bx)+"v"+o(e.by)+"h-"+a(e.bx)+"Z":"M0,0L"+a(l*M+p)+","+o(M+g)+"v"+o(e.by/2-M)+"h"+a(l*e.bx)+"v-"+o(e.by)+"H"+a(l*M+p)+"V"+o(g-M)+"Z");var v=p+h,y=g+e.ty0-e.by/2+S,x=e.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==s?(i.attr("text-anchor","start"),v=m?-e.bx/2-e.tx2width/2+S:-e.bx-S):"right"===x&&"end"!==s&&(i.attr("text-anchor","end"),v=m?e.bx/2-e.tx2width/2-S:e.bx+S)),i.call(u.positionText,a(v),o(y)),e.tx2width&&(r.select("text.name").call(u.positionText,a(d+c*S+p),o(g+e.ty0-e.by/2+S)),r.select("rect").call(f.setRect,a(d+(c-1)*e.tx2width/2+p),o(g-e.by/2-1),a(e.tx2width),o(e.by+2)))}))}function z(e,t){var r=e.index,n=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(e){return e||i(e)&&0===e}var c=Array.isArray(r)?function(e,t){var i=o.castOption(a,r,e);return l(i)?i:o.extractOption({},n,"",t)}:function(e,t){return o.extractOption(s,n,e,t)};function u(t,r,n){var i=c(r,n);l(i)&&(e[t]=i)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:g.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:g.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!("log"===e.xa.type&&e.xerr<=0)){var h=g.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+h+" / -"+g.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xb1 "+h,"x"===t&&(e.distance+=1)}if(!isNaN(e.yerr)&&!("log"===e.ya.type&&e.yerr<=0)){var f=g.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+f+" / -"+g.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xb1 "+f,"y"===t&&(e.distance+=1)}var d=e.hoverinfo||e.trace.hoverinfo;return d&&"all"!==d&&(-1===(d=Array.isArray(d)?d:d.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===d.indexOf("y")&&(e.yLabel=void 0),-1===d.indexOf("z")&&(e.zLabel=void 0),-1===d.indexOf("text")&&(e.text=void 0),-1===d.indexOf("name")&&(e.name=void 0)),e}function R(e,t,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!t.hLinePoint,h=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),h||u){var p=d.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=t.hLinePoint;n=y&&y.xa,"cursor"===(i=y&&y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,p)<1.5?d.contrast(p):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,A=g.getPxPosition(e,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=A,b=m),-1!==w.indexOf("across")){var M=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=l.l+M*l.w,b=l.l+S*l.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:v,y2:v,"stroke-width":T,stroke:k,"stroke-dasharray":f.dashStyle(i.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:v,y2:v,"stroke-width":T+2,stroke:p}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==i.side?T:-T),cy:v,r:T,fill:k}).classed("spikeline",!0)}if(h){var E,L,C=t.vLinePoint;n=C&&C.xa,i=C&&C.ya,"cursor"===n.spikesnap?(E=c.pointerX,L=c.pointerY):(E=n._offset+C.x,L=i._offset+C.y);var I,D,P=a.readability(C.color,p)<1.5?d.contrast(p):C.color,O=n.spikemode,z=n.spikethickness,R=n.spikecolor||P,F=g.getPxPosition(e,n);if(-1!==O.indexOf("toaxis")||-1!==O.indexOf("across")){if(-1!==O.indexOf("toaxis")&&(I=F,D=L),-1!==O.indexOf("across")){var j=n._counterDomainMin,N=n._counterDomainMax;"free"===n.anchor&&(j=Math.min(j,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,D=l.t+(1-j)*l.h}o.insert("line",":first-child").attr({x1:E,x2:E,y1:I,y2:D,"stroke-width":z,stroke:R,"stroke-dasharray":f.dashStyle(n.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:E,x2:E,y1:I,y2:D,"stroke-width":z+2,stroke:p}).classed("spikeline",!0).classed("crisp",!0)}-1!==O.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:E,cy:F-("top"!==n.side?z:-z),r:z,fill:R}).classed("spikeline",!0)}}}function F(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function j(e,t){return u.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function N(e,t,r){var n=t[e+"a"],i=t[e+"Val"],a=t.cd[0];if("category"===n.type)i=n._categoriesMap[i];else if("date"===n.type){var o=t.trace[e+"periodalignment"];if(o){var s=t.cd[t.index],l=s[e+"Start"];void 0===l&&(l=s[e]);var c=s[e+"End"];void 0===c&&(c=s[e]);var u=c-l;"end"===o?i+=u:"middle"===o&&(i+=u/2)}i=n.d2c(i)}return a&&a.t&&a.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(i+=a.t.dPos)),i}function B(e){return e.offsetTop+e.clientTop}function U(e){return e.offsetLeft+e.clientLeft}function V(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),i=n.x,a=n.y,s=i+n.width,l=a+n.height,c=o.apply3DTransform(r._invTransform)(i,a),u=o.apply3DTransform(r._invTransform)(s,l),h=c[0],f=c[1],d=u[0],p=u[1];return{x:h,y:f,width:d-h,height:p-f,top:Math.min(f,p),left:Math.min(h,d),right:Math.max(h,d),bottom:Math.max(f,p)}}},81036:function(e,t,r){"use strict";r.d(t,{pq:function(){return f}});var n=r(95771),i=Array.prototype.slice,a=r(3983);function o(e){return e[0]}function s(e){return e[1]}function l(e){return e.source}function c(e){return e.target}function u(e){var t=l,r=c,u=o,h=s,f=null;function d(){var a,o=i.call(arguments),s=t.apply(this,o),l=r.apply(this,o);if(f||(f=a=(0,n.A)()),e(f,+u.apply(this,(o[0]=s,o)),+h.apply(this,o),+u.apply(this,(o[0]=l,o)),+h.apply(this,o)),a)return f=null,a+""||null}return d.source=function(e){return arguments.length?(t=e,d):t},d.target=function(e){return arguments.length?(r=e,d):r},d.x=function(e){return arguments.length?(u="function"===typeof e?e:(0,a.A)(+e),d):u},d.y=function(e){return arguments.length?(h="function"===typeof e?e:(0,a.A)(+e),d):h},d.context=function(e){return arguments.length?(f=null==e?null:e,d):f},d}function h(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function f(){return u(h)}},81107:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(62295),i=r(82105),a=r(18780),o=r(38445),s=r(70123),l=r(61482);function c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function u(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function h(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function f(e){var t=e.dateTime,r=e.date,a=e.time,l=e.periods,f=e.days,p=e.shortDays,g=e.months,m=e.shortMonths,v=x(l),y=b(l),Q=x(f),ye=b(f),Ce=x(p),Ie=b(p),De=x(g),Pe=b(g),Oe=x(m),ze=b(m),Re={a:function(e){return p[e.getDay()]},A:function(e){return f[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:null,d:U,e:U,f:W,g:ne,G:ae,H:V,I:q,j:H,L:G,m:Y,M:Z,p:function(e){return l[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ee,s:Le,S:X,u:K,U:J,V:$,w:ee,W:te,x:null,X:null,y:re,Y:ie,Z:oe,"%":Se},Fe={a:function(e){return p[e.getUTCDay()]},A:function(e){return f[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return g[e.getUTCMonth()]},c:null,d:se,e:se,f:fe,g:Te,G:Ae,H:le,I:ce,j:ue,L:he,m:de,M:pe,p:function(e){return l[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ee,s:Le,S:ge,u:me,U:ve,V:xe,w:be,W:_e,x:null,X:null,y:we,Y:ke,Z:Me,"%":Se},je={a:function(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.w=Ie[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=Q.exec(t.slice(r));return n?(e.w=ye[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=Oe.exec(t.slice(r));return n?(e.m=ze[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=De.exec(t.slice(r));return n?(e.m=Pe[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return Ue(e,t,r,n)},d:I,e:I,f:F,g:S,G:M,H:P,I:P,j:D,L:R,m:C,M:O,p:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.p=y[n[0].toLowerCase()],r+n[0].length):-1},q:L,Q:N,s:B,S:z,u:w,U:T,V:k,w:_,W:A,x:function(e,t,n){return Ue(e,r,t,n)},X:function(e,t,r){return Ue(e,a,t,r)},y:S,Y:M,Z:E,"%":j};function Ne(e,t){return function(r){var n,i,a,o=[],s=-1,l=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in f||(f.w=1),"Z"in f?(l=(a=u(h(f.y,0,1))).getUTCDay(),a=l>4||0===l?s.rt.ceil(a):(0,s.rt)(a),a=o.A.offset(a,7*(f.V-1)),f.y=a.getUTCFullYear(),f.m=a.getUTCMonth(),f.d=a.getUTCDate()+(f.w+6)%7):(l=(a=c(h(f.y,0,1))).getDay(),a=l>4||0===l?i.By.ceil(a):(0,i.By)(a),a=n.A.offset(a,7*(f.V-1)),f.y=a.getFullYear(),f.m=a.getMonth(),f.d=a.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),l="Z"in f?u(h(f.y,0,1)).getUTCDay():c(h(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(l+5)%7:f.w+7*f.U-(l+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,u(f)):c(f)}}function Ue(e,t,r,n){for(var i,a,o=0,s=t.length,l=r.length;o=l)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=je[i in d?t.charAt(o++):i])||(n=a(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Re.x=Ne(r,Re),Re.X=Ne(a,Re),Re.c=Ne(t,Re),Fe.x=Ne(r,Fe),Fe.X=Ne(a,Fe),Fe.c=Ne(t,Fe),{format:function(e){var t=Ne(e+="",Re);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ne(e+="",Fe);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function v(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a68?1900:2e3),r+n[0].length):-1}function E(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function L(e,t,r){var n=p.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function C(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function I(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function D(e,t,r){var n=p.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function P(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function O(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function z(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function R(e,t,r){var n=p.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function F(e,t,r){var n=p.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function j(e,t,r){var n=g.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function N(e,t,r){var n=p.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function B(e,t,r){var n=p.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function U(e,t){return v(e.getDate(),t,2)}function V(e,t){return v(e.getHours(),t,2)}function q(e,t){return v(e.getHours()%12||12,t,2)}function H(e,t){return v(1+n.A.count((0,a.A)(e),e),t,3)}function G(e,t){return v(e.getMilliseconds(),t,3)}function W(e,t){return G(e,t)+"000"}function Y(e,t){return v(e.getMonth()+1,t,2)}function Z(e,t){return v(e.getMinutes(),t,2)}function X(e,t){return v(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return v(i.fz.count((0,a.A)(e)-1,e),t,2)}function Q(e){var t=e.getDay();return t>=4||0===t?(0,i.dt)(e):i.dt.ceil(e)}function $(e,t){return e=Q(e),v(i.dt.count((0,a.A)(e),e)+(4===(0,a.A)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return v(i.By.count((0,a.A)(e)-1,e),t,2)}function re(e,t){return v(e.getFullYear()%100,t,2)}function ne(e,t){return v((e=Q(e)).getFullYear()%100,t,2)}function ie(e,t){return v(e.getFullYear()%1e4,t,4)}function ae(e,t){var r=e.getDay();return v((e=r>=4||0===r?(0,i.dt)(e):i.dt.ceil(e)).getFullYear()%1e4,t,4)}function oe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v(t/60|0,"0",2)+v(t%60,"0",2)}function se(e,t){return v(e.getUTCDate(),t,2)}function le(e,t){return v(e.getUTCHours(),t,2)}function ce(e,t){return v(e.getUTCHours()%12||12,t,2)}function ue(e,t){return v(1+o.A.count((0,l.A)(e),e),t,3)}function he(e,t){return v(e.getUTCMilliseconds(),t,3)}function fe(e,t){return he(e,t)+"000"}function de(e,t){return v(e.getUTCMonth()+1,t,2)}function pe(e,t){return v(e.getUTCMinutes(),t,2)}function ge(e,t){return v(e.getUTCSeconds(),t,2)}function me(e){var t=e.getUTCDay();return 0===t?7:t}function ve(e,t){return v(s.Hl.count((0,l.A)(e)-1,e),t,2)}function ye(e){var t=e.getUTCDay();return t>=4||0===t?(0,s.pT)(e):s.pT.ceil(e)}function xe(e,t){return e=ye(e),v(s.pT.count((0,l.A)(e),e)+(4===(0,l.A)(e).getUTCDay()),t,2)}function be(e){return e.getUTCDay()}function _e(e,t){return v(s.rt.count((0,l.A)(e)-1,e),t,2)}function we(e,t){return v(e.getUTCFullYear()%100,t,2)}function Te(e,t){return v((e=ye(e)).getUTCFullYear()%100,t,2)}function ke(e,t){return v(e.getUTCFullYear()%1e4,t,4)}function Ae(e,t){var r=e.getUTCDay();return v((e=r>=4||0===r?(0,s.pT)(e):s.pT.ceil(e)).getUTCFullYear()%1e4,t,4)}function Me(){return"+0000"}function Se(){return"%"}function Ee(e){return+e}function Le(e){return Math.floor(+e/1e3)}},81128:function(e,t,r){"use strict";var n=r(63639),i=r(76081);e.exports=function(e,t){"float"!==t&&t||(t="array"),"uint"===t&&(t="uint8"),"uint_clamped"===t&&(t="uint8_clamped");var r=new(i(t))(4),a="uint8"!==t&&"uint8_clamped"!==t;return e.length&&"string"!==typeof e||((e=n(e))[0]/=255,e[1]/=255,e[2]/=255),function(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||!!(Array.isArray(e)&&(e[0]>1||0===e[0])&&(e[1]>1||0===e[1])&&(e[2]>1||0===e[2])&&(!e[3]||e[3]>1))}(e)?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=null!=e[3]?e[3]:255,a&&(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(a?(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=null!=e[3]?e[3]:1):(r[0]=Math.min(Math.max(Math.floor(255*e[0]),0),255),r[1]=Math.min(Math.max(Math.floor(255*e[1]),0),255),r[2]=Math.min(Math.max(Math.floor(255*e[2]),0),255),r[3]=null==e[3]?255:Math.min(Math.max(Math.floor(255*e[3]),0),255)),r)}},81191:function(e,t,r){"use strict";for(var n=r(5738),i=r(97451),a=r(87241).extendFlat,o=r(17342).overrideAll,s=["z","x","x0","dx","y","y0","dy","text","transpose","xtype","ytype"],l={},c=0;cd&&eg&&tp||tm},e.setScale=function(){var t=e._x,r=e._y,n=a(e._xctrl,e._yctrl,t,r,h.smoothing,f.smoothing);e._xctrl=n[0],e._yctrl=n[1],e.evalxy=o([e._xctrl,e._yctrl],c,u,h.smoothing,f.smoothing),e.dxydi=s([e._xctrl,e._yctrl],h.smoothing,f.smoothing),e.dxydj=l([e._xctrl,e._yctrl],h.smoothing,f.smoothing)},e.i2a=function(e){var r=Math.max(0,Math.floor(e[0]),c-2),n=e[0]-r;return(1-n)*t[r]+n*t[r+1]},e.j2b=function(e){var t=Math.max(0,Math.floor(e[1]),c-2),n=e[1]-t;return(1-n)*r[t]+n*r[t+1]},e.ij2ab=function(t){return[e.i2a(t[0]),e.j2b(t[1])]},e.a2i=function(e){var r=Math.max(0,Math.min(i(e,t),c-2)),n=t[r],a=t[r+1];return Math.max(0,Math.min(c-1,r+(e-n)/(a-n)))},e.b2j=function(e){var t=Math.max(0,Math.min(i(e,r),u-2)),n=r[t],a=r[t+1];return Math.max(0,Math.min(u-1,t+(e-n)/(a-n)))},e.ab2ij=function(t){return[e.a2i(t[0]),e.b2j(t[1])]},e.i2c=function(t,r){return e.evalxy([],t,r)},e.ab2xy=function(n,i,a){if(!a&&(nt[c-1]|ir[u-1]))return[!1,!1];var o=e.a2i(n),s=e.b2j(i),l=e.evalxy([],o,s);if(a){var h,f,d,p,g=0,m=0,v=[];nt[c-1]?(h=c-2,f=1,g=(n-t[c-1])/(t[c-1]-t[c-2])):f=o-(h=Math.max(0,Math.min(c-2,Math.floor(o)))),ir[u-1]?(d=u-2,p=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):p=s-(d=Math.max(0,Math.min(u-2,Math.floor(s)))),g&&(e.dxydi(v,h,d,f,p),l[0]+=v[0]*g,l[1]+=v[1]*g),m&&(e.dxydj(v,h,d,f,p),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},e.c2p=function(e,t,r){return[t.c2p(e[0]),r.c2p(e[1])]},e.p2x=function(e,t,r){return[t.p2c(e[0]),r.p2c(e[1])]},e.dadi=function(e){var r=Math.max(0,Math.min(t.length-2,e));return t[r+1]-t[r]},e.dbdj=function(e){var t=Math.max(0,Math.min(r.length-2,e));return r[t+1]-r[t]},e.dxyda=function(t,r,n,i){var a=e.dxydi(null,t,r,n,i),o=e.dadi(t,n);return[a[0]/o,a[1]/o]},e.dxydb=function(t,r,n,i){var a=e.dxydj(null,t,r,n,i),o=e.dbdj(r,i);return[a[0]/o,a[1]/o]},e.dxyda_rough=function(t,r,n){var i=v*(n||.1),a=e.ab2xy(t+i,r,!0),o=e.ab2xy(t-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},e.dxydb_rough=function(t,r,n){var i=y*(n||.1),a=e.ab2xy(t,r+i,!0),o=e.ab2xy(t,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},e.dpdx=function(e){return e._m},e.dpdy=function(e){return e._m}}},81255:function(e){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},81360:function(e){"use strict";e.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),n=r>1?(r*e+r*t)/r:e+t,i=String(n).length;if(i>16){var a=String(t).length;if(i>=String(e).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},81524:function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:r(70029),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:r(35135),supplyDefaults:r(25144),colorbar:r(78666),formatLabels:r(37295),calc:r(59404),plot:r(57465),hoverPoints:r(4850).hoverPoints,selectPoints:r(62496),meta:{hrName:"scatter_polar_gl",description:["The scatterpolargl trace type encompasses line charts, scatter charts, and bubble charts","in polar coordinates using the WebGL plotting engine.","The data visualized as scatter point or lines is set in","`r` (radial) and `theta` (angular) coordinates","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},81651:function(e,t,r){"use strict";e.exports=function(e){var t=e.gl,r=n(t,[0,0,0,1,1,0,1,1]),s=i(t,a.boxVert,a.lineFrag);return new o(e,r,s)};var n=r(99795),i=r(79810),a=r(32692);function o(e,t,r){this.plot=e,this.vbo=t,this.shader=r}var s=o.prototype;s.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},s.drawBox=function(){var e=[0,0],t=[0,0];return function(r,n,i,a,o){var s=this.plot,l=this.shader,c=s.gl;e[0]=r,e[1]=n,t[0]=i,t[1]=a,l.uniforms.lo=e,l.uniforms.hi=t,l.uniforms.color=o,c.drawArrays(c.TRIANGLE_STRIP,0,4)}}(),s.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},81859:function(e){e.exports=function(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)<1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},81901:function(e,t,r){var n=r(79006).sprintf,i=r(5708),a=r(28937),o=r(76152);e.exports=function(e,t,r){"use strict";var s=a(t)||"of unknown name (see npm glsl-shader-name)",l="unknown type";void 0!==r&&(l=r===i.FRAGMENT_SHADER?"fragment":"vertex");for(var c=n("Error compiling %s shader %s:\n",l,s),u=n("%s%s",c,e),h=e.split("\n"),f={},d=0;d0&&(a=n(i.key,i.value)))return a}if(s>0&&i.right)return c(e,t,r,n,i.right)}function u(e,t){this.tree=e,this._stack=t}Object.defineProperty(o,"keys",{get:function(){var e=[];return this.forEach((function(t,r){e.push(t)})),e}}),Object.defineProperty(o,"values",{get:function(){var e=[];return this.forEach((function(t,r){e.push(r)})),e}}),Object.defineProperty(o,"length",{get:function(){return this.root?this.root._count:0}}),o.insert=function(e,r){for(var o=this._compare,s=this.root,l=[],c=[];s;){var u=o(e,s.key);l.push(s),c.push(u),s=u<=0?s.left:s.right}l.push(new t(0,e,r,null,null,1));for(var h=l.length-2;h>=0;--h){s=l[h];c[h]<=0?l[h]=new t(s._color,s.key,s.value,l[h+1],s.right,s._count+1):l[h]=new t(s._color,s.key,s.value,s.left,l[h+1],s._count+1)}for(h=l.length-1;h>1;--h){var f=l[h-1];s=l[h];if(1===f._color||1===s._color)break;var d=l[h-2];if(d.left===f)if(f.left===s){if(!(p=d.right)||0!==p._color){if(d._color=0,d.left=f.right,f._color=1,f.right=d,l[h-2]=f,l[h-1]=s,i(d),i(f),h>=3)(g=l[h-3]).left===d?g.left=f:g.right=f;break}f._color=1,d.right=n(1,p),d._color=0,h-=1}else{if(!(p=d.right)||0!==p._color){if(f.right=s.left,d._color=0,d.left=s.right,s._color=1,s.left=f,s.right=d,l[h-2]=s,l[h-1]=f,i(d),i(f),i(s),h>=3)(g=l[h-3]).left===d?g.left=s:g.right=s;break}f._color=1,d.right=n(1,p),d._color=0,h-=1}else if(f.right===s){if(!(p=d.left)||0!==p._color){if(d._color=0,d.right=f.left,f._color=1,f.left=d,l[h-2]=f,l[h-1]=s,i(d),i(f),h>=3)(g=l[h-3]).right===d?g.right=f:g.left=f;break}f._color=1,d.left=n(1,p),d._color=0,h-=1}else{var p;if(!(p=d.left)||0!==p._color){var g;if(f.left=s.right,d._color=0,d.right=s.left,s._color=1,s.right=f,s.left=d,l[h-2]=s,l[h-1]=f,i(d),i(f),i(s),h>=3)(g=l[h-3]).right===d?g.right=s:g.left=s;break}f._color=1,d.left=n(1,p),d._color=0,h-=1}}return l[0]._color=1,new a(o,l[0])},o.forEach=function(e,t,r){if(this.root)switch(arguments.length){case 1:return s(e,this.root);case 2:return l(t,this._compare,e,this.root);case 3:if(this._compare(t,r)>=0)return;return c(t,r,this._compare,e,this.root)}},Object.defineProperty(o,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new u(this,e)}}),Object.defineProperty(o,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new u(this,e)}}),o.at=function(e){if(e<0)return new u(this,[]);for(var t=this.root,r=[];;){if(r.push(t),t.left){if(e=t.right._count)break;t=t.right}return new u(this,[])},o.ge=function(e){for(var t=this._compare,r=this.root,n=[],i=0;r;){var a=t(e,r.key);n.push(r),a<=0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new u(this,n)},o.gt=function(e){for(var t=this._compare,r=this.root,n=[],i=0;r;){var a=t(e,r.key);n.push(r),a<0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new u(this,n)},o.lt=function(e){for(var t=this._compare,r=this.root,n=[],i=0;r;){var a=t(e,r.key);n.push(r),a>0&&(i=n.length),r=a<=0?r.left:r.right}return n.length=i,new u(this,n)},o.le=function(e){for(var t=this._compare,r=this.root,n=[],i=0;r;){var a=t(e,r.key);n.push(r),a>=0&&(i=n.length),r=a<0?r.left:r.right}return n.length=i,new u(this,n)},o.find=function(e){for(var t=this._compare,r=this.root,n=[];r;){var i=t(e,r.key);if(n.push(r),0===i)return new u(this,n);r=i<=0?r.left:r.right}return new u(this,[])},o.remove=function(e){var t=this.find(e);return t?t.remove():this},o.get=function(e){for(var t=this._compare,r=this.root;r;){var n=t(e,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var h=u.prototype;function f(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function d(e,t){return et?1:0}Object.defineProperty(h,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(h,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),h.clone=function(){return new u(this.tree,this._stack.slice())},h.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var o=new Array(e.length),s=e[e.length-1];o[o.length-1]=new t(s._color,s.key,s.value,s.left,s.right,s._count);for(var l=e.length-2;l>=0;--l){(s=e[l]).left===e[l+1]?o[l]=new t(s._color,s.key,s.value,o[l+1],s.right,s._count):o[l]=new t(s._color,s.key,s.value,s.left,o[l+1],s._count)}if((s=o[o.length-1]).left&&s.right){var c=o.length;for(s=s.left;s.right;)o.push(s),s=s.right;var u=o[c-1];o.push(new t(s._color,u.key,u.value,s.left,s.right,s._count)),o[c-1].key=s.key,o[c-1].value=s.value;for(l=o.length-2;l>=c;--l)s=o[l],o[l]=new t(s._color,s.key,s.value,s.left,o[l+1],s._count);o[c-1].left=o[c]}if(0===(s=o[o.length-1])._color){var h=o[o.length-2];h.left===s?h.left=null:h.right===s&&(h.right=null),o.pop();for(l=0;l=0;--l){if(t=e[l],0===l)return void(t._color=1);if((a=e[l-1]).left===t){if((o=a.right).right&&0===o.right._color)return s=(o=a.right=r(o)).right=r(o.right),a.right=o.left,o.left=a,o.right=s,o._color=a._color,t._color=1,a._color=1,s._color=1,i(a),i(o),l>1&&((c=e[l-2]).left===a?c.left=o:c.right=o),void(e[l-1]=o);if(o.left&&0===o.left._color)return s=(o=a.right=r(o)).left=r(o.left),a.right=s.left,o.left=s.right,s.left=a,s.right=o,s._color=a._color,a._color=1,o._color=1,t._color=1,i(a),i(o),i(s),l>1&&((c=e[l-2]).left===a?c.left=s:c.right=s),void(e[l-1]=s);if(1===o._color){if(0===a._color)return a._color=1,void(a.right=n(0,o));a.right=n(0,o);continue}o=r(o),a.right=o.left,o.left=a,o._color=a._color,a._color=0,i(a),i(o),l>1&&((c=e[l-2]).left===a?c.left=o:c.right=o),e[l-1]=o,e[l]=a,l+11&&((c=e[l-2]).right===a?c.right=o:c.left=o),void(e[l-1]=o);if(o.right&&0===o.right._color)return s=(o=a.left=r(o)).right=r(o.right),a.left=s.right,o.right=s.left,s.right=a,s.left=o,s._color=a._color,a._color=1,o._color=1,t._color=1,i(a),i(o),i(s),l>1&&((c=e[l-2]).right===a?c.right=s:c.left=s),void(e[l-1]=s);if(1===o._color){if(0===a._color)return a._color=1,void(a.left=n(0,o));a.left=n(0,o);continue}var c;o=r(o),a.left=o.right,o.right=a,o._color=a._color,a._color=0,i(a),i(o),l>1&&((c=e[l-2]).right===a?c.right=o:c.left=o),e[l-1]=o,e[l]=a,l+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(h,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(h,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var r=this.tree.root;return r?r._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var n=t.length-2;n>=0;--n)t[n+1]===t[n].right&&(++e,t[n].left&&(e+=t[n].left._count));return e},enumerable:!0}),h.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(h,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),h.update=function(e){var r=this._stack;if(0===r.length)throw new Error("Can't update empty node!");var n=new Array(r.length),i=r[r.length-1];n[n.length-1]=new t(i._color,i.key,e,i.left,i.right,i._count);for(var o=r.length-2;o>=0;--o)(i=r[o]).left===r[o+1]?n[o]=new t(i._color,i.key,i.value,n[o+1],i.right,i._count):n[o]=new t(i._color,i.key,i.value,i.left,n[o+1],i._count);return new a(this.tree._compare,n[0])},h.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(h,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}})},81950:function(e,t,r){var n=r(14955),i=r(79810),a=n("./vertex.glsl"),o=n("./composite.glsl");e.exports=function(e){return i(e,a,o,null,[{name:"position",type:"vec2"}])}},82105:function(e,t,r){"use strict";r.d(t,{By:function(){return s},KP:function(){return p},Q$:function(){return v},Sh:function(){return h},dt:function(){return u},eQ:function(){return l},fz:function(){return o},gf:function(){return m},kS:function(){return f},l3:function(){return c},se:function(){return d},t$:function(){return x},tz:function(){return y},yW:function(){return g}});var n=r(8036),i=r(53129);function a(e){return(0,n.A)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.rR)/i.Fq}))}var o=a(0),s=a(1),l=a(2),c=a(3),u=a(4),h=a(5),f=a(6),d=o.range,p=s.range,g=l.range,m=c.range,v=u.range,y=h.range,x=f.range},82174:function(e,t,r){"use strict";var n=r(47401),i=r(94060),a=r(42745);e.exports=function(e,t,r,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("u"),c=s("v"),u=s("w"),h=s("x"),f=s("y"),d=s("z");l&&l.length&&c&&c.length&&u&&u.length&&h&&h.length&&f&&f.length&&d&&d.length?(s("sizeref"),s("sizemode"),s("anchor"),s("lighting.ambient"),s("lighting.diffuse"),s("lighting.specular"),s("lighting.roughness"),s("lighting.fresnel"),s("lightposition.x"),s("lightposition.y"),s("lightposition.z"),i(e,t,o,s,{prefix:"",cLetter:"c"}),s("text"),s("hovertext"),s("hovertemplate"),s("uhoverformat"),s("vhoverformat"),s("whoverformat"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),t._length=null):t.visible=!1}},82335:function(e,t,r){"use strict";var n=r(47401),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(e){return.5-.25*Math.min(1,.5*e)}function o(e,t,r){var n,a,o,s,l,c,u,h,f,d,p,g,m,v=0;for(s=0;sg&&(v=Math.max(v,Math.abs(e[a][o]-p)/(m-g))))}return v}e.exports=function(e,t){var r,i=1;for(o(e,t),r=0;r.01;r++)i=o(e,t,a(i));return i>.01&&n.log("interp2d didn't converge quickly",i),e}},82498:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r(31014);function i(e,t){const r=[...t||[]];return null==t&&"function"!==typeof e&&r.push(e),(0,n.useMemo)((()=>"function"===typeof e?e():e),r)}},82523:function(e){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}},82559:function(e){"use strict";e.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},82699:function(e){"use strict";e.exports={circle:"\u25cf","circle-open":"\u25cb",square:"\u25a0","square-open":"\u25a1",diamond:"\u25c6","diamond-open":"\u25c7",cross:"+",x:"\u274c"}},82706:function(e,t,r){var n;!function(i,a,o){a[i]=a[i]||o(),e.exports?e.exports=a[i]:void 0===(n=function(){return a[i]}.call(t,r,t,e))||(e.exports=n)}("Promise","undefined"!=typeof r.g?r.g:this,(function(){"use strict";var e,t,r,n=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(m){e=function(e,t,r){return e[t]=r,e}}function a(e,n){r.add(e,n),t||(t=i(r.drain))}function o(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e0&&a(s,r))}catch(m){u.call(new f(r),m)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function h(e,t,r,n){for(var i=0;i",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},82816:function(e,t,r){"use strict";e.exports=function(e,t,r,i){for(var a={},l=0,c=r.length;l=0){if((p=f.charCodeAt(f.length-1)-48)<2||p>4)throw new n("","Invalid data type for attribute "+h+": "+f);o(e,t,d[0],i,p,a,h)}else{if(!(f.indexOf("mat")>=0))throw new n("","Unknown data type for attribute "+h+": "+f);var p;if((p=f.charCodeAt(f.length-1)-48)<2||p>4)throw new n("","Invalid data type for attribute "+h+": "+f);s(e,t,d,i,p,a,h)}}}return a};var n=r(15282);function i(e,t,r,n,i,a){this._gl=e,this._wrapper=t,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(e,t,r,n,a,o,s){for(var l=["gl","v"],c=[],u=0;uOpenStreetMap
contributors',o=['\xa9 Carto',a].join(" "),s=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),l={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:a,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}]},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}]},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:o,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}]},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:o,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}]},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:s,tiles:["https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}]},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:s,tiles:["https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}]},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}]}},c=n(l);e.exports={requiredVersion:i,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:l,styleValuesNonMapbox:c,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install mapbox-gl@"+i+"."].join("\n"),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join("\n"),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",c.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join("\n"),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join("\n"),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":'content: ""; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E\')'}}},83211:function(e,t,r){"use strict";r.r(t);var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(l){i=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=2*Math.PI,a=function(e,t,r,n,i,a,o){var s=e.x,l=e.y;return{x:n*(s*=t)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(e,t){var r=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),a=Math.cos(e+t),o=Math.sin(e+t);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(e,t,r,n){var i=e*r+t*n;return i>1&&(i=1),i<-1&&(i=-1),(e*n-t*r<0?-1:1)*Math.acos(i)};t.default=function(e){var t=e.px,r=e.py,l=e.cx,c=e.cy,u=e.rx,h=e.ry,f=e.xAxisRotation,d=void 0===f?0:f,p=e.largeArcFlag,g=void 0===p?0:p,m=e.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===h)return[];var x=Math.sin(d*i/360),b=Math.cos(d*i/360),_=b*(t-l)/2+x*(r-c)/2,w=-x*(t-l)/2+b*(r-c)/2;if(0===_&&0===w)return[];u=Math.abs(u),h=Math.abs(h);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(h,2);T>1&&(u*=Math.sqrt(T),h*=Math.sqrt(T));var k=function(e,t,r,n,a,o,l,c,u,h,f,d){var p=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(f,2),v=Math.pow(d,2),y=p*g-p*v-g*m;y<0&&(y=0),y/=p*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*d,b=y*-o/a*f,_=h*x-u*b+(e+r)/2,w=u*x+h*b+(t+n)/2,T=(f-x)/a,k=(d-b)/o,A=(-f-x)/a,M=(-d-b)/o,S=s(1,0,T,k),E=s(T,k,A,M);return 0===c&&E>0&&(E-=i),1===c&&E<0&&(E+=i),[_,w,S,E]}(t,r,l,c,u,h,g,v,x,b,_,w),A=n(k,4),M=A[0],S=A[1],E=A[2],L=A[3],C=Math.abs(L)/(i/4);Math.abs(1-C)<1e-7&&(C=1);var I=Math.max(Math.ceil(C),1);L/=I;for(var D=0;D>>24,n=(16711680&e)>>>16,i=(65280&e)>>>8,a=255&e;return!1===t?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},83759:function(e,t,r){"use strict";var n=r(80717),i=r(42685);e.exports=function(e,t){var r=e.length;if(1===r){var a=n(e[0],t);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(e[0],t,s),s[0]&&(o[c++]=s[0]);for(var u=1;u=0&&i.push("lo=e[k+n]");e.indexOf("hi")>=0&&i.push("hi=e[k+o]");return n.push(t.replace("_",i.join()).replace("$",e)),Function.apply(void 0,n)};var t="for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m"},83997:function(e){e.exports=function(e){return atob(e)}},84160:function(e){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}},84168:function(e){e.exports=function(e,t){var r="number"===typeof e,n="number"===typeof t;r&&!n?(t=e,e=0):r||n||(e=0,t=0);var i=(t|=0)-(e|=0);if(i<0)throw new Error("array length must be positive");for(var a=new Array(i),o=0,s=e;og[1]-1/4096&&(t.domain=s),i.noneOrAll(e.domain,t.domain,s)}return r("layer"),t}},84400:function(e,t,r){"use strict";var n=r(92173).EventEmitter,i=r(62282),a=r(47401),o=r(4475),s=r(59532),l=r(4979),c=r(66434);e.exports=function(e,t){var r=new n,u=s(e,{format:"png"}),h=u.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);var f=o.getRedrawFunc(h);return i.call("_doPlot",h,u.data,u.layout,u.config).then(f).then((function(){var e=o.getDelay(h._fullLayout);setTimeout((function(){var e=l(h),n=document.createElement("canvas");n.id=a.randstr(),(r=c({format:t.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:n,emitter:r,svg:e})).clean=function(){h&&document.body.removeChild(h)}}),e)})).catch((function(e){r.emit("error",e)})),r}},84420:function(e,t,r){"use strict";var n=r(35722);t.name="pie",t.plot=function(e,r,i,a){n.plotBasePlot(t.name,e,r,i,a)},t.clean=function(e,r,i,a){n.cleanBasePlot(t.name,e,r,i,a)}},84525:function(e,t,r){"use strict";var n=r(83491),i=r(71212),a=r(3847),o=r(9405).BADNUM,s=1e-9;function l(e,t){return et}function h(e,t){return e>=t}t.findBin=function(e,t,r){if(n(t.start))return r?Math.ceil((e-t.start)/t.size-s)-1:Math.floor((e-t.start)/t.size+s);var a,o,f=0,d=t.length,p=0,g=d>1?(t[d-1]-t[0])/(d-1):1;for(o=g>=0?r?l:c:r?h:u,e+=g*s*(r?-1:1)*(g>=0?1:-1);f90&&i.log("Long binary search..."),f-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var r,n=e.slice();for(n.sort(t.sorterAsc),r=n.length-1;r>-1&&n[r]===o;r--);for(var i,a=n[r]-n[0]||1,s=a/(r||1)/1e4,l=[],c=0;c<=r;c++){var u=n[c],h=u-i;void 0===i?(l.push(u),i=u):h>s&&(a=Math.min(a,h),l.push(u),i=u)}return{vals:l,minDiff:a}},t.roundUp=function(e,t,r){for(var n,i=0,a=t.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||a;for(var r,n=1/0,i=0;i1){if(!f&&!d&&!p)"independent"===k("pattern")&&(f=!0);m._hasSubplotGrid=f;var x,b,_="top to bottom"===k("roworder"),w=f?.2:.1,T=f?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),m._domains={x:u("x",k,w,x,y),y:u("y",k,T,b,v,_)}}else delete t.grid}function k(e,t){return n.coerce(r,m,l,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,i,a,o,s,l,u,f=e.grid||{},d=t._subplots,p=r._hasSubplotGrid,g=r.rows,m=r.columns,v="independent"===r.pattern,y=r._axisMap={};if(p){var x=f.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;na){var o=a-r[e];return r[e]=a,o}}return 0},max:function(e,t,r,i){var a=i[t];if(n(a)){if(a=Number(a),!n(r[e]))return r[e]=a,a;if(r[e]>>1,x=a",i?".get(m)":"[m]"];return a?t.indexOf("c")<0?o.push(";if(x===y){return m}else if(x<=y){"):o.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):o.push(";if(",t,"){i=m;"),r?o.push("l=m+1}else{h=m-1}"):o.push("h=m-1}else{l=m+1}"),o.push("}"),a?o.push("return -1};"):o.push("return i};"),o.join("")}function r(e,r,n,i){return new Function([t("A","x"+e+"y",r,["y"],!1,i),t("B","x"+e+"y",r,["y"],!0,i),t("P","c(x,y)"+e+"0",r,["y","c"],!1,i),t("Q","c(x,y)"+e+"0",r,["y","c"],!0,i),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""))()}e.exports={ge:r(">=",!1,"GE"),gt:r(">",!1,"GT"),lt:r("<",!0,"LT"),le:r("<=",!0,"LE"),eq:r("-",!0,"EQ",!0)}},86500:function(e){"use strict";e.exports={iciclecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default icicle slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendiciclecolors`."].join(" ")},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the icicle slice colors (whether given by `iciclecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},86505:function(e,t,r){"use strict";var n=r(59833),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(e){return Math.abs(e[1]-e[0])>s-1e-14}function c(e,t){return a(t-e,s)}function u(e,t){if(l(t))return!0;var r,n;t[0](n=i(n,s))&&(n+=s);var a=i(e,s),o=a+s;return a>=r&&a<=n||o>=r&&o<=n}function h(e,t,r,n,i,a,c){i=i||0,a=a||0;var u,h,f,d,p,g=l([r,n]);function m(e,t){return[e*Math.cos(t)+i,a-e*Math.sin(t)]}g?(u=0,h=o,f=s):r=i&&e<=a);var i,a},pathArc:function(e,t,r,n,i){return h(null,e,t,r,n,i,0)},pathSector:function(e,t,r,n,i){return h(null,e,t,r,n,i,1)},pathAnnulus:function(e,t,r,n,i,a){return h(e,t,r,n,i,a,1)}}},86520:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(87150),i=r(1315),a=r(31014);function o(e,t,r){const[o,s]=function(e,t,r){const[o,s]=(0,a.useState)((()=>t(e))),l=(0,a.useCallback)((()=>{const n=t(e);i(o,n)||(s(n),r&&r())}),[o,e,r]);return(0,n.E)(l),[o,l]}(e,t,r);return(0,n.E)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(s,{handlerIds:[t]})}),[e,s]),o}function s(e,t,r){return o(t,e||(()=>({})),(()=>r.reconnect()))}},86606:function(e,t,r){"use strict";var n=r(83491),i=r(9405).BADNUM,a=r(92171),o=r(79475),s=r(35533);function l(e){return e&&"string"===typeof e}e.exports=function(e,t){var r,c=t._length,u=new Array(c);r=t.geojson?function(e){return l(e)||n(e)}:l;for(var h=0;ha&&l||i=r-1){f=l.length-1;var p=e-t[r-1];for(d=0;d=r-1)for(var u=s.length-1,h=(t[r-1],0);h=0;--r)if(e[--t])return!1;return!0},s.jump=function(e){var t=this.lastT(),r=this.dimension;if(!(e0;--h)n.push(a(l[h-1],c[h-1],arguments[h])),i.push(0)}},s.push=function(e){var t=this.lastT(),r=this.dimension;if(!(e1e-6?1/s:0;this._time.push(e);for(var f=r;f>0;--f){var d=a(c[f-1],u[f-1],arguments[f]);n.push(d),i.push((d-n[o++])*h)}}},s.set=function(e){var t=this.dimension;if(!(e0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(e){var t=this.lastT(),r=this.dimension;if(!(e<=t||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=e-t,h=u>1e-6?1/u:0;this._time.push(e);for(var f=r;f>0;--f){var d=arguments[f];n.push(a(l[f-1],c[f-1],n[o++]+d)),i.push(d*h)}}},s.idle=function(e){var t=this.lastT();if(!(e=0;--h)n.push(a(l[h],c[h],n[o]+u*i[o])),i.push(0),o+=1}}},87717:function(e,t,r){"use strict";r.d(t,{Dj:function(){return i.A},GW:function(){return n.A}});var n=r(93004),i=r(50608)},87773:function(e,t,r){"use strict";var n=r(14955),i=n("./shaders/vertex.glsl"),a=n("./shaders/fragment.glsl"),o=r(41479).maxDimensionCount,s=r(47401),l=1e-6,c=2048,u=new Uint8Array(4),h=new Uint8Array(4),f={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function d(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function p(e,t,r,n,i,a){var o=a.key;r.drawCompleted||(!function(e){e.read({x:0,y:0,width:1,height:1,data:u})}(e),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],d(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,t(a),l*n+c>>8*t)%256/255}function v(e,t,r){for(var n=new Array(8*t),i=0,a=0;ah&&(h=e[i].dim1.canvasX,o=i);0===s&&d(A,0,0,r.canvasWidth,r.canvasHeight);var f=function(e){var t,r,n,i=[[],[]];for(n=0;n<64;n++){var a=!e&&nt?1:e>=t?0:NaN}r.r(t),r.d(t,{sankeyCenter:function(){return x},sankeyCircular:function(){return F},sankeyJustify:function(){return y},sankeyLeft:function(){return m},sankeyRight:function(){return v}});var i=function(e){var t;return 1===e.length&&(t=e,e=function(e,r){return n(t(e),r)}),{left:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)<0?n=a+1:i=a}return n},right:function(t,r,n,i){for(null==n&&(n=0),null==i&&(i=t.length);n>>1;e(t[a],r)>0?i=a:n=a+1}return n}}}(n),a=(i.right,i.left,Array.prototype);a.slice,a.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);function o(e,t){var r,n,i=e.length,a=-1;if(null==t){for(;++a=r)for(n=r;++an&&(n=r)}else for(;++a=r)for(n=r;++an&&(n=r);return n}function s(e){return null===e?NaN:+e}function l(e,t){var r,n=e.length,i=n,a=-1,o=0;if(null==t)for(;++a=r)for(n=r;++ar&&(n=r)}else for(;++a=r)for(n=r;++ar&&(n=r);return n}function u(e,t){var r,n=e.length,i=-1,a=0;if(null==t)for(;++i0;--y)b(v*=.99,g),_();function x(n){if(t){var l=1/0;m.forEach((function(e){var r=s*t/(e.length+1);l=r0?t+O+z:t,bottom:r=r>0?r+O+z:r,left:i=i>0?i+O+z:i,right:n=n>0?n+O+z:n}}(d),g=function(e,t){var n=o(e.nodes,(function(e){return e.column})),l=a-r,c=s-i,u=l+t.right+t.left,h=c+t.top+t.bottom,d=l/u,p=c/h;return r=r*d+t.left,a=0==t.right?a:a*d,i=i*p+t.top,s*=p,e.nodes.forEach((function(e){e.x0=r+e.column*((a-r-f)/n),e.x1=e.x0+f})),p}(d,p);h*=g,d.links.forEach((function(e){e.width=e.value*h})),m.forEach((function(e){var t=e.length;e.forEach((function(e,r){e.depth==m.length-1&&1==t||0==e.depth&&1==t?(e.y0=s/2-e.value*h,e.y1=e.y0+e.value*h):e.partOfCycle?0==B(e,n)?(e.y0=s/2+r,e.y1=e.y0+e.value*h):"top"==e.circularLinkType?(e.y0=i+r,e.y1=e.y0+e.value*h):(e.y0=s-e.value*h-r,e.y1=e.y0+e.value*h):0==p.top||0==p.bottom?(e.y0=(s-i)/t*r,e.y1=e.y0+e.value*h):(e.y0=(s-i)/2-t/2+r,e.y1=e.y0+e.value*h)}))}))}function b(e,t){var r=m.length;m.forEach((function(n){var i=n.length,a=n[0].depth;n.forEach((function(n){var o;if(n.sourceLinks.length||n.targetLinks.length)if(n.partOfCycle&&B(n,t)>0);else if(0==a&&1==i)o=n.y1-n.y0,n.y0=s/2-o/2,n.y1=s/2+o/2;else if(a==r-1&&1==i)o=n.y1-n.y0,n.y0=s/2-o/2,n.y1=s/2+o/2;else{var c=l(n.sourceLinks,E),u=l(n.targetLinks,S),h=((c&&u?(c+u)/2:c||u)-M(n))*e;n.y0+=h,n.y1+=h}}))}))}function _(){m.forEach((function(t){var r,n,a,o=i,l=t.length;for(t.sort(k),a=0;a0&&(r.y0+=n,r.y1+=n),o=r.y1+e;if((n=o-e-s)>0)for(o=r.y0-=n,r.y1-=n,a=l-2;a>=0;--a)(n=(r=t[a]).y1+e-o)>0&&(r.y0-=n,r.y1-=n),o=r.y0}))}}(y,x,d),U(y);for(var b=0;b<4;b++)re(y,s,d),ne(y,s,d),$(y,i,s,d),re(y,s,d),ne(y,s,d);return function(e,t,r){var n=e.nodes,i=e.links,a=!1,s=!1;if(i.forEach((function(e){"top"==e.circularLinkType?a=!0:"bottom"==e.circularLinkType&&(s=!0)})),0==a||0==s){var l=c(n,(function(e){return e.y0})),u=(r-t)/(o(n,(function(e){return e.y1}))-l);n.forEach((function(e){var t=(e.y1-e.y0)*u;e.y0=(e.y0-l)*u,e.y1=e.y0+t})),i.forEach((function(e){e.y0=(e.y0-l)*u,e.y1=(e.y1-l)*u,e.width=e.width*u}))}}(y,i,s),q(y,P,s,d),y}function U(e){e.nodes.forEach((function(e){e.sourceLinks.sort(T),e.targetLinks.sort(w)})),e.nodes.forEach((function(e){var t=e.y0,r=t,n=e.y1,i=n;e.sourceLinks.forEach((function(e){e.circular?(e.y0=n-e.width/2,n-=e.width):(e.y0=t+e.width/2,t+=e.width)})),e.targetLinks.forEach((function(e){e.circular?(e.y1=i-e.width/2,i-=e.width):(e.y1=r+e.width/2,r+=e.width)}))}))}return N.nodeId=function(e){return arguments.length?(d="function"===typeof e?e:b(e),N):d},N.nodeAlign=function(e){return arguments.length?(g="function"===typeof e?e:b(e),N):g},N.nodeWidth=function(e){return arguments.length?(f=+e,N):f},N.nodePadding=function(t){return arguments.length?(e=+t,N):e},N.nodes=function(e){return arguments.length?(m="function"===typeof e?e:b(e),N):m},N.links=function(e){return arguments.length?(v="function"===typeof e?e:b(e),N):v},N.size=function(e){return arguments.length?(r=i=0,a=+e[0],s=+e[1],N):[a-r,s-i]},N.extent=function(e){return arguments.length?(r=+e[0][0],a=+e[1][0],i=+e[0][1],s=+e[1][1],N):[[r,i],[a,s]]},N.iterations=function(e){return arguments.length?(x=+e,N):x},N.circularLinkGap=function(e){return arguments.length?(P=+e,N):P},N.nodePaddingRatio=function(e){return arguments.length?(t=+e,N):t},N.sortNodes=function(e){return arguments.length?(F=e,N):F},N.update=function(e){return j(e,d),U(e),e.links.forEach((function(e){e.circular&&(e.circularLinkType=e.y0+e.y11||i>1)}function V(e,t,r){return e.sort(H),e.forEach((function(n,i){var a,o,s=0;if(oe(n,r)&&U(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;lo.source.column)){var c=e[l].circularPathData.verticalBuffer+e[l].width/2+t;s=c>s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),e}function q(e,t,r,n){var i=c(e.links,(function(e){return e.source.y0}));e.links.forEach((function(e){e.circular&&(e.circularPathData={})})),V(e.links.filter((function(e){return"top"==e.circularLinkType})),t,n),V(e.links.filter((function(e){return"bottom"==e.circularLinkType})),t,n),e.links.forEach((function(a){if(a.circular){if(a.circularPathData.arcRadius=a.width+z,a.circularPathData.leftNodeBuffer=5,a.circularPathData.rightNodeBuffer=5,a.circularPathData.sourceWidth=a.source.x1-a.source.x0,a.circularPathData.sourceX=a.source.x0+a.circularPathData.sourceWidth,a.circularPathData.targetX=a.target.x0,a.circularPathData.sourceY=a.y0,a.circularPathData.targetY=a.y1,oe(a,n)&&U(a))a.circularPathData.leftSmallArcRadius=z+a.width/2,a.circularPathData.leftLargeArcRadius=z+a.width/2,a.circularPathData.rightSmallArcRadius=z+a.width/2,a.circularPathData.rightLargeArcRadius=z+a.width/2,"bottom"==a.circularLinkType?(a.circularPathData.verticalFullExtent=a.source.y1+O+a.circularPathData.verticalBuffer,a.circularPathData.verticalLeftInnerExtent=a.circularPathData.verticalFullExtent-a.circularPathData.leftLargeArcRadius,a.circularPathData.verticalRightInnerExtent=a.circularPathData.verticalFullExtent-a.circularPathData.rightLargeArcRadius):(a.circularPathData.verticalFullExtent=a.source.y0-O-a.circularPathData.verticalBuffer,a.circularPathData.verticalLeftInnerExtent=a.circularPathData.verticalFullExtent+a.circularPathData.leftLargeArcRadius,a.circularPathData.verticalRightInnerExtent=a.circularPathData.verticalFullExtent+a.circularPathData.rightLargeArcRadius);else{var o=a.source.column,s=a.circularLinkType,l=e.links.filter((function(e){return e.source.column==o&&e.circularLinkType==s}));"bottom"==a.circularLinkType?l.sort(W):l.sort(G);var c=0;l.forEach((function(e,r){e.circularLinkID==a.circularLinkID&&(a.circularPathData.leftSmallArcRadius=z+a.width/2+c,a.circularPathData.leftLargeArcRadius=z+a.width/2+r*t+c),c+=e.width})),o=a.target.column,l=e.links.filter((function(e){return e.target.column==o&&e.circularLinkType==s})),"bottom"==a.circularLinkType?l.sort(Z):l.sort(Y),c=0,l.forEach((function(e,r){e.circularLinkID==a.circularLinkID&&(a.circularPathData.rightSmallArcRadius=z+a.width/2+c,a.circularPathData.rightLargeArcRadius=z+a.width/2+r*t+c),c+=e.width})),"bottom"==a.circularLinkType?(a.circularPathData.verticalFullExtent=Math.max(r,a.source.y1,a.target.y1)+O+a.circularPathData.verticalBuffer,a.circularPathData.verticalLeftInnerExtent=a.circularPathData.verticalFullExtent-a.circularPathData.leftLargeArcRadius,a.circularPathData.verticalRightInnerExtent=a.circularPathData.verticalFullExtent-a.circularPathData.rightLargeArcRadius):(a.circularPathData.verticalFullExtent=i-O-a.circularPathData.verticalBuffer,a.circularPathData.verticalLeftInnerExtent=a.circularPathData.verticalFullExtent+a.circularPathData.leftLargeArcRadius,a.circularPathData.verticalRightInnerExtent=a.circularPathData.verticalFullExtent+a.circularPathData.rightLargeArcRadius)}a.circularPathData.leftInnerExtent=a.circularPathData.sourceX+a.circularPathData.leftNodeBuffer,a.circularPathData.rightInnerExtent=a.circularPathData.targetX-a.circularPathData.rightNodeBuffer,a.circularPathData.leftFullExtent=a.circularPathData.sourceX+a.circularPathData.leftLargeArcRadius+a.circularPathData.leftNodeBuffer,a.circularPathData.rightFullExtent=a.circularPathData.targetX-a.circularPathData.rightLargeArcRadius-a.circularPathData.rightNodeBuffer}if(a.circular)a.path=function(e){var t="";t="top"==e.circularLinkType?"M"+e.circularPathData.sourceX+" "+e.circularPathData.sourceY+" L"+e.circularPathData.leftInnerExtent+" "+e.circularPathData.sourceY+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftSmallArcRadius+" 0 0 0 "+e.circularPathData.leftFullExtent+" "+(e.circularPathData.sourceY-e.circularPathData.leftSmallArcRadius)+" L"+e.circularPathData.leftFullExtent+" "+e.circularPathData.verticalLeftInnerExtent+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftLargeArcRadius+" 0 0 0 "+e.circularPathData.leftInnerExtent+" "+e.circularPathData.verticalFullExtent+" L"+e.circularPathData.rightInnerExtent+" "+e.circularPathData.verticalFullExtent+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightLargeArcRadius+" 0 0 0 "+e.circularPathData.rightFullExtent+" "+e.circularPathData.verticalRightInnerExtent+" L"+e.circularPathData.rightFullExtent+" "+(e.circularPathData.targetY-e.circularPathData.rightSmallArcRadius)+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightSmallArcRadius+" 0 0 0 "+e.circularPathData.rightInnerExtent+" "+e.circularPathData.targetY+" L"+e.circularPathData.targetX+" "+e.circularPathData.targetY:"M"+e.circularPathData.sourceX+" "+e.circularPathData.sourceY+" L"+e.circularPathData.leftInnerExtent+" "+e.circularPathData.sourceY+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftSmallArcRadius+" 0 0 1 "+e.circularPathData.leftFullExtent+" "+(e.circularPathData.sourceY+e.circularPathData.leftSmallArcRadius)+" L"+e.circularPathData.leftFullExtent+" "+e.circularPathData.verticalLeftInnerExtent+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftLargeArcRadius+" 0 0 1 "+e.circularPathData.leftInnerExtent+" "+e.circularPathData.verticalFullExtent+" L"+e.circularPathData.rightInnerExtent+" "+e.circularPathData.verticalFullExtent+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightLargeArcRadius+" 0 0 1 "+e.circularPathData.rightFullExtent+" "+e.circularPathData.verticalRightInnerExtent+" L"+e.circularPathData.rightFullExtent+" "+(e.circularPathData.targetY+e.circularPathData.rightSmallArcRadius)+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightSmallArcRadius+" 0 0 1 "+e.circularPathData.rightInnerExtent+" "+e.circularPathData.targetY+" L"+e.circularPathData.targetX+" "+e.circularPathData.targetY;return t}(a);else{var u=(0,f.pq)().source((function(e){return[e.source.x0+(e.source.x1-e.source.x0),e.y0]})).target((function(e){return[e.target.x0,e.y1]}));a.path=u(a)}}))}function H(e,t){return X(e)==X(t)?"bottom"==e.circularLinkType?W(e,t):G(e,t):X(t)-X(e)}function G(e,t){return e.y0-t.y0}function W(e,t){return t.y0-e.y0}function Y(e,t){return e.y1-t.y1}function Z(e,t){return t.y1-e.y1}function X(e){return e.target.column-e.source.column}function K(e){return e.target.x0-e.source.x1}function J(e,t){var r=N(e),n=K(t)/Math.tan(r);return"up"==ae(e)?e.y1+n:e.y1-n}function Q(e,t){var r=N(e),n=K(t)/Math.tan(r);return"up"==ae(e)?e.y1-n:e.y1+n}function $(e,t,r,n){e.links.forEach((function(i){if(!i.circular&&i.target.column-i.source.column>1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a<=o;a++,s++)e.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),h=Math.pow(1-u,3),f=3*u*Math.pow(1-u,2),d=3*Math.pow(u,2)*(1-u),p=Math.pow(u,3),g=h*i.y0+f*i.y0+d*i.y1+p*i.y1,m=g-i.width/2,v=g+i.width/2;m>o.y0&&mo.y0&&vo.y1)&&(c=v-o.y0+10,o=te(o,c,t,r),e.nodes.forEach((function(e){P(e,n)!=P(o,n)&&e.column==o.column&&e.y0o.y1&&te(e,c,t,r)})))}}))}}))}function ee(e,t){return e.y0>t.y0&&e.y0t.y0&&e.y1t.y1)}function te(e,t,r,n){return e.y0+t>=r&&e.y1+t<=n&&(e.y0=e.y0+t,e.y1=e.y1+t,e.targetLinks.forEach((function(e){e.y1=e.y1+t})),e.sourceLinks.forEach((function(e){e.y0=e.y0+t}))),e}function re(e,t,r,n){e.nodes.forEach((function(i){n&&i.y+(i.y1-i.y0)>t&&(i.y=i.y-(i.y+(i.y1-i.y0)-t));var a=e.links.filter((function(e){return P(e.source,r)==P(i,r)})),o=a.length;o>1&&a.sort((function(e,t){if(!e.circular&&!t.circular){if(e.target.column==t.target.column)return e.y1-t.y1;if(!ie(e,t))return e.y1-t.y1;if(e.target.column>t.target.column){var r=Q(t,e);return e.y1-r}if(t.target.column>e.target.column)return Q(e,t)-t.y1}return e.circular&&!t.circular?"top"==e.circularLinkType?-1:1:t.circular&&!e.circular?"top"==t.circularLinkType?1:-1:e.circular&&t.circular?e.circularLinkType===t.circularLinkType&&"top"==e.circularLinkType?e.target.column===t.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:e.circularLinkType===t.circularLinkType&&"bottom"==e.circularLinkType?e.target.column===t.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:"top"==e.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(e){e.y0=s+e.width/2,s+=e.width})),a.forEach((function(e,t){if("bottom"==e.circularLinkType){for(var r=t+1,n=0;r1&&n.sort((function(e,t){if(!e.circular&&!t.circular){if(e.source.column==t.source.column)return e.y0-t.y0;if(!ie(e,t))return e.y0-t.y0;if(t.source.column0?"up":"down"}function oe(e,t){return P(e.source,t)==P(e.target,t)}},88277:function(e,t,r){"use strict";var n=r(15853),i=r(15677);function a(e,t){for(var r=[0,0,0,0],n=0;n<4;++n)for(var i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function o(e,t,r,n,i){for(var o=a(n,a(r,a(t,[e[0],e[1],e[2],1]))),s=0;s<3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(e,t){for(var r=[0,0,0],n=0;n1.0001)return null;v+=m[h]}if(Math.abs(v-1)>.001)return null;return[f,s(e,m),m]}},88290:function(e,t,r){"use strict";var n=r(87241).extendFlat,i=r(97451),a=r(39257).scales,o="Note that `autocolorscale` must be true for this attribute to work.";e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:a.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",o].join(" ")},sequentialminus:{valType:"colorscale",dflt:a.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",o].join(" ")},diverging:{valType:"colorscale",dflt:a.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",o].join(" ")}},coloraxis:n({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},i("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},88297:function(e,t,r){"use strict";var n=r(4216).r,i=r(4216).a,a=r(75805),o=r(47216),s=r(94890),l=r(42837),c=r(97451),u=r(87241).extendFlat,h=r(17342).overrideAll,f=a.line,d=a.marker;e.exports=h({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:"markers",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover."].join(" ")}),text:u({},o.text,{description:["Sets text elements associated with each (lon,lat) pair","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:i({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:u({},o.hovertext,{description:["Sets hover text elements associated with each (lon,lat) pair","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),line:{color:f.color,width:f.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:"string",dflt:"circle",arrayOk:!0,description:["Sets the marker symbol.","Full list: https://www.mapbox.com/maki-icons/","Note that the array `marker.color` and `marker.size`","are only available for *circle* symbols."].join(" ")},angle:{valType:"number",dflt:"auto",arrayOk:!0,description:["Sets the marker orientation from true North, in degrees clockwise.","When using the *auto* default, no rotation would be applied","in perspective views which is different from using a zero angle."].join(" ")},allowoverlap:{valType:"boolean",dflt:!1,description:["Flag to draw all symbols, even if they overlap."].join(" ")},opacity:d.opacity,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode},c("marker")),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:"string",description:["Determines if this scattermapbox trace's layers are to be inserted","before the layer with the specified ID.","By default, scattermapbox layers are inserted","above all the base layers.","To place the scattermapbox layers above every other layer, set `below` to *''*."].join(" ")},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:n()},"calc","nested")},88351:function(e,t,r){e.exports=r(89730)},88363:function(e){"use strict";e.exports=function(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){t=c[c.length-1];var d=e[t];if(a[t]=0&&s[t].push(o[g])}a[t]=p}else{if(n[t]===r[t]){var m=[],v=[],y=0;for(p=l.length-1;p>=0;--p){var x=l[p];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=h.length,x===t){l.length=p;break}}h.push(m);var b=new Array(y);for(p=0;pM[u]&&u1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return e[0]=s*c+l*d,e[1]=s*u+l*p,e[2]=s*h+l*g,e[3]=s*f+l*m,e}},88624:function(e,t,r){"use strict";var n=r(94794),i=n.createTubeMesh,a=r(47401),o=r(63750).parseColorScale,s=r(47624).extractOpts,l=r(35839),c={xaxis:0,yaxis:1,zaxis:2};function u(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var h=u.prototype;function f(e){var t=e.length;return t>2?e.slice(1,t-1):2===t?[(e[0]+e[1])/2]:e}function d(e){var t=e.length;return 1===t?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function p(e,t){var r=e.fullSceneLayout,i=e.dataScale,u=t._len,h={};function p(e,t){var n=r[t],o=i[c[t]];return a.simpleMap(e,(function(e){return n.d2l(e)*o}))}if(h.vectors=l(p(t._u,"xaxis"),p(t._v,"yaxis"),p(t._w,"zaxis"),u),!u)return{positions:[],cells:[]};var g=p(t._Xs,"xaxis"),m=p(t._Ys,"yaxis"),v=p(t._Zs,"zaxis");if(h.meshgrid=[g,m,v],h.gridFill=t._gridFill,t._slen)h.startingPositions=l(p(t._startsX,"xaxis"),p(t._startsY,"yaxis"),p(t._startsZ,"zaxis"));else{for(var y=m[0],x=f(g),b=f(v),_=new Array(x.length*b.length),w=0,T=0;T-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(y)){F(e,t,a);var _=function(e,t){var r,n,i=e[0],a=-1,o=[];for(n=0;n0?function(e,t){var r,n,i,a=[];for(i=0;i0&&a.push(r);if(1===a.length&&a[0]===t.searchInfo&&(n=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(i=0;i1)return!1;if((n+=t.selectedpoints.length)>1)return!1}return 1===n}(s)&&(f=B(_))){for(o&&o.remove(),v=0;v=0&&n._fullLayout._deactivateShape(n),f(t)){var a=n._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(a&&n._fullLayout._drawing){var o=v(a,e);o&&i.call("_guiRelayout",n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function N(e,t,r,n){var i,a,o,s=[],l=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o0?n[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(i)>-1}function U(e,t,r){var n,a,o,s;for(n=0;n=0)L._fullLayout._deactivateShape(L);else if(!_){var r=O.clickmode;b.done(ge).then((function(){if(b.clear(ge),2===e){for(he.remove(),$=0;$-1&&P(t,L,i.xaxes,i.yaxes,i.subplot,i,he),"event"===r&&L.emit("plotly_selected",void 0);s.click(L,t)})).catch(y.error)}},i.doneFn=function(){pe.remove(),b.done(ge).then((function(){b.clear(ge),i.gd.emit("plotly_selected",te),Q&&i.selectionDefs&&(Q.subtract=ue,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,J)),i.doneFnCompleted&&i.doneFnCompleted(me)})).catch(y.error),_&&j(i)}},clearSelect:E,clearSelectionsCache:j,selectOnClick:P}},89066:function(e){e.exports=function(e,t,r,n){var i,a,o,s,l,c,u,h,f,d,p,g,m,v,y,x,b,_,w,T,k,A,M,S,E=n[0],L=n[1],C=n[2],I=Math.sqrt(E*E+L*L+C*C);if(Math.abs(I)<1e-6)return null;E*=I=1/I,L*=I,C*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=t[0],l=t[1],c=t[2],u=t[3],h=t[4],f=t[5],d=t[6],p=t[7],g=t[8],m=t[9],v=t[10],y=t[11],x=E*E*o+a,b=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,T=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,M=L*C*o-E*i,S=C*C*o+a,e[0]=s*x+h*b+g*_,e[1]=l*x+f*b+m*_,e[2]=c*x+d*b+v*_,e[3]=u*x+p*b+y*_,e[4]=s*w+h*T+g*k,e[5]=l*w+f*T+m*k,e[6]=c*w+d*T+v*k,e[7]=u*w+p*T+y*k,e[8]=s*A+h*M+g*S,e[9]=l*A+f*M+m*S,e[10]=c*A+d*M+v*S,e[11]=u*A+p*M+y*S,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e}},89091:function(e){e.exports=function(e,t,r,n){var i=new Float32Array(4);return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}},89134:function(e,t,r){"use strict";e.exports=r(88509)},89292:function(e,t,r){"use strict";e.exports={attributes:r(12551),layoutAttributes:r(26670),supplyDefaults:r(62624),crossTraceDefaults:r(9766).crossTraceDefaults,supplyLayoutDefaults:r(12345),calc:r(38919),crossTraceCalc:r(10340),plot:r(13246),style:r(84813),styleOnSelect:r(78608).styleOnSelect,hoverPoints:r(58074),selectPoints:r(10168),moduleType:"trace",name:"violin",basePlotModule:r(66807),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{description:["In vertical (horizontal) violin plots,","statistics are computed using `y` (`x`) values.","By supplying an `x` (`y`) array, one violin per distinct x (y) value","is drawn","If no `x` (`y`) {array} is provided, a single violin is drawn.","That violin position is then positioned with","with `name` or with `x0` (`y0`) if provided."].join(" ")}}},89407:function(e,t,r){"use strict";var n=r(75501),i=r(45229),a=r(32237);e.exports=function(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");o||function(e){o=[e.LINEAR,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_NEAREST],s=[e.NEAREST,e.LINEAR,e.NEAREST_MIPMAP_NEAREST,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_LINEAR],l=[e.REPEAT,e.CLAMP_TO_EDGE,e.MIRRORED_REPEAT]}(e);if("number"===typeof arguments[1])return m(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return m(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"===typeof arguments[1]){var t=arguments[1],r=c(t)?t:t.raw;if(r)return function(e,t,r,n,i,a){var o=g(e);return e.texImage2D(e.TEXTURE_2D,0,i,i,a,t),new f(e,o,r,n,i,a)}(e,r,0|t.width,0|t.height,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return function(e,t){var r=t.dtype,o=t.shape.slice(),s=e.getParameter(e.MAX_TEXTURE_SIZE);if(o[0]<0||o[0]>s||o[1]<0||o[1]>s)throw new Error("gl-texture2d: Invalid texture size");var l=p(o,t.stride.slice()),c=0;"float32"===r?c=e.FLOAT:"float64"===r?(c=e.FLOAT,l=!1,r="float32"):"uint8"===r?c=e.UNSIGNED_BYTE:(c=e.UNSIGNED_BYTE,l=!1,r="uint8");var h,d,m=0;if(2===o.length)m=e.LUMINANCE,o=[o[0],o[1],1],t=n(t.data,o,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==o.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===o[2])m=e.ALPHA;else if(2===o[2])m=e.LUMINANCE_ALPHA;else if(3===o[2])m=e.RGB;else{if(4!==o[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");m=e.RGBA}}c!==e.FLOAT||e.getExtension("OES_texture_float")||(c=e.UNSIGNED_BYTE,l=!1);var v=t.size;if(l)h=0===t.offset&&t.data.length===v?t.data:t.data.subarray(t.offset,t.offset+v);else{var y=[o[2],o[2]*o[0],1];d=a.malloc(v,r);var x=n(d,o,y,0);"float32"!==r&&"float64"!==r||c!==e.UNSIGNED_BYTE?i.assign(x,t):u(x,t),h=d.subarray(0,v)}var b=g(e);e.texImage2D(e.TEXTURE_2D,0,m,o[0],o[1],0,m,c,h),l||a.free(d);return new f(e,b,o[0],o[1],m,c)}(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var o=null,s=null,l=null;function c(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement||"undefined"!=typeof ImageData&&e instanceof ImageData}var u=function(e,t){i.muls(e,t,255)};function h(e,t,r){var n=e.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(t<0||t>i||r<0||r>i)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,r],e.bind(),n.texImage2D(n.TEXTURE_2D,0,e.format,t,r,0,e.format,e.type,null),e._mipLevels=[0],e}function f(e,t,r,n,i,a){this.gl=e,this.handle=t,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(e){return o.wrapS=e}},{get:function(){return o._wrapT},set:function(e){return o.wrapT=e}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(e){return o.width=e}},{get:function(){return o._shape[1]},set:function(e){return o.height=e}}]),this._shapeVector=l}var d=f.prototype;function p(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function g(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function m(e,t,r,n,i){var a=e.getParameter(e.MAX_TEXTURE_SIZE);if(t<0||t>a||r<0||r>a)throw new Error("gl-texture2d: Invalid texture shape");if(i===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var o=g(e);return e.texImage2D(e.TEXTURE_2D,0,n,t,r,0,n,i,null),new f(e,o,t,r,n,i)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&o.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&o.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var r=this.gl.getExtension("EXT_texture_filter_anisotropic");r&&this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;t<2;++t)if(l.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return h(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return h(this,e|=0,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e|=0,h(this,this._shape[0],e),e}}}),d.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},d.setPixels=function(e,t,r,o){var s=this.gl;this.bind(),Array.isArray(t)?(o=r,r=0|t[1],t=0|t[0]):(t=t||0,r=r||0),o=o||0;var l=c(e)?e:e.raw;if(l){this._mipLevels.indexOf(o)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,t,r,this.format,this.type,l)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>o||r+e.shape[0]>this._shape[0]>>>o||t<0||r<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");!function(e,t,r,o,s,l,c,h){var f=h.dtype,d=h.shape.slice();if(d.length<2||d.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var g=0,m=0,v=p(d,h.stride.slice());"float32"===f?g=e.FLOAT:"float64"===f?(g=e.FLOAT,v=!1,f="float32"):"uint8"===f?g=e.UNSIGNED_BYTE:(g=e.UNSIGNED_BYTE,v=!1,f="uint8");if(2===d.length)m=e.LUMINANCE,d=[d[0],d[1],1],h=n(h.data,d,[h.stride[0],h.stride[1],1],h.offset);else{if(3!==d.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===d[2])m=e.ALPHA;else if(2===d[2])m=e.LUMINANCE_ALPHA;else if(3===d[2])m=e.RGB;else{if(4!==d[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");m=e.RGBA}d[2]}m!==e.LUMINANCE&&m!==e.ALPHA||s!==e.LUMINANCE&&s!==e.ALPHA||(m=s);if(m!==s)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var y=h.size,x=c.indexOf(o)<0;x&&c.push(o);if(g===l&&v)0===h.offset&&h.data.length===y?x?e.texImage2D(e.TEXTURE_2D,o,s,d[0],d[1],0,s,l,h.data):e.texSubImage2D(e.TEXTURE_2D,o,t,r,d[0],d[1],s,l,h.data):x?e.texImage2D(e.TEXTURE_2D,o,s,d[0],d[1],0,s,l,h.data.subarray(h.offset,h.offset+y)):e.texSubImage2D(e.TEXTURE_2D,o,t,r,d[0],d[1],s,l,h.data.subarray(h.offset,h.offset+y));else{var b;b=l===e.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,d,[d[2],d[2]*d[0],1]);g===e.FLOAT&&l===e.UNSIGNED_BYTE?u(_,h):i.assign(_,h),x?e.texImage2D(e.TEXTURE_2D,o,s,d[0],d[1],0,s,l,b.subarray(0,y)):e.texSubImage2D(e.TEXTURE_2D,o,t,r,d[0],d[1],s,l,b.subarray(0,y)),l===e.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,t,r,o,this.format,this.type,this._mipLevels,e)}}},89521:function(e,t,r){"use strict";e.exports={attributes:r(83228),supplyDefaults:r(78283).supplyDefaults,calc:r(64540),colorbar:{min:"cmin",max:"cmax"},plot:r(97210).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:r(6727),categories:["gl3d","showLegend"],meta:{description:["Draws isosurfaces between iso-min and iso-max values with coordinates given by","four 1-dimensional arrays containing the `value`, `x`, `y` and `z` of every vertex","of a uniform or non-uniform 3-D grid. Horizontal or vertical slices, caps as well as","spaceframe between iso-min and iso-max values could also be drawn using this trace."].join(" ")}}},89730:function(e){e.exports=function(e){var t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}},89834:function(e,t,r){"use strict";var n=r(47401),i=r(37762),a=r(86150),o=r(17817),s=r(27350),l=r(76964),c=r(69184).calcAllAutoBins;function u(e,t,r,n){var i,a=new Array(e);if(n)for(i=0;iS&&T.splice(S,T.length-S),M.length>S&&M.splice(S,M.length-S);var E=[],L=[],C=[],I="string"===typeof w.size,D="string"===typeof A.size,P=[],O=[],z=I?P:w,R=D?O:A,F=0,j=[],N=[],B=t.histnorm,U=t.histfunc,V=-1!==B.indexOf("density"),q="max"===U||"min"===U?null:0,H=a.count,G=o[B],W=!1,Y=[],Z=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==U&&(W="avg"===U,H=a[U]);var K=w.size,J=x(w.start),Q=x(w.end)+(J-i.tickIncrement(J,K,!1,v))/1e6;for(r=J;r=0&&d=0&&pe;){var c=r[l-2],u=r[l-1];if(cr[t+1])}function l(e,t,r,n){var i=n[e*=2];return i>1,m=g-f,v=g+f,y=d,x=m,b=g,_=v,w=p,T=e+1,k=u-1,A=0;s(y,x,h)&&(A=y,y=x,x=A),s(_,w,h)&&(A=_,_=w,w=A),s(y,b,h)&&(A=y,y=b,b=A),s(x,b,h)&&(A=x,x=b,b=A),s(y,_,h)&&(A=y,y=_,_=A),s(b,_,h)&&(A=b,b=_,_=A),s(x,w,h)&&(A=x,x=w,w=A),s(x,b,h)&&(A=x,x=b,b=A),s(_,w,h)&&(A=_,_=w,w=A);for(var M=h[2*x],S=h[2*x+1],E=h[2*_],L=h[2*_+1],C=2*y,I=2*b,D=2*w,P=2*d,O=2*g,z=2*p,R=0;R<2;++R){var F=h[C+R],j=h[I+R],N=h[D+R];h[P+R]=F,h[O+R]=j,h[z+R]=N}i(m,e,h),i(v,u,h);for(var B=T;B<=k;++B)if(l(B,M,S,h))B!==T&&n(B,T,h),++T;else if(!l(B,E,L,h))for(;;){if(l(k,E,L,h)){l(k,M,S,h)?(a(B,T,k,h),++T,--k):(n(B,k,h),--k);break}if(--k0;t.each((function(t){var h,f=t[0].trace,d=f.error_x||{},p=f.error_y||{};f.ids&&(h=function(e){return e.id});var g=o.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||d.visible||(t=[]);var m=n.select(this).selectAll("g.errorbar").data(t,h);if(m.exit().remove(),t.length){d.visible||m.selectAll("path.xerror").remove(),p.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var v=m.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(s.duration).style("opacity",1),a.setClipUrl(m,r.layerClipId,e),m.each((function(e){var t=n.select(this),r=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),i(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0)));return n}(e,l,c);if(!g||e.vis){var a,o=t.select("path.yerror");if(p.visible&&i(r.x)&&i(r.yh)&&i(r.ys)){var h=p.width;a="M"+(r.x-h)+","+r.yh+"h"+2*h+"m-"+h+",0V"+r.ys,r.noYS||(a+="m-"+h+",0h"+2*h),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(s.duration).ease(s.easing)),o.attr("d",a)}else o.remove();var f=t.select("path.xerror");if(d.visible&&i(r.y)&&i(r.xh)&&i(r.xs)){var m=(d.copy_ystyle?p:d).width;a="M"+r.xh+","+(r.y-m)+"v"+2*m+"m0,-"+m+"H"+r.xs,r.noXS||(a+="m0,-"+m+"v"+2*m),!f.size()?f=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):u&&(f=f.transition().duration(s.duration).ease(s.easing)),f.attr("d",a)}else f.remove()}}))}}))}},90407:function(e,t,r){"use strict";var n=r(83491),i=r(62282),a=r(47401),o=r(26800),s=r(33333),l=r(37801),c=r(49593),u=r(51860),h=r(91289),f=r(28205),d=r(58947),p=r(56890).WEEKDAY_PATTERN,g=r(56890).HOUR_PATTERN;function m(e,t,r){function i(r,n){return a.coerce(e,t,s.rangebreaks,r,n)}if(i("enabled")){var o=i("bounds");if(o&&o.length>=2){var l,c,u="";if(2===o.length)for(l=0;l<2;l++)if(c=y(o[l])){u=p;break}var h=i("pattern",u);if(h===p)for(l=0;l<2;l++)(c=y(o[l]))&&(t.bounds[l]=o[l]=c-1);if(h)for(l=0;l<2;l++)switch(c=o[l],h){case p:if(!n(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[l]=o[l]=c}if(!1===r.autorange){var f=r.range;if(f[0]f[1])return void(t.enabled=!1)}else if(o[0]>f[0]&&o[1]i.Ni&&--a>0);return[e/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]}},91018:function(e,t,r){"use strict";var n=r(76266);e.exports=function(e,t,r){if(!e||null==e.length)throw Error("Argument should be an array");null==t&&(t=1);null==r&&(r=n(e,t));for(var i=0;i>1;return["sum(",l(e.slice(0,t)),",",l(e.slice(t)),")"].join("")}function c(e,t){if("m"===e.charAt(0)){if("w"===t.charAt(0)){var r=e.split("[");return["w",t.substr(1),"m",r[0].substr(1)].join("")}return["prod(",e,",",t,")"].join("")}return c(t,e)}function u(e){if(2===e.length)return[["diff(",c(e[0][0],e[1][1]),",",c(e[1][0],e[0][1]),")"].join("")];for(var t=[],r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,a,o,s;if("string"===typeof t&&(a="not ",t.substr(!o||o<0?0:+o,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var l=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},91249:function(e){e.exports=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}},91289:function(e){"use strict";e.exports=function(e,t,r,n){if("category"===t.type){var i,a=e.categoryarray,o=Array.isArray(a)&&a.length>0;o&&(i="array");var s,l=r("categoryorder",i);"array"===l&&(s=r("categoryarray")),o||"array"!==l||(l=t.categoryorder="trace"),"trace"===l?t._initialCategories=[]:"array"===l?t._initialCategories=s.slice():(s=function(e,t){var r,n,i,a=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],n=0;nt[2]?1:0)}function v(e,t,r){if(0!==e.length){if(t)for(var n=0;n=0;--a){var x=t[u=(S=n[a])[0]],b=x[0],_=x[1],w=e[b],T=e[_];if((w[0]-T[0]||w[1]-T[1])<0){var k=b;b=_,_=k}x[0]=b;var A,M=x[1]=S[1];for(i&&(A=x[2]);a>0&&n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?t.push([M,E,A]):t.push([M,E]),M=E}i?t.push([M,_,A]):t.push([M,_])}return f}(e,t,f,m,r),x=p(e,y);return v(t,x,r),!!x||(f.length>0||m.length>0)}},91307:function(e){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;n=0;--i){var a=r;(l=(s=e[i])-((r=a+s)-a))&&(e[--n]=r,r=l)}var o=0;for(i=n;i1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=P(e,360),t=P(t,100),r=P(r,100),0===t)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,n,l),h=!0,f="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,g;return r=D(r),{ok:h,format:e.format||f,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=s++}function d(e,t,r){e=P(e,255),t=P(t,255),r=P(r,255);var n,i,a=u(e,t,r),o=c(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(f(n));return a}function L(e,t){t=t||6;for(var r=f(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(f({h:n,s:i,v:a})),a=(a+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:i.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=D(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,i){var a=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(r).toString(16)),R(j(n))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*P(this._r,255))+"%",g:l(100*P(this._g,255))+"%",b:l(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%)":"rgba("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);r="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:F(e[n]));e=r}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:h(),g:h(),b:h()})},f.mix=function(e,t,r){r=0===r?0:r||50;var n=f(e).toRgb(),i=f(t).toRgb(),a=r/100;return f({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},f.readability=function(e,t){var r=f(e),n=f(t);return(i.max(r.getLuminance(),n.getLuminance())+.05)/(i.min(r.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(e,t,r){var n,i,a=f.readability(e,t);switch(i=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},f.mostReadable=function(e,t,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var c=0;cl&&(l=n,s=f(t[c]));return f.isReadable(e,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],r))};var C=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=f.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(C);function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function O(e){return c(1,u(0,e))}function z(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function j(e){return i.round(255*parseFloat(e)).toString(16)}function N(e){return z(e)/255}var B=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",r="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function U(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}(Math)},92021:function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(r){}return!e&&"undefined"!==typeof process&&"env"in process&&(e={NODE_ENV:"production",PUBLIC_URL:"/static-files",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.DEBUG),e}(t=e.exports=r(61690)).log=function(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))})),e.splice(a,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(r){}},t.load=n,t.useColors=function(){if("undefined"!==typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(n())},92082:function(e,t,r){"use strict";var n=r(4216).r,i=r(75805),a=r(97451),o=r(42837),s=r(62405).defaultLine,l=r(87241).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:"data_array",editType:"calc",description:["Sets the coordinates via location IDs or names.","See `locationmode` for more info."].join(" ")},locationmode:i.locationmode,z:{valType:"data_array",editType:"calc",description:"Sets the color values."},geojson:l({},i.geojson,{description:["Sets optional GeoJSON data associated with this trace.","If not given, the features on the base map are used.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")}),featureidkey:i.featureidkey,text:l({},i.text,{description:"Sets the text elements associated with each location."}),hovertext:l({},i.hovertext,{description:"Same as `text`."}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the locations."},editType:"calc"},selected:{marker:{opacity:i.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:l({},o.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a("",{cLetter:"z",editTypeOverride:"calc"}))},92171:function(e,t,r){"use strict";var n=r(83491),i=r(47401),a=r(8757).extractOpts;e.exports=function(e,t,r){var o,s=e._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(t,c).get():t,h=a(u),f=!1!==h.auto,d=h.min,p=h.max,g=h.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===d?d=m():f&&(d=u._colorAx&&n(d)?Math.min(d,m()):m()),void 0===p?p=v():f&&(p=u._colorAx&&n(p)?Math.max(p,v()):v()),f&&void 0!==g&&(p-g>g-d?d=g-(p-g):p-g=0?s.colorscale.sequential:s.colorscale.sequentialminus,h._sync("colorscale",o))}},92173:function(e){"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,a),n(r)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&g(e,"error",t,r)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,a,o,c;if(s(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"===typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"===typeof l)n(l,this,t);else{var c=l.length,u=p(l,c);for(r=0;r=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92198:function(e,t,r){"use strict";var n=r(17342).overrideAll,i=r(19016),a=r(19744),o=r(6412),s=r(56890),l=r(66807),c=r(51499),u=r(13373).KO;t.name="gl2d",t.attr=["xaxis","yaxis"],t.idRoot=["x","y"],t.idRegex=s.idRegex,t.attrRegex=s.attrRegex,t.attributes=r(80070),t.supplyLayoutDefaults=function(e,t,r){t._has("cartesian")||l.supplyLayoutDefaults(e,t,r)},t.layoutAttrOverrides=n(l.layoutAttributes,"plot","from-root"),t.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},"plot","nested"),t.plot=function(e){for(var t=e._fullLayout,r=e._fullData,n=t._subplots.gl2d,a=0;a0)(g=u.slice())[s]+=d[1][s],i.push(u[0],u[1],u[2],p[0],p[1],p[2],p[3],0,0,0,g[0],g[1],g[2],p[0],p[1],p[2],p[3],0,0,0),c(this.bounds,g),o+=2+h(i,g,p,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},92240:function(e,t,r){"use strict";var n=r(47401);e.exports=function(e,t){var r=t._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||((r=t._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(e){var t=n.repeat(e,r.count);if(r.fill2d&&r.fill2d.update(t),r.scatter2d&&r.scatter2d.update(t),r.line2d&&r.line2d.update(t),r.error2d&&r.error2d.update(t.concat(t)),r.select2d&&r.select2d.update(t),r.glText)for(var i=0;i{if(!(0,i.isValidElement)(t)){const n=t;return e(n,r),n}const a=t;!function(e){if("string"===typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a
, or turn it into a drag source or a drop target itself.`)}(a);return function(e,t){const r=e.ref;return(0,n.V)("string"!==typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,i.cloneElement)(e,{ref:e=>{s(r,e),s(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(a,r?t=>e(t,r):e)}}function o(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=a(n);t[r]=()=>e}})),t}function s(e,t){"function"===typeof e?e(t):e.current=t}},92380:function(e,t,r){"use strict";var n=r(9405).BADNUM;t.calcTraceToLineCoords=function(e){for(var t=e[0].trace.connectgaps,r=[],i=[],a=0;a0&&(r.push(i),i=[])}return i.length>0&&r.push(i),r},t.makeLine=function(e){return 1===e.length?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}},t.makePolygon=function(e){if(1===e.length)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r=i)return r.substr(0,i);for(;i>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,i)}},92600:function(e,t,r){var n=r(97615),i=r(69726);function a(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a.prototype=new n.baseCalendar;var o=n.instance("gregorian");i(a.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidMonth);(e=i.year())<0&&e++;for(var a=i.day(),s=1;s=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}}),n.calendars.nanakshahi=a},92704:function(e,t,r){"use strict";var n=r(47401),i=r(42837),a="templateitemname",o={name:{valType:"string",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function s(e){return e&&"string"===typeof e}function l(e){var t=e.length-1;return"s"!==e.charAt(t)&&n.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}o[a]={valType:"string",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=o.name,t[a]=o[a],t},t.traceTemplater=function(e){var t,r,a={};for(t in e)r=e[t],Array.isArray(r)&&r.length&&(a[t]=0);return{newTrace:function(o){var s={type:t=n.coerce(o,{},i,"type"),_template:null};if(t in a){r=e[t];var l=a[t]%r.length;a[t]++,s._template=r[l]}return s}}},t.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);return n.isPlainObject(a)||(a=null),e[t]={_template:a}},t.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[l(t)],o=n&&n[t];Array.isArray(o)&&o.length||(o=[]);var c={};return{newItem:function(e){var t={name:e.name,_input:e},n=t[a]=e[a];if(!s(n))return t._template=i,t;for(var l=0;l=i&&(r._input||{})._templateitemname;s&&(o=i);var l,c=t+"["+o+"]";function u(){l={},s&&(l[c]={},l[c][a]=s)}function h(e,t){s?n.nestedProperty(l[c],e).set(t):l[c+"."+e]=t}function f(){var e=l;return u(),e}return u(),{modifyBase:function(e,t){l[e]=t},modifyItem:h,getUpdateObj:f,applyUpdate:function(t,r){t&&h(t,r);var i=f();for(var a in i)n.nestedProperty(e,a).set(i[a])}}}},92746:function(e,t,r){"use strict";var n=r(62282),i=r(85883);e.exports={moduleType:"trace",name:"splom",basePlotModule:r(34379),categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:r(62153),supplyDefaults:r(87534),colorbar:r(78666),calc:r(25069),plot:r(33571),hoverPoints:r(26096).hoverPoints,selectPoints:r(99520),editStyle:r(93638),meta:{description:["Splom traces generate scatter plot matrix visualizations.","Each splom `dimensions` items correspond to a generated axis.","Values for each of those dimensions are set in `dimensions[i].values`.","Splom traces support all `scattergl` marker style attributes.","Specify `layout.grid` attributes and/or layout x-axis and y-axis attributes","for more control over the axis positioning and style. "].join(" ")}},n.register(i)},92979:function(e,t,r){"use strict";var n=r(83491),i=r(1379);e.exports=function(e,t,r,a){t=t||{};var o="log"===r&&"linear"===t.type,s="linear"===r&&"log"===t.type;if(o||s)for(var l,c,u=e._fullLayout.images,h=t._id.charAt(0),f=0;f>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?T(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?T(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=f.exec(e))?new A(t[1],t[2],t[3],1):(t=d.exec(e))?new A(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?T(t[1],t[2],t[3],t[4]):(t=g.exec(e))?T(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?L(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?L(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function w(e){return new A(e>>16&255,e>>8&255,255&e,1)}function T(e,t,r,n){return n<=0&&(e=t=r=NaN),new A(e,t,r,n)}function k(e,t,r,n){return 1===arguments.length?((i=e)instanceof a||(i=_(i)),i?new A((i=i.rgb()).r,i.g,i.b,i.opacity):new A):new A(e,t,r,null==n?1:n);var i}function A(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function M(){return"#"+E(this.r)+E(this.g)+E(this.b)}function S(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function E(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function L(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,r,n)}function C(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=_(e)),!e)return new I;if(e instanceof I)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=NaN,l=o-i,c=(o+i)/2;return l?(s=t===o?(r-n)/l+6*(r0&&c<1?0:s,new I(s,l,c,e.opacity)}function I(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function D(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function P(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function O(e){return function(){return e}}function z(e,t){return function(r){return e+r*t}}function R(e){return 1===(e=+e)?F:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):O(isNaN(t)?r:t)}}function F(e,t){var r=t-e;return r?z(e,r):O(isNaN(e)?t:e)}n(a,_,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHsl:function(){return C(this).formatHsl()},formatRgb:b,toString:b}),n(A,k,i(a,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:M,formatHex:M,formatRgb:S,toString:S})),n(I,(function(e,t,r,n){return 1===arguments.length?C(e):new I(e,t,r,null==n?1:n)}),i(a,{brighter:function(e){return e=null==e?s:Math.pow(s,e),new I(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new I(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new A(D(e>=240?e-240:e+120,i,n),D(e,i,n),D(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var j=function e(t){var r=R(t);function n(e,t){var n=r((e=k(e)).r,(t=k(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=F(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function N(e){return function(t){var r,n,i=t.length,a=new Array(i),o=new Array(i),s=new Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=na&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:(0,V.A)(r,n)})),a=G.lastIndex;return a=0;o--)(s=((h[[(r=(a=f[o])[0])-1,i=a[1]]]||g)[2]+(h[[r+1,i]]||g)[2]+(h[[r,i-1]]||g)[2]+(h[[r,i+1]]||g)[2])/20)&&(l[a]=[r,i,s],f.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(a in l)h[a]=l[a],u.push(l[a])}return u.sort((function(e,t){return t[2]-e[2]}))}},93444:function(e,t,r){"use strict";var n=r(83491),i=r(91771),a=r(31454),o={};function s(e){return function(t,r){return!!t&&(!!(t=i(t)).isValid()&&(t=a.addOpacity(t,t.getAlpha()),e[r]||(e[r]=t),t))}}function l(e,t){var r,n=JSON.stringify(e),a=t[n];if(!a){for(a=e.slice(),r=0;r1&&a.warn("Full array edits are incompatible with other edits",h);var y=r[""][""];if(c(y))t.set(null);else{if(!Array.isArray(y))return a.warn("Unrecognized full array edit value",h,y),!0;t.set(y)}return!g&&(f(m,v),d(e),!0)}var x,b,_,w,T,k,A,M,S=Object.keys(r).map(Number).sort(o),E=t.get(),L=E||[],C=u(v,h).get(),I=[],D=-1,P=L.length;for(x=0;xL.length-(A?0:1))a.warn("index out of range",h,_);else if(void 0!==k)T.length>1&&a.warn("Insertion & removal are incompatible with edits to the same index.",h,_),c(k)?I.push(_):A?("add"===k&&(k={}),L.splice(_,0,k),C&&C.splice(_,0,{})):a.warn("Unrecognized full object edit value",h,_,k),-1===D&&(D=_);else for(b=0;b=0;x--)L.splice(I[x],1),C&&C.splice(I[x],1);if(L.length?E||t.set(L):t.set(null),g)return!1;if(f(m,v),p!==i){var O;if(-1===D)O=S;else{for(P=Math.max(L.length,P),O=[],x=0;x=D);x++)O.push(_);for(x=D;x1||g<0||g>1?null:{x:e+l*g,y:t+h*g}}function l(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}var l=n*t-i*e;return l*l/r}t.segmentsIntersect=s,t.segmentDistance=function(e,t,r,n,i,a,o,c){if(s(e,t,r,n,i,a,o,c))return 0;var u=r-e,h=n-t,f=o-i,d=c-a,p=u*u+h*h,g=f*f+d*d,m=Math.min(l(u,h,p,i-e,a-t),l(u,h,p,o-e,c-t),l(f,d,g,e-i,t-a),l(f,d,g,r-i,n-a));return Math.sqrt(m)},t.getTextLocation=function(e,t,r,s){if(e===i&&s===a||(n={},i=e,a=s),n[r])return n[r];var l=e.getPointAtLength(o(r-s/2,t)),c=e.getPointAtLength(o(r+s/2,t)),u=Math.atan((c.y-l.y)/(c.x-l.x)),h=e.getPointAtLength(o(r,t)),f={x:(4*h.x+l.x+c.x)/6,y:(4*h.y+l.y+c.y)/6,theta:u};return n[r]=f,f},t.clearLocationCache=function(){i=null},t.getVisibleSegment=function(e,t,r){var n,i,a=t.left,o=t.right,s=t.top,l=t.bottom,c=0,u=e.getTotalLength(),h=u;function f(t){var r=e.getPointAtLength(t);0===t?n=r:t===u&&(i=r);var c=r.xo?r.x-o:0,h=r.yl?r.y-l:0;return Math.sqrt(c*c+h*h)}for(var d=f(c);d;){if((c+=d+r)>h)return;d=f(c)}for(d=f(h);d;){if(c>(h-=d+r))return;d=f(h)}return{min:c,max:h,len:h-c,total:u,isClosed:0===c&&h===u&&Math.abs(n.x-i.x)<.1&&Math.abs(n.y-i.y)<.1}},t.findPointOnPath=function(e,t,r,n){for(var i,a,o,s=(n=n||{}).pathLength||e.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=e.getPointAtLength(0)[r]>e.getPointAtLength(s)[r]?-1:1,h=0,f=0,d=s;h0?d=i:f=i,h++}return a}},93712:function(e,t,r){"use strict";var n=r(21661),i=r(47401),a=r(56035),o=i.fillText,s=r(9405).BADNUM;function l(e,t,r){if(!e.hovertemplate){var n=(t.hi||e.hoverinfo).split("+"),i=-1!==n.indexOf("all"),a=-1!==n.indexOf("lon"),s=-1!==n.indexOf("lat"),l=t.lonlat,c=[];return i||a&&s?c.push("("+u(l[1])+", "+u(l[0])+")"):a?c.push(r.lon+u(l[0])):s&&c.push(r.lat+u(l[1])),(i||-1!==n.indexOf("text"))&&o(t,e,c),c.join("
")}function u(e){return e+"\xb0"}}e.exports={hoverPoints:function(e,t,r){var o=e.cd,c=o[0].trace,u=e.xa,h=e.ya,f=e.subplot,d=360*(t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360)),p=t-d;if(n.getClosest(o,(function(e){var t=e.lonlat;if(t[0]===s)return 1/0;var n=i.modHalf(t[0],360),a=t[1],o=f.project([n,a]),l=o.x-u.c2p([p,a]),c=o.y-h.c2p([n,r]),d=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-d,1-3/d)}),e),!1!==e.index){var g=o[e.index],m=g.lonlat,v=[i.modHalf(m[0],360)+d,m[1]],y=u.c2p(v),x=h.c2p(v),b=g.mrc||1;e.x0=y-b,e.x1=y+b,e.y0=x-b,e.y1=x+b;var _={};_[c.subplot]={_subplot:f};var w=c._module.formatLabels(g,c,_);return e.lonLabel=w.lonLabel,e.latLabel=w.latLabel,e.color=a(c,g),e.extraText=l(c,g,o[0].t.labels),e.hovertemplate=c.hovertemplate,[e]}},getExtraText:l}},94029:function(e){"use strict";e.exports=function(e,t,r,n){var i,a;for(n||(n=1/0),i=0;i 0");"function"!==typeof e.vertex&&t("Must specify vertex creation function");"function"!==typeof e.cell&&t("Must specify cell creation function");"function"!==typeof e.phase&&t("Must specify phase function");for(var E=e.getters||[],L=new Array(M),C=0;C=0?L[C]=!0:L[C]=!1;return function(e,t,r,M,S,E){var L=E.length,C=S.length;if(C<2)throw new Error("ndarray-extract-contour: Dimension must be at least 2");for(var I="extractContour"+S.join("_"),D=[],P=[],O=[],z=0;z0&&N.push(l(z,S[R-1])+"*"+s(S[R-1])),P.push(p(z,S[R])+"=("+N.join("-")+")|0")}for(z=0;z=0;--z)B.push(s(S[z]));P.push(w+"=("+B.join("*")+")|0",b+"=mallocUint32("+w+")",x+"=mallocUint32("+w+")",T+"=0"),P.push(g(0)+"=0");for(R=1;R<1<=0;--t)G(t,0);var r=[];for(t=0;t0;k=k-1&p)w.push(x+"["+T+"+"+v(k)+"]");w.push(y(0));for(k=0;k0){",d(S[e]),"=1;"),K(e-1,t|1<.999&&(m="turntable"):m="turntable")}else m="turntable";r("dragmode",m),r("hovermode",n.getDfltFromLayout("hovermode"))}e.exports=function(e,t,r){var i=t._basePlotModules.length>1;o(e,t,r,{type:u,attributes:l,handleDefaults:h,fullLayout:t,font:t.font,fullData:r,getDfltFromLayout:function(t){if(!i)return n.validate(e[t],l[t])?e[t]:void 0},autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})}},94276:function(e,t,r){"use strict";var n=r(47401),i=r(31454),a=r(82559),o=r(80084);function s(e){return e.data.data.pid}t.findEntryWithLevel=function(e,r){var n;return r&&e.eachAfter((function(e){if(t.getPtId(e)===r)return n=e.copy()})),n||e},t.findEntryWithChild=function(e,r){var n;return e.eachAfter((function(e){for(var i=e.children||[],a=0;a0)},t.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0},t.isHeader=function(e,r){return!(t.isLeaf(e)||e.depth===r._maxDepth-1)},t.getParent=function(e,r){return t.findEntryWithLevel(e,s(r))},t.listPath=function(e,r){var n=e.parent;if(!n)return[];var i=r?[n.data[r]]:[n];return t.listPath(n,r).concat(i)},t.getPath=function(e){return t.listPath(e,"label").join("/")+"/"},t.formatValue=o.formatPieValue,t.formatPercent=function(e,t){var r=n.formatPercent(e,0);return"0%"===r&&(r=o.formatPiePercent(e,t)),r}},94284:function(e,t,r){"use strict";var n=r(21661),i=r(9405).BADNUM,a=r(56035),o=r(47401).fillText,s=r(75805);e.exports=function(e,t,r){var l=e.cd,c=l[0].trace,u=e.xa,h=e.ya,f=e.subplot,d=f.projection.isLonLatOverEdges,p=f.project;if(n.getClosest(l,(function(e){var n=e.lonlat;if(n[0]===i)return 1/0;if(d(n))return 1/0;var a=p(n),o=p([t,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),e),!1!==e.index){var g=l[e.index],m=g.lonlat,v=[u.c2p(m),h.c2p(m)],y=g.mrc||1;e.x0=v[0]-y,e.x1=v[0]+y,e.y0=v[1]-y,e.y1=v[1]+y,e.loc=g.loc,e.lon=m[0],e.lat=m[1];var x={};x[c.geo]={_subplot:f};var b=c._module.formatLabels(g,c,x);return e.lonLabel=b.lonLabel,e.latLabel=b.latLabel,e.color=a(c,g),e.extraText=function(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a="all"===i?s.hoverinfo.flags:i.split("+"),l=-1!==a.indexOf("location")&&Array.isArray(e.locations),c=-1!==a.indexOf("lon"),u=-1!==a.indexOf("lat"),h=-1!==a.indexOf("text"),f=[];function d(e){return e+"\xb0"}l?f.push(t.loc):c&&u?f.push("("+d(r.latLabel)+", "+d(r.lonLabel)+")"):c?f.push(n.lon+d(r.lonLabel)):u&&f.push(n.lat+d(r.latLabel));h&&o(t,e,f);return f.join("
")}(c,g,e,l[0].t.labels),e.hovertemplate=c.hovertemplate,[e]}}},94316:function(e){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},94341:function(e,t,r){"use strict";var n=r(9405),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=r(47401),c=l.segmentsIntersect,u=l.constrain,h=r(20580);e.exports=function(e,t){var r,n,a,f,d,p,g,m,v,y,x,b,_,w,T,k,A,M,S=t.xaxis,E=t.yaxis,L="log"===S.type,C="log"===E.type,I=S._length,D=E._length,P=t.connectGaps,O=t.baseTolerance,z=t.shape,R="linear"===z,F=t.fill&&"none"!==t.fill,j=[],N=h.minTolerance,B=e.length,U=new Array(B),V=0;function q(r){var n=e[r];if(!n)return!1;var a=t.linearized?S.l2p(n.x):S.c2p(n.x),l=t.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(L&&(a=S.c2p(n.x,!0)),a===i)return!1;C&&l===i&&(a*=Math.abs(S._m*D*(S._m>0?o:s)/(E._m*I*(E._m>0?o:s)))),a*=1e3}if(l===i){if(C&&(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(e,t,r,n){var i=r-e,a=n-t,o=.5-e,s=.5-t,l=i*i+a*a,c=i*o+a*s;if(c>0&&cre||e[1]ie)return[u(e[0],te,re),u(e[1],ne,ie)]}function se(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===re)||(e[1]===t[1]&&(e[1]===ne||e[1]===ie)||void 0)}function le(e,t,r){return function(n,i){var a=oe(n),o=oe(i),s=[];if(a&&o&&se(a,o))return s;a&&s.push(a),o&&s.push(o);var c=2*l.constrain((n[e]+i[e])/2,t,r)-((a||n)[e]+(o||i)[e]);c&&((a&&o?c>0===a[e]>o[e]?a:o:a||o)[e]+=c);return s}}function ce(e){var t=e[0],r=e[1],n=t===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V>1){var a=t===U[V-2][0],o=r===U[V-2][1];n&&(t===te||t===re)&&a?o?V--:U[V-1]=e:i&&(r===ne||r===ie)&&o?a?V--:U[V-1]=e:U[V++]=e}else U[V++]=e}function ue(e){U[V-1][0]!==e[0]&&U[V-1][1]!==e[1]&&ce([X,K]),ce(e),J=null,X=K=0}function he(e){if(A=e[0]/I,M=e[1]/D,Y=e[0]re?re:0,Z=e[1]ie?ie:0,Y||Z){if(V)if(J){var t=$(J,e);t.length>1&&(ue(t[0]),U[V++]=t[1])}else Q=$(U[V-1],e)[0],U[V++]=Q;else U[V++]=[Y||e[0],Z||e[1]];var r=U[V-1];Y&&Z&&(r[0]!==Y||r[1]!==Z)?(J&&(X!==Y&&K!==Z?ce(X&&K?function(e,t){var r=t[0]-e[0],n=(t[1]-e[1])/r;return(e[1]*t[0]-t[1]*e[0])/r>0?[n>0?te:re,ie]:[n>0?re:te,ne]}(J,e):[X||Y,K||Z]):X&&K&&ce([X,K])),ce([Y,Z])):X-Y&&K-Z&&ce([Y||X,Z||K]),J=e,X=Y,K=Z}else J&&ue($(J,e)[0]),U[V++]=e}for("linear"===z||"spline"===z?$=function(e,t){for(var r=[],n=0,i=0;i<4;i++){var a=ae[i],o=c(e[0],e[1],t[0],t[1],a[0],a[1],a[2],a[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&W(o,e)G(p,fe))break;a=p,(_=v[0]*m[0]+v[1]*m[1])>x?(x=_,f=p,g=!1):_=e.length||!p)break;he(p),n=p}}else he(f)}J&&ce([X||J[0],K||J[1]]),j.push(U.slice(0,V))}return j}},94342:function(e,t,r){e.exports=r(8338)},94388:function(e,t,r){"use strict";var n=r(37762),i=r(47401),a=r(16545),o=r(90062).z,s=r(9405).BADNUM;t.moduleType="transform",t.name="aggregate";var l=t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this aggregate transform is enabled or disabled."].join(" ")},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the grouping target to which the aggregation is applied.","Data points with matching group values will be coalesced into","one point, using the supplied aggregation functions to reduce data","in other data arrays.","If a string, `groups` is assumed to be a reference to a data array","in the parent trace object.","To aggregate by nested variables, use *.* to access them.","For example, set `groups` to *marker.color* to aggregate","about the marker color array.","If an array, `groups` is itself the data array by which we aggregate."].join(" ")},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc",description:["A reference to the data array in the parent trace to aggregate.","To aggregate by nested variables, use *.* to access them.","For example, set `groups` to *marker.color* to aggregate","over the marker color array.","The referenced array must already exist, unless `func` is *count*,","and each array may only be referenced once."].join(" ")},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc",description:["Sets the aggregation function.","All values from the linked `target`, corresponding to the same value","in the `groups` array, are collected and reduced by this function.","*count* is simply the number of values in the `groups` array, so does","not even require the linked array to exist. *first* (*last*) is just","the first (last) linked value.","Invalid values are ignored, so for example in *avg* they do not","contribute to either the numerator or the denominator.","Any data type (numeric, date, category) may be aggregated with any","function, even though in certain cases it is unlikely to make sense,","for example a sum of dates or average of categories.","*median* will return the average of the two central values if there is","an even count. *mode* will return the first value to reach the maximum","count, in case of a tie.","*change* will return the difference between the first and last linked values.","*range* will return the difference between the min and max linked values."].join(" ")},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc",description:["*stddev* supports two formula variants: *sample* (normalize by N-1)","and *population* (normalize by N)."].join(" ")},enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this aggregation function is enabled or disabled."].join(" ")},editType:"calc"},editType:"calc"},c=l.aggregations;function u(e,t,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(t,o),c=l.get(),u=function(e,t){var r=e.func,n=t.d2c,a=t.c2d;switch(r){case"count":return h;case"first":return f;case"last":return d;case"sum":return function(e,t){for(var r=0,i=0;ii&&(i=u,o=c)}}return i?a(o):s};case"rms":return function(e,t){for(var r=0,i=0,o=0;o=2)return!1;e[r]=n}return!0})):_.filter((function(e){for(var t=0;t<=s;++t){var r=v[e[t]];if(r<0)return!1;e[t]=r}return!0}));if(1&s)for(u=0;u<_.length;++u){f=(b=_[u])[0];b[0]=b[1],b[1]=f}return _}},94631:function(e,t,r){"use strict";var n=r(86692),i=r(42837),a=r(16688).u,o=r(4216).r,s=r(4216).a,l=r(87241).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:l({},n.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{description:["If there are multiple funnelareas that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")}),textinfo:l({},n.textinfo,{flags:["label","text","value","percent"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:l({},i.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","text","percent"]}),textposition:l({},n.textposition,{values:["inside","none"],dflt:"inside"}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:a({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the ratio between height and width"].join(" ")},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot",description:["Sets the ratio between bottom length and maximum top length."].join(" ")}}},94659:function(e){"use strict";var t=Object.create,r=Object.getPrototypeOf,n={};e.exports=function(){var e=Object.setPrototypeOf;return"function"===typeof e&&r(e((arguments[0]||t)(null),n))===n}},94673:function(e,t,r){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=k,k.WritableState=T;var a={deprecate:r(66437)},o=r(88174),s=r(47397).Buffer,l=r.g.Uint8Array||function(){};var c,u=r(58893),h=r(46782).getHighWaterMark,f=r(91174).F,d=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,x=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,_=u.errorOrDestroy;function w(){}function T(e,t,a){i=i||r(80291),e=e||{},"boolean"!==typeof a&&(a=t instanceof i),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!==typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(C,e,t),e._writableState.errorEmitted=!0,_(e,n)):(i(n),e._writableState.errorEmitted=!0,_(e,n),C(e,t))}(e,r,n,t,i);else{var a=E(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),n?process.nextTick(M,e,r,a,i):M(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function k(e){var t=this instanceof(i=i||r(80291));if(!t&&!c.call(k,this))return new k(e);this._writableState=new T(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),o.call(this)}function A(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function M(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function S(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,A(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,h=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,u,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var r=E(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(L,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(28724)(k,o),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===k&&(e&&e._writableState instanceof T)}})):c=function(e){return e instanceof this},k.prototype.pipe=function(){_(this,new m)},k.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,o=!i.objectMode&&(n=e,s.isBuffer(n)||n instanceof l);return o&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"===typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof r&&(r=w),i.ending?function(e,t){var r=new x;_(e,r),process.nextTick(t,r)}(this,r):(o||function(e,t,r,n){var i;return null===r?i=new y:"string"===typeof r||t.objectMode||(i=new d("chunk",["string","Buffer"],r)),!i||(_(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=s.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new p("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,C(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=u.destroy,k.prototype._undestroy=u.undestroy,k.prototype._destroy=function(e,t){t(e)}},94751:function(e,t,r){"use strict";var n=r(47401),i=r(37762),a=r(90062).z,o=r(9405).BADNUM;t.moduleType="transform",t.name="sort",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this sort transform is enabled or disabled."].join(" ")},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the target by which the sort transform is applied.","If a string, *target* is assumed to be a reference to a data array","in the parent trace object.","To sort about nested variables, use *.* to access them.","For example, set `target` to *marker.size* to sort","about the marker size array.","If an array, *target* is then the data array by which","the sort transform is applied."].join(" ")},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc",description:["Sets the sort transform order."].join(" ")},editType:"calc"},t.supplyDefaults=function(e){var r={};function i(i,a){return n.coerce(e,r,t.attributes,i,a)}return i("enabled")&&(i("target"),i("order")),r},t.calcTransform=function(e,t,r){if(r.enabled){var s=n.getTargetArray(t,r);if(s){var l=r.target,c=s.length;t._length&&(c=Math.min(c,t._length));var u,h,f=t._arrayAttrs,d=function(e,t,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i0)for(T=0;T<8;T++){var k=(T+1)%8;c.push(f[T],d[T],d[k],d[k],f[k],f[T]),h.push(y,v,v,v,y,y),p.push(g,m,m,m,g,g);var A=c.length;u.push([A-6,A-5,A-4],[A-3,A-2,A-1])}var M=f;f=d,d=M;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:h,vertexIntensity:p}}(e,r,a,o)})),h=[],f=[],d=[],p=[];for(s=0;st)return r-1}return r},l=function(e,t,r){return er?r:e},c=function(e){var t=1/0;e.sort((function(e,t){return e-t}));for(var r=e.length,n=1;nh-1||y>f-1||x>d-1)return n.create();var b,_,w,T,k,A,M=a[0][p],S=a[0][v],E=a[1][g],L=a[1][y],C=a[2][m],I=(o-M)/(S-M),D=(c-E)/(L-E),P=(u-C)/(a[2][x]-C);switch(isFinite(I)||(I=.5),isFinite(D)||(D=.5),isFinite(P)||(P=.5),r.reversedX&&(p=h-1-p,v=h-1-v),r.reversedY&&(g=f-1-g,y=f-1-y),r.reversedZ&&(m=d-1-m,x=d-1-x),r.filled){case 5:k=m,A=x,w=g*d,T=y*d,b=p*d*f,_=v*d*f;break;case 4:k=m,A=x,b=p*d,_=v*d,w=g*d*h,T=y*d*h;break;case 3:w=g,T=y,k=m*f,A=x*f,b=p*f*d,_=v*f*d;break;case 2:w=g,T=y,b=p*f,_=v*f,k=m*f*h,A=x*f*h;break;case 1:b=p,_=v,k=m*h,A=x*h,w=g*h*d,T=y*h*d;break;default:b=p,_=v,w=g*h,T=y*h,k=m*h*f,A=x*h*f}var O=i[b+w+k],z=i[b+w+A],R=i[b+T+k],F=i[b+T+A],j=i[_+w+k],N=i[_+w+A],B=i[_+T+k],U=i[_+T+A],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,j,I),n.lerp(q,z,N,I),n.lerp(H,R,B,I),n.lerp(G,F,U,I);var W=n.create(),Y=n.create();n.lerp(W,V,H,D),n.lerp(Y,q,G,D);var Z=n.create();return n.lerp(Z,W,Y,P),Z}(t,e,d)},g=e.getDivergence||function(e,t){var r=n.create(),i=1e-4;n.add(r,e,[i,0,0]);var a=p(r);n.subtract(a,a,t),n.scale(a,a,1/i),n.add(r,e,[0,i,0]);var o=p(r);n.subtract(o,o,t),n.scale(o,o,1/i),n.add(r,e,[0,0,i]);var s=p(r);return n.subtract(s,s,t),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=t[0][0],y=t[0][1],x=t[0][2],b=t[1][0],_=t[1][1],w=t[1][2],T=function(e){var t=e[0],r=e[1],n=e[2];return!(tb||r_||nw)},k=10*n.distance(t[0],t[1])/i,A=k*k,M=1,S=0,E=r.length;E>1&&(M=function(e){for(var t=[],r=[],n=[],i={},a={},o={},s=e.length,l=0;lS&&(S=F),z.push(F),m.push({points:I,velocities:D,divergences:z});for(var j=0;j<100*i&&I.lengthA&&n.scale(N,N,k/Math.sqrt(B)),n.add(N,N,C),P=p(N),n.squaredDistance(O,N)-A>-1e-4*A){I.push(N),O=N,D.push(P);R=g(N,P),F=n.length(R);isFinite(F)&&F>S&&(S=F),z.push(F)}C=N}}var U=o(m,e.colormap,S,M);return h?U.tubeScale=h:(0===S&&(S=1),U.tubeScale=.5*u*M/S),U};var u=r(98232),h=r(99716).createMesh;e.exports.createTubeMesh=function(e,t){return h(e,t,{shaders:u,traceType:"streamtube"})}},94818:function(e,t,r){"use strict";e.exports=function(e){var t=e.gl,r=n(t,[-1,-1,-1,1,1,-1,1,1]),s=i(t,a.lineVert,a.lineFrag);return new o(e,r,s)};var n=r(99795),i=r(79810),a=r(32692);function o(e,t,r){this.plot=e,this.vbo=t,this.shader=r}var s=o.prototype;s.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},s.drawLine=function(){var e=[0,0],t=[0,0];return function(r,n,i,a,o,s){var l=this.plot,c=this.shader,u=l.gl;e[0]=r,e[1]=n,t[0]=i,t[1]=a,c.uniforms.start=e,c.uniforms.end=t,c.uniforms.width=o*l.pixelRatio,c.uniforms.color=s,u.drawArrays(u.TRIANGLE_STRIP,0,4)}}(),s.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},94821:function(e){"use strict";e.exports=function(e){return!!e&&("symbol"===typeof e||!!e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))}},94890:function(e,t,r){"use strict";var n=r(47401),i=r(31454).defaultLine,a=r(16688).u,o=r(5153),s=r(47216).textposition,l=r(17342).overrideAll,c=r(92704).templatedArray,u=r(82949),h=o({description:["Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size).","Has an effect only when `type` is set to *symbol*."].join(" ")});h.family.dflt="Open Sans Regular, Arial Unicode MS Regular",(e.exports=l({_arrayAttrRegexps:[n.counterRegex("mapbox",".layers",!0)],domain:a({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0,description:["Sets the mapbox access token to be used for this mapbox map.","Alternatively, the mapbox access token can be set in the","configuration options under `mapboxAccessToken`.","Note that accessToken are only required when `style`","(e.g with values :",u.styleValuesMapbox.join(", "),")","and/or a layout layer references the Mapbox server."].join(" ")},style:{valType:"any",values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt,description:["Defines the map layers that are rendered by default below the trace layers defined in `data`,","which are themselves by default rendered below the layers defined in `layout.mapbox.layers`.","","These layers can be defined either explicitly as a Mapbox Style object which can contain multiple","layer definitions that load data from any public or private Tile Map Service (TMS or XYZ) or Web Map Service (WMS)","or implicitly by using one of the built-in style objects which use WMSes which do not require any","access tokens, or by using a default Mapbox style or custom Mapbox style URL, both of","which require a Mapbox access token","","Note that Mapbox access token can be set in the `accesstoken` attribute","or in the `mapboxAccessToken` config option.","","Mapbox Style objects are of the form described in the Mapbox GL JS documentation available at","https://docs.mapbox.com/mapbox-gl-js/style-spec","","The built-in plotly.js styles objects are:",u.styleValuesNonMapbox.join(", "),"","The built-in Mapbox styles are:",u.styleValuesMapbox.join(", "),"","Mapbox style URLs are of the form: mapbox://mapbox.mapbox--"].join(" ")},center:{lon:{valType:"number",dflt:0,description:"Sets the longitude of the center of the map (in degrees East)."},lat:{valType:"number",dflt:0,description:"Sets the latitude of the center of the map (in degrees North)."}},zoom:{valType:"number",dflt:1,description:"Sets the zoom level of the map (mapbox.zoom)."},bearing:{valType:"number",dflt:0,description:"Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing)."},pitch:{valType:"number",dflt:0,description:["Sets the pitch angle of the map","(in degrees, where *0* means perpendicular to the surface of the map) (mapbox.pitch)."].join(" ")},layers:c("layer",{visible:{valType:"boolean",dflt:!0,description:["Determines whether this layer is displayed"].join(" ")},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson",description:["Sets the source type for this layer,","that is the type of the layer data."].join(" ")},source:{valType:"any",description:["Sets the source data for this layer (mapbox.layer.source).","When `sourcetype` is set to *geojson*, `source` can be a URL to a GeoJSON","or a GeoJSON object.","When `sourcetype` is set to *vector* or *raster*, `source` can be a URL or","an array of tile URLs.","When `sourcetype` is set to *image*, `source` can be a URL to an image."].join(" ")},sourcelayer:{valType:"string",dflt:"",description:["Specifies the layer to use from a vector tile source (mapbox.layer.source-layer).","Required for *vector* source type that supports multiple layers."].join(" ")},sourceattribution:{valType:"string",description:["Sets the attribution for this source."].join(" ")},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle",description:["Sets the layer type,","that is the how the layer data set in `source` will be rendered","With `sourcetype` set to *geojson*, the following values are allowed:","*circle*, *line*, *fill* and *symbol*.","but note that *line* and *fill* are not compatible with Point","GeoJSON geometries.","With `sourcetype` set to *vector*, the following values are allowed:"," *circle*, *line*, *fill* and *symbol*.","With `sourcetype` set to *raster* or `*image*`, only the *raster* value is allowed."].join(" ")},coordinates:{valType:"any",description:["Sets the coordinates array contains [longitude, latitude] pairs","for the image corners listed in clockwise order:","top left, top right, bottom right, bottom left.","Only has an effect for *image* `sourcetype`."].join(" ")},below:{valType:"string",description:["Determines if the layer will be inserted","before the layer with the specified ID.","If omitted or set to '',","the layer will be inserted above every existing layer."].join(" ")},color:{valType:"color",dflt:i,description:["Sets the primary layer color.","If `type` is *circle*, color corresponds to the circle color (mapbox.layer.paint.circle-color)","If `type` is *line*, color corresponds to the line color (mapbox.layer.paint.line-color)","If `type` is *fill*, color corresponds to the fill color (mapbox.layer.paint.fill-color)","If `type` is *symbol*, color corresponds to the icon color (mapbox.layer.paint.icon-color)"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:["Sets the opacity of the layer.","If `type` is *circle*, opacity corresponds to the circle opacity (mapbox.layer.paint.circle-opacity)","If `type` is *line*, opacity corresponds to the line opacity (mapbox.layer.paint.line-opacity)","If `type` is *fill*, opacity corresponds to the fill opacity (mapbox.layer.paint.fill-opacity)","If `type` is *symbol*, opacity corresponds to the icon/text opacity (mapbox.layer.paint.text-opacity)"].join(" ")},minzoom:{valType:"number",min:0,max:24,dflt:0,description:["Sets the minimum zoom level (mapbox.layer.minzoom).","At zoom levels less than the minzoom, the layer will be hidden."].join(" ")},maxzoom:{valType:"number",min:0,max:24,dflt:24,description:["Sets the maximum zoom level (mapbox.layer.maxzoom).","At zoom levels equal to or greater than the maxzoom, the layer will be hidden."].join(" ")},circle:{radius:{valType:"number",dflt:15,description:["Sets the circle radius (mapbox.layer.paint.circle-radius).","Has an effect only when `type` is set to *circle*."].join(" ")}},line:{width:{valType:"number",dflt:2,description:["Sets the line width (mapbox.layer.paint.line-width).","Has an effect only when `type` is set to *line*."].join(" ")},dash:{valType:"data_array",description:["Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray).","Has an effect only when `type` is set to *line*."].join(" ")}},fill:{outlinecolor:{valType:"color",dflt:i,description:["Sets the fill outline color (mapbox.layer.paint.fill-outline-color).","Has an effect only when `type` is set to *fill*."].join(" ")}},symbol:{icon:{valType:"string",dflt:"marker",description:["Sets the symbol icon image (mapbox.layer.layout.icon-image).","Full list: https://www.mapbox.com/maki-icons/"].join(" ")},iconsize:{valType:"number",dflt:10,description:["Sets the symbol icon size (mapbox.layer.layout.icon-size).","Has an effect only when `type` is set to *symbol*."].join(" ")},text:{valType:"string",dflt:"",description:["Sets the symbol text (mapbox.layer.layout.text-field)."].join(" ")},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point",description:["Sets the symbol and/or text placement (mapbox.layer.layout.symbol-placement).","If `placement` is *point*, the label is placed where the geometry is located","If `placement` is *line*, the label is placed along the line of the geometry","If `placement` is *line-center*, the label is placed on the center of the geometry"].join(" ")},textfont:h,textposition:n.extendFlat({},s,{arrayOk:!1})}})},"plot","from-root")).uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in the view:","`center`, `zoom`, `bearing`, `pitch`. Defaults to `layout.uirevision`."].join(" ")}},94931:function(e){e.exports=function(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),c=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*c,e[15]=1,e}},94947:function(e,t,r){"use strict";var n=r(40973);e.exports=function(e){var t;arguments.length>1&&(e=arguments);"string"===typeof e?e=e.split(/\s/).map(parseFloat):"number"===typeof e&&(e=[e]);e.length&&"number"===typeof e[0]?t=1===e.length?{width:e[0],height:e[0],x:0,y:0}:2===e.length?{width:e[0],height:e[1],x:0,y:0}:{x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(t={x:(e=n(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"})).left||0,y:e.top||0},null==e.width?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,null==e.height?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height);return t}},94968:function(e,t,r){"use strict";e.exports={parse:r(71915),stringify:r(6293)}},95177:function(e,t,r){"use strict";r.d(t,{i:function(){return _}});var n=r(13982),i=r(87150),a=r(31014);class o{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"===typeof e.item?e.item:"function"===typeof e.item?e.item(t):{},null!==r&&void 0!==r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"===typeof e.canDrag?e.canDrag:"function"!==typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}var s=r(9174),l=r(22563);function c(e,t,r){const c=(0,s.u)(),u=function(e,t,r){const n=(0,a.useMemo)((()=>new o(e,t,r)),[t,r]);return(0,a.useEffect)((()=>{n.spec=e}),[e]),n}(e,t,r),h=function(e){return(0,a.useMemo)((()=>{const t=e.type;return(0,l.V)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,i.E)((function(){if(null!=h){const[e,i]=(0,n.V)(h,u,c);return t.receiveHandlerId(e),r.receiveHandlerId(e),i}}),[c,t,r,u,h])}var u=r(82498);let h=!1,f=!1;class d{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,l.V)(!h,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return h=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{h=!1}}isDragging(){if(!this.sourceId)return!1;(0,l.V)(!f,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return f=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{f=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var p=r(92306),g=r(32888),m=r(45737);class v{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,m.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,m.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,p.i)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,g.i)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,g.i)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var y=r(86520);function x(e){return(0,a.useMemo)((()=>e.hooks.dragSource()),[e])}function b(e){return(0,a.useMemo)((()=>e.hooks.dragPreview()),[e])}function _(e,t){const r=(0,u.I)(e,t);(0,l.V)(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=function(){const e=(0,s.u)();return(0,a.useMemo)((()=>new d(e)),[e])}(),o=function(e,t){const r=(0,s.u)(),n=(0,a.useMemo)((()=>new v(r.getBackend())),[r]);return(0,i.E)((()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource())),[n,e]),(0,i.E)((()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview())),[n,t]),n}(r.options,r.previewOptions);return c(r,n,o),[(0,y.j)(r.collect,n,o),x(o),b(o)]}},95190:function(e,t,r){"use strict";e.exports=function(e){return i(n(e))};var n=r(13903),i=r(61002)},95225:function(e,t,r){"use strict";for(var n=r(42837),i=r(4216).r,a=r(87241).extendFlat,o=r(2859).colormodel,s=["rgb","rgba","rgba256","hsl","hsla"],l=[],c=[],u=0;u][;base64],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:s,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",l.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",c.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:"Set the image's x position."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:"Set the image's y position."},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:a({},n.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:i({},{keys:["z","color","colormodel"]}),transforms:void 0})},95265:function(e,t,r){"use strict";var n=r(96122).VG,i=r(96122).rU,a=r(96122).$l,o=r(96122).tF,s=r(7899),l=n("RIFF"),c=n("WEBP");function u(e,t){if(157===e[t+3]&&1===e[t+4]&&42===e[t+5])return{width:16383&a(e,t+6),height:16383&a(e,t+8),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function h(e,t){if(47===e[t]){var r=o(e,t+1);return{width:1+(16383&r),height:1+(r>>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function f(e,t){return{width:1+(e[t+6]<<16|e[t+5]<<8|e[t+4]),height:1+(e[t+9]<e.length)){for(;t+8=10?r=r||u(e,t+8):"VP8L"===d&&p>=9?r=r||h(e,t+8):"VP8X"===d&&p>=10?r=r||f(e,t+8):"EXIF"===d&&(n=s.get_orientation(e.slice(t+8,t+8+p)),t=1/0),t+=8+p}else t++;if(r)return n>0&&(r.orientation=n),r}}}},95297:function(e,t,r){"use strict";var n=r(62258),i=r(62282),a=r(35722),o=r(47401),s=o.strTranslate,l=r(37762),c=r(31454),u=r(41707),h=r(21661),f=r(43995),d=r(82559),p=r(52783),g=r(92704).arrayEditor,m=r(36872);function v(e,t){var r=e._fullLayout.annotations[t]||{},n=l.getFromId(e,r.xref),i=l.getFromId(e,r.yref);n&&n.setScale(),i&&i.setScale(),x(e,r,t,!1,n,i)}function y(e,t,r,n,i){var a=i[r],o=i[r+"ref"],s=-1!==r.indexOf("y"),c="domain"===l.getRefType(o),u=s?n.h:n.w;return e?c?a+(s?-t:t)/e._length:e.p2r(e.r2p(a)+t):a+(s?-t:t)/u}function x(e,t,r,a,v,x){var b,_,w=e._fullLayout,T=e._fullLayout._size,k=e._context.edits;a?(b="annotation-"+a,_=a+".annotations"):(b="annotation",_="annotations");var A=g(e.layout,_,t),M=A.modifyBase,S=A.modifyItem,E=A.getUpdateObj;w._infolayer.selectAll("."+b+'[data-index="'+r+'"]').remove();var L="clip"+w._uid+"_ann"+r;if(t._input&&!1!==t.visible){var C={x:{},y:{}},I=+t.textangle||0,D=w._infolayer.append("g").classed(b,!0).attr("data-index",String(r)).style("opacity",t.opacity),P=D.append("g").classed("annotation-text-g",!0),O=k[t.showarrow?"annotationTail":"annotationPosition"],z=t.captureevents||k.annotationText||O,R=P.append("g").style("pointer-events",z?"all":null).call(d,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",W(n.event))}));t.hovertext&&R.on("mouseover",(function(){var r=t.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=e.getBoundingClientRect();h.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})})).on("mouseout",(function(){h.loneUnhover(w._hoverlayer.node())}));var F=t.borderwidth,j=t.borderpad,N=F+j,B=R.append("rect").attr("class","bg").style("stroke-width",F+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),U=t.width||t.height,V=w._topclips.selectAll("#"+L).data(U?[0]:[]);V.enter().append("clipPath").classed("annclip",!0).attr("id",L).append("rect"),V.exit().remove();var q=t.font,H=w._meta?o.templateString(t.text,w._meta):t.text,G=R.append("text").classed("annotation-text",!0).text(H);k.annotationText?G.call(f.makeEditable,{delegate:R,gd:e}).call(Y).on("edit",(function(r){t.text=r,this.call(Y),S("text",r),v&&v.autorange&&M(v._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0),i.call("_guiRelayout",e,E())})):G.call(Y)}else n.selectAll("#"+L).remove();function W(e){var n={index:r,annotation:t._input,fullAnnotation:t,event:e};return a&&(n.subplotId=a),n}function Y(r){return r.call(u.font,q).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),f.convertToTspans(r,e,Z),r}function Z(){var r=G.selectAll("a");1===r.size()&&r.text()===G.text()&&R.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var n=R.select(".annotation-text-math-group"),h=!n.empty(),g=u.bBox((h?n:G).node()),b=g.width,_=g.height,A=t.width||b,z=t.height||_,j=Math.round(A+2*N),q=Math.round(z+2*N);function H(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Y=!1,Z=["x","y"],X=0;X1)&&(ne===re?((de=ie.r2fraction(t["a"+te]))<0||de>1)&&(Y=!0):Y=!0),K=ie._offset+ie.r2p(t[te]),$=.5}else{var pe="domain"===fe;"x"===te?(Q=t[te],K=pe?ie._offset+ie._length*Q:K=T.l+T.w*Q):(Q=1-t[te],K=pe?ie._offset+ie._length*Q:K=T.t+T.h*Q),$=t.showarrow?.5:Q}if(t.showarrow){he.head=K;var ge=t["a"+te];if(ee=oe*H(.5,t.xanchor)-se*H(.5,t.yanchor),ne===re){var me=l.getRefType(ne);"domain"===me?("y"===te&&(ge=1-ge),he.tail=ie._offset+ie._length*ge):"paper"===me?"y"===te?(ge=1-ge,he.tail=T.t+T.h*ge):he.tail=T.l+T.w*ge:he.tail=ie._offset+ie.r2p(ge),J=ee}else he.tail=K+ge,J=ee+ge;he.text=he.tail+ee;var ve=w["x"===te?"width":"height"];if("paper"===re&&(he.head=o.constrain(he.head,1,ve-1)),"pixel"===ne){var ye=-Math.max(he.tail-3,he.text),xe=Math.min(he.tail+3,he.text)-ve;ye>0?(he.tail+=ye,he.text+=ye):xe>0&&(he.tail-=xe,he.text-=xe)}he.tail+=ue,he.head+=ue}else J=ee=le*H($,ce),he.text=K+ee;he.text+=ue,ee+=ue,J+=ue,t["_"+te+"padplus"]=le/2+J,t["_"+te+"padminus"]=le/2-J,t["_"+te+"size"]=le,t["_"+te+"shift"]=ee}if(Y)R.remove();else{var be=0,_e=0;if("left"!==t.align&&(be=(A-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(z-_)*("middle"===t.valign?.5:1)),h)n.select("svg").attr({x:N+be-1,y:N+_e}).call(u.setClipUrl,U?L:null,e);else{var we=N+_e-g.top,Te=N+be-g.left;G.call(f.positionText,Te,we).call(u.setClipUrl,U?L:null,e)}V.select("rect").call(u.setRect,N,N,A,z),B.call(u.setRect,F/2,F/2,j-F,q-F),R.call(u.setTranslate,Math.round(C.x.text-j/2),Math.round(C.y.text-q/2)),P.attr({transform:"rotate("+I+","+C.x.text+","+C.y.text+")"});var ke,Ae=function(r,n){D.selectAll(".annotation-arrow-g").remove();var l=C.x.head,h=C.y.head,f=C.x.tail+r,d=C.y.tail+n,g=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),L=+B.attr("width"),O=+B.attr("height"),z=g-.5*L,F=z+L,j=b-.5*O,N=j+O,U=[[z,j,z,N],[z,N,F,N],[F,N,F,j],[F,j,z,j]].map(A);if(!U.reduce((function(e,t){return e^!!o.segmentsIntersect(l,h,l+1e6,h+1e6,t[0],t[1],t[2],t[3])}),!1)){U.forEach((function(e){var t=o.segmentsIntersect(f,d,l,h,e[0],e[1],e[2],e[3]);t&&(f=t.x,d=t.y)}));var V=t.arrowwidth,q=t.arrowcolor,H=t.arrowside,G=D.append("g").style({opacity:c.opacity(q)}).classed("annotation-arrow-g",!0),W=G.append("path").attr("d","M"+f+","+d+"L"+l+","+h).style("stroke-width",V+"px").call(c.stroke,c.rgb(q));if(m(W,H,t),k.annotationPosition&&W.node().parentNode&&!a){var Y=l,Z=h;if(t.standoff){var X=Math.sqrt(Math.pow(l-f,2)+Math.pow(h-d,2));Y+=t.standoff*(f-l)/X,Z+=t.standoff*(d-h)/X}var K,J,Q=G.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-Y)+","+(d-Z),transform:s(Y,Z)}).style("stroke-width",V+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");p.init({element:Q.node(),gd:e,prepFn:function(){var e=u.getTranslate(R);K=e.x,J=e.y,v&&v.autorange&&M(v._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0)},moveFn:function(e,r){var n=w(K,J),i=n[0]+e,a=n[1]+r;R.call(u.setTranslate,i,a),S("x",y(v,e,"x",T,t)),S("y",y(x,r,"y",T,t)),t.axref===t.xref&&S("ax",y(v,e,"ax",T,t)),t.ayref===t.yref&&S("ay",y(x,r,"ay",T,t)),G.attr("transform",s(e,r)),P.attr({transform:"rotate("+I+","+i+","+a+")"})},doneFn:function(){i.call("_guiRelayout",e,E());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Ae(0,0),O)p.init({element:R.node(),gd:e,prepFn:function(){ke=P.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?S("ax",y(v,e,"ax",T,t)):S("ax",t.ax+e),t.ayref===t.yref?S("ay",y(x,r,"ay",T.w,t)):S("ay",t.ay+r),Ae(e,r);else{if(a)return;var i,o;if(v)i=y(v,e,"x",T,t);else{var l=t._xsize/T.w,c=t.x+(t._xshift-t.xshift)/T.w-l/2;i=p.align(c+e/T.w,l,0,1,t.xanchor)}if(x)o=y(x,r,"y",T,t);else{var u=t._ysize/T.h,h=t.y-(t._yshift+t.yshift)/T.h-u/2;o=p.align(h-r/T.h,u,0,1,t.yanchor)}S("x",i),S("y",o),v&&x||(n=p.getCursor(v?.5:i,x?.5:o,t.xanchor,t.yanchor))}P.attr({transform:s(e,r)+ke}),d(R,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",W(n))},doneFn:function(){d(R),i.call("_guiRelayout",e,E());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;rc||d>u||p>h)return l=i,c=r,u=d,h=p,void(o=0);var g=n.lineString([l,i],e.properties);if(!1===t(g,r,a,p,o))return!1;o++,l=i}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");l(e,(function(e,r,i){if(null!==e.geometry){var a=e.geometry.type,o=e.geometry.coordinates;switch(a){case"LineString":if(!1===t(e,r,i,0,0))return!1;break;case"Polygon":for(var s=0;s0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e65535)<<4,t|=r=((e>>>=t)>255)<<3,t|=r=((e>>>=r)>15)<<2,(t|=r=((e>>>=r)>3)<<1)|(e>>>=r)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=r,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var n=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;e[t]=n<>>8&255]<<16|n[e>>>16&255]<<8|n[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,r){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},95623:function(e,t,r){var n=r(14955),i=n("./triangle-vertex.glsl"),a=n("./triangle-fragment.glsl"),o=n("./edge-vertex.glsl"),s=n("./edge-fragment.glsl"),l=n("./point-vertex.glsl"),c=n("./point-fragment.glsl"),u=n("./pick-vertex.glsl"),h=n("./pick-fragment.glsl"),f=n("./pick-point-vertex.glsl"),d=n("./contour-vertex.glsl"),p=n("./contour-fragment.glsl");t.meshShader={vertex:i,fragment:a,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.wireShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.pointShader={vertex:l,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},t.pickShader={vertex:u,fragment:h,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},t.pointPickShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},t.contourShader={vertex:d,fragment:p,attributes:[{name:"position",type:"vec3"}]}},95681:function(e,t,r){"use strict";var n=r(92171),i=r(47401),a=r(48877),o=r(21605),s=r(82335),l=r(93290),c=r(59756),u=r(25658),h=r(26683),f=r(22632);e.exports=function(e,t){var r=t._carpetTrace=h(e,t);if(r&&r.visible&&"legendonly"!==r.visible){if(!t.a||!t.b){var d=e.data[r.index],p=e.data[t.index];p.a||(p.a=d.a),p.b||(p.b=d.b),u(p,t,t._defaultColor,e._fullLayout)}var g=function(e,t){var r,u,h,f,d,p,g,m=t._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(t.z)&&a(t,v,y,"a","b",["z"]);r=t._a=t._a||t.a,f=t._b=t._b||t.b,r=r?v.makeCalcdata(t,"_a"):[],f=f?y.makeCalcdata(t,"_b"):[],u=t.a0||0,h=t.da||1,d=t.b0||0,p=t.db||1,g=t._z=o(t._z||t.z,t.transpose),t._emptypoints=l(g),s(g,t._emptypoints);var x=i.maxRowLength(g),b="scaled"===t.xtype?"":r,_=c(t,b,u,h,x,v),w="scaled"===t.ytype?"":f,T=c(t,w,d,p,g.length,y),k={a:_,b:T,z:g};"levels"===t.contours.type&&"none"!==t.contours.coloring&&n(e,t,{vals:g,containerStr:"",cLetter:"z"});return[k]}(e,t);return f(t,t._z),g}}},95703:function(e,t,r){"use strict";var n=r(72547),i=r(43147),a=r(17543).isVisible;function o(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return-1===i&&(i+=t.length),i}e.exports=function(e,t){var r=e._fullLayout;if(i(e)){var s={},l={},c={},u={},h=r._size;t.forEach((function(t,r){var n=t[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=e.data[i].dimensions,l[r]=e.data[i].dimensions.slice()}));n(e,t,{width:h.w,height:h.h,margin:{t:h.t,r:h.r,b:h.b,l:h.l}},{filterChanged:function(t,n,i){var a=l[t][n],o=i.map((function(e){return e.slice()})),s="dimensions["+n+"].constraintrange",h=r._tracePreGUI[e._fullData[c[t]]._fullInput.uid];if(void 0===h[s]){var f=a.constraintrange;h[s]=f||null}var d=e._fullData[c[t]].dimensions[n];o.length?(1===o.length&&(o=o[0]),a.constraintrange=o,d.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete d.constraintrange,o=null);var p={};p[s]=o,e.emit("plotly_restyle",[p,[u[t]]])},hover:function(t){e.emit("plotly_hover",t)},unhover:function(t){e.emit("plotly_unhover",t)},axesMoved:function(t,r){var n=function(e,t){return function(r,n){return o(e,t,r)-o(e,t,n)}}(r,l[t].filter(a));s[t].sort(n),l[t].filter((function(e){return!a(e)})).sort((function(e){return l[t].indexOf(e)})).forEach((function(e){s[t].splice(s[t].indexOf(e),1),s[t].splice(l[t].indexOf(e),0,e)})),e.emit("plotly_restyle",[{dimensions:[s[t]]},[u[t]]])}})}}},95749:function(e,t,r){"use strict";var n=r(47401),i=r(62282),a=!0;e.exports=function(e,t,r){var o=t._fullLayout;if(!t._dragged&&!t._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&&"toggle"===l&&"toggleothers"===c&&a&&t.data&&t._context.showTips?(n.notifier(n._(t,"Double-click on legend to isolate one trace"),"long"),a=!1):a=!1,1===r?s=l:2===r&&(s=c),s){var h="togglegroup"===u,f=o.hiddenlabels?o.hiddenlabels.slice():[],d=e.data()[0][0];if(!d.groupTitle||!d.noClick){var p,g,m,v,y,x=t._fullData,b=d.trace,_=b.legendgroup,w={},T=[],k=[],A=[];if(i.traceIs(b,"pie-like")){var M=d.label,S=f.indexOf(M);"toggle"===s?-1===S?f.push(M):f.splice(S,1):"toggleothers"===s&&(f=[],t.calcdata[0].forEach((function(e){M!==e.label&&f.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===f.length&&-1===S&&(f=[])),i.call("_guiRelayout",t,"hiddenlabels",f)}else{var E,L=_&&_.length,C=[];if(L)for(p=0;pi)if(Math.abs(f*c-u*h)>i&&o){var p=n-s,g=a-l,m=c*c+u*u,v=p*p+g*g,y=Math.sqrt(m),x=Math.sqrt(d),b=o*Math.tan((r-Math.acos((m+d-v)/(2*y*x)))/2),_=b/x,w=b/y;Math.abs(_-1)>i&&(this._+="L"+(e+_*h)+","+(t+_*f)),this._+="A"+o+","+o+",0,0,"+ +(f*p>h*g)+","+(this._x1=e+w*c)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,o,s,l,c){e=+e,t=+t,c=!!c;var u=(o=+o)*Math.cos(s),h=o*Math.sin(s),f=e+u,d=t+h,p=1^c,g=c?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>i||Math.abs(this._y1-d)>i)&&(this._+="L"+f+","+d),o&&(g<0&&(g=g%n+n),g>a?this._+="A"+o+","+o+",0,1,"+p+","+(e-u)+","+(t-h)+"A"+o+","+o+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):g>i&&(this._+="A"+o+","+o+",0,"+ +(g>=r)+","+p+","+(this._x1=e+o*Math.cos(l))+","+(this._y1=t+o*Math.sin(l))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.A=s},95851:function(e,t,r){"use strict";var n=r(60482).FROM_BL;e.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var i=[e.r2l(e.range[0]),e.r2l(e.range[1])],a=i[0]+(i[1]-i[0])*r;e.range=e._input.range=[e.l2r(a+(i[0]-a)*t),e.l2r(a+(i[1]-a)*t)],e.setScale()}},95879:function(e,t,r){"use strict";e.exports={attributes:r(51478),supplyDefaults:r(10177),calc:r(64540),colorbar:{min:"cmin",max:"cmax"},plot:r(22624),moduleType:"trace",name:"volume",basePlotModule:r(6727),categories:["gl3d","showLegend"],meta:{description:["Draws volume trace between iso-min and iso-max values with coordinates given by","four 1-dimensional arrays containing the `value`, `x`, `y` and `z` of every vertex","of a uniform or non-uniform 3-D grid. Horizontal or vertical slices, caps as well as","spaceframe between iso-min and iso-max values could also be drawn using this trace."].join(" ")}}},95888:function(e){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},95935:function(e,t,r){"use strict";function n(){return new i}function i(){this.reset()}r.d(t,{A:function(){return n}}),i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(e){o(a,e,this.t),o(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new i;function o(e,t,r){var n=e.s=t+r,i=n-t,a=n-i;e.t=t-a+(r-i)}},95943:function(e){"use strict";e.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e.z=t.z,e}},95975:function(e,t,r){"use strict";var n=r(42770),i=["xaxis","yaxis","zaxis"];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(e){for(var t=0;t<3;++t){var r=e[i[t]];r.visible?(this.enabled[t]=r.showspikes,this.colors[t]=n(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness):(this.enabled[t]=!1,this.drawSides[t]=!1)}},e.exports=function(e){var t=new a;return t.merge(e),t}},96015:function(e){e.exports=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],a=t[3]-e[3];return r*r+n*n+i*i+a*a}},96022:function(e,t,r){"use strict";var n=r(47401),i=r(26481);e.exports=function(e,t,r){function a(r,a){return n.coerce(e,t,i,r,a)}a("x"),a("y"),a("xbounds"),a("ybounds"),e.xy&&e.xy instanceof Float32Array&&(t.xy=e.xy),e.indices&&e.indices instanceof Int32Array&&(t.indices=e.indices),a("text"),a("marker.color",r),a("marker.opacity"),a("marker.blend"),a("marker.sizemin"),a("marker.sizemax"),a("marker.border.color",r),a("marker.border.arearatio"),t._length=null}},96122:function(e,t,r){"use strict";var n=r(23092).Transform,i=r(73145);function a(){n.call(this,{readableObjectMode:!0})}function o(e,t,r){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=e,t&&(this.code=t),r&&(this.statusCode=r)}a.prototype=Object.create(n.prototype),a.prototype.constructor=a,i(a.prototype),t.rU=function(e,t,r){for(var n=t,i=0;i0?"white":"black",u.lineWidth=Math.abs(d));if(u.translate(.5*r,.5*h),u.scale(m,m),function(){if(null!=n)return n;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return n=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return n=r&&r.data&&255===r.data[3]}()){var v=new Path2D(e);u.fill(v),d&&u.stroke(v)}else{var y=a(e);o(u,y),u.fill(),d&&u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=t.cutoff?t.cutoff:.5,radius:null!=t.radius?t.radius:.5*f})}},96667:function(e,t,r){"use strict";e.exports=r(94388)},96671:function(e){"use strict";e.exports={sunburstcolorway:{valType:"colorlist",editType:"calc",description:["Sets the default sunburst slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendsunburstcolors`."].join(" ")},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the sunburst slice colors (whether given by `sunburstcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},96763:function(e,t,r){"use strict";e.exports={attributes:r(49762),supplyDefaults:r(15413),calc:r(19774),colorbar:{min:"cmin",max:"cmax"},plot:r(61540),moduleType:"trace",name:"mesh3d",basePlotModule:r(6727),categories:["gl3d","showLegend"],meta:{description:["Draws sets of triangles with coordinates given by","three 1-dimensional arrays in `x`, `y`, `z` and","(1) a sets of `i`, `j`, `k` indices","(2) Delaunay triangulation or","(3) the Alpha-shape algorithm or","(4) the Convex-hull algorithm"].join(" ")}}},97087:function(e,t,r){"use strict";var n=r(47401),i=r(31454),a=r(92704),o=r(26800),s=r(55976),l=r(94316);function c(e,t,r,i){var a=i.calendar;function o(r,i){return n.coerce(e,t,s.buttons,r,i)}if(o("visible")){var l=o("step");"all"!==l&&(!a||"gregorian"===a||"month"!==l&&"year"!==l?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}e.exports=function(e,t,r,u,h){var f=e.rangeselector||{},d=a.newContainer(t,"rangeselector");function p(e,t){return n.coerce(f,d,s,e,t)}if(p("visible",o(f,d,{name:"buttons",handleItemDefaults:c,calendar:h}).length>0)){var g=function(e,t,r){for(var n=r.filter((function(r){return t[r].anchor===e._id})),i=0,a=0;a0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function R(e,t){return null===e?t:e}function F(t,r,n){C();var i,a,o,l=[r],c=[n];if(s>=1)l=[r],c=[n];else if(s>0){var u=function(e,t){var r=e[0],n=e[1],i=e[2],a=function(e,t,r){for(var n=[],i=0;i-1?n[d]:L(p,g,v);f[d]=x>-1?x:D(p,g,v,R(t,y))}i=f[0],a=f[1],o=f[2],e._meshI.push(i),e._meshJ.push(a),e._meshK.push(o),++m}}function j(e,t,r,n){var i=e[3];in&&(i=n);for(var a=(e[3]-i)/(e[3]-t[3]+1e-9),o=[],s=0;s<4;s++)o[s]=(1-a)*e[s]+a*t[s];return o}function N(e,t,r){return e>=t&&e<=r}function B(e){var t=.001*(E-S);return e>=S-t&&e<=E+t}function U(t){for(var r=[],n=0;n<4;n++){var i=t[n];r.push([e._x[i],e._y[i],e._z[i],e._value[i]])}return r}function V(e,t,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(t[0][3],n,i),N(t[1][3],n,i),N(t[2][3],n,i)];if(!s[0]&&!s[1]&&!s[2])return!1;var l=function(e,t,r){return B(t[0][3])&&B(t[1][3])&&B(t[2][3])?(F(e,t,r),!0):a<3&&V(e,t,r,S,E,++a)};if(s[0]&&s[1]&&s[2])return l(e,t,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&&s[a[1]]&&!s[a[2]]){var u=t[a[0]],h=t[a[1]],f=t[a[2]],d=j(f,u,n,i),p=j(f,h,n,i);o=l(e,[p,d,u],[-1,-1,r[a[0]]])||o,o=l(e,[u,h,p],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&&!s[a[1]]&&!s[a[2]]){var u=t[a[0]],h=t[a[1]],f=t[a[2]],d=j(h,u,n,i),p=j(f,u,n,i);o=l(e,[p,d,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(e,t,r,n){var i=!1,a=U(t),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!o[0]&&!o[1]&&!o[2]&&!o[3])return i;if(o[0]&&o[1]&&o[2]&&o[3])return g&&(i=function(e,t,r){var n=function(n,i,a){F(e,[t[n],t[i],t[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(e,a,t)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&&o[l[1]]&&o[l[2]]&&!o[l[3]]){var c=a[l[0]],u=a[l[1]],h=a[l[2]],f=a[l[3]];if(g)i=F(e,[c,u,h],[t[l[0]],t[l[1]],t[l[2]]])||i;else{var d=j(f,c,r,n),p=j(f,u,r,n),m=j(f,h,r,n);i=F(null,[d,p,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&&o[l[1]]&&!o[l[2]]&&!o[l[3]]){var c=a[l[0]],u=a[l[1]],h=a[l[2]],f=a[l[3]],d=j(h,c,r,n),p=j(h,u,r,n),m=j(f,u,r,n),v=j(f,c,r,n);g?(i=F(e,[c,v,d],[t[l[0]],-1,-1])||i,i=F(e,[u,p,m],[t[l[1]],-1,-1])||i):i=function(e,t,r){var n=function(n,i,a){F(e,[t[n],t[i],t[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[d,p,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&&!o[l[1]]&&!o[l[2]]&&!o[l[3]]){var c=a[l[0]],u=a[l[1]],h=a[l[2]],f=a[l[3]],d=j(u,c,r,n),p=j(h,c,r,n),m=j(f,c,r,n);g?(i=F(e,[c,d,p],[t[l[0]],-1,-1])||i,i=F(e,[c,p,m],[t[l[0]],-1,-1])||i,i=F(e,[c,m,d],[t[l[0]],-1,-1])||i):i=F(null,[d,p,m],[-1,-1,-1])||i,s=!0}})),i)}function H(e,t,r,n,i,a,o,s,l,c,u){var h=!1;return p&&(z(e,"A")&&(h=q(null,[t,r,n,a],c,u)||h),z(e,"B")&&(h=q(null,[r,n,i,l],c,u)||h),z(e,"C")&&(h=q(null,[r,a,o,l],c,u)||h),z(e,"D")&&(h=q(null,[n,a,s,l],c,u)||h),z(e,"E")&&(h=q(null,[r,n,a,l],c,u)||h)),g&&(h=q(e,[r,n,a,l],c,u)||h),h}function G(e,t,r,n,i,a,o,s){return[!0===s[0]||V(e,U([t,r,n]),[t,r,n],a,o),!0===s[1]||V(e,U([n,i,t]),[n,i,t],a,o)]}function W(e,t,r,n,i,a,o,s,l){return s?G(e,t,r,i,n,a,o,l):G(e,r,i,n,t,a,o,l)}function Y(e,t,r,n,i,a,o){var s,l,c,u,h=!1,f=function(){h=V(e,[s,l,c],[-1,-1,-1],i,a)||h,h=V(e,[c,u,s],[-1,-1,-1],i,a)||h},d=o[0],p=o[1],g=o[2];return d&&(s=P(U([k(t,r-0,n-0)])[0],U([k(t-1,r-0,n-0)])[0],d),l=P(U([k(t,r-0,n-1)])[0],U([k(t-1,r-0,n-1)])[0],d),c=P(U([k(t,r-1,n-1)])[0],U([k(t-1,r-1,n-1)])[0],d),u=P(U([k(t,r-1,n-0)])[0],U([k(t-1,r-1,n-0)])[0],d),f()),p&&(s=P(U([k(t-0,r,n-0)])[0],U([k(t-0,r-1,n-0)])[0],p),l=P(U([k(t-0,r,n-1)])[0],U([k(t-0,r-1,n-1)])[0],p),c=P(U([k(t-1,r,n-1)])[0],U([k(t-1,r-1,n-1)])[0],p),u=P(U([k(t-1,r,n-0)])[0],U([k(t-1,r-1,n-0)])[0],p),f()),g&&(s=P(U([k(t-0,r-0,n)])[0],U([k(t-0,r-0,n-1)])[0],g),l=P(U([k(t-0,r-1,n)])[0],U([k(t-0,r-1,n-1)])[0],g),c=P(U([k(t-1,r-1,n)])[0],U([k(t-1,r-1,n-1)])[0],g),u=P(U([k(t-1,r-0,n)])[0],U([k(t-1,r-0,n-1)])[0],g),f()),h}function Z(e,t,r,n,i,a,o,s,l,c,u,h){var f=e;return h?(p&&"even"===e&&(f=null),H(f,t,r,n,i,a,o,s,l,c,u)):(p&&"odd"===e&&(f=null),H(f,l,s,o,a,i,n,r,t,c,u))}function X(e,t,r,n,i){for(var a=[],o=0,s=0;sMath.abs(T-M)?[A,T]:[T,M];$(r,L[0],L[1])}}var C=[[Math.min(S,M),Math.max(S,M)],[Math.min(A,E),Math.max(A,E)]];["x","y","z"].forEach((function(r){for(var n=[],i=0;i0&&(h.push(p.id),"x"===r?f.push([p.distRatio,0,0]):"y"===r?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else u=ne(1,"x"===r?b-1:"y"===r?_-1:w-1);h.length>0&&(n[a]="x"===r?ee(t,h,o,s,f,n[a]):"y"===r?te(t,h,o,s,f,n[a]):re(t,h,o,s,f,n[a]),a++),u.length>0&&(n[a]="x"===r?X(t,u,o,s,n[a]):"y"===r?K(t,u,o,s,n[a]):J(t,u,o,s,n[a]),a++)}var g=e.caps[r];g.show&&g.fill&&(O(g.fill),n[a]="x"===r?X(t,[0,b-1],o,s,n[a]):"y"===r?K(t,[0,_-1],o,s,n[a]):J(t,[0,w-1],o,s,n[a]),a++)}})),0===m&&I(),e._meshX=n,e._meshY=i,e._meshZ=a,e._meshIntensity=o,e._Xs=v,e._Ys=y,e._Zs=x}(),e}e.exports={findNearestOnAxis:l,generateIsoMeshes:f,createIsosurfaceTrace:function(e,t){var r=e.glplot.gl,i=n({gl:r}),a=new c(e,i,t.uid);return i._trace=a,a.update(t),e.glplot.add(i),a}}},97280:function(e,t,r){"use strict";var n=r(5153),i=r(51499).hoverlabel,a=r(87241).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:a({},i.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:n({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:"none"}}},97451:function(e,t,r){"use strict";var n=r(66806),i=r(44790).counter,a=r(73314),o=r(39257).scales,s=a(o);function l(e){return"`"+e+"`"}e.exports=function(e,t){e=e||"";var r,a,c=(t=t||{}).cLetter||"c",u="onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),h="noScale"in t?t.noScale:"marker.line"===e,f="showScaleDflt"in t?t.showScaleDflt:"z"===c,d="string"===typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,p=t.editTypeOverride||"",g=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,a=t.colorAttr):a="in "+l(g+(r={z:"z",c:"color"}[c]));var m=u?" Has an effect only if "+a+"is set to a numerical array.":"",v=c+"auto",y=c+"min",x=c+"max",b=c+"mid",_=l(g+v),w=l(g+y),T=l(g+x),k=w+" and "+T,A={};A[y]=A[x]=void 0;var M={};M[v]=!1;var S={};return"color"===r&&(S.color={valType:"color",arrayOk:!0,editType:p||"style",description:["Sets the",e,"color."," It accepts either a specific color"," or an array of numbers that are mapped to the colorscale"," relative to the max and min values of the array or relative to"," "+k+" if set."].join("")},t.anim&&(S.color.anim=!0)),S[v]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A,description:["Determines whether or not the color domain is computed"," with respect to the input data (here "+a+") or the bounds set in"," ",k," ",m," Defaults to `false` when ",k," are set by the user."].join("")},S[y]={valType:"number",dflt:null,editType:p||"plot",impliedEdits:M,description:["Sets the lower bound of the color domain.",m," Value should have the same units as ",a," and if set, ",T," must be set as well."].join("")},S[x]={valType:"number",dflt:null,editType:p||"plot",impliedEdits:M,description:["Sets the upper bound of the color domain.",m," Value should have the same units as ",a," and if set, ",w," must be set as well."].join("")},S[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:A,description:["Sets the mid-point of the color domain by scaling ",w," and/or ",T," to be equidistant to this point.",m," Value should have the same units as ",a,". ","Has no effect when ",_," is `false`."].join("")},S.colorscale={valType:"colorscale",editType:"calc",dflt:d,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale.",m," The colorscale must be an array containing"," arrays mapping a normalized value to an"," rgb, rgba, hex, hsl, hsv, or named color string."," At minimum, a mapping for the lowest (0) and highest (1)"," values are required. For example,"," `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`."," To control the bounds of the colorscale in color space,"," use",k,"."," Alternatively, `colorscale` may be a palette name string"," of the following list: "+s+"."].join("")},S.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)"," or the palette determined by ",l(g+"colorscale"),".",m," In case `colorscale` is unspecified or `autocolorscale` is true, the default "," palette will be chosen according to whether numbers in the `color` array are"," all positive, all negative or mixed."].join("")},S.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true.",m," If true, ",w," will correspond to the last color"," in the array and ",T," will correspond to the first color."].join("")},h||(S.showscale={valType:"boolean",dflt:f,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace.",m].join("")},S.colorbar=n),t.noColorAxis||(S.coloraxis={valType:"subplotid",regex:i("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),S}},97547:function(e,t,r){"use strict";var n=r(83491),i=r(91771),a=r(47401).isArrayOrTypedArray;t.coerceString=function(e,t,r){if("string"===typeof t){if(t||!e.noBlank)return t}else if(("number"===typeof t||!0===t)&&!e.strict)return String(t);return void 0!==r?r:e.dflt},t.coerceNumber=function(e,t,r){if(n(t)){t=+t;var i=e.min,a=e.max;if(!(void 0!==i&&ta))return t}return void 0!==r?r:e.dflt},t.coerceColor=function(e,t,r){return i(t).isValid()?t:void 0!==r?r:e.dflt},t.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},t.getValue=function(e,t){var r;return Array.isArray(e)?t0;){var a=r%10;n=(0===a?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(e[1]+t[1])&&(n=n.substr(1)),n||e[0]}}}),n(a.prototype,{newDate:function(e,t,r){return this._calendar.newDate(null==e?this:e,t,r)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(e,t,r){return null==e?this.today():(e.year&&(this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new a(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+o(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,"d"===r||"w"===r){var n=e.toJD()+t*("w"===r?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+("y"===r?t:0),o=e.monthOfYear()+("m"===r?t:0);i=e.day();"y"===r?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):"m"===r&&(!function(e){for(;ot-1+e.minMonth;)a++,o-=t,t=e.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&("y"===n||"m"===n)&&(0===t[0]||e.year()>0!==t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var n="y"===r?t:e.year(),i="m"===r?t:e.month(),a="d"===r?t:e.day();return"y"!==r&&"m"!==r||(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||0!==e;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),c=i-(l>2.5?4716:4715);return c<=0&&c--,this.newDate(c,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},97726:function(e){e.exports=function(e,t){var r=t[15];if(0===r)return!1;for(var n=1/r,i=0;i<16;i++)e[i]=t[i]*n;return!0}},97814:function(e,t,r){var n=r(97615),i=r(69726),a=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,i(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);e=this._t2gYear(t.year());return a.leapYear(e)},weekOfYear:function(e,t,r){var i=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);e=this._t2gYear(i.year());return a.weekOfYear(e,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,n.local.invalidDate);e=this._t2gYear(i.year());return a.toJD(e,i.month(),i.day())},fromJD:function(e){var t=a.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},97990:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=r(35722),o=r(62282),s=r(19428),l=r(52783),c=r(41707),u=r(31454),h=r(43995),f=r(95749),d=r(9663),p=r(60482),g=p.LINE_SPACING,m=p.FROM_TL,v=p.FROM_BR,y=r(34179),x=r(27799),b=r(91535);function _(e,t,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};if(a._group&&(l.group=a._group),o.traceIs(a,"pie-like")&&(l.label=r.datum()[0].label),!1!==s.triggerHandler(e,"plotly_legendclick",l))if(1===n)t._clickTimeout=setTimeout((function(){e._fullLayout&&f(r,e,n)}),e._context.doubleClickDelay);else if(2===n){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==s.triggerHandler(e,"plotly_legenddoubleclick",l)&&f(r,e,n)}}function w(e,t,r){var n,a,s=e.data()[0][0],l=s.trace,u=o.traceIs(l,"pie-like"),f=!r._inHover&&t._context.edits.legendText&&!u,p=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,a=s.groupTitle.font):(a=r.font,r.entries?n=s.text:(n=u?s.label:l.name,l._meta&&(n=i.templateString(n,l._meta))));var g=i.ensureSingle(e,"text","legendtext");g.attr("text-anchor","start").call(c.font,a).text(f?T(n,p):n);var m=r.itemwidth+2*d.itemGap;h.positionText(g,m,0),f?g.call(h.makeEditable,{gd:t,text:n}).call(A,e,t,r).on("edit",(function(n){this.text(T(n,p)).call(A,e,t,r);var a=s.trace._fullInput||{},c={};if(o.hasTransform(a,"groupby")){var u=o.getTransformIndices(a,"groupby"),h=u[u.length-1],f=i.keyedContainer(a,"transforms["+h+"].styles","target","value.name");f.set(s.trace._group,n),c=f.constructUpdate()}else c.name=n;return o.call("_guiRestyle",t,c,l.index)})):A(g,e,t,r)}function T(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function k(e,t){var r,a=t._context.doubleClickDelay,o=1,s=i.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(u.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(s.on("mousedown",(function(){(r=(new Date).getTime())-t._legendMouseDownTimea&&(o=Math.max(o-1,1)),_(t,r,e,o,n.event)}})))}function A(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),h.convertToTspans(e,r,(function(){!function(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend)return void e.remove();var a=e.select("g[class*=math-group]"),o=a.node();r||(r=t._fullLayout.legend);var s,l=r.borderwidth;s=1===n?r.title.font:i.groupTitle?i.groupTitle.font:r.font;var u,f,p=s.size*g;if(o){var m=c.bBox(o);u=m.height,f=m.width,1===n?c.setTranslate(a,l,l+.75*u):c.setTranslate(a,0,.25*u)}else{var v=e.select(1===n?".legendtitletext":".legendtext"),y=h.lineCount(v),x=v.node();if(u=p*y,f=x?c.bBox(x).width:0,1===n)"left"===r.title.side&&(f+=2*d.itemGap),h.positionText(v,l+d.titlePad,l+p);else{var b=2*d.itemGap+r.itemwidth;i.groupTitle&&(b=d.itemGap,f-=r.itemwidth),h.positionText(v,b,-p*((y-1)/2-.3))}}1===n?(r._titleWidth=f,r._titleHeight=u):(i.lineHeight=p,i.height=Math.max(u,16)+3,i.width=f)}(t,r,n,i)}))}function M(e){return i.isRightAnchor(e)?"right":i.isCenterAnchor(e)?"center":"left"}function S(e){return i.isBottomAnchor(e)?"bottom":i.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){return t||(t=e._fullLayout.legend||{}),function(e,t){var r,s,h=e._fullLayout,f="legend"+h._uid,p=t._inHover;p?(r=t.layer,f+="-hover"):r=h._infolayer;if(!r)return;e._legendMouseDownTime||(e._legendMouseDownTime=0);if(p){if(!t.entries)return;s=y(t.entries,t)}else{if(!e.calcdata)return;s=h.showlegend&&y(e.calcdata,t)}var g=h.hiddenlabels||[];if(!p&&(!h.showlegend||!s.length))return r.selectAll(".legend").remove(),h._topdefs.select("#"+f).remove(),a.autoMargin(e,"legend");var T=i.ensureSingle(r,"g","legend",(function(e){p||e.attr("pointer-events","all")})),E=i.ensureSingleById(h._topdefs,"clipPath",f,(function(e){e.append("rect")})),L=i.ensureSingle(T,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));L.call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=i.ensureSingle(T,"g","scrollbox"),I=t.title;if(t._titleWidth=0,t._titleHeight=0,I.text){var D=i.ensureSingle(C,"text","legendtitletext");D.attr("text-anchor","start").call(c.font,I.font).text(I.text),A(D,C,e,t,1)}else C.selectAll(".legendtitletext").remove();var P=i.ensureSingle(T,"rect","scrollbar",(function(e){e.attr(d.scrollBarEnterAttrs).call(u.fill,d.scrollBarColor)})),O=C.selectAll("g.groups").data(s);O.enter().append("g").attr("class","groups"),O.exit().remove();var z=O.selectAll("g.traces").data(i.identity);z.enter().append("g").attr("class","traces"),z.exit().remove(),z.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==g.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){n.select(this).call(w,e,t)})).call(x,e,t).each((function(){p||n.select(this).call(k,e)})),i.syncOrAsync([a.previousPromises,function(){return function(e,t,r,i){var a=e._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,h=2*u,f=d.itemGap,p=i.itemwidth+2*f,g=2*(u+f),m=S(i),v=i.y<0||0===i.y&&"top"===m,y=i.y>1||1===i.y&&"bottom"===m,x=i.tracegroupgap;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var _=0;i._width=0,i._height=0;var w=function(e){var t=0,r=0,n=e.title.side;n&&(-1!==n.indexOf("left")&&(t=e._titleWidth),-1!==n.indexOf("top")&&(r=e._titleHeight));return[t,r]}(i);if(s)r.each((function(e){var t=e[0].height;c.setTranslate(this,u+w[0],u+w[1]+i._height+t/2+f),i._height+=t,i._width=Math.max(i._width,e[0].width)})),_=p+i._width,i._width+=f+p+h,i._height+=g,l&&(t.each((function(e,t){c.setTranslate(this,0,t*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var T=M(i),k=i.x<0||0===i.x&&"right"===T,A=i.x>1||1===i.x&&"left"===T,E=y||v,L=a.width/2;i._maxWidth=Math.max(k?E&&"left"===T?o.l+o.w:L:A?E&&"right"===T?o.r+o.w:L:o.w,2*p);var C=0,I=0;r.each((function(e){var t=e[0].width+p;C=Math.max(C,t),I+=t})),_=null;var D=0;if(l){var P=0,O=0,z=0;t.each((function(){var e=0,t=0;n.select(this).selectAll("g.traces").each((function(r){var n=r[0].height;c.setTranslate(this,w[0],w[1]+u+f+n/2+t),t+=n,e=Math.max(e,p+r[0].width)})),P=Math.max(P,t);var r=e+f;r+u+O>i._maxWidth&&(D=Math.max(D,O),O=0,z+=P+x,P=t),c.setTranslate(this,O,z),O+=r})),i._width=Math.max(D,O)+u,i._height=z+P+g}else{var R=r.size(),F=I+h+(R-1)*f=i._maxWidth&&(D=Math.max(D,U),N=0,B+=j,i._height+=j,j=0),c.setTranslate(this,w[0]+u+N,w[1]+u+B+t/2+f),U=N+r+f,N+=n,j=Math.max(j,t)})),F?(i._width=N+h,i._height=j+g):(i._width=Math.max(D,U)+h,i._height+=j+g)}}i._width=Math.ceil(Math.max(i._width+w[0],i._titleWidth+2*(u+d.titlePad))),i._height=Math.ceil(Math.max(i._height+w[1],i._titleHeight+2*(u+d.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=e._context.edits,q=V.legendText||V.legendPosition;r.each((function(e){var t=n.select(this).select(".legendtoggle"),r=e[0].height,i=q?p:_||p+e[0].width;s||(i+=f/2),c.setRect(t,0,-r/2,i,r)}))}(e,O,z,t)},function(){if(p||!function(e){var t=e._fullLayout,r=t.legend,n=M(r),i=S(r);return a.autoMargin(e,"legend",{x:r.x,y:r.y,l:r._width*m[n],r:r._width*v[n],b:r._effHeight*v[i],t:r._effHeight*m[i]})}(e)){var s,u,g,y,x=h._size,b=t.borderwidth,w=x.l+x.w*t.x-m[M(t)]*t._width,k=x.t+x.h*(1-t.y)-m[S(t)]*t._effHeight;if(!p&&h.margin.autoexpand){var A=w,I=k;w=i.constrain(w,0,h.width-t._width),k=i.constrain(k,0,h.height-t._effHeight),w!==A&&i.log("Constrain legend.x to make legend fit inside graph"),k!==I&&i.log("Constrain legend.y to make legend fit inside graph")}if(p||c.setTranslate(T,w,k),P.on(".drag",null),T.on("wheel",null),p||t._height<=t._maxHeight||e._context.staticPlot){var D=t._effHeight;p&&(D=t._height),L.attr({width:t._width-b,height:D-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),E.select("rect").attr({width:t._width-2*b,height:D-2*b,x:b,y:b}),c.setClipUrl(C,f,e),c.setRect(P,0,0,0,0),delete t._scrollY}else{var O,z,R,F=Math.max(d.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-F-2*d.scrollBarMargin,N=t._height-t._effHeight,B=j/N,U=Math.min(t._scrollY||0,N);L.attr({width:t._width-2*b+d.scrollBarWidth+d.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),E.select("rect").attr({width:t._width-2*b+d.scrollBarWidth+d.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+U}),c.setClipUrl(C,f,e),W(U,F,B),T.on("wheel",(function(){W(U=i.constrain(t._scrollY+n.event.deltaY/j*N,0,N),F,B),0!==U&&U!==N&&n.event.preventDefault()}));var V=function(e,t,r){var n=(r-t)/B+e;return i.constrain(n,0,N)},q=function(e,t,r){var n=(t-r)/B+e;return i.constrain(n,0,N)},H=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;O="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,R=U})).on("drag",(function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(z="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,W(U=V(R,O,z),F,B))}));P.call(H);var G=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(O=e.changedTouches[0].clientY,R=U)})).on("drag",(function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(z=e.changedTouches[0].clientY,W(U=q(R,O,z),F,B))}));C.call(G)}if(e._context.edits.legendPosition)T.classed("cursor-move",!0),l.init({element:T.node(),gd:e,prepFn:function(){var e=c.getTranslate(T);g=e.x,y=e.y},moveFn:function(e,r){var n=g+e,i=y+r;c.setTranslate(T,n,i),s=l.align(n,0,x.l,x.l+x.w,t.xanchor),u=l.align(i,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==s&&void 0!==u&&o.call("_guiRelayout",e,{"legend.x":s,"legend.y":u})},clickFn:function(t,n){var i=r.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return n.clientX>=e.left&&n.clientX<=e.right&&n.clientY>=e.top&&n.clientY<=e.bottom}));i.size()>0&&_(e,T,i,t,n)}})}function W(r,n,i){t._scrollY=e._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,t._width,d.scrollBarMargin+r*i,d.scrollBarWidth,n),E.select("rect").attr("y",b+r)}}],e)}(e,t)}},98048:function(e,t,r){"use strict";var n=r(4216).r,i=r(4216).a,a=r(97451),o=r(16688).u,s=r(86692),l=r(44244),c=r(22740),u=r(87241).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot",description:["Determines d3 treemap solver.","For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling"].join(" ")},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot",description:["When using *squarify* `packing` algorithm, according to https://github.com/d3/d3-hierarchy/blob/master/README.md#squarify_ratio","this option specifies the desired aspect ratio of the generated rectangles.","The ratio must be specified as a number greater than or equal to one.","Note that the orientation of the generated rectangles (tall or wide)","is not implied by the ratio; for example, a ratio of two will attempt","to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2.","When using *squarify*, unlike d3 which uses the Golden Ratio i.e. 1.618034,","Plotly applies 1 to increase squares in treemap layouts."].join(" ")},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot",description:["Determines if the positions obtained from solver are flipped on each axis."].join(" ")},pad:{valType:"number",min:0,dflt:3,editType:"plot",description:["Sets the inner padding (in px)."].join(" ")},editType:"calc"},marker:u({pad:{t:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the top (in px)."].join(" ")},l:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the left (in px)."].join(" ")},r:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the right (in px)."].join(" ")},b:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the bottom (in px)."].join(" ")},editType:"calc"},colors:l.marker.colors,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style",description:["Determines if the sector colors are faded towards","the background from the leaves up to the headers.","This option is unavailable when a `colorscale` is present,","defaults to false when `marker.colors` is set,","but otherwise defaults to true.","When set to *reversed*, the fading direction is inverted,","that is the top elements within hierarchy are drawn with fully saturated colors","while the leaves are faded towards the background color."].join(" ")},line:l.marker.line,editType:"calc"},a("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if the path bar is drawn","i.e. outside the trace `domain` and","with one pixel gap."].join(" ")},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot",description:["Determines on which side of the the treemap the","`pathbar` should be presented."].join(" ")},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot",description:["Determines which shape is used for edges between `barpath` labels."].join(" ")},thickness:{valType:"number",min:12,editType:"plot",description:["Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used","with 3 pixles extra padding on each side."].join(" ")},textfont:u({},s.textfont,{description:"Sets the font used inside `pathbar`."}),editType:"calc"},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented on top left corner of a treemap graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot",description:["Sets the positions of the `text` elements."].join(" ")},sort:s.sort,root:l.root,domain:o({name:"treemap",trace:!0,editType:"calc"})}},98138:function(e){"use strict";function t(e,t){var r,n,i=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)i[n]+=e[4*r+n]*t[r];return i}e.exports=function(e,r){return t(e.projection,t(e.view,t(e.model,[r[0],r[1],r[2],1])))}},98142:function(e){"use strict";e.exports=function(e){for(var t=1,r=1;r.uirevision`."].join(" ")},editType:"calc",_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var h={visible:o({},i.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the angular axis type.","If *linear*, set `thetaunit` to determine the unit in which axis value are shown.","If *category, use `period` to set the number of integer coordinates around polar axis."].join(" ")},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc",description:["Sets the format unit of the formatted *theta* values.","Has an effect only when `angularaxis.type` is *linear*."].join(" ")},period:{valType:"number",editType:"calc",min:0,description:["Set the angular period.","Has an effect only when `angularaxis.type` is *category*."].join(" ")},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc",description:["Sets the direction corresponding to positive angles."].join(" ")},rotation:{valType:"angle",editType:"calc",description:["Sets that start position (in degrees) of the angular axis","By default, polar subplots with `direction` set to *counterclockwise*","get a `rotation` of *0*","which corresponds to due East (like what mathematicians prefer).","In turn, polar with `direction` set to *clockwise* get a rotation of *90*","which corresponds to due North (like on a compass),"].join(" ")},hoverformat:i.hoverformat,uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `rotation`.","Defaults to `polar.uirevision`."].join(" ")},editType:"calc"};o(h,l,c),e.exports={domain:a({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot",description:["Sets angular span of this polar subplot with two angles (in degrees).","Sector are assumed to be spanned in the counterclockwise direction","with *0* corresponding to rightmost limit of the polar subplot."].join(" ")},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the fraction of the radius to cut out of the polar subplot."].join(" ")},bgcolor:{valType:"color",editType:"plot",dflt:n.background,description:"Set the background color of the subplot"},radialaxis:u,angularaxis:h,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot",description:["Determines if the radial axis grid lines and angular axis line are drawn","as *circular* sectors or as *linear* (polygon) sectors.","Has an effect only when the angular axis has `type` *category*.","Note that `radialaxis.angle` is snapped to the angle of the closest","vertex when `gridshape` is *circular*","(so that radial axis scale is the same as the data scale)."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis attributes,","if not overridden in the individual axes.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc"}},98461:function(e,t,r){"use strict";var n=r(92171);e.exports=function(e,t){for(var r=t.u,i=t.v,a=t.w,o=Math.min(t.x.length,t.y.length,t.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;cr?r:e:et?t:e}},98813:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=i.numberFormat,o=r(75518),s=r(21661),l=r(31454),c=r(79957).cn,u=i._;function h(e){return""!==e}function f(e,t){return e.filter((function(e){return e.key===t.traceId}))}function d(e,t){n.select(e).select("path").style("fill-opacity",t),n.select(e).select("rect").style("fill-opacity",t)}function p(e){n.select(e).select("text.name").style("fill","black")}function g(e){return function(t){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(e){return function(t){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function v(e,t,r){t&&r&&f(r,t).selectAll("."+c.sankeyLink).filter(g(t)).call(x.bind(0,t,r,!1))}function y(e,t,r){t&&r&&f(r,t).selectAll("."+c.sankeyLink).filter(g(t)).call(b.bind(0,t,r,!1))}function x(e,t,r,n){var i=n.datum().link.label;n.style("fill-opacity",(function(e){if(!e.link.concentrationscale)return.4})),i&&f(t,e).selectAll("."+c.sankeyLink).filter((function(e){return e.link.label===i})).style("fill-opacity",(function(e){if(!e.link.concentrationscale)return.4})),r&&f(t,e).selectAll("."+c.sankeyNode).filter(m(e)).call(v)}function b(e,t,r,n){var i=n.datum().link.label;n.style("fill-opacity",(function(e){return e.tinyColorAlpha})),i&&f(t,e).selectAll("."+c.sankeyLink).filter((function(e){return e.link.label===i})).style("fill-opacity",(function(e){return e.tinyColorAlpha})),r&&f(t,e).selectAll(c.sankeyNode).filter(m(e)).call(y)}function _(e,t){var r=e.hoverlabel||{},n=i.nestedProperty(r,t).get();return!Array.isArray(n)&&n}e.exports=function(e,t){for(var r=e._fullLayout,i=r._paper,f=r._size,g=0;g"),color:_(o,"bgcolor")||l.addOpacity(g.color,1),borderColor:_(o,"bordercolor"),fontFamily:_(o,"font.family"),fontSize:_(o,"font.size"),fontColor:_(o,"font.color"),nameLength:_(o,"namelength"),textAlign:_(o,"align"),idealAlign:n.event.x"),color:_(o,"bgcolor")||i.tinyColorHue,borderColor:_(o,"bordercolor"),fontFamily:_(o,"font.family"),fontSize:_(o,"font.size"),fontColor:_(o,"font.color"),nameLength:_(o,"namelength"),textAlign:_(o,"align"),idealAlign:"left",hovertemplate:o.hovertemplate,hovertemplateLabels:y,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e});d(w,.85),p(w)}}},unhover:function(t,i,a){!1!==e._fullLayout.hovermode&&(n.select(t).call(y,i,a),"skip"!==i.node.trace.node.hoverinfo&&(i.node.fullData=i.node.trace,e.emit("plotly_unhover",{event:n.event,points:[i.node]})),s.loneUnhover(r._hoverlayer.node()))},select:function(t,r,i){var a=r.node;a.originalEvent=n.event,e._hoverdata=[a],n.select(t).call(y,r,i),s.click(e,{target:!0})}}})}},98869:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:r(55976)}}},layoutAttributes:r(55976),handleDefaults:r(97087),draw:r(57415)}},98893:function(e,t,r){"use strict";e.exports=r(23510)},98918:function(e,t,r){var n,i=r(13137),a=r(25496),o=r(58908),s=r(63476),l=r(31869),c=r(28369),u=!1,h=a();function f(e,t,r){var i=n.segments(e),a=n.segments(t),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(e){return!0===e?u=i():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return h.epsilon(e)},segments:function(e){var t=o(!0,h,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,h,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:l.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:l.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:l.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:l.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:l.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:s(e.segments,h,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(n,e)},polygonToGeoJSON:function(e){return c.fromPolygon(n,h,e)},union:function(e,t){return f(e,t,n.selectUnion)},intersect:function(e,t){return f(e,t,n.selectIntersect)},difference:function(e,t){return f(e,t,n.selectDifference)},differenceRev:function(e,t){return f(e,t,n.selectDifferenceRev)},xor:function(e,t){return f(e,t,n.selectXor)}},"object"===typeof window&&(window.PolyBool=n),e.exports=n},98968:function(e,t,r){var n=r(772),i="undefined"!==typeof Float64Array;function a(e,t){return e[0]-t[0]}function o(){var e,t=this.stride,r=new Array(t.length);for(e=0;e=0&&(t+=a*(r=0|e),i-=r),new n(this.data,i,a,t)},i.step=function(e){var t=this.shape[0],r=this.stride[0],i=this.offset,a=0,o=Math.ceil;return"number"===typeof e&&((a=0|e)<0?(i+=r*(t-1),t=o(-t/a)):t=o(t/a),r*=a),new n(this.data,t,r,i)},i.transpose=function(e){e=void 0===e?0:0|e;var t=this.shape,r=this.stride;return new n(this.data,t[e],r[e],this.offset)},i.pick=function(e){var r=[],n=[],i=this.offset;return"number"===typeof e&&e>=0?i=i+this.stride[0]*e|0:(r.push(this.shape[0]),n.push(this.stride[0])),(0,t[r.length+1])(this.data,r,n,i)},function(e,t,r,i){return new n(e,t[0],r[0],i)}},2:function(e,t,r){function n(e,t,r,n,i,a){this.data=e,this.shape=[t,r],this.stride=[n,i],this.offset=0|a}var i=n.prototype;return i.dtype=e,i.dimension=2,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(i,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),i.set=function(t,r,n){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*r,n):this.data[this.offset+this.stride[0]*t+this.stride[1]*r]=n},i.get=function(t,r){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*r):this.data[this.offset+this.stride[0]*t+this.stride[1]*r]},i.index=function(e,t){return this.offset+this.stride[0]*e+this.stride[1]*t},i.hi=function(e,t){return new n(this.data,"number"!==typeof e||e<0?this.shape[0]:0|e,"number"!==typeof t||t<0?this.shape[1]:0|t,this.stride[0],this.stride[1],this.offset)},i.lo=function(e,t){var r=this.offset,i=0,a=this.shape[0],o=this.shape[1],s=this.stride[0],l=this.stride[1];return"number"===typeof e&&e>=0&&(r+=s*(i=0|e),a-=i),"number"===typeof t&&t>=0&&(r+=l*(i=0|t),o-=i),new n(this.data,a,o,s,l,r)},i.step=function(e,t){var r=this.shape[0],i=this.shape[1],a=this.stride[0],o=this.stride[1],s=this.offset,l=0,c=Math.ceil;return"number"===typeof e&&((l=0|e)<0?(s+=a*(r-1),r=c(-r/l)):r=c(r/l),a*=l),"number"===typeof t&&((l=0|t)<0?(s+=o*(i-1),i=c(-i/l)):i=c(i/l),o*=l),new n(this.data,r,i,a,o,s)},i.transpose=function(e,t){e=void 0===e?0:0|e,t=void 0===t?1:0|t;var r=this.shape,i=this.stride;return new n(this.data,r[e],r[t],i[e],i[t],this.offset)},i.pick=function(e,r){var n=[],i=[],a=this.offset;return"number"===typeof e&&e>=0?a=a+this.stride[0]*e|0:(n.push(this.shape[0]),i.push(this.stride[0])),"number"===typeof r&&r>=0?a=a+this.stride[1]*r|0:(n.push(this.shape[1]),i.push(this.stride[1])),(0,t[n.length+1])(this.data,n,i,a)},function(e,t,r,i){return new n(e,t[0],t[1],r[0],r[1],i)}},3:function(e,t,r){function n(e,t,r,n,i,a,o,s){this.data=e,this.shape=[t,r,n],this.stride=[i,a,o],this.offset=0|s}var i=n.prototype;return i.dtype=e,i.dimension=3,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(i,"order",{get:function(){var e=Math.abs(this.stride[0]),t=Math.abs(this.stride[1]),r=Math.abs(this.stride[2]);return e>t?t>r?[2,1,0]:e>r?[1,2,0]:[1,0,2]:e>r?[2,0,1]:r>t?[0,1,2]:[0,2,1]}}),i.set=function(t,r,n,i){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n,i):this.data[this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n]=i},i.get=function(t,r,n){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n):this.data[this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n]},i.index=function(e,t,r){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*r},i.hi=function(e,t,r){return new n(this.data,"number"!==typeof e||e<0?this.shape[0]:0|e,"number"!==typeof t||t<0?this.shape[1]:0|t,"number"!==typeof r||r<0?this.shape[2]:0|r,this.stride[0],this.stride[1],this.stride[2],this.offset)},i.lo=function(e,t,r){var i=this.offset,a=0,o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.stride[0],u=this.stride[1],h=this.stride[2];return"number"===typeof e&&e>=0&&(i+=c*(a=0|e),o-=a),"number"===typeof t&&t>=0&&(i+=u*(a=0|t),s-=a),"number"===typeof r&&r>=0&&(i+=h*(a=0|r),l-=a),new n(this.data,o,s,l,c,u,h,i)},i.step=function(e,t,r){var i=this.shape[0],a=this.shape[1],o=this.shape[2],s=this.stride[0],l=this.stride[1],c=this.stride[2],u=this.offset,h=0,f=Math.ceil;return"number"===typeof e&&((h=0|e)<0?(u+=s*(i-1),i=f(-i/h)):i=f(i/h),s*=h),"number"===typeof t&&((h=0|t)<0?(u+=l*(a-1),a=f(-a/h)):a=f(a/h),l*=h),"number"===typeof r&&((h=0|r)<0?(u+=c*(o-1),o=f(-o/h)):o=f(o/h),c*=h),new n(this.data,i,a,o,s,l,c,u)},i.transpose=function(e,t,r){e=void 0===e?0:0|e,t=void 0===t?1:0|t,r=void 0===r?2:0|r;var i=this.shape,a=this.stride;return new n(this.data,i[e],i[t],i[r],a[e],a[t],a[r],this.offset)},i.pick=function(e,r,n){var i=[],a=[],o=this.offset;return"number"===typeof e&&e>=0?o=o+this.stride[0]*e|0:(i.push(this.shape[0]),a.push(this.stride[0])),"number"===typeof r&&r>=0?o=o+this.stride[1]*r|0:(i.push(this.shape[1]),a.push(this.stride[1])),"number"===typeof n&&n>=0?o=o+this.stride[2]*n|0:(i.push(this.shape[2]),a.push(this.stride[2])),(0,t[i.length+1])(this.data,i,a,o)},function(e,t,r,i){return new n(e,t[0],t[1],t[2],r[0],r[1],r[2],i)}},4:function(e,t,r){function n(e,t,r,n,i,a,o,s,l,c){this.data=e,this.shape=[t,r,n,i],this.stride=[a,o,s,l],this.offset=0|c}var i=n.prototype;return i.dtype=e,i.dimension=4,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(t,r,n,i,a){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i,a):this.data[this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]=a},i.get=function(t,r,n,i){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i):this.data[this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]},i.index=function(e,t,r,n){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*r+this.stride[3]*n},i.hi=function(e,t,r,i){return new n(this.data,"number"!==typeof e||e<0?this.shape[0]:0|e,"number"!==typeof t||t<0?this.shape[1]:0|t,"number"!==typeof r||r<0?this.shape[2]:0|r,"number"!==typeof i||i<0?this.shape[3]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},i.lo=function(e,t,r,i){var a=this.offset,o=0,s=this.shape[0],l=this.shape[1],c=this.shape[2],u=this.shape[3],h=this.stride[0],f=this.stride[1],d=this.stride[2],p=this.stride[3];return"number"===typeof e&&e>=0&&(a+=h*(o=0|e),s-=o),"number"===typeof t&&t>=0&&(a+=f*(o=0|t),l-=o),"number"===typeof r&&r>=0&&(a+=d*(o=0|r),c-=o),"number"===typeof i&&i>=0&&(a+=p*(o=0|i),u-=o),new n(this.data,s,l,c,u,h,f,d,p,a)},i.step=function(e,t,r,i){var a=this.shape[0],o=this.shape[1],s=this.shape[2],l=this.shape[3],c=this.stride[0],u=this.stride[1],h=this.stride[2],f=this.stride[3],d=this.offset,p=0,g=Math.ceil;return"number"===typeof e&&((p=0|e)<0?(d+=c*(a-1),a=g(-a/p)):a=g(a/p),c*=p),"number"===typeof t&&((p=0|t)<0?(d+=u*(o-1),o=g(-o/p)):o=g(o/p),u*=p),"number"===typeof r&&((p=0|r)<0?(d+=h*(s-1),s=g(-s/p)):s=g(s/p),h*=p),"number"===typeof i&&((p=0|i)<0?(d+=f*(l-1),l=g(-l/p)):l=g(l/p),f*=p),new n(this.data,a,o,s,l,c,u,h,f,d)},i.transpose=function(e,t,r,i){e=void 0===e?0:0|e,t=void 0===t?1:0|t,r=void 0===r?2:0|r,i=void 0===i?3:0|i;var a=this.shape,o=this.stride;return new n(this.data,a[e],a[t],a[r],a[i],o[e],o[t],o[r],o[i],this.offset)},i.pick=function(e,r,n,i){var a=[],o=[],s=this.offset;return"number"===typeof e&&e>=0?s=s+this.stride[0]*e|0:(a.push(this.shape[0]),o.push(this.stride[0])),"number"===typeof r&&r>=0?s=s+this.stride[1]*r|0:(a.push(this.shape[1]),o.push(this.stride[1])),"number"===typeof n&&n>=0?s=s+this.stride[2]*n|0:(a.push(this.shape[2]),o.push(this.stride[2])),"number"===typeof i&&i>=0?s=s+this.stride[3]*i|0:(a.push(this.shape[3]),o.push(this.stride[3])),(0,t[a.length+1])(this.data,a,o,s)},function(e,t,r,i){return new n(e,t[0],t[1],t[2],t[3],r[0],r[1],r[2],r[3],i)}},5:function(e,t,r){function n(e,t,r,n,i,a,o,s,l,c,u,h){this.data=e,this.shape=[t,r,n,i,a],this.stride=[o,s,l,c,u],this.offset=0|h}var i=n.prototype;return i.dtype=e,i.dimension=5,Object.defineProperty(i,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(i,"order",{get:r}),i.set=function(t,r,n,i,a,o){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a,o):this.data[this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]=o},i.get=function(t,r,n,i,a){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a):this.data[this.offset+this.stride[0]*t+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]},i.index=function(e,t,r,n,i){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*r+this.stride[3]*n+this.stride[4]*i},i.hi=function(e,t,r,i,a){return new n(this.data,"number"!==typeof e||e<0?this.shape[0]:0|e,"number"!==typeof t||t<0?this.shape[1]:0|t,"number"!==typeof r||r<0?this.shape[2]:0|r,"number"!==typeof i||i<0?this.shape[3]:0|i,"number"!==typeof a||a<0?this.shape[4]:0|a,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},i.lo=function(e,t,r,i,a){var o=this.offset,s=0,l=this.shape[0],c=this.shape[1],u=this.shape[2],h=this.shape[3],f=this.shape[4],d=this.stride[0],p=this.stride[1],g=this.stride[2],m=this.stride[3],v=this.stride[4];return"number"===typeof e&&e>=0&&(o+=d*(s=0|e),l-=s),"number"===typeof t&&t>=0&&(o+=p*(s=0|t),c-=s),"number"===typeof r&&r>=0&&(o+=g*(s=0|r),u-=s),"number"===typeof i&&i>=0&&(o+=m*(s=0|i),h-=s),"number"===typeof a&&a>=0&&(o+=v*(s=0|a),f-=s),new n(this.data,l,c,u,h,f,d,p,g,m,v,o)},i.step=function(e,t,r,i,a){var o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.shape[3],u=this.shape[4],h=this.stride[0],f=this.stride[1],d=this.stride[2],p=this.stride[3],g=this.stride[4],m=this.offset,v=0,y=Math.ceil;return"number"===typeof e&&((v=0|e)<0?(m+=h*(o-1),o=y(-o/v)):o=y(o/v),h*=v),"number"===typeof t&&((v=0|t)<0?(m+=f*(s-1),s=y(-s/v)):s=y(s/v),f*=v),"number"===typeof r&&((v=0|r)<0?(m+=d*(l-1),l=y(-l/v)):l=y(l/v),d*=v),"number"===typeof i&&((v=0|i)<0?(m+=p*(c-1),c=y(-c/v)):c=y(c/v),p*=v),"number"===typeof a&&((v=0|a)<0?(m+=g*(u-1),u=y(-u/v)):u=y(u/v),g*=v),new n(this.data,o,s,l,c,u,h,f,d,p,g,m)},i.transpose=function(e,t,r,i,a){e=void 0===e?0:0|e,t=void 0===t?1:0|t,r=void 0===r?2:0|r,i=void 0===i?3:0|i,a=void 0===a?4:0|a;var o=this.shape,s=this.stride;return new n(this.data,o[e],o[t],o[r],o[i],o[a],s[e],s[t],s[r],s[i],s[a],this.offset)},i.pick=function(e,r,n,i,a){var o=[],s=[],l=this.offset;return"number"===typeof e&&e>=0?l=l+this.stride[0]*e|0:(o.push(this.shape[0]),s.push(this.stride[0])),"number"===typeof r&&r>=0?l=l+this.stride[1]*r|0:(o.push(this.shape[1]),s.push(this.stride[1])),"number"===typeof n&&n>=0?l=l+this.stride[2]*n|0:(o.push(this.shape[2]),s.push(this.stride[2])),"number"===typeof i&&i>=0?l=l+this.stride[3]*i|0:(o.push(this.shape[3]),s.push(this.stride[3])),"number"===typeof a&&a>=0?l=l+this.stride[4]*a|0:(o.push(this.shape[4]),s.push(this.stride[4])),(0,t[o.length+1])(this.data,o,s,l)},function(e,t,r,i){return new n(e,t[0],t[1],t[2],t[3],t[4],r[0],r[1],r[2],r[3],r[4],i)}}};function l(e,t){var r=-1===t?"T":String(t),n=s[r];return-1===t?n(e):0===t?n(e,c[e][0]):n(e,c[e],o)}var c={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};e.exports=function(e,t,r,a){if(void 0===e)return(0,c.array[0])([]);"number"===typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var o=t.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s>=0;--s)r[s]=u,u*=t[s]}if(void 0===a){a=0;for(s=0;so&&(o=n.length(b)),y){var _=2*n.distance(d,x)/(n.length(p)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(d=x,p=b),g.push(b)}var w=[s,c,h],T=[l,u,f];t&&(t[0]=w,t[1]=T),0===o&&(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var A=e.coneSize||.5;e.absoluteConeSize&&(A=e.absoluteConeSize*k),a.coneScale=A;y=0;for(var M=0;y2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),n(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(r,g),"="===m?f=g.showlines=!0:(f=r("contours.showlines"),p=r("fillcolor",o((e.line||{}).color||l,.5))),f)&&(d=r("line.color",p&&s(p)?o(t.fillcolor,1):l),r("line.width",2),r("line.dash"));r("line.smoothing"),i(r,a,d,h)}},99795:function(e,t,r){"use strict";var n=r(32237),i=r(45229),a=r(75501),o=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function s(e,t,r,n,i){this.gl=e,this.type=t,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(e,t,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a<0)return e.bufferData(t,i,n),o;if(o+a>r)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return e.bufferSubData(t,a,i),r}function u(e,t){for(var r=n.malloc(e.length,t),i=e.length,a=0;a=0;--n){if(t[n]!==r)return!1;r*=e[n]}return!0}(e.shape,e.stride))0===e.offset&&e.data.length===e.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,e.data,t):this.length=c(this.gl,this.type,this.length,this.usage,e.data.subarray(e.offset,e.shape[0]),t);else{var s=n.malloc(e.size,r),l=a(s,e.shape);i.assign(l,e),this.length=c(this.gl,this.type,this.length,this.usage,t<0?s:s.subarray(0,e.size),t),n.free(s)}}else if(Array.isArray(e)){var h;h=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(e,"uint16"):u(e,"float32"),this.length=c(this.gl,this.type,this.length,this.usage,t<0?h:h.subarray(0,e.length),t),n.free(h)}else if("object"===typeof e&&"number"===typeof e.length)this.length=c(this.gl,this.type,this.length,this.usage,e,t);else{if("number"!==typeof e&&void 0!==e)throw new Error("gl-buffer: Invalid data type");if(t>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(e|=0)<=0&&(e=1),this.gl.bufferData(this.type,0|e,this.usage),this.length=e}},e.exports=function(e,t,r,n){if(r=r||e.ARRAY_BUFFER,n=n||e.DYNAMIC_DRAW,r!==e.ARRAY_BUFFER&&r!==e.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(n!==e.DYNAMIC_DRAW&&n!==e.STATIC_DRAW&&n!==e.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var i=e.createBuffer(),a=new s(e,r,i,0,n);return a.update(t),a}},99803:function(e){"use strict";e.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},99874:function(e,t,r){"use strict";var n=["*pointcloud* trace is deprecated!","Please consider switching to the *scattergl* trace type."].join(" ");e.exports={attributes:r(26481),supplyDefaults:r(96022),calc:r(8809),plot:r(29177),moduleType:"trace",name:"pointcloud",basePlotModule:r(92198),categories:["gl","gl2d","showLegend"],meta:{description:[n,"The data visualized as a point cloud set in `x` and `y`","using the WebGl plotting engine."].join(" ")}}},99910:function(e,t,r){"use strict";e.exports={attributes:r(75805),supplyDefaults:r(29770),colorbar:r(78666),formatLabels:r(84834),calc:r(84945),calcGeoJSON:r(23655).calcGeoJSON,plot:r(23655).plot,style:r(53471),styleOnSelect:r(78608).styleOnSelect,hoverPoints:r(94284),eventData:r(18577),selectPoints:r(83596),moduleType:"trace",name:"scattergeo",basePlotModule:r(34024),categories:["geo","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_geo",description:["The data visualized as scatter point or lines on a geographic map","is provided either by longitude/latitude pairs in `lon` and `lat`","respectively or by geographic location IDs or names in `locations`."].join(" ")}}},99946:function(e,t,r){"use strict";var n=r(62258),i=r(47401),a=r(41707),o=r(9405).BADNUM,s=r(74835),l=r(77846).clearMinTextSize;function c(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(e,t,r,u){var h=e._fullLayout;l("funnel",h),function(e,t,r,s){var l=t.xaxis,u=t.yaxis;i.makeTraceGroups(s,r,"trace bars").each((function(r){var s=n.select(this),h=r[0].trace,f=i.ensureSingle(s,"g","regions");if(h.connector&&h.connector.visible){var d="h"===h.orientation,p=f.selectAll("g.region").data(i.identity);p.enter().append("g").classed("region",!0),p.exit().remove();var g=p.size();p.each((function(r,s){if(s===g-1||r.cNext){var h=c(r,l,u,d),f=h[0],p=h[1],m="";f[0]!==o&&p[0]!==o&&f[1]!==o&&p[1]!==o&&f[2]!==o&&p[2]!==o&&f[3]!==o&&p[3]!==o&&(m+=d?"M"+f[0]+","+p[1]+"L"+f[2]+","+p[2]+"H"+f[3]+"L"+f[1]+","+p[1]+"Z":"M"+f[1]+","+p[1]+"L"+f[2]+","+p[3]+"V"+p[2]+"L"+f[1]+","+p[0]+"Z"),""===m&&(m="M0,0Z"),i.ensureSingle(n.select(this),"path").attr("d",m).call(a.setClipUrl,t.layerClipId,e)}}))}else f.remove()}))}(e,t,r,u),function(e,t,r,o){var s=t.xaxis,l=t.yaxis;i.makeTraceGroups(o,r,"trace bars").each((function(r){var o=n.select(this),u=r[0].trace,h=i.ensureSingle(o,"g","lines");if(u.connector&&u.connector.visible&&u.connector.line.width){var f="h"===u.orientation,d=h.selectAll("g.line").data(i.identity);d.enter().append("g").classed("line",!0),d.exit().remove();var p=d.size();d.each((function(r,o){if(o===p-1||r.cNext){var u=c(r,s,l,f),h=u[0],d=u[1],g="";void 0!==h[3]&&void 0!==d[3]&&(f?(g+="M"+h[0]+","+d[1]+"L"+h[2]+","+d[2],g+="M"+h[1]+","+d[1]+"L"+h[3]+","+d[2]):(g+="M"+h[1]+","+d[1]+"L"+h[2]+","+d[3],g+="M"+h[1]+","+d[0]+"L"+h[2]+","+d[2])),""===g&&(g="M0,0Z"),i.ensureSingle(n.select(this),"path").attr("d",g).call(a.setClipUrl,t.layerClipId,e)}}))}else h.remove()}))}(e,t,r,u),s.plot(e,t,r,u,{mode:h.funnelmode,norm:h.funnelmode,gap:h.funnelgap,groupgap:h.funnelgroupgap})}}}]); +//# sourceMappingURL=7021.21cfd230.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7021.21cfd230.chunk.js.LICENSE.txt b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7021.21cfd230.chunk.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..e937e87f12a21d36d3bba478a0f18391bef12b10 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7021.21cfd230.chunk.js.LICENSE.txt @@ -0,0 +1,38 @@ +/* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + */ + +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/*! + * pad-left + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT license. + */ + +/*! + * repeat-string + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */ + +/*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org +*/ diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..e3f2983ec8b2fc9a2eadfdb8a4e815697e3517d8 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 7027.6961c163.chunk.js.LICENSE.txt */ +(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7027],{3298:function(e){"use strict";var n;e.exports=function(e){var t,a="&"+e+";";if((n=n||document.createElement("i")).innerHTML=a,59===(t=n.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==a&&t}},9124:function(e,n,t){"use strict";var a=t(93856);e.exports=a({space:"xml",transform:function(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},10282:function(e,n){"use strict";n.q=function(e){var n=String(e||t).trim();return n===t?[]:n.split(r)};var t="",a=" ",r=/[ \t\n\r\f]+/g},12396:function(e,n,t){"use strict";e.exports=t(92395)},14379:function(e){"use strict";e.exports=t;var n=t.prototype;function t(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}n.space=null,n.normal={},n.property={}},17729:function(e,n,t){"use strict";var a=t(74790),r=t(45316),o=t.n(r),l=(0,a.A)(o(),{});l.registerLanguage=function(e,n){return o().register(n)},n.A=l},21257:function(e){"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')},22469:function(e,n){"use strict";n.q=function(e){var n,a=[],o=String(e||r),l=o.indexOf(t),i=0,c=!1;for(;!c;)-1===l&&(l=o.length,c=!0),!(n=o.slice(i,l).trim())&&c||a.push(n),i=l+1,l=o.indexOf(t,i);return a};var t=",",a=" ",r=""},24994:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25708:function(e){"use strict";function n(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete e.languages.go["class-name"]}e.exports=n,n.displayName="go",n.aliases=[]},26196:function(e){e.exports=function(){for(var e={},t=0;t=48&&n<=57}},28324:function(e){"use strict";e.exports=function(e){var n="string"===typeof e?e.charCodeAt(0):e;return n>=97&&n<=122||n>=65&&n<=90}},33205:function(e){"use strict";e.exports=function(e){var n="string"===typeof e?e.charCodeAt(0):e;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}},34074:function(e,n,t){"use strict";var a=t(35078),r=t(62058),o=t(39954),l=t(10282).q,i=t(22469).q;e.exports=function(e,n,t){var r=t?function(e){var n,t=e.length,a=-1,r={};for(;++a4&&t.slice(0,4)===l&&i.test(n)&&("-"===n.charAt(4)?d=function(e){var n=e.slice(5).replace(c,p);return l+n.charAt(0).toUpperCase()+n.slice(1)}(n):n=function(e){var n=e.slice(4);if(c.test(n))return e;n=n.replace(s,u),"-"!==n.charAt(0)&&(n="-"+n);return l+n}(n),g=r);return new g(d,n)};var i=/^data[-\w.:]+$/i,c=/-[a-z]/g,s=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function p(e){return e.charAt(1).toUpperCase()}},37023:function(e,n){"use strict";var t=0;function a(){return Math.pow(2,++t)}n.boolean=a(),n.booleanish=a(),n.overloadedBoolean=a(),n.number=a(),n.spaceSeparated=a(),n.commaSeparated=a(),n.commaOrSpaceSeparated=a()},38298:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.useTimedToggle=void 0;var a=t(31014);n.useTimedToggle=function(e){var n=a.useState(!1),t=n[0],r=n[1],o=a.useRef(),l=a.useRef(e);return a.useEffect((function(){return function(){return clearTimeout(o.current)}}),[]),[t,function(e){clearTimeout(o.current),r(!l.current),o.current=window.setTimeout((function(){return r(l.current)}),e)}]}},39230:function(e){"use strict";function n(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=n,n.displayName="clike",n.aliases=[]},39954:function(e){"use strict";e.exports=function(e,t){var a,r,o,l=e||"",i=t||"div",c={},s=0;for(;s|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+t.source+"(?:[ \t]+"+n.source+")?|"+n.source+"(?:[ \t]+"+t.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(e,n){n=(n||"").replace(/m/g,"")+"m";var t=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return e}));return RegExp(t,n)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return a}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return"(?:"+r+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/true|false/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(o),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:t,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=n,n.displayName="yaml",n.aliases=["yml"]},62058:function(e){"use strict";e.exports=function(e){return e.toLowerCase()}},63514:function(e){"use strict";function n(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,t){var a={};a["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[t]},a.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:a}};r["language-"+t]={pattern:/[\s\S]+/,inside:e.languages[t]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return n})),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,t){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:e.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=n,n.displayName="markup",n.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},67122:function(e,n,t){"use strict";var a=t(24994);n.A=void 0;var r=a(t(25708)).default;n.A=r},67699:function(e,n,t){"use strict";var a=t(24994);n.A=void 0;var r=a(t(71193)).default;n.A=r},68908:function(e,n,t){"use strict";var a=t(46748),r=t(37023);e.exports=i,i.prototype=new a,i.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],l=o.length;function i(e,n,t,i){var s,u=-1;for(c(this,"space",i),a.call(this,e,n);++u","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},71193:function(e){"use strict";function n(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=n,n.displayName="javascript",n.aliases=["js"]},71348:function(e,n,t){"use strict";var a=t(37023),r=t(93856),o=t(45685),l=a.boolean,i=a.overloadedBoolean,c=a.booleanish,s=a.number,u=a.spaceSeparated,p=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:l,allowPaymentRequest:l,allowUserMedia:l,alt:null,as:null,async:l,autoCapitalize:null,autoComplete:u,autoFocus:l,autoPlay:l,capture:l,charSet:null,checked:l,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:c,controls:l,controlsList:u,coords:s|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:l,defer:l,dir:null,dirName:null,disabled:l,download:i,draggable:c,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:l,formTarget:null,headers:u,height:s,hidden:l,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:p,inputMode:null,integrity:null,is:null,isMap:l,itemId:null,itemProp:u,itemRef:u,itemScope:l,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:l,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:l,muted:l,name:null,nonce:null,noModule:l,noValidate:l,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:l,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:l,poster:null,preload:null,readOnly:l,referrerPolicy:null,rel:u,required:l,reversed:l,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:l,seamless:l,selected:l,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:c,src:null,srcDoc:null,srcLang:null,srcSet:p,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:l,useMap:null,value:c,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:l,declare:l,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:l,noHref:l,noShade:l,noWrap:l,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:c,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:l,disableRemotePlayback:l,prefix:null,property:null,results:s,security:null,unselectable:null}})},72670:function(e,n,t){"use strict";var a=t(24994);n.A=void 0;var r=a(t(83208)).default;n.A=r},74702:function(e,n,t){"use strict";var a=t(24994);n.A=void 0;var r=a(t(88288)).default;n.A=r},74790:function(e,n,t){"use strict";t.d(n,{A:function(){return S}});var a=t(80045),r=t(60436),o=t(64467);function l(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var n=e.join(".");return s[n]||(s[n]=function(e){var n=e.length;return 0===n||1===n?e:2===n?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===n?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:n>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),s[n]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,n){return l({},e,t[n])}),n)}function p(e){return e.join(" ")}function d(e){var n=e.node,t=e.stylesheet,a=e.style,r=void 0===a?{}:a,o=e.useInlineStyles,s=e.key,g=n.properties,f=n.type,m=n.tagName,h=n.value;if("text"===f)return h;if(m){var v,y=function(e,n){var t=0;return function(a){return t+=1,a.map((function(a,r){return d({node:a,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(t,"-").concat(r)})}))}}(t,o);if(o){var b=Object.keys(t).reduce((function(e,n){return n.split(".").forEach((function(n){e.includes(n)||e.push(n)})),e}),[]),E=g.className&&g.className.includes("token")?["token"]:[],A=g.className&&E.concat(g.className.filter((function(e){return!b.includes(e)})));v=l({},g,{className:p(A)||void 0,style:u(g.className,Object.assign({},g.style,r),t)})}else v=l({},g,{className:p(g.className)});var N=y(n.children);return i.createElement(m,(0,c.A)({key:s},v),N)}}var g=function(e,n){return-1!==e.listLanguages().indexOf(n)},f=/\n/g;function m(e){var n=e.codeString,t=e.codeStyle,a=e.containerStyle,r=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,l=void 0===o?{}:o,c=e.startingLineNumber;return i.createElement("code",{style:Object.assign({},t,r)},function(e){var n=e.lines,t=e.startingLineNumber,a=e.style;return n.map((function(e,n){var r=n+t;return i.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"===typeof a?a(r):a},"".concat(r,"\n"))}))}({lines:n.replace(/\n$/,"").split("\n"),style:l,startingLineNumber:c}))}function h(e,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:e}]}}function v(e,n,t){var a;return l({},{display:"inline-block",minWidth:(a=t,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},"function"===typeof e?e(n):e)}function y(e){var n=e.children,t=e.lineNumber,a=e.lineNumberStyle,r=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,c=void 0===i?{}:i,s=e.className,u=void 0===s?[]:s,p=e.showLineNumbers,d=e.wrapLongLines,g="function"===typeof c?c(t):c;if(g.className=u,t&&o){var f=v(a,t,r);n.unshift(h(t,f))}return d&p&&(g.style=l({},g.style,{display:"flex"})),{type:"element",tagName:"span",properties:g,children:n}}function b(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return n||s.length>0?function(e,n){return y({children:e,lineNumber:n,lineNumberStyle:i,largestLineNumber:l,showInlineLineNumbers:r,lineProps:t,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:a,wrapLongLines:c})}(e,o,s):function(e,n){if(a&&n&&r){var t=v(i,n,l);e.unshift(h(n,t))}return e}(e,o)}for(var E=function(){var e=u[g],n=e.children[0].value;if(n.match(f)){var t=n.split("\n");t.forEach((function(n,r){var l=a&&p.length+o,i={type:"text",value:"".concat(n,"\n")};if(0===r){var c=m(u.slice(d+1,g).concat(y({children:[i],className:e.properties.className})),l);p.push(c)}else if(r===t.length-1){if(u[g+1]&&u[g+1].children&&u[g+1].children[0]){var s=y({children:[{type:"text",value:"".concat(n)}],className:e.properties.className});u.splice(g+1,0,s)}else{var f=m([i],l,e.properties.className);p.push(f)}}else{var h=m([i],l,e.properties.className);p.push(h)}})),d=g}g++};g?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}e.exports=n,n.displayName="sql",n.aliases=[]},85778:function(e,n,t){"use strict";var a=t(26196),r=t(14379);e.exports=function(e){var n,t,o=e.length,l=[],i=[],c=-1;for(;++c]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=n,n.displayName="python",n.aliases=["py"]},89257:function(e,n,t){"use strict";var a=t(93856);e.exports=a({space:"xlink",transform:function(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},90304:function(e,n,t){"use strict";var a=t(28324),r=t(27025);e.exports=function(e){return a(e)||r(e)}},90386:function(e){"use strict";function n(e){!function(e){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[a,{pattern:RegExp(t+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return n.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}e.exports=n,n.displayName="java",n.aliases=[]},90495:function(e,n,t){"use strict";var a=t(93856),r=t(45685);e.exports=a({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})},92395:function(e,n,t){"use strict";var a=t(82748),r=t(34074)(a,"div");r.displayName="html",e.exports=r},93856:function(e,n,t){"use strict";var a=t(62058),r=t(14379),o=t(68908);e.exports=function(e){var n,t,l=e.space,i=e.mustUseProperty||[],c=e.attributes||{},s=e.properties,u=e.transform,p={},d={};for(n in s)t=new o(n,u(c,n),s[n],l),-1!==i.indexOf(n)&&(t.mustUseProperty=!0),p[n]=t,d[a(n)]=n,d[a(t.attribute)]=n;return new r(p,d,l)}},94856:function(e){"use strict";e.exports=function(e,n){return n in e?e[n]:n}},97926:function(e,n,t){"use strict";var a=t(69804),r=t(21257),o=t(27025),l=t(33205),i=t(90304),c=t(3298);e.exports=function(e,n){var t,o,l={};n||(n={});for(o in d)t=n[o],l[o]=null===t||void 0===t?d[o]:t;(l.position.indent||l.position.start)&&(l.indent=l.position.indent||[],l.position=l.position.start);return function(e,n){var t,o,l,d,_,$,G,H,z,W,Y,V,q,K,X,Z,Q,J,ee,ne=n.additional,te=n.nonTerminated,ae=n.text,re=n.reference,oe=n.warning,le=n.textContext,ie=n.referenceContext,ce=n.warningContext,se=n.position,ue=n.indent||[],pe=e.length,de=0,ge=-1,fe=se.column||1,me=se.line||1,he="",ve=[];"string"===typeof ne&&(ne=ne.charCodeAt(0));Z=ye(),H=oe?be:p,de--,pe++;for(;++de65535&&(W+=u(($-=65536)>>>10|55296),$=56320|1023&$),$=W+u($))):K!==T&&H(F,J)),$?(Ee(),Z=ye(),de=ee-1,fe+=ee-q+1,ve.push($),(Q=ye()).offset++,re&&re.call(ie,$,{start:Z,end:Q},e.slice(q-1,ee)),Z=Q):(d=e.slice(q-1,ee),he+=d,fe+=d.length,de=ee-1)}else 10===_&&(me++,ge++,fe=0),_===_?(he+=u(_),fe++):Ee();return ve.join("");function ye(){return{line:me,column:fe,offset:de+(se.offset||0)}}function be(e,n){var t=ye();t.column+=n,t.offset+=n,oe.call(ce,U[e],t,e)}function Ee(){he&&(ve.push(he),ae&&ae.call(le,he,{start:Z,end:ye()}),he="")}}(e,l)};var s={}.hasOwnProperty,u=String.fromCharCode,p=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g=9,f=10,m=12,h=32,v=38,y=59,b=60,E=61,A=35,N=88,S=120,x=65533,T="named",w="hexadecimal",L="decimal",I={};I[w]=16,I[L]=10;var O={};O[T]=i,O[L]=o,O[w]=l;var C=1,R=2,k=3,F=4,P=5,D=6,M=7,U={};function j(e){return e>=55296&&e<=57343||e>1114111}function B(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}U[C]="Named character references must be terminated by a semicolon",U[R]="Numeric character references must be terminated by a semicolon",U[k]="Named character references cannot be empty",U[F]="Numeric character references cannot be empty",U[P]="Named character references must be known",U[D]="Numeric character references cannot be disallowed",U[M]="Numeric character references cannot be outside the permissible Unicode range"},99201:function(e,n,t){var a=function(e){var n=/\blang(?:uage)?-([\w-]+)\b/i,t=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof o?new o(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/=p.reach);S+=N.value.length,N=N.next){var x=N.value;if(n.length>e.length)return;if(!(x instanceof o)){var T,w=1;if(y){if(!(T=l(A,S,e,v)))break;var L=T.index,I=T.index+T[0].length,O=S;for(O+=N.value.length;L>=O;)O+=(N=N.next).value.length;if(S=O-=N.value.length,N.value instanceof o)continue;for(var C=N;C!==n.tail&&(Op.reach&&(p.reach=P);var D=N.prev;if(k&&(D=s(n,D,k),S+=k.length),u(n,D,w),N=s(n,D,new o(d,h?r.tokenize(R,h):R,b,R)),F&&s(n,N,F),w>1){var M={cause:d+","+f,reach:P};i(e,n,t,N.prev,S,M),p&&M.reach>p.reach&&(p.reach=M.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function s(e,n,t){var a=n.next,r={value:t,prev:n,next:a};return n.next=r,a.prev=r,e.length++,r}function u(e,n,t){for(var a=n.next,r=0;r"+o.content+""},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),a=t.language,o=t.code,l=t.immediateClose;e.postMessage(r.highlight(o,r.languages[a],a)),l&&e.close()}),!1),r):r;var p=r.util.currentScript();function d(){r.manual||r.highlightAll()}if(p&&(r.filename=p.src,p.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&p&&p.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return r}("undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),"undefined"!==typeof t.g&&(t.g.Prism=a)}}]); +//# sourceMappingURL=7027.6961c163.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js.LICENSE.txt b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..b2e43014b0fd5e2c9151362a3809096144c72a88 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js.LICENSE.txt @@ -0,0 +1,10 @@ +/*! clipboard-copy. MIT License. Feross Aboukhadijeh */ + +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */ diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7f35e60694c42173c26b0017fabcffed737223d9 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/7027.6961c163.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/7027.6961c163.chunk.js","mappings":";kHAIA,IAAIA,EAIJC,EAAOC,QAEP,SAAsBC,GACpB,IACIC,EADAC,EAAS,IAAMF,EAAa,IAYhC,IATAH,EAAKA,GAAMM,SAASC,cAAc,MAC/BC,UAAYH,EATD,MAUdD,EAAOJ,EAAGS,aAODC,WAAWN,EAAKO,OAAS,IAAmC,SAAfR,EACpD,OAAO,EAIT,OAAOC,IAASC,GAAiBD,CACnC,C,oCC3BA,IAAIQ,EAASC,EAAQ,OAErBZ,EAAOC,QAAUU,EAAO,CACtBE,M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AhBkB,qBAAX6I,OACjBA,OAE6B,qBAAtBkwB,mBAAqCzsB,gBAAgBysB,kBAC1DzsB,KACA,CAAC,GAqoC+BrN,EAAOC,UAC3CD,EAAOC,QAAUmD,GAII,qBAAXkK,EAAAA,IACVA,EAAAA,EAAOlK,MAAQA,E","sources":["../node_modules/parse-entities/decode-entity.browser.js","../node_modules/property-information/lib/xml.js","../node_modules/space-separated-tokens/index.js","../node_modules/hastscript/index.js","../node_modules/property-information/lib/util/schema.js","../node_modules/react-syntax-highlighter/dist/esm/prism-light.js","../node_modules/comma-separated-tokens/index.js","../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../node_modules/refractor/lang/go.js","../node_modules/xtend/immutable.js","../node_modules/is-decimal/index.js","../node_modules/is-alphabetical/index.js","../node_modules/is-hexadecimal/index.js","../node_modules/hastscript/factory.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/yaml.js","../node_modules/property-information/find.js","../node_modules/property-information/lib/util/types.js","../node_modules/use-clipboard-copy/dist/useTimedToggle.js","../node_modules/refractor/lang/clike.js","../node_modules/hast-util-parse-selector/index.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/json.js","../node_modules/clipboard-copy/index.js","../node_modules/refractor/lang/css.js","../node_modules/refractor/core.js","../node_modules/property-information/lib/util/case-insensitive-transform.js","../node_modules/property-information/lib/util/info.js","../node_modules/refractor/lang/yaml.js","../node_modules/property-information/normalize.js","../node_modules/refractor/lang/markup.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/go.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/javascript.js","../node_modules/property-information/lib/util/defined-info.js","../node_modules/refractor/lang/javascript.js","../node_modules/property-information/lib/html.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/sql.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/python.js","../node_modules/@babel/runtime/helpers/esm/objectSpread.js","../node_modules/react-syntax-highlighter/dist/esm/create-element.js","../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js","../node_modules/react-syntax-highlighter/dist/esm/highlight.js","../node_modules/property-information/lib/aria.js","../node_modules/refractor/lang/json.js","../node_modules/react-syntax-highlighter/dist/cjs/languages/prism/java.js","../node_modules/property-information/html.js","../node_modules/refractor/lang/sql.js","../node_modules/property-information/lib/util/merge.js","../node_modules/refractor/lang/python.js","../node_modules/property-information/lib/xlink.js","../node_modules/is-alphanumerical/index.js","../node_modules/refractor/lang/java.js","../node_modules/property-information/lib/xmlns.js","../node_modules/hastscript/html.js","../node_modules/property-information/lib/util/create.js","../node_modules/property-information/lib/util/case-sensitive-transform.js","../node_modules/parse-entities/index.js","../node_modules/refractor/node_modules/prismjs/components/prism-core.js"],"sourcesContent":["'use strict'\n\n/* eslint-env browser */\n\nvar el\n\nvar semicolon = 59 // ';'\n\nmodule.exports = decodeEntity\n\nfunction decodeEntity(characters) {\n var entity = '&' + characters + ';'\n var char\n\n el = el || document.createElement('i')\n el.innerHTML = entity\n char = el.textContent\n\n // Some entities do not require the closing semicolon (`¬` - for instance),\n // which leads to situations where parsing the assumed entity of ¬it; will\n // result in the string `¬it;`. When we encounter a trailing semicolon after\n // parsing and the entity to decode was not a semicolon (`;`), we can\n // assume that the matching was incomplete\n if (char.charCodeAt(char.length - 1) === semicolon && characters !== 'semi') {\n return false\n }\n\n // If the decoded string is equal to the input, the entity was not valid\n return char === entity ? false : char\n}\n","'use strict'\n\nvar create = require('./util/create')\n\nmodule.exports = create({\n space: 'xml',\n transform: xmlTransform,\n properties: {\n xmlLang: null,\n xmlBase: null,\n xmlSpace: null\n }\n})\n\nfunction xmlTransform(_, prop) {\n return 'xml:' + prop.slice(3).toLowerCase()\n}\n","'use strict'\n\nexports.parse = parse\nexports.stringify = stringify\n\nvar empty = ''\nvar space = ' '\nvar whiteSpace = /[ \\t\\n\\r\\f]+/g\n\nfunction parse(value) {\n var input = String(value || empty).trim()\n return input === empty ? [] : input.split(whiteSpace)\n}\n\nfunction stringify(values) {\n return values.join(space).trim()\n}\n","'use strict'\n\nmodule.exports = require('./html')\n","'use strict'\n\nmodule.exports = Schema\n\nvar proto = Schema.prototype\n\nproto.space = null\nproto.normal = {}\nproto.property = {}\n\nfunction Schema(property, normal, space) {\n this.property = property\n this.normal = normal\n\n if (space) {\n this.space = space\n }\n}\n","import highlight from './highlight';\nimport refractor from 'refractor/core';\nvar SyntaxHighlighter = highlight(refractor, {});\n\nSyntaxHighlighter.registerLanguage = function (_, language) {\n return refractor.register(language);\n};\n\nexport default SyntaxHighlighter;","'use strict'\n\nexports.parse = parse\nexports.stringify = stringify\n\nvar comma = ','\nvar space = ' '\nvar empty = ''\n\n// Parse comma-separated tokens to an array.\nfunction parse(value) {\n var values = []\n var input = String(value || empty)\n var index = input.indexOf(comma)\n var lastIndex = 0\n var end = false\n var val\n\n while (!end) {\n if (index === -1) {\n index = input.length\n end = true\n }\n\n val = input.slice(lastIndex, index).trim()\n\n if (val || !end) {\n values.push(val)\n }\n\n lastIndex = index + 1\n index = input.indexOf(comma, lastIndex)\n }\n\n return values\n}\n\n// Compile an array to comma-separated tokens.\n// `options.padLeft` (default: `true`) pads a space left of each token, and\n// `options.padRight` (default: `false`) pads a space to the right of each token.\nfunction stringify(values, options) {\n var settings = options || {}\n var left = settings.padLeft === false ? empty : space\n var right = settings.padRight ? space : empty\n\n // Ensure the last empty entry is seen.\n if (values[values.length - 1] === empty) {\n values = values.concat(empty)\n }\n\n return values.join(right + comma + left).trim()\n}\n","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict'\n\nmodule.exports = go\ngo.displayName = 'go'\ngo.aliases = []\nfunction go(Prism) {\n Prism.languages.go = Prism.languages.extend('clike', {\n string: {\n pattern: /([\"'`])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1/,\n greedy: true\n },\n keyword:\n /\\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\\b/,\n boolean: /\\b(?:_|iota|nil|true|false)\\b/,\n number: /(?:\\b0x[a-f\\d]+|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:e[-+]?\\d+)?)i?/i,\n operator:\n /[*\\/%^!=]=?|\\+[=+]?|-[=-]?|\\|[=|]?|&(?:=|&|\\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\\.\\.\\./,\n builtin:\n /\\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\\b/\n })\n delete Prism.languages.go['class-name']\n}\n","module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n","'use strict'\n\nmodule.exports = decimal\n\n// Check if the given character code, or the character code at the first\n// character, is decimal.\nfunction decimal(character) {\n var code = typeof character === 'string' ? character.charCodeAt(0) : character\n\n return code >= 48 && code <= 57 /* 0-9 */\n}\n","'use strict'\n\nmodule.exports = alphabetical\n\n// Check if the given character code, or the character code at the first\n// character, is alphabetical.\nfunction alphabetical(character) {\n var code = typeof character === 'string' ? character.charCodeAt(0) : character\n\n return (\n (code >= 97 && code <= 122) /* a-z */ ||\n (code >= 65 && code <= 90) /* A-Z */\n )\n}\n","'use strict'\n\nmodule.exports = hexadecimal\n\n// Check if the given character code, or the character code at the first\n// character, is hexadecimal.\nfunction hexadecimal(character) {\n var code = typeof character === 'string' ? character.charCodeAt(0) : character\n\n return (\n (code >= 97 /* a */ && code <= 102) /* z */ ||\n (code >= 65 /* A */ && code <= 70) /* Z */ ||\n (code >= 48 /* A */ && code <= 57) /* Z */\n )\n}\n","'use strict'\n\nvar find = require('property-information/find')\nvar normalize = require('property-information/normalize')\nvar parseSelector = require('hast-util-parse-selector')\nvar spaces = require('space-separated-tokens').parse\nvar commas = require('comma-separated-tokens').parse\n\nmodule.exports = factory\n\nvar own = {}.hasOwnProperty\n\nfunction factory(schema, defaultTagName, caseSensitive) {\n var adjust = caseSensitive ? createAdjustMap(caseSensitive) : null\n\n return h\n\n // Hyperscript compatible DSL for creating virtual hast trees.\n function h(selector, properties) {\n var node = parseSelector(selector, defaultTagName)\n var children = Array.prototype.slice.call(arguments, 2)\n var name = node.tagName.toLowerCase()\n var property\n\n node.tagName = adjust && own.call(adjust, name) ? adjust[name] : name\n\n if (properties && isChildren(properties, node)) {\n children.unshift(properties)\n properties = null\n }\n\n if (properties) {\n for (property in properties) {\n addProperty(node.properties, property, properties[property])\n }\n }\n\n addChild(node.children, children)\n\n if (node.tagName === 'template') {\n node.content = {type: 'root', children: node.children}\n node.children = []\n }\n\n return node\n }\n\n function addProperty(properties, key, value) {\n var info\n var property\n var result\n\n // Ignore nullish and NaN values.\n if (value === null || value === undefined || value !== value) {\n return\n }\n\n info = find(schema, key)\n property = info.property\n result = value\n\n // Handle list values.\n if (typeof result === 'string') {\n if (info.spaceSeparated) {\n result = spaces(result)\n } else if (info.commaSeparated) {\n result = commas(result)\n } else if (info.commaOrSpaceSeparated) {\n result = spaces(commas(result).join(' '))\n }\n }\n\n // Accept `object` on style.\n if (property === 'style' && typeof value !== 'string') {\n result = style(result)\n }\n\n // Class-names (which can be added both on the `selector` and here).\n if (property === 'className' && properties.className) {\n result = properties.className.concat(result)\n }\n\n properties[property] = parsePrimitives(info, property, result)\n }\n}\n\nfunction isChildren(value, node) {\n return (\n typeof value === 'string' ||\n 'length' in value ||\n isNode(node.tagName, value)\n )\n}\n\nfunction isNode(tagName, value) {\n var type = value.type\n\n if (tagName === 'input' || !type || typeof type !== 'string') {\n return false\n }\n\n if (typeof value.children === 'object' && 'length' in value.children) {\n return true\n }\n\n type = type.toLowerCase()\n\n if (tagName === 'button') {\n return (\n type !== 'menu' &&\n type !== 'submit' &&\n type !== 'reset' &&\n type !== 'button'\n )\n }\n\n return 'value' in value\n}\n\nfunction addChild(nodes, value) {\n var index\n var length\n\n if (typeof value === 'string' || typeof value === 'number') {\n nodes.push({type: 'text', value: String(value)})\n return\n }\n\n if (typeof value === 'object' && 'length' in value) {\n index = -1\n length = value.length\n\n while (++index < length) {\n addChild(nodes, value[index])\n }\n\n return\n }\n\n if (typeof value !== 'object' || !('type' in value)) {\n throw new Error('Expected node, nodes, or string, got `' + value + '`')\n }\n\n nodes.push(value)\n}\n\n// Parse a (list of) primitives.\nfunction parsePrimitives(info, name, value) {\n var index\n var length\n var result\n\n if (typeof value !== 'object' || !('length' in value)) {\n return parsePrimitive(info, name, value)\n }\n\n length = value.length\n index = -1\n result = []\n\n while (++index < length) {\n result[index] = parsePrimitive(info, name, value[index])\n }\n\n return result\n}\n\n// Parse a single primitives.\nfunction parsePrimitive(info, name, value) {\n var result = value\n\n if (info.number || info.positiveNumber) {\n if (!isNaN(result) && result !== '') {\n result = Number(result)\n }\n } else if (info.boolean || info.overloadedBoolean) {\n // Accept `boolean` and `string`.\n if (\n typeof result === 'string' &&\n (result === '' || normalize(value) === normalize(name))\n ) {\n result = true\n }\n }\n\n return result\n}\n\nfunction style(value) {\n var result = []\n var key\n\n for (key in value) {\n result.push([key, value[key]].join(': '))\n }\n\n return result.join('; ')\n}\n\nfunction createAdjustMap(values) {\n var length = values.length\n var index = -1\n var result = {}\n var value\n\n while (++index < length) {\n value = values[index]\n result[value.toLowerCase()] = value\n }\n\n return result\n}\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _yaml = _interopRequireDefault(require(\"refractor/lang/yaml.js\"));\n\n;\nvar _default = _yaml.default;\nexports.default = _default;","'use strict'\n\nvar normalize = require('./normalize')\nvar DefinedInfo = require('./lib/util/defined-info')\nvar Info = require('./lib/util/info')\n\nvar data = 'data'\n\nmodule.exports = find\n\nvar valid = /^data[-\\w.:]+$/i\nvar dash = /-[a-z]/g\nvar cap = /[A-Z]/g\n\nfunction find(schema, value) {\n var normal = normalize(value)\n var prop = value\n var Type = Info\n\n if (normal in schema.normal) {\n return schema.property[schema.normal[normal]]\n }\n\n if (normal.length > 4 && normal.slice(0, 4) === data && valid.test(value)) {\n // Attribute or property.\n if (value.charAt(4) === '-') {\n prop = datasetToProperty(value)\n } else {\n value = datasetToAttribute(value)\n }\n\n Type = DefinedInfo\n }\n\n return new Type(prop, value)\n}\n\nfunction datasetToProperty(attribute) {\n var value = attribute.slice(5).replace(dash, camelcase)\n return data + value.charAt(0).toUpperCase() + value.slice(1)\n}\n\nfunction datasetToAttribute(property) {\n var value = property.slice(4)\n\n if (dash.test(value)) {\n return property\n }\n\n value = value.replace(cap, kebab)\n\n if (value.charAt(0) !== '-') {\n value = '-' + value\n }\n\n return data + value\n}\n\nfunction kebab($0) {\n return '-' + $0.toLowerCase()\n}\n\nfunction camelcase($0) {\n return $0.charAt(1).toUpperCase()\n}\n","'use strict'\n\nvar powers = 0\n\nexports.boolean = increment()\nexports.booleanish = increment()\nexports.overloadedBoolean = increment()\nexports.number = increment()\nexports.spaceSeparated = increment()\nexports.commaSeparated = increment()\nexports.commaOrSpaceSeparated = increment()\n\nfunction increment() {\n return Math.pow(2, ++powers)\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useTimedToggle = void 0;\nvar react_1 = require(\"react\");\nfunction useTimedToggle(initialValue) {\n var _a = react_1.useState(false), value = _a[0], setValue = _a[1];\n var timeoutRef = react_1.useRef();\n var initialValueRef = react_1.useRef(initialValue);\n var toggleValue = function (timeout) {\n clearTimeout(timeoutRef.current);\n setValue(!initialValueRef.current);\n timeoutRef.current = window.setTimeout(function () { return setValue(initialValueRef.current); }, timeout);\n };\n react_1.useEffect(function () { return function () { return clearTimeout(timeoutRef.current); }; }, []);\n return [value, toggleValue];\n}\nexports.useTimedToggle = useTimedToggle;\n","'use strict'\n\nmodule.exports = clike\nclike.displayName = 'clike'\nclike.aliases = []\nfunction clike(Prism) {\n Prism.languages.clike = {\n comment: [\n {\n pattern: /(^|[^\\\\])\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n lookbehind: true,\n greedy: true\n },\n {\n pattern: /(^|[^\\\\:])\\/\\/.*/,\n lookbehind: true,\n greedy: true\n }\n ],\n string: {\n pattern: /([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n greedy: true\n },\n 'class-name': {\n pattern:\n /(\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,\n lookbehind: true,\n inside: {\n punctuation: /[.\\\\]/\n }\n },\n keyword:\n /\\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,\n boolean: /\\b(?:true|false)\\b/,\n function: /\\b\\w+(?=\\()/,\n number: /\\b0x[\\da-f]+\\b|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:e[+-]?\\d+)?/i,\n operator: /[<>]=?|[!=]=?=?|--?|\\+\\+?|&&?|\\|\\|?|[?*/~^%]/,\n punctuation: /[{}[\\];(),.:]/\n }\n}\n","'use strict'\n\nmodule.exports = parse\n\nvar search = /[#.]/g\n\n// Create a hast element from a simple CSS selector.\nfunction parse(selector, defaultTagName) {\n var value = selector || ''\n var name = defaultTagName || 'div'\n var props = {}\n var start = 0\n var subvalue\n var previous\n var match\n\n while (start < value.length) {\n search.lastIndex = start\n match = search.exec(value)\n subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n name = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (props.className) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {type: 'element', tagName: name, properties: props, children: []}\n}\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _json = _interopRequireDefault(require(\"refractor/lang/json.js\"));\n\n;\nvar _default = _json.default;\nexports.default = _default;","/*! clipboard-copy. MIT License. Feross Aboukhadijeh */\n/* global DOMException */\n\nmodule.exports = clipboardCopy\n\nfunction clipboardCopy (text) {\n // Use the Async Clipboard API when available. Requires a secure browsing\n // context (i.e. HTTPS)\n if (navigator.clipboard) {\n return navigator.clipboard.writeText(text).catch(function (err) {\n throw (err !== undefined ? err : new DOMException('The request is not allowed', 'NotAllowedError'))\n })\n }\n\n // ...Otherwise, use document.execCommand() fallback\n\n // Put the text to copy into a \n var span = document.createElement('span')\n span.textContent = text\n\n // Preserve consecutive spaces and newlines\n span.style.whiteSpace = 'pre'\n span.style.webkitUserSelect = 'auto'\n span.style.userSelect = 'all'\n\n // Add the to the page\n document.body.appendChild(span)\n\n // Make a selection object representing the range of text selected by the user\n var selection = window.getSelection()\n var range = window.document.createRange()\n selection.removeAllRanges()\n range.selectNode(span)\n selection.addRange(range)\n\n // Copy text to the clipboard\n var success = false\n try {\n success = window.document.execCommand('copy')\n } catch (err) {\n console.log('error', err)\n }\n\n // Cleanup\n selection.removeAllRanges()\n window.document.body.removeChild(span)\n\n return success\n ? Promise.resolve()\n : Promise.reject(new DOMException('The request is not allowed', 'NotAllowedError'))\n}\n","'use strict'\n\nmodule.exports = css\ncss.displayName = 'css'\ncss.aliases = []\nfunction css(Prism) {\n ;(function (Prism) {\n var string =\n /(?:\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"|'(?:\\\\(?:\\r\\n|[\\s\\S])|[^'\\\\\\r\\n])*')/\n Prism.languages.css = {\n comment: /\\/\\*[\\s\\S]*?\\*\\//,\n atrule: {\n pattern: /@[\\w-](?:[^;{\\s]|\\s+(?![\\s{]))*(?:;|(?=\\s*\\{))/,\n inside: {\n rule: /^@[\\w-]+/,\n 'selector-function-argument': {\n pattern:\n /(\\bselector\\s*\\(\\s*(?![\\s)]))(?:[^()\\s]|\\s+(?![\\s)])|\\((?:[^()]|\\([^()]*\\))*\\))+(?=\\s*\\))/,\n lookbehind: true,\n alias: 'selector'\n },\n keyword: {\n pattern: /(^|[^\\w-])(?:and|not|only|or)(?![\\w-])/,\n lookbehind: true\n } // See rest below\n }\n },\n url: {\n // https://drafts.csswg.org/css-values-3/#urls\n pattern: RegExp(\n '\\\\burl\\\\((?:' +\n string.source +\n '|' +\n /(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*/.source +\n ')\\\\)',\n 'i'\n ),\n greedy: true,\n inside: {\n function: /^url/i,\n punctuation: /^\\(|\\)$/,\n string: {\n pattern: RegExp('^' + string.source + '$'),\n alias: 'url'\n }\n }\n },\n selector: {\n pattern: RegExp(\n '(^|[{}\\\\s])[^{}\\\\s](?:[^{};\"\\'\\\\s]|\\\\s+(?![\\\\s{])|' +\n string.source +\n ')*(?=\\\\s*\\\\{)'\n ),\n lookbehind: true\n },\n string: {\n pattern: string,\n greedy: true\n },\n property: {\n pattern:\n /(^|[^-\\w\\xA0-\\uFFFF])(?!\\s)[-_a-z\\xA0-\\uFFFF](?:(?!\\s)[-\\w\\xA0-\\uFFFF])*(?=\\s*:)/i,\n lookbehind: true\n },\n important: /!important\\b/i,\n function: {\n pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\\()/i,\n lookbehind: true\n },\n punctuation: /[(){};:,]/\n }\n Prism.languages.css['atrule'].inside.rest = Prism.languages.css\n var markup = Prism.languages.markup\n if (markup) {\n markup.tag.addInlined('style', 'css')\n markup.tag.addAttribute('style', 'css')\n }\n })(Prism)\n}\n","'use strict'\n\n/* global window, self */\n\n// istanbul ignore next - Don't allow Prism to run on page load in browser or\n// to start messaging from workers.\nvar ctx =\n typeof globalThis === 'object'\n ? globalThis\n : typeof self === 'object'\n ? self\n : typeof window === 'object'\n ? window\n : typeof global === 'object'\n ? global\n : {}\n\nvar restore = capture()\n\nctx.Prism = {manual: true, disableWorkerMessageHandler: true}\n\n// Load all stuff in `prism.js` itself, except for `prism-file-highlight.js`.\n// The wrapped non-leaky grammars are loaded instead of Prism’s originals.\nvar h = require('hastscript')\nvar decode = require('parse-entities')\nvar Prism = require('prismjs/components/prism-core')\nvar markup = require('./lang/markup')\nvar css = require('./lang/css')\nvar clike = require('./lang/clike')\nvar js = require('./lang/javascript')\n\nrestore()\n\nvar own = {}.hasOwnProperty\n\n// Inherit.\nfunction Refractor() {}\n\nRefractor.prototype = Prism\n\n// Construct.\nvar refract = new Refractor()\n\n// Expose.\nmodule.exports = refract\n\n// Create.\nrefract.highlight = highlight\nrefract.register = register\nrefract.alias = alias\nrefract.registered = registered\nrefract.listLanguages = listLanguages\n\n// Register bundled grammars.\nregister(markup)\nregister(css)\nregister(clike)\nregister(js)\n\nrefract.util.encode = encode\nrefract.Token.stringify = stringify\n\nfunction register(grammar) {\n if (typeof grammar !== 'function' || !grammar.displayName) {\n throw new Error('Expected `function` for `grammar`, got `' + grammar + '`')\n }\n\n // Do not duplicate registrations.\n if (refract.languages[grammar.displayName] === undefined) {\n grammar(refract)\n }\n}\n\nfunction alias(name, alias) {\n var languages = refract.languages\n var map = name\n var key\n var list\n var length\n var index\n\n if (alias) {\n map = {}\n map[name] = alias\n }\n\n for (key in map) {\n list = map[key]\n list = typeof list === 'string' ? [list] : list\n length = list.length\n index = -1\n\n while (++index < length) {\n languages[list[index]] = languages[key]\n }\n }\n}\n\nfunction highlight(value, name) {\n var sup = Prism.highlight\n var grammar\n\n if (typeof value !== 'string') {\n throw new Error('Expected `string` for `value`, got `' + value + '`')\n }\n\n // `name` is a grammar object.\n if (refract.util.type(name) === 'Object') {\n grammar = name\n name = null\n } else {\n if (typeof name !== 'string') {\n throw new Error('Expected `string` for `name`, got `' + name + '`')\n }\n\n if (own.call(refract.languages, name)) {\n grammar = refract.languages[name]\n } else {\n throw new Error('Unknown language: `' + name + '` is not registered')\n }\n }\n\n return sup.call(this, value, grammar, name)\n}\n\nfunction registered(language) {\n if (typeof language !== 'string') {\n throw new Error('Expected `string` for `language`, got `' + language + '`')\n }\n\n return own.call(refract.languages, language)\n}\n\nfunction listLanguages() {\n var languages = refract.languages\n var list = []\n var language\n\n for (language in languages) {\n if (\n own.call(languages, language) &&\n typeof languages[language] === 'object'\n ) {\n list.push(language)\n }\n }\n\n return list\n}\n\nfunction stringify(value, language, parent) {\n var env\n\n if (typeof value === 'string') {\n return {type: 'text', value: value}\n }\n\n if (refract.util.type(value) === 'Array') {\n return stringifyAll(value, language)\n }\n\n env = {\n type: value.type,\n content: refract.Token.stringify(value.content, language, parent),\n tag: 'span',\n classes: ['token', value.type],\n attributes: {},\n language: language,\n parent: parent\n }\n\n if (value.alias) {\n env.classes = env.classes.concat(value.alias)\n }\n\n refract.hooks.run('wrap', env)\n\n return h(\n env.tag + '.' + env.classes.join('.'),\n attributes(env.attributes),\n env.content\n )\n}\n\nfunction stringifyAll(values, language) {\n var result = []\n var length = values.length\n var index = -1\n var value\n\n while (++index < length) {\n value = values[index]\n\n if (value !== '' && value !== null && value !== undefined) {\n result.push(value)\n }\n }\n\n index = -1\n length = result.length\n\n while (++index < length) {\n value = result[index]\n result[index] = refract.Token.stringify(value, language, result)\n }\n\n return result\n}\n\nfunction encode(tokens) {\n return tokens\n}\n\nfunction attributes(attrs) {\n var key\n\n for (key in attrs) {\n attrs[key] = decode(attrs[key])\n }\n\n return attrs\n}\n\nfunction capture() {\n var defined = 'Prism' in ctx\n /* istanbul ignore next */\n var current = defined ? ctx.Prism : undefined\n\n return restore\n\n function restore() {\n /* istanbul ignore else - Clean leaks after Prism. */\n if (defined) {\n ctx.Prism = current\n } else {\n delete ctx.Prism\n }\n\n defined = undefined\n current = undefined\n }\n}\n","'use strict'\n\nvar caseSensitiveTransform = require('./case-sensitive-transform')\n\nmodule.exports = caseInsensitiveTransform\n\nfunction caseInsensitiveTransform(attributes, property) {\n return caseSensitiveTransform(attributes, property.toLowerCase())\n}\n","'use strict'\n\nmodule.exports = Info\n\nvar proto = Info.prototype\n\nproto.space = null\nproto.attribute = null\nproto.property = null\nproto.boolean = false\nproto.booleanish = false\nproto.overloadedBoolean = false\nproto.number = false\nproto.commaSeparated = false\nproto.spaceSeparated = false\nproto.commaOrSpaceSeparated = false\nproto.mustUseProperty = false\nproto.defined = false\n\nfunction Info(property, attribute) {\n this.property = property\n this.attribute = attribute\n}\n","'use strict'\n\nmodule.exports = yaml\nyaml.displayName = 'yaml'\nyaml.aliases = ['yml']\nfunction yaml(Prism) {\n ;(function (Prism) {\n // https://yaml.org/spec/1.2/spec.html#c-ns-anchor-property\n // https://yaml.org/spec/1.2/spec.html#c-ns-alias-node\n var anchorOrAlias = /[*&][^\\s[\\]{},]+/ // https://yaml.org/spec/1.2/spec.html#c-ns-tag-property\n var tag =\n /!(?:<[\\w\\-%#;/?:@&=+$,.!~*'()[\\]]+>|(?:[a-zA-Z\\d-]*!)?[\\w\\-%#;/?:@&=+$.~*'()]+)?/ // https://yaml.org/spec/1.2/spec.html#c-ns-properties(n,c)\n var properties =\n '(?:' +\n tag.source +\n '(?:[ \\t]+' +\n anchorOrAlias.source +\n ')?|' +\n anchorOrAlias.source +\n '(?:[ \\t]+' +\n tag.source +\n ')?)' // https://yaml.org/spec/1.2/spec.html#ns-plain(n,c)\n // This is a simplified version that doesn't support \"#\" and multiline keys\n // All these long scarry character classes are simplified versions of YAML's characters\n var plainKey =\n /(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-])(?:[ \\t]*(?:(?![#:])|:))*/.source.replace(\n //g,\n function () {\n return /[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]/\n .source\n }\n )\n var string = /\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^'\\\\\\r\\n]|\\\\.)*'/.source\n /**\n *\n * @param {string} value\n * @param {string} [flags]\n * @returns {RegExp}\n */\n function createValuePattern(value, flags) {\n flags = (flags || '').replace(/m/g, '') + 'm' // add m flag\n var pattern =\n /([:\\-,[{]\\s*(?:\\s<>[ \\t]+)?)(?:<>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))/.source\n .replace(/<>/g, function () {\n return properties\n })\n .replace(/<>/g, function () {\n return value\n })\n return RegExp(pattern, flags)\n }\n Prism.languages.yaml = {\n scalar: {\n pattern: RegExp(\n /([\\-:]\\s*(?:\\s<>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)/.source.replace(\n /<>/g,\n function () {\n return properties\n }\n )\n ),\n lookbehind: true,\n alias: 'string'\n },\n comment: /#.*/,\n key: {\n pattern: RegExp(\n /((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<>[ \\t]+)?)<>(?=\\s*:\\s)/.source\n .replace(/<>/g, function () {\n return properties\n })\n .replace(/<>/g, function () {\n return '(?:' + plainKey + '|' + string + ')'\n })\n ),\n lookbehind: true,\n greedy: true,\n alias: 'atrule'\n },\n directive: {\n pattern: /(^[ \\t]*)%.+/m,\n lookbehind: true,\n alias: 'important'\n },\n datetime: {\n pattern: createValuePattern(\n /\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?/\n .source\n ),\n lookbehind: true,\n alias: 'number'\n },\n boolean: {\n pattern: createValuePattern(/true|false/.source, 'i'),\n lookbehind: true,\n alias: 'important'\n },\n null: {\n pattern: createValuePattern(/null|~/.source, 'i'),\n lookbehind: true,\n alias: 'important'\n },\n string: {\n pattern: createValuePattern(string),\n lookbehind: true,\n greedy: true\n },\n number: {\n pattern: createValuePattern(\n /[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)/\n .source,\n 'i'\n ),\n lookbehind: true\n },\n tag: tag,\n important: anchorOrAlias,\n punctuation: /---|[:[\\]{}\\-,|>?]|\\.\\.\\./\n }\n Prism.languages.yml = Prism.languages.yaml\n })(Prism)\n}\n","'use strict'\n\nmodule.exports = normalize\n\nfunction normalize(value) {\n return value.toLowerCase()\n}\n","'use strict'\n\nmodule.exports = markup\nmarkup.displayName = 'markup'\nmarkup.aliases = ['html', 'mathml', 'svg', 'xml', 'ssml', 'atom', 'rss']\nfunction markup(Prism) {\n Prism.languages.markup = {\n comment: {\n pattern: //,\n greedy: true\n },\n prolog: {\n pattern: /<\\?[\\s\\S]+?\\?>/,\n greedy: true\n },\n doctype: {\n // https://www.w3.org/TR/xml/#NT-doctypedecl\n pattern:\n /\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|)*\\]\\s*)?>/i,\n greedy: true,\n inside: {\n 'internal-subset': {\n pattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n lookbehind: true,\n greedy: true,\n inside: null // see below\n },\n string: {\n pattern: /\"[^\"]*\"|'[^']*'/,\n greedy: true\n },\n punctuation: /^$|[[\\]]/,\n 'doctype-tag': /^DOCTYPE/i,\n name: /[^\\s<>'\"]+/\n }\n },\n cdata: {\n pattern: //i,\n greedy: true\n },\n tag: {\n pattern:\n /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n greedy: true,\n inside: {\n tag: {\n pattern: /^<\\/?[^\\s>\\/]+/,\n inside: {\n punctuation: /^<\\/?/,\n namespace: /^[^\\s>\\/:]+:/\n }\n },\n 'special-attr': [],\n 'attr-value': {\n pattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n inside: {\n punctuation: [\n {\n pattern: /^=/,\n alias: 'attr-equals'\n },\n /\"|'/\n ]\n }\n },\n punctuation: /\\/?>/,\n 'attr-name': {\n pattern: /[^\\s>\\/]+/,\n inside: {\n namespace: /^[^\\s>\\/:]+:/\n }\n }\n }\n },\n entity: [\n {\n pattern: /&[\\da-z]{1,8};/i,\n alias: 'named-entity'\n },\n /&#x?[\\da-f]{1,8};/i\n ]\n }\n Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n Prism.languages.markup['entity']\n Prism.languages.markup['doctype'].inside['internal-subset'].inside =\n Prism.languages.markup // Plugin to make entity title show the real entity, idea by Roman Komarov\n Prism.hooks.add('wrap', function (env) {\n if (env.type === 'entity') {\n env.attributes['title'] = env.content.value.replace(/&/, '&')\n }\n })\n Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n /**\n * Adds an inlined language to markup.\n *\n * An example of an inlined language is CSS with `\n\n
\n
\n
\n
\n
\n
\n
\n `,[t,e]}setOptions(t){if(this.options.container!==t.container){const e=this.parentFromOptionsContainer(t.container);e.appendChild(this.container),this.parent=e}!0!==t.dragToSeek&&"object"!=typeof this.options.dragToSeek||this.initDrag(),this.options=t,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(t){this.scrollContainer.scrollLeft=t}setScrollPercentage(t){const{scrollWidth:e}=this.scrollContainer,i=e*t;this.setScroll(i)}destroy(){var t,e;this.subscriptions.forEach((t=>t())),this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(e=this.unsubscribeOnScroll)||void 0===e||e.call(this)}createDelay(t=10){let e,i;const s=()=>{e&&clearTimeout(e),i&&i()};return this.timeouts.push(s),()=>new Promise(((n,r)=>{s(),i=r,e=setTimeout((()=>{e=void 0,i=void 0,n()}),t)}))}convertColorValues(t){if(!Array.isArray(t))return t||"";if(t.length<2)return t[0]||"";const e=document.createElement("canvas"),i=e.getContext("2d"),s=e.height*(window.devicePixelRatio||1),n=i.createLinearGradient(0,0,0,s),r=1/(t.length-1);return t.forEach(((t,e)=>{const i=e*r;n.addColorStop(i,t)})),n}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(t,e,i,s){const n=t[0],r=t[1]||t[0],o=n.length,{width:a,height:h}=i.canvas,l=h/2,d=this.getPixelRatio(),c=e.barWidth?e.barWidth*d:1,u=e.barGap?e.barGap*d:e.barWidth?c/2:0,p=e.barRadius||0,m=a/(c+u)/o,f=p&&"roundRect"in i?"roundRect":"rect";i.beginPath();let g=0,v=0,b=0;for(let y=0;y<=o;y++){const t=Math.round(y*m);if(t>g){const n=Math.round(v*l*s),r=n+Math.round(b*l*s)||1;let o=l-n;"top"===e.barAlign?o=0:"bottom"===e.barAlign&&(o=h-r),i[f](g*(c+u),o,c,r,p),g=t,v=0,b=0}const o=Math.abs(n[y]||0),a=Math.abs(r[y]||0);o>v&&(v=o),a>b&&(b=a)}i.fill(),i.closePath()}renderLineWaveform(t,e,i,s){const n=e=>{const n=t[e]||t[0],r=n.length,{height:o}=i.canvas,a=o/2,h=i.canvas.width/r;i.moveTo(0,a);let l=0,d=0;for(let t=0;t<=r;t++){const r=Math.round(t*h);if(r>l){const t=a+(Math.round(d*a*s)||1)*(0===e?-1:1);i.lineTo(l,t),l=r,d=0}const o=Math.abs(n[t]||0);o>d&&(d=o)}i.lineTo(l,a)};i.beginPath(),n(0),n(1),i.fill(),i.closePath()}renderWaveform(t,e,i){if(i.fillStyle=this.convertColorValues(e.waveColor),e.renderFunction)return void e.renderFunction(t,i);let s=e.barHeight||1;if(e.normalize){const e=Array.from(t[0]).reduce(((t,e)=>Math.max(t,Math.abs(e))),0);s=e?1/e:1}e.barWidth||e.barGap||e.barAlign?this.renderBarWaveform(t,e,i,s):this.renderLineWaveform(t,e,i,s)}renderSingleCanvas(t,e,i,s,n,r,o){const a=this.getPixelRatio(),h=document.createElement("canvas");h.width=Math.round(i*a),h.height=Math.round(s*a),h.style.width=`${i}px`,h.style.height=`${s}px`,h.style.left=`${Math.round(n)}px`,r.appendChild(h);const l=h.getContext("2d");if(this.renderWaveform(t,e,l),h.width>0&&h.height>0){const t=h.cloneNode(),i=t.getContext("2d");i.drawImage(h,0,0),i.globalCompositeOperation="source-in",i.fillStyle=this.convertColorValues(e.progressColor),i.fillRect(0,0,h.width,h.height),o.appendChild(t)}}renderMultiCanvas(t,e,i,s,n,r){const o=this.getPixelRatio(),{clientWidth:a}=this.scrollContainer,h=i/o;let l=Math.min(p.MAX_CANVAS_WIDTH,a,h),d={};if(e.barWidth||e.barGap){const t=e.barWidth||.5,i=t+(e.barGap||t/2);l%i!=0&&(l=Math.floor(l/i)*i)}const c=i=>{if(i<0||i>=u)return;if(d[i])return;d[i]=!0;const o=i*l,a=Math.min(h-o,l);if(a<=0)return;const c=t.map((t=>{const e=Math.floor(o/h*t.length),i=Math.floor((o+a)/h*t.length);return t.slice(e,i)}));this.renderSingleCanvas(c,e,a,s,o,n,r)},u=Math.ceil(h/l);if(!this.isScrollable){for(let t=0;t1&&(this.unsubscribeOnScroll=this.on("scroll",(()=>{const{scrollLeft:t}=this.scrollContainer,e=Math.floor(t/h*u);Object.keys(d).length>p.MAX_NODES&&(n.innerHTML="",r.innerHTML="",d={}),c(e-1),c(e),c(e+1)})))}renderChannel(t,e,i,s){var{overlay:n}=e,r=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n0&&(o.style.marginTop=`-${a}px`),this.canvasWrapper.style.minHeight=`${a}px`,this.canvasWrapper.appendChild(o);const h=o.cloneNode();this.progressWrapper.appendChild(h),this.renderMultiCanvas(t,r,i,a,o,h)}render(t){return r(this,void 0,void 0,(function*(){var e;this.timeouts.forEach((t=>t())),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",null!=this.options.width&&(this.scrollContainer.style.width="number"==typeof this.options.width?`${this.options.width}px`:this.options.width);const i=this.getPixelRatio(),s=this.scrollContainer.clientWidth,n=Math.ceil(t.duration*(this.options.minPxPerSec||0));this.isScrollable=n>s;const r=this.options.fillParent&&!this.isScrollable,o=(r?s:n)*i;if(this.wrapper.style.width=r?"100%":`${n}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=t,this.emit("render"),this.options.splitChannels)for(let a=0;a1&&e.push(t.getChannelData(1)),this.renderChannel(e,this.options,o,0)}Promise.resolve().then((()=>this.emit("rendered")))}))}reRender(){var t;if(null===(t=this.unsubscribeOnScroll)||void 0===t||t.call(this),delete this.unsubscribeOnScroll,!this.audioData)return;const{scrollWidth:e}=this.scrollContainer,{right:i}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&e!==this.scrollContainer.scrollWidth){const{right:t}=this.progressWrapper.getBoundingClientRect();let e=t-i;e*=2,e=e<0?Math.floor(e):Math.ceil(e),e/=2,this.scrollContainer.scrollLeft+=e}}zoom(t){this.options.minPxPerSec=t,this.reRender()}scrollIntoView(t,e=!1){const{scrollLeft:i,scrollWidth:s,clientWidth:n}=this.scrollContainer,r=t*s,o=i,a=i+n,h=n/2;if(this.isDragging){const t=30;r+t>a?this.scrollContainer.scrollLeft+=t:r-ta)&&(this.scrollContainer.scrollLeft=r-(this.options.autoCenter?h:0));const t=r-i-h;e&&this.options.autoCenter&&t>0&&(this.scrollContainer.scrollLeft+=Math.min(t,10))}{const t=this.scrollContainer.scrollLeft,e=t/s,i=(t+n)/s;this.emit("scroll",e,i,t,t+n)}}renderProgress(t,e){if(isNaN(t))return;const i=100*t;this.canvasWrapper.style.clipPath=`polygon(${i}% 0, 100% 0, 100% 100%, ${i}% 100%)`,this.progressWrapper.style.width=`${i}%`,this.cursor.style.left=`${i}%`,this.cursor.style.transform=`translateX(-${100===Math.round(i)?this.options.cursorWidth:0}px)`,this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(t,e)}exportImage(t,e,i){return r(this,void 0,void 0,(function*(){const s=this.canvasWrapper.querySelectorAll("canvas");if(!s.length)throw new Error("No waveform data");if("dataURL"===i){const i=Array.from(s).map((i=>i.toDataURL(t,e)));return Promise.resolve(i)}return Promise.all(Array.from(s).map((i=>new Promise(((s,n)=>{i.toBlob((t=>{t?s(t):n(new Error("Could not export image"))}),t,e)})))))}))}}p.MAX_CANVAS_WIDTH=8e3,p.MAX_NODES=10;class m extends o{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",(()=>{requestAnimationFrame((()=>{this.emit("tick")}))})),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class f extends o{constructor(t=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=t,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return r(this,void 0,void 0,(function*(){}))}get src(){return this.currentSrc}set src(t){if(this.currentSrc=t,this._duration=void 0,!t)return this.buffer=null,void this.emit("emptied");fetch(t).then((e=>{if(e.status>=400)throw new Error(`Failed to fetch ${t}: ${e.status} (${e.statusText})`);return e.arrayBuffer()})).then((e=>this.currentSrc!==t?null:this.audioContext.decodeAudioData(e))).then((e=>{this.currentSrc===t&&(this.buffer=e,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())}))}_play(){var t;if(!this.paused)return;this.paused=!1,null===(t=this.bufferNode)||void 0===t||t.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playedDuration*this._playbackRate;e>=this.duration&&(e=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var t;this.paused=!0,null===(t=this.bufferNode)||void 0===t||t.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return r(this,void 0,void 0,(function*(){this.paused&&(this._play(),this.emit("play"))}))}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(t){var e,i;const s=t-this.currentTime;null===(e=this.bufferNode)||void 0===e||e.stop(this.audioContext.currentTime+s),null===(i=this.bufferNode)||void 0===i||i.addEventListener("ended",(()=>{this.bufferNode=null,this.pause()}),{once:!0})}setSinkId(t){return r(this,void 0,void 0,(function*(){return this.audioContext.setSinkId(t)}))}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this.bufferNode&&(this.bufferNode.playbackRate.value=t)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(t){const e=!this.paused;e&&this._pause(),this.playedDuration=t/this._playbackRate,e&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var t,e;return null!==(t=this._duration)&&void 0!==t?t:(null===(e=this.buffer)||void 0===e?void 0:e.duration)||0}set duration(t){this._duration=t}get volume(){return this.gainNode.gain.value}set volume(t){this.gainNode.gain.value=t,this.emit("volumechange")}get muted(){return this._muted}set muted(t){this._muted!==t&&(this._muted=t,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(t){return/^(audio|video)\//.test(t)}getGainNode(){return this.gainNode}getChannelData(){const t=[];if(!this.buffer)return t;const e=this.buffer.numberOfChannels;for(let i=0;i{this.emit("init");const{peaks:t,duration:e}=this.options;(s||t&&e)&&this.load(s,t,e).catch((()=>null))}))}updateProgress(t=this.getCurrentTime()){return this.renderer.renderProgress(t/this.getDuration(),this.isPlaying()),t}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",(()=>{if(!this.isSeeking()){const t=this.updateProgress();this.emit("timeupdate",t),this.emit("audioprocess",t)}})))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",(()=>{const t=this.updateProgress();this.emit("timeupdate",t)})),this.onMediaEvent("play",(()=>{this.emit("play"),this.timer.start()})),this.onMediaEvent("pause",(()=>{this.emit("pause"),this.timer.stop()})),this.onMediaEvent("emptied",(()=>{this.timer.stop()})),this.onMediaEvent("ended",(()=>{this.emit("finish")})),this.onMediaEvent("seeking",(()=>{this.emit("seeking",this.getCurrentTime())})),this.onMediaEvent("error",(t=>{this.emit("error",t.error)})))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",((t,e)=>{this.options.interact&&(this.seekTo(t),this.emit("interaction",t*this.getDuration()),this.emit("click",t,e))})),this.renderer.on("dblclick",((t,e)=>{this.emit("dblclick",t,e)})),this.renderer.on("scroll",((t,e,i,s)=>{const n=this.getDuration();this.emit("scroll",t*n,e*n,i,s)})),this.renderer.on("render",(()=>{this.emit("redraw")})),this.renderer.on("rendered",(()=>{this.emit("redrawcomplete")})),this.renderer.on("dragstart",(t=>{this.emit("dragstart",t)})),this.renderer.on("dragend",(t=>{this.emit("dragend",t)})));{let t;this.subscriptions.push(this.renderer.on("drag",(e=>{if(!this.options.interact)return;let i;this.renderer.renderProgress(e),clearTimeout(t),this.isPlaying()?i=0:!0===this.options.dragToSeek?i=200:"object"==typeof this.options.dragToSeek&&void 0!==this.options.dragToSeek&&(i=this.options.dragToSeek.debounceTime),t=setTimeout((()=>{this.seekTo(e)}),i),this.emit("interaction",e*this.getDuration()),this.emit("drag",e)})))}}initPlugins(){var t;(null===(t=this.options.plugins)||void 0===t?void 0:t.length)&&this.options.plugins.forEach((t=>{this.registerPlugin(t)}))}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach((t=>t())),this.mediaSubscriptions=[]}setOptions(t){this.options=Object.assign({},this.options,t),this.renderer.setOptions(this.options),t.audioRate&&this.setPlaybackRate(t.audioRate),null!=t.mediaControls&&(this.getMediaElement().controls=t.mediaControls)}registerPlugin(t){return t._init(this),this.plugins.push(t),this.subscriptions.push(t.once("destroy",(()=>{this.plugins=this.plugins.filter((e=>e!==t))}))),t}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(t){return this.renderer.setScroll(t)}setScrollTime(t){const e=t/this.getDuration();this.renderer.setScrollPercentage(e)}getActivePlugins(){return this.plugins}loadAudio(t,e,i,s){return r(this,void 0,void 0,(function*(){var n;if(this.emit("load",t),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,!e&&!i){const i=this.options.fetchParams||{};window.AbortController&&!i.signal&&(this.abortController=new AbortController,i.signal=null===(n=this.abortController)||void 0===n?void 0:n.signal);const s=t=>this.emit("loading",t);e=yield c.fetchBlob(t,s,i)}this.setSrc(t,e);const r=yield new Promise((t=>{const e=s||this.getDuration();e?t(e):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",(()=>t(this.getDuration())),{once:!0}))}));if(!t&&!e){const t=this.getMediaElement();t instanceof f&&(t.duration=r)}if(i)this.decodedData=a.createBuffer(i,r||0);else if(e){const t=yield e.arrayBuffer();this.decodedData=yield a.decode(t,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())}))}load(t,e,i){return r(this,void 0,void 0,(function*(){try{return yield this.loadAudio(t,void 0,e,i)}catch(r){throw this.emit("error",r),r}}))}loadBlob(t,e,i){return r(this,void 0,void 0,(function*(){try{return yield this.loadAudio("",t,e,i)}catch(r){throw this.emit("error",r),r}}))}zoom(t){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(t),this.emit("zoom",t)}getDecodedData(){return this.decodedData}exportPeaks({channels:t=2,maxLength:e=8e3,precision:i=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const s=Math.min(t,this.decodedData.numberOfChannels),n=[];for(let r=0;rMath.abs(r)&&(r=i)}s.push(Math.round(r*i)/i)}n.push(s)}return n}getDuration(){let t=super.getDuration()||0;return 0!==t&&t!==1/0||!this.decodedData||(t=this.decodedData.duration),t}toggleInteraction(t){this.options.interact=t}setTime(t){super.setTime(t),this.updateProgress(t),this.emit("timeupdate",t)}seekTo(t){const e=this.getDuration()*t;this.setTime(e)}playPause(){return r(this,void 0,void 0,(function*(){return this.isPlaying()?this.pause():this.play()}))}stop(){this.pause(),this.setTime(0)}skip(t){this.setTime(this.getCurrentTime()+t)}empty(){this.load("",[[0]],.001)}setMediaElement(t){this.unsubscribePlayerEvents(),super.setMediaElement(t),this.initPlayerEvents()}exportImage(){return r(this,arguments,void 0,(function*(t="image/png",e=1,i="dataURL"){return this.renderer.exportImage(t,e,i)}))}destroy(){var t;this.emit("destroy"),null===(t=this.abortController)||void 0===t||t.abort(),this.plugins.forEach((t=>t.destroy())),this.subscriptions.forEach((t=>t())),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}v.BasePlugin=class extends o{constructor(t){super(),this.subscriptions=[],this.options=t}onInit(){}_init(t){this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach((t=>t()))}},v.dom=d;var b=i(77484),y=i(57596),C=i(8220),w=i(50111);const S={waveColor:"#1890ff",progressColor:"#0b3574",height:500};var E=({runUuid:t,path:e,getArtifact:i=b.UQ})=>{const r=(0,n.useRef)(null),[o,a]=(0,n.useState)(null),[h,l]=(0,n.useState)(!0),[d,c]=(0,n.useState)(!1);(0,n.useEffect)((()=>{if(!r.current)return;const i=v.create({mediaControls:!0,container:r.current,...S,url:(0,b.To)(e,t)});return i.on("ready",(()=>{l(!1)})),i.on("error",(()=>{c(!0)})),a(i),()=>{i.destroy()}}),[r,e,t]);const u=h&&!d;return(0,w.FD)("div",{"data-testid":"audio-artifact-preview",children:[u&&(0,w.Y)(C.$,{}),d&&(0,w.Y)(y.F,{}),(0,w.Y)("div",{css:(0,s.AH)({display:h||d?"none":"block",padding:20},""),children:(0,w.Y)("div",{ref:r})})]})}}}]); +//# sourceMappingURL=847.de5af26a.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/847.de5af26a.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/847.de5af26a.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..156a502369b88853f47dc14cd33697baef1da5c3 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/847.de5af26a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/847.de5af26a.chunk.js","mappings":"2LAAA,SAASA,EAAEA,EAAEC,EAAEC,EAAEC,GAAG,OAAO,IAAID,IAAIA,EAAEE,WAAW,SAASC,EAAEC,GAAG,SAASC,EAAEP,GAAG,IAAIQ,EAAEL,EAAEM,KAAKT,GAAG,CAAC,MAAMA,GAAGM,EAAEN,EAAE,CAAC,CAAC,SAASU,EAAEV,GAAG,IAAIQ,EAAEL,EAAEQ,MAAMX,GAAG,CAAC,MAAMA,GAAGM,EAAEN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AAAA,GAAA,OACEG,KAAGC,EAAAA,EAAAA,IAAE,CACHC,QAAShB,GAAWvC,EAAQ,OAAS,QACrCwD,QAAS,IACV,IAACP,UAEFC,EAAAA,EAAAA,GAAA,OAAKO,IAAKvB,QAER,C","sources":["../node_modules/wavesurfer.js/dist/wavesurfer.esm.js","experiment-tracking/components/artifact-view-components/ShowArtifactAudioView.tsx"],"sourcesContent":["function t(t,e,i,s){return new(i||(i=Promise))((function(n,r){function o(t){try{h(s.next(t))}catch(t){r(t)}}function a(t){try{h(s.throw(t))}catch(t){r(t)}}function h(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}h((s=s.apply(t,e||[])).next())}))}\"function\"==typeof SuppressedError&&SuppressedError;class e{constructor(){this.listeners={}}on(t,e,i){if(this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].add(e),null==i?void 0:i.once){const i=()=>{this.un(t,i),this.un(t,e)};return this.on(t,i),i}return()=>this.un(t,e)}un(t,e){var i;null===(i=this.listeners[t])||void 0===i||i.delete(e)}once(t,e){return this.on(t,e,{once:!0})}unAll(){this.listeners={}}emit(t,...e){this.listeners[t]&&this.listeners[t].forEach((t=>t(...e)))}}const i={decode:function(e,i){return t(this,void 0,void 0,(function*(){const t=new AudioContext({sampleRate:i});return t.decodeAudioData(e).finally((()=>t.close()))}))},createBuffer:function(t,e){return\"number\"==typeof t[0]&&(t=[t]),function(t){const e=t[0];if(e.some((t=>t>1||t<-1))){const i=e.length;let s=0;for(let t=0;ts&&(s=i)}for(const e of t)for(let t=0;tnull==t?void 0:t[e],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function s(t,e){const i=e.xmlns?document.createElementNS(e.xmlns,t):document.createElement(t);for(const[t,n]of Object.entries(e))if(\"children\"===t)for(const[t,n]of Object.entries(e))\"string\"==typeof n?i.appendChild(document.createTextNode(n)):i.appendChild(s(t,n));else\"style\"===t?Object.assign(i.style,n):\"textContent\"===t?i.textContent=n:i.setAttribute(t,n.toString());return i}function n(t,e,i){const n=s(t,e||{});return null==i||i.appendChild(n),n}var r=Object.freeze({__proto__:null,createElement:n,default:n});const o={fetchBlob:function(e,i,s){return t(this,void 0,void 0,(function*(){const n=yield fetch(e,s);if(n.status>=400)throw new Error(`Failed to fetch ${e}: ${n.status} (${n.statusText})`);return function(e,i){t(this,void 0,void 0,(function*(){if(!e.body||!e.headers)return;const s=e.body.getReader(),n=Number(e.headers.get(\"Content-Length\"))||0;let r=0;const o=e=>t(this,void 0,void 0,(function*(){r+=(null==e?void 0:e.length)||0;const t=Math.round(r/n*100);i(t)})),a=()=>t(this,void 0,void 0,(function*(){let t;try{t=yield s.read()}catch(t){return}t.done||(o(t.value),yield a())}));a()}))}(n.clone(),i),n.blob()}))}};class a extends e{constructor(t){super(),this.isExternalMedia=!1,t.media?(this.media=t.media,this.isExternalMedia=!0):this.media=document.createElement(\"audio\"),t.mediaControls&&(this.media.controls=!0),t.autoplay&&(this.media.autoplay=!0),null!=t.playbackRate&&this.onMediaEvent(\"canplay\",(()=>{null!=t.playbackRate&&(this.media.playbackRate=t.playbackRate)}),{once:!0})}onMediaEvent(t,e,i){return this.media.addEventListener(t,e,i),()=>this.media.removeEventListener(t,e,i)}getSrc(){return this.media.currentSrc||this.media.src||\"\"}revokeSrc(){const t=this.getSrc();t.startsWith(\"blob:\")&&URL.revokeObjectURL(t)}canPlayType(t){return\"\"!==this.media.canPlayType(t)}setSrc(t,e){const i=this.getSrc();if(t&&i===t)return;this.revokeSrc();const s=e instanceof Blob&&(this.canPlayType(e.type)||!t)?URL.createObjectURL(e):t;try{this.media.src=s}catch(e){this.media.src=t}}destroy(){this.media.pause(),this.isExternalMedia||(this.media.remove(),this.revokeSrc(),this.media.src=\"\",this.media.load())}setMediaElement(t){this.media=t}play(){return t(this,void 0,void 0,(function*(){return this.media.play()}))}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(t){this.media.currentTime=t}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(t){this.media.volume=t}getMuted(){return this.media.muted}setMuted(t){this.media.muted=t}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(t,e){null!=e&&(this.media.preservesPitch=e),this.media.playbackRate=t}getMediaElement(){return this.media}setSinkId(t){return this.media.setSinkId(t)}}class h extends e{constructor(t,e){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.subscriptions=[],this.options=t;const i=this.parentFromOptionsContainer(t.container);this.parent=i;const[s,n]=this.initHtml();i.appendChild(s),this.container=s,this.scrollContainer=n.querySelector(\".scroll\"),this.wrapper=n.querySelector(\".wrapper\"),this.canvasWrapper=n.querySelector(\".canvases\"),this.progressWrapper=n.querySelector(\".progress\"),this.cursor=n.querySelector(\".cursor\"),e&&n.appendChild(e),this.initEvents()}parentFromOptionsContainer(t){let e;if(\"string\"==typeof t?e=document.querySelector(t):t instanceof HTMLElement&&(e=t),!e)throw new Error(\"Container not found\");return e}initEvents(){const t=t=>{const e=this.wrapper.getBoundingClientRect(),i=t.clientX-e.left,s=t.clientY-e.top;return[i/e.width,s/e.height]};if(this.wrapper.addEventListener(\"click\",(e=>{const[i,s]=t(e);this.emit(\"click\",i,s)})),this.wrapper.addEventListener(\"dblclick\",(e=>{const[i,s]=t(e);this.emit(\"dblclick\",i,s)})),!0!==this.options.dragToSeek&&\"object\"!=typeof this.options.dragToSeek||this.initDrag(),this.scrollContainer.addEventListener(\"scroll\",(()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.scrollContainer,s=t/e,n=(t+i)/e;this.emit(\"scroll\",s,n,t,t+i)})),\"function\"==typeof ResizeObserver){const t=this.createDelay(100);this.resizeObserver=new ResizeObserver((()=>{t().then((()=>this.onContainerResize())).catch((()=>{}))})),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const t=this.parent.clientWidth;t===this.lastContainerWidth&&\"auto\"!==this.options.height||(this.lastContainerWidth=t,this.reRender())}initDrag(){this.subscriptions.push(function(t,e,i,s,n=3,r=0,o=100){if(!t)return()=>{};const a=matchMedia(\"(pointer: coarse)\").matches;let h=()=>{};const l=l=>{if(l.button!==r)return;l.preventDefault(),l.stopPropagation();let d=l.clientX,c=l.clientY,u=!1;const p=Date.now(),m=s=>{if(s.preventDefault(),s.stopPropagation(),a&&Date.now()-pn||Math.abs(m)>n){const s=t.getBoundingClientRect(),{left:n,top:o}=s;u||(null==i||i(d-n,c-o),u=!0),e(l,m,r-n,h-o),d=r,c=h}},g=e=>{if(u){const i=e.clientX,n=e.clientY,r=t.getBoundingClientRect(),{left:o,top:a}=r;null==s||s(i-o,n-a)}h()},f=t=>{t.relatedTarget&&t.relatedTarget!==document.documentElement||g(t)},v=t=>{u&&(t.stopPropagation(),t.preventDefault())},b=t=>{u&&t.preventDefault()};document.addEventListener(\"pointermove\",m),document.addEventListener(\"pointerup\",g),document.addEventListener(\"pointerout\",f),document.addEventListener(\"pointercancel\",f),document.addEventListener(\"touchmove\",b,{passive:!1}),document.addEventListener(\"click\",v,{capture:!0}),h=()=>{document.removeEventListener(\"pointermove\",m),document.removeEventListener(\"pointerup\",g),document.removeEventListener(\"pointerout\",f),document.removeEventListener(\"pointercancel\",f),document.removeEventListener(\"touchmove\",b),setTimeout((()=>{document.removeEventListener(\"click\",v,{capture:!0})}),10)}};return t.addEventListener(\"pointerdown\",l),()=>{h(),t.removeEventListener(\"pointerdown\",l)}}(this.wrapper,((t,e,i)=>{this.emit(\"drag\",Math.max(0,Math.min(1,i/this.wrapper.getBoundingClientRect().width)))}),(t=>{this.isDragging=!0,this.emit(\"dragstart\",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))}),(t=>{this.isDragging=!1,this.emit(\"dragend\",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))})))}getHeight(t,e){var i;const s=(null===(i=this.audioData)||void 0===i?void 0:i.numberOfChannels)||1;if(null==t)return 128;if(!isNaN(Number(t)))return Number(t);if(\"auto\"===t){const t=this.parent.clientHeight||128;return(null==e?void 0:e.every((t=>!t.overlay)))?t/s:t}return 128}initHtml(){const t=document.createElement(\"div\"),e=t.attachShadow({mode:\"open\"}),i=this.options.cspNonce&&\"string\"==typeof this.options.cspNonce?this.options.cspNonce.replace(/\"/g,\"\"):\"\";return e.innerHTML=`\\n \\n :host {\\n user-select: none;\\n min-width: 1px;\\n }\\n :host audio {\\n display: block;\\n width: 100%;\\n }\\n :host .scroll {\\n overflow-x: auto;\\n overflow-y: hidden;\\n width: 100%;\\n position: relative;\\n }\\n :host .noScrollbar {\\n scrollbar-color: transparent;\\n scrollbar-width: none;\\n }\\n :host .noScrollbar::-webkit-scrollbar {\\n display: none;\\n -webkit-appearance: none;\\n }\\n :host .wrapper {\\n position: relative;\\n overflow: visible;\\n z-index: 2;\\n }\\n :host .canvases {\\n min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;\\n }\\n :host .canvases > div {\\n position: relative;\\n }\\n :host canvas {\\n display: block;\\n position: absolute;\\n top: 0;\\n image-rendering: pixelated;\\n }\\n :host .progress {\\n pointer-events: none;\\n position: absolute;\\n z-index: 2;\\n top: 0;\\n left: 0;\\n width: 0;\\n height: 100%;\\n overflow: hidden;\\n }\\n :host .progress > div {\\n position: relative;\\n }\\n :host .cursor {\\n pointer-events: none;\\n position: absolute;\\n z-index: 5;\\n top: 0;\\n left: 0;\\n height: 100%;\\n border-radius: 2px;\\n }\\n \\n\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n `,[t,e]}setOptions(t){if(this.options.container!==t.container){const e=this.parentFromOptionsContainer(t.container);e.appendChild(this.container),this.parent=e}!0!==t.dragToSeek&&\"object\"!=typeof this.options.dragToSeek||this.initDrag(),this.options=t,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(t){this.scrollContainer.scrollLeft=t}setScrollPercentage(t){const{scrollWidth:e}=this.scrollContainer,i=e*t;this.setScroll(i)}destroy(){var t,e;this.subscriptions.forEach((t=>t())),this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(e=this.unsubscribeOnScroll)||void 0===e||e.call(this)}createDelay(t=10){let e,i;const s=()=>{e&&clearTimeout(e),i&&i()};return this.timeouts.push(s),()=>new Promise(((n,r)=>{s(),i=r,e=setTimeout((()=>{e=void 0,i=void 0,n()}),t)}))}convertColorValues(t){if(!Array.isArray(t))return t||\"\";if(t.length<2)return t[0]||\"\";const e=document.createElement(\"canvas\"),i=e.getContext(\"2d\"),s=e.height*(window.devicePixelRatio||1),n=i.createLinearGradient(0,0,0,s),r=1/(t.length-1);return t.forEach(((t,e)=>{const i=e*r;n.addColorStop(i,t)})),n}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(t,e,i,s){const n=t[0],r=t[1]||t[0],o=n.length,{width:a,height:h}=i.canvas,l=h/2,d=this.getPixelRatio(),c=e.barWidth?e.barWidth*d:1,u=e.barGap?e.barGap*d:e.barWidth?c/2:0,p=e.barRadius||0,m=a/(c+u)/o,g=p&&\"roundRect\"in i?\"roundRect\":\"rect\";i.beginPath();let f=0,v=0,b=0;for(let t=0;t<=o;t++){const o=Math.round(t*m);if(o>f){const t=Math.round(v*l*s),n=t+Math.round(b*l*s)||1;let r=l-t;\"top\"===e.barAlign?r=0:\"bottom\"===e.barAlign&&(r=h-n),i[g](f*(c+u),r,c,n,p),f=o,v=0,b=0}const a=Math.abs(n[t]||0),d=Math.abs(r[t]||0);a>v&&(v=a),d>b&&(b=d)}i.fill(),i.closePath()}renderLineWaveform(t,e,i,s){const n=e=>{const n=t[e]||t[0],r=n.length,{height:o}=i.canvas,a=o/2,h=i.canvas.width/r;i.moveTo(0,a);let l=0,d=0;for(let t=0;t<=r;t++){const r=Math.round(t*h);if(r>l){const t=a+(Math.round(d*a*s)||1)*(0===e?-1:1);i.lineTo(l,t),l=r,d=0}const o=Math.abs(n[t]||0);o>d&&(d=o)}i.lineTo(l,a)};i.beginPath(),n(0),n(1),i.fill(),i.closePath()}renderWaveform(t,e,i){if(i.fillStyle=this.convertColorValues(e.waveColor),e.renderFunction)return void e.renderFunction(t,i);let s=e.barHeight||1;if(e.normalize){const e=Array.from(t[0]).reduce(((t,e)=>Math.max(t,Math.abs(e))),0);s=e?1/e:1}e.barWidth||e.barGap||e.barAlign?this.renderBarWaveform(t,e,i,s):this.renderLineWaveform(t,e,i,s)}renderSingleCanvas(t,e,i,s,n,r,o){const a=this.getPixelRatio(),h=document.createElement(\"canvas\");h.width=Math.round(i*a),h.height=Math.round(s*a),h.style.width=`${i}px`,h.style.height=`${s}px`,h.style.left=`${Math.round(n)}px`,r.appendChild(h);const l=h.getContext(\"2d\");if(this.renderWaveform(t,e,l),h.width>0&&h.height>0){const t=h.cloneNode(),i=t.getContext(\"2d\");i.drawImage(h,0,0),i.globalCompositeOperation=\"source-in\",i.fillStyle=this.convertColorValues(e.progressColor),i.fillRect(0,0,h.width,h.height),o.appendChild(t)}}renderMultiCanvas(t,e,i,s,n,r){const o=this.getPixelRatio(),{clientWidth:a}=this.scrollContainer,l=i/o;let d=Math.min(h.MAX_CANVAS_WIDTH,a,l),c={};if(e.barWidth||e.barGap){const t=e.barWidth||.5,i=t+(e.barGap||t/2);d%i!=0&&(d=Math.floor(d/i)*i)}const u=i=>{if(i<0||i>=p)return;if(c[i])return;c[i]=!0;const o=i*d,a=Math.min(l-o,d);if(a<=0)return;const h=t.map((t=>{const e=Math.floor(o/l*t.length),i=Math.floor((o+a)/l*t.length);return t.slice(e,i)}));this.renderSingleCanvas(h,e,a,s,o,n,r)},p=Math.ceil(l/d);if(!this.isScrollable){for(let t=0;t1&&(this.unsubscribeOnScroll=this.on(\"scroll\",(()=>{const{scrollLeft:t}=this.scrollContainer,e=Math.floor(t/l*p);Object.keys(c).length>h.MAX_NODES&&(n.innerHTML=\"\",r.innerHTML=\"\",c={}),u(e-1),u(e),u(e+1)})))}renderChannel(t,e,i,s){var{overlay:n}=e,r=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(null!=t&&\"function\"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n0&&(o.style.marginTop=`-${a}px`),this.canvasWrapper.style.minHeight=`${a}px`,this.canvasWrapper.appendChild(o);const h=o.cloneNode();this.progressWrapper.appendChild(h),this.renderMultiCanvas(t,r,i,a,o,h)}render(e){return t(this,void 0,void 0,(function*(){var t;this.timeouts.forEach((t=>t())),this.timeouts=[],this.canvasWrapper.innerHTML=\"\",this.progressWrapper.innerHTML=\"\",null!=this.options.width&&(this.scrollContainer.style.width=\"number\"==typeof this.options.width?`${this.options.width}px`:this.options.width);const i=this.getPixelRatio(),s=this.scrollContainer.clientWidth,n=Math.ceil(e.duration*(this.options.minPxPerSec||0));this.isScrollable=n>s;const r=this.options.fillParent&&!this.isScrollable,o=(r?s:n)*i;if(this.wrapper.style.width=r?\"100%\":`${n}px`,this.scrollContainer.style.overflowX=this.isScrollable?\"auto\":\"hidden\",this.scrollContainer.classList.toggle(\"noScrollbar\",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=e,this.emit(\"render\"),this.options.splitChannels)for(let i=0;i1&&t.push(e.getChannelData(1)),this.renderChannel(t,this.options,o,0)}Promise.resolve().then((()=>this.emit(\"rendered\")))}))}reRender(){var t;if(null===(t=this.unsubscribeOnScroll)||void 0===t||t.call(this),delete this.unsubscribeOnScroll,!this.audioData)return;const{scrollWidth:e}=this.scrollContainer,{right:i}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&e!==this.scrollContainer.scrollWidth){const{right:t}=this.progressWrapper.getBoundingClientRect();let e=t-i;e*=2,e=e<0?Math.floor(e):Math.ceil(e),e/=2,this.scrollContainer.scrollLeft+=e}}zoom(t){this.options.minPxPerSec=t,this.reRender()}scrollIntoView(t,e=!1){const{scrollLeft:i,scrollWidth:s,clientWidth:n}=this.scrollContainer,r=t*s,o=i,a=i+n,h=n/2;if(this.isDragging){const t=30;r+t>a?this.scrollContainer.scrollLeft+=t:r-ta)&&(this.scrollContainer.scrollLeft=r-(this.options.autoCenter?h:0));const t=r-i-h;e&&this.options.autoCenter&&t>0&&(this.scrollContainer.scrollLeft+=Math.min(t,10))}{const t=this.scrollContainer.scrollLeft,e=t/s,i=(t+n)/s;this.emit(\"scroll\",e,i,t,t+n)}}renderProgress(t,e){if(isNaN(t))return;const i=100*t;this.canvasWrapper.style.clipPath=`polygon(${i}% 0, 100% 0, 100% 100%, ${i}% 100%)`,this.progressWrapper.style.width=`${i}%`,this.cursor.style.left=`${i}%`,this.cursor.style.transform=`translateX(-${100===Math.round(i)?this.options.cursorWidth:0}px)`,this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(t,e)}exportImage(e,i,s){return t(this,void 0,void 0,(function*(){const t=this.canvasWrapper.querySelectorAll(\"canvas\");if(!t.length)throw new Error(\"No waveform data\");if(\"dataURL\"===s){const s=Array.from(t).map((t=>t.toDataURL(e,i)));return Promise.resolve(s)}return Promise.all(Array.from(t).map((t=>new Promise(((s,n)=>{t.toBlob((t=>{t?s(t):n(new Error(\"Could not export image\"))}),e,i)})))))}))}}h.MAX_CANVAS_WIDTH=8e3,h.MAX_NODES=10;class l extends e{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on(\"tick\",(()=>{requestAnimationFrame((()=>{this.emit(\"tick\")}))})),this.emit(\"tick\")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class d extends e{constructor(t=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc=\"\",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=t,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return t(this,void 0,void 0,(function*(){}))}get src(){return this.currentSrc}set src(t){if(this.currentSrc=t,this._duration=void 0,!t)return this.buffer=null,void this.emit(\"emptied\");fetch(t).then((e=>{if(e.status>=400)throw new Error(`Failed to fetch ${t}: ${e.status} (${e.statusText})`);return e.arrayBuffer()})).then((e=>this.currentSrc!==t?null:this.audioContext.decodeAudioData(e))).then((e=>{this.currentSrc===t&&(this.buffer=e,this.emit(\"loadedmetadata\"),this.emit(\"canplay\"),this.autoplay&&this.play())}))}_play(){var t;if(!this.paused)return;this.paused=!1,null===(t=this.bufferNode)||void 0===t||t.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let e=this.playedDuration*this._playbackRate;e>=this.duration&&(e=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,e),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit(\"ended\"))}}_pause(){var t;this.paused=!0,null===(t=this.bufferNode)||void 0===t||t.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return t(this,void 0,void 0,(function*(){this.paused&&(this._play(),this.emit(\"play\"))}))}pause(){this.paused||(this._pause(),this.emit(\"pause\"))}stopAt(t){var e,i;const s=t-this.currentTime;null===(e=this.bufferNode)||void 0===e||e.stop(this.audioContext.currentTime+s),null===(i=this.bufferNode)||void 0===i||i.addEventListener(\"ended\",(()=>{this.bufferNode=null,this.pause()}),{once:!0})}setSinkId(e){return t(this,void 0,void 0,(function*(){return this.audioContext.setSinkId(e)}))}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this.bufferNode&&(this.bufferNode.playbackRate.value=t)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(t){const e=!this.paused;e&&this._pause(),this.playedDuration=t/this._playbackRate,e&&this._play(),this.emit(\"seeking\"),this.emit(\"timeupdate\")}get duration(){var t,e;return null!==(t=this._duration)&&void 0!==t?t:(null===(e=this.buffer)||void 0===e?void 0:e.duration)||0}set duration(t){this._duration=t}get volume(){return this.gainNode.gain.value}set volume(t){this.gainNode.gain.value=t,this.emit(\"volumechange\")}get muted(){return this._muted}set muted(t){this._muted!==t&&(this._muted=t,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(t){return/^(audio|video)\\//.test(t)}getGainNode(){return this.gainNode}getChannelData(){const t=[];if(!this.buffer)return t;const e=this.buffer.numberOfChannels;for(let i=0;i{this.emit(\"init\");const{peaks:t,duration:e}=this.options;(s||t&&e)&&this.load(s,t,e).catch((()=>null))}))}updateProgress(t=this.getCurrentTime()){return this.renderer.renderProgress(t/this.getDuration(),this.isPlaying()),t}initTimerEvents(){this.subscriptions.push(this.timer.on(\"tick\",(()=>{if(!this.isSeeking()){const t=this.updateProgress();this.emit(\"timeupdate\",t),this.emit(\"audioprocess\",t)}})))}initPlayerEvents(){this.isPlaying()&&(this.emit(\"play\"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent(\"timeupdate\",(()=>{const t=this.updateProgress();this.emit(\"timeupdate\",t)})),this.onMediaEvent(\"play\",(()=>{this.emit(\"play\"),this.timer.start()})),this.onMediaEvent(\"pause\",(()=>{this.emit(\"pause\"),this.timer.stop()})),this.onMediaEvent(\"emptied\",(()=>{this.timer.stop()})),this.onMediaEvent(\"ended\",(()=>{this.emit(\"finish\")})),this.onMediaEvent(\"seeking\",(()=>{this.emit(\"seeking\",this.getCurrentTime())})),this.onMediaEvent(\"error\",(t=>{this.emit(\"error\",t.error)})))}initRendererEvents(){this.subscriptions.push(this.renderer.on(\"click\",((t,e)=>{this.options.interact&&(this.seekTo(t),this.emit(\"interaction\",t*this.getDuration()),this.emit(\"click\",t,e))})),this.renderer.on(\"dblclick\",((t,e)=>{this.emit(\"dblclick\",t,e)})),this.renderer.on(\"scroll\",((t,e,i,s)=>{const n=this.getDuration();this.emit(\"scroll\",t*n,e*n,i,s)})),this.renderer.on(\"render\",(()=>{this.emit(\"redraw\")})),this.renderer.on(\"rendered\",(()=>{this.emit(\"redrawcomplete\")})),this.renderer.on(\"dragstart\",(t=>{this.emit(\"dragstart\",t)})),this.renderer.on(\"dragend\",(t=>{this.emit(\"dragend\",t)})));{let t;this.subscriptions.push(this.renderer.on(\"drag\",(e=>{if(!this.options.interact)return;let i;this.renderer.renderProgress(e),clearTimeout(t),this.isPlaying()?i=0:!0===this.options.dragToSeek?i=200:\"object\"==typeof this.options.dragToSeek&&void 0!==this.options.dragToSeek&&(i=this.options.dragToSeek.debounceTime),t=setTimeout((()=>{this.seekTo(e)}),i),this.emit(\"interaction\",e*this.getDuration()),this.emit(\"drag\",e)})))}}initPlugins(){var t;(null===(t=this.options.plugins)||void 0===t?void 0:t.length)&&this.options.plugins.forEach((t=>{this.registerPlugin(t)}))}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach((t=>t())),this.mediaSubscriptions=[]}setOptions(t){this.options=Object.assign({},this.options,t),this.renderer.setOptions(this.options),t.audioRate&&this.setPlaybackRate(t.audioRate),null!=t.mediaControls&&(this.getMediaElement().controls=t.mediaControls)}registerPlugin(t){return t._init(this),this.plugins.push(t),this.subscriptions.push(t.once(\"destroy\",(()=>{this.plugins=this.plugins.filter((e=>e!==t))}))),t}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(t){return this.renderer.setScroll(t)}setScrollTime(t){const e=t/this.getDuration();this.renderer.setScrollPercentage(e)}getActivePlugins(){return this.plugins}loadAudio(e,s,n,r){return t(this,void 0,void 0,(function*(){var t;if(this.emit(\"load\",e),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,!s&&!n){const i=this.options.fetchParams||{};window.AbortController&&!i.signal&&(this.abortController=new AbortController,i.signal=null===(t=this.abortController)||void 0===t?void 0:t.signal);const n=t=>this.emit(\"loading\",t);s=yield o.fetchBlob(e,n,i)}this.setSrc(e,s);const a=yield new Promise((t=>{const e=r||this.getDuration();e?t(e):this.mediaSubscriptions.push(this.onMediaEvent(\"loadedmetadata\",(()=>t(this.getDuration())),{once:!0}))}));if(!e&&!s){const t=this.getMediaElement();t instanceof d&&(t.duration=a)}if(n)this.decodedData=i.createBuffer(n,a||0);else if(s){const t=yield s.arrayBuffer();this.decodedData=yield i.decode(t,this.options.sampleRate)}this.decodedData&&(this.emit(\"decode\",this.getDuration()),this.renderer.render(this.decodedData)),this.emit(\"ready\",this.getDuration())}))}load(e,i,s){return t(this,void 0,void 0,(function*(){try{return yield this.loadAudio(e,void 0,i,s)}catch(t){throw this.emit(\"error\",t),t}}))}loadBlob(e,i,s){return t(this,void 0,void 0,(function*(){try{return yield this.loadAudio(\"\",e,i,s)}catch(t){throw this.emit(\"error\",t),t}}))}zoom(t){if(!this.decodedData)throw new Error(\"No audio loaded\");this.renderer.zoom(t),this.emit(\"zoom\",t)}getDecodedData(){return this.decodedData}exportPeaks({channels:t=2,maxLength:e=8e3,precision:i=1e4}={}){if(!this.decodedData)throw new Error(\"The audio has not been decoded yet\");const s=Math.min(t,this.decodedData.numberOfChannels),n=[];for(let t=0;tMath.abs(n)&&(n=i)}r.push(Math.round(n*i)/i)}n.push(r)}return n}getDuration(){let t=super.getDuration()||0;return 0!==t&&t!==1/0||!this.decodedData||(t=this.decodedData.duration),t}toggleInteraction(t){this.options.interact=t}setTime(t){super.setTime(t),this.updateProgress(t),this.emit(\"timeupdate\",t)}seekTo(t){const e=this.getDuration()*t;this.setTime(e)}playPause(){return t(this,void 0,void 0,(function*(){return this.isPlaying()?this.pause():this.play()}))}stop(){this.pause(),this.setTime(0)}skip(t){this.setTime(this.getCurrentTime()+t)}empty(){this.load(\"\",[[0]],.001)}setMediaElement(t){this.unsubscribePlayerEvents(),super.setMediaElement(t),this.initPlayerEvents()}exportImage(){return t(this,arguments,void 0,(function*(t=\"image/png\",e=1,i=\"dataURL\"){return this.renderer.exportImage(t,e,i)}))}destroy(){var t;this.emit(\"destroy\"),null===(t=this.abortController)||void 0===t||t.abort(),this.plugins.forEach((t=>t.destroy())),this.subscriptions.forEach((t=>t())),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}u.BasePlugin=class extends e{constructor(t){super(),this.subscriptions=[],this.options=t}onInit(){}_init(t){this.wavesurfer=t,this.onInit()}destroy(){this.emit(\"destroy\"),this.subscriptions.forEach((t=>t()))}},u.dom=r;export{u as default};\n","import { useEffect, useRef, useState } from 'react';\nimport WaveSurfer from 'wavesurfer.js';\nimport { getArtifactBlob, getArtifactLocationUrl } from '../../../common/utils/ArtifactUtils';\nimport { ArtifactViewErrorState } from './ArtifactViewErrorState';\nimport { ArtifactViewSkeleton } from './ArtifactViewSkeleton';\n\nconst waveSurferStyling = {\n waveColor: '#1890ff',\n progressColor: '#0b3574',\n height: 500,\n};\n\nexport type ShowArtifactAudioViewProps = {\n runUuid: string;\n path: string;\n getArtifact?: (...args: any[]) => any;\n};\n\nconst ShowArtifactAudioView = ({ runUuid, path, getArtifact = getArtifactBlob }: ShowArtifactAudioViewProps) => {\n const containerRef = useRef(null);\n const [waveSurfer, setWaveSurfer] = useState(null);\n\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(false);\n\n useEffect(() => {\n if (!containerRef.current) return;\n\n const ws = WaveSurfer.create({\n mediaControls: true,\n container: containerRef.current,\n ...waveSurferStyling,\n url: getArtifactLocationUrl(path, runUuid),\n });\n\n ws.on('ready', () => {\n setLoading(false);\n });\n\n ws.on('error', () => {\n setError(true);\n });\n\n setWaveSurfer(ws);\n\n return () => {\n ws.destroy();\n };\n }, [containerRef, path, runUuid]);\n\n const showLoading = loading && !error;\n\n return (\n
\n {showLoading && }\n {error && }\n {/* This div is always rendered, but its visibility is controlled by the loading and error states */}\n \n
\n
\n
\n );\n};\n\nexport default ShowArtifactAudioView;\n"],"names":["t","e","i","s","Promise","n","r","o","h","next","a","throw","done","value","then","apply","SuppressedError","constructor","this","listeners","on","Set","add","once","un","delete","unAll","emit","forEach","decode","AudioContext","sampleRate","decodeAudioData","finally","close","createBuffer","some","length","Math","abs","duration","numberOfChannels","getChannelData","copyFromChannel","AudioBuffer","prototype","copyToChannel","xmlns","document","createElementNS","createElement","Object","entries","appendChild","createTextNode","assign","style","textContent","setAttribute","toString","freeze","__proto__","default","fetchBlob","fetch","status","Error","statusText","body","headers","getReader","Number","get","round","read","clone","blob","super","isExternalMedia","media","mediaControls","controls","autoplay","playbackRate","onMediaEvent","addEventListener","removeEventListener","getSrc","currentSrc","src","revokeSrc","startsWith","URL","revokeObjectURL","canPlayType","setSrc","Blob","type","createObjectURL","destroy","pause","remove","load","setMediaElement","play","isPlaying","paused","ended","setTime","currentTime","getDuration","getCurrentTime","getVolume","volume","setVolume","getMuted","muted","setMuted","getPlaybackRate","isSeeking","seeking","setPlaybackRate","preservesPitch","getMediaElement","setSinkId","timeouts","isScrollable","audioData","resizeObserver","lastContainerWidth","isDragging","subscriptions","options","parentFromOptionsContainer","container","parent","initHtml","scrollContainer","querySelector","wrapper","canvasWrapper","progressWrapper","cursor","initEvents","HTMLElement","getBoundingClientRect","clientX","left","clientY","top","width","height","dragToSeek","initDrag","scrollLeft","scrollWidth","clientWidth","ResizeObserver","createDelay","onContainerResize","catch","observe","reRender","push","matchMedia","matches","l","button","preventDefault","stopPropagation","d","c","u","p","Date","now","m","g","f","relatedTarget","documentElement","v","b","passive","capture","setTimeout","max","min","getHeight","isNaN","clientHeight","every","overlay","attachShadow","mode","cspNonce","replace","innerHTML","splitChannels","setOptions","getWrapper","getWidth","getScroll","setScroll","setScrollPercentage","disconnect","unsubscribeOnScroll","call","clearTimeout","convertColorValues","Array","isArray","getContext","window","devicePixelRatio","createLinearGradient","addColorStop","getPixelRatio","renderBarWaveform","canvas","barWidth","barGap","barRadius","beginPath","barAlign","fill","closePath","renderLineWaveform","moveTo","lineTo","renderWaveform","fillStyle","waveColor","renderFunction","barHeight","normalize","from","reduce","renderSingleCanvas","cloneNode","drawImage","globalCompositeOperation","progressColor","fillRect","renderMultiCanvas","MAX_CANVAS_WIDTH","floor","map","slice","ceil","keys","MAX_NODES","renderChannel","hasOwnProperty","indexOf","getOwnPropertySymbols","propertyIsEnumerable","marginTop","minHeight","render","minPxPerSec","fillParent","overflowX","classList","toggle","hideScrollbar","backgroundColor","cursorColor","cursorWidth","resolve","right","zoom","scrollIntoView","autoCenter","renderProgress","clipPath","transform","autoScroll","exportImage","querySelectorAll","toDataURL","all","toBlob","arguments","unsubscribe","start","requestAnimationFrame","stop","bufferNode","playStartTime","playedDuration","_muted","_playbackRate","_duration","buffer","crossOrigin","audioContext","gainNode","createGain","connect","destination","arrayBuffer","_play","createBufferSource","onended","_pause","stopAt","gain","test","getGainNode","interact","create","backend","audioRate","plugins","decodedData","mediaSubscriptions","abortController","timer","renderer","initPlayerEvents","initRendererEvents","initTimerEvents","initPlugins","url","peaks","updateProgress","error","seekTo","debounceTime","registerPlugin","unsubscribePlayerEvents","_init","filter","setScrollTime","getActivePlugins","loadAudio","fetchParams","AbortController","signal","loadBlob","getDecodedData","exportPeaks","channels","maxLength","precision","toggleInteraction","playPause","skip","empty","abort","BasePlugin","onInit","wavesurfer","dom","waveSurferStyling","ShowArtifactAudioView","runUuid","path","getArtifact","getArtifactBlob","containerRef","useRef","waveSurfer","setWaveSurfer","useState","loading","setLoading","setError","useEffect","current","ws","WaveSurfer","getArtifactLocationUrl","showLoading","_jsxs","children","_jsx","ArtifactViewSkeleton","ArtifactViewErrorState","css","_css","display","padding","ref"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8521.b52661e6.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8521.b52661e6.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..6f974d44d19d00aa621740b3e38a753c97d5ed5e --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8521.b52661e6.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[8521],{8986:function(e,t,n){n.d(t,{G:function(){return a}});var s=n(39416),i=n(53962);function r(e){if(void 0!==e)return"string"===typeof e||e instanceof FormData||e instanceof Blob?e:JSON.stringify(e)}const a=async(e,t="GET",n)=>{const a={...n?{"Content-Type":"application/json"}:{},...(0,i.KZ)(document.cookie)},o=await fetch(e,{method:t,body:r(n),headers:a});if(!o.ok){const e=(0,s.a$)(o);if(e){try{const t=(await o.json()).message;e.message=null!==t&&void 0!==t?t:e.message}catch{}throw e}}return o.json()}},15003:function(e,t,n){n.d(t,{f:function(){return s}});const s=e=>Boolean(e.match(/^[^. /]+\.[^. /]+\.[^. /]+$/))},18476:function(e,t,n){n.d(t,{R:function(){return i},V:function(){return r}});var s=n(32378);const i=(e,t)=>e.digest===t.digest&&e.name===t.name&&e.context===t.context,r=e=>{const{dataset:t}=e,n=t.sourceType;try{if(n===s.Fv.HTTP){const{url:e}=JSON.parse(t.source);return e}if(n===s.Fv.S3){const{uri:e}=JSON.parse(t.source);return e}if(n===s.Fv.HUGGING_FACE){const{path:e}=JSON.parse(t.source);return`https://huggingface.co/datasets/${e}`}}catch{return null}return null}},21317:function(e,t,n){n.d(t,{h:function(){return p}});var s,i,r,a,o,l=n(31014);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t`/explore/data/models/${e.replace(/\./g,"/")}/version/${t}`,l=(e,t)=>(0,r.Oz)(`/models/${e}/versions/${t}`),c=({loggedModels:e,checkAcl:t=!1})=>{const{modelVersions:n,ucModels:r}=(0,s.useMemo)((()=>{const t=e.flatMap((e=>{var t;const n=null!==(t=(e=>{try{var t,n,s;const i=null===(t=e.info)||void 0===t||null===(n=t.tags)||void 0===n||null===(s=n.find((e=>"mlflow.modelVersions"===e.key)))||void 0===s?void 0:s.value;if(i)return JSON.parse(i)}catch(i){return null}return null})(e))&&void 0!==t?t:[];return n.map((t=>{const n=(0,a.f)(t.name)?o:l;return{displayedName:t.name,version:t.version,link:n(t.name,t.version),source:null,status:null,sourceLoggedModel:e}}))})),n=t.filter((e=>e.displayedName&&(0,a.f)(e.displayedName)));return{modelVersions:t,ucModels:n}}),[e]),{aclResults:c,isLoading:d}=((e,t)=>{const n=(0,s.useMemo)((()=>(t&&e.length,[])),[e,t]),r=(0,i.E)({queries:n}),{aclResults:a,isLoading:o}=(0,s.useMemo)((()=>t&&0!==e.length?{aclResults:{},isLoading:r.some((e=>e.isLoading))}:{aclResults:{},isLoading:!1}),[r,n,t,e.length]);return{aclResults:a,isLoading:o}})(r,t);return{modelVersions:(0,s.useMemo)((()=>n.map((e=>{const n=e.displayedName,s=n&&(0,a.f)(n);let i=!0;var r;t&&s&&n&&(i=null!==(r=c[`${n}:${e.version}`])&&void 0!==r&&r);return{...e,hasAccess:i}}))),[n,t,c]),isLoading:d}}},38243:function(e,t,n){n.d(t,{E:function(){return c}});var s=n(89555),i=n(59403),r=n(68048),a=(n(31014),n(25866)),o=n(50111);var l={name:"1ykowef",styles:"margin-bottom:0"};const c=({datasetWithTags:e,displayTextAsLink:t,className:n})=>{var c;const{dataset:d,tags:p}=e,{theme:u}=(0,i.u)(),m=null===p||void 0===p||null===(c=p.find((({key:e})=>e===a.AS)))||void 0===c?void 0:c.value;return(0,o.FD)("div",{css:(0,s.AH)({display:"flex",flexDirection:"row",alignItems:"center",marginTop:u.spacing.xs,marginBottom:u.spacing.xs},""),className:n,children:[(0,o.Y)(r.TableIcon,{css:(0,s.AH)({marginRight:u.spacing.xs,color:u.colors.textSecondary},"")}),t?(0,o.FD)("div",{children:[d.name," (",d.digest,")"]}):(0,o.FD)(i.T.Text,{size:"md",css:l,children:[d.name," (",d.digest,")"]}),m&&(0,o.Y)(r.Tag,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetwithcontext.tsx_41",css:(0,s.AH)({textTransform:"capitalize",marginLeft:u.spacing.xs,marginRight:u.spacing.xs},""),children:m})]})}},46536:function(e,t,n){n.d(t,{_:function(){return a.A},b:function(){return d}});var s=n(68048),i=n(59403),r=n(31014),a=n(10298),o=n(78404),l=n(50111);const c={rotateLeft:(0,l.Y)(s.UndoIcon,{}),rotateRight:(0,l.Y)(s.RedoIcon,{}),zoomIn:(0,l.Y)(s.ZoomInIcon,{}),zoomOut:(0,l.Y)(s.ZoomOutIcon,{}),close:(0,l.Y)(i.C,{}),left:(0,l.Y)(s.ArrowLeftIcon,{}),right:(0,l.Y)(s.ArrowRightIcon,{})},d=({children:e,visible:t,onVisibleChange:n})=>{const{getImagePreviewPopupContainer:s}=(0,r.useContext)(o.E);return(0,l.Y)(a.A.PreviewGroup,{icons:c,preview:{visible:t,getContainer:s,onVisibleChange:e=>n(e)},children:e})}},54421:function(e,t,n){n.d(t,{Mc:function(){return p},Rn:function(){return g},TV:function(){return m},mQ:function(){return x}});var s=n(89555),i=n(59403),r=n(68048),a=n(88443),o=n(77484),l=n(31014),c=n(46536),d=n(50111);const p=200;var u={name:"49aokf",styles:"display:contents"};const m=({imageUrl:e,compressedImageUrl:t,imageSize:n,maxImageSize:r})=>{const[a,o]=(0,l.useState)(!1),{theme:p}=(0,i.u)(),[m,g]=(0,l.useState)(!0);return(0,l.useEffect)((()=>{g(!0);const e=new window.Image;return e.onload=()=>g(!1),e.onerror=()=>g(!1),e.src=t,()=>{e.src=""}}),[t]),(0,d.Y)("div",{css:(0,s.AH)({width:n||"100%",height:n||"100%"},""),children:(0,d.Y)("div",{css:u,children:void 0===t||m?(0,d.Y)("div",{css:(0,s.AH)({width:"100%",backgroundColor:p.colors.backgroundSecondary,display:"flex",aspectRatio:"1",justifyContent:"center",alignItems:"center"},""),children:(0,d.Y)(i.S,{})}):(0,d.Y)("div",{css:(0,s.AH)({display:"flex",alignItems:"center",justifyContent:"center",width:n||"100%",aspectRatio:"1",maxWidth:r,maxHeight:r,backgroundColor:p.colors.backgroundSecondary,".rc-image":{cursor:"pointer"}},""),children:(0,d.Y)(c.b,{visible:a,onVisibleChange:o,children:(0,d.Y)(c._,{src:t,preview:{src:e},style:{maxWidth:r||"100%",maxHeight:r||"100%"}})})})})})},g=({metadataByStep:e,imageSize:t,step:n,runUuid:l})=>{const{theme:c}=(0,i.u)();return void 0===e[n]?(0,d.FD)("div",{css:(0,s.AH)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",width:t,backgroundColor:c.colors.backgroundSecondary,padding:c.spacing.md,aspectRatio:"1"},""),children:[(0,d.Y)(r.ImageIcon,{}),(0,d.Y)(a.A,{id:"0XZ2zu",defaultMessage:"No image logged at this step"})]}):(0,d.Y)(m,{imageUrl:(0,o.To)(e[n].filepath,l),compressedImageUrl:(0,o.To)(e[n].compressed_filepath,l),imageSize:t})};var h={name:"1pf7ok1",styles:"display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;font-size:16px"},f={name:"yz1nei",styles:"margin-top:16px"},v={name:"18uqayh",styles:"margin-bottom:16px"};const x=()=>(0,d.FD)("div",{css:h,children:[(0,d.Y)(i.T.Title,{css:f,color:"secondary",level:3,children:"Compare logged images"}),(0,d.Y)(i.T.Text,{css:v,color:"secondary",children:"Use the image grid chart to compare logged images across runs."})]})},79432:function(e,t,n){n.d(t,{E:function(){return p}});var s=n(89555),i=n(9133),r=n(31014),a=n(98655),o=n(59403),l=n(50111);const c="@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)";var d={name:"13bnb9v",styles:"appearance:none;width:0;height:0;border:0;padding:0;position:absolute;bottom:0;visibility:hidden"};const p=({color:e,hidden:t,onChangeColor:n,...p})=>{var u;const[m,g]=(0,r.useState)(void 0),h=(0,r.useMemo)((()=>n?(0,i.debounce)(n,300):()=>{}),[n]);return(0,l.FD)("label",{css:(0,s.AH)({boxSizing:"border-box",width:12,height:12,borderRadius:6,flexShrink:0,border:"1px solid "+(t?"transparent":"rgba(0,0,0,0.1)"),[c]:{marginBottom:1},background:t?"repeating-linear-gradient(\n 135deg,\n #959595 0,\n #e7e7e7 1px,\n #e7e7e7 2px,\n #959595 3px,\n #e7e7e7 4px,\n #e7e7e7 5px,\n #959595 6px,\n #e7e7e7 7px,\n #e7e7e7 8px,\n #959595 9px,\n #e7e7e7 10px,\n #e7e7e7 11px,\n #959595 12px,\n #e7e7e7 13px,\n #e7e7e7 14px\n)":void 0,cursor:n?"pointer":"default",position:"relative","&:hover":{opacity:n?.8:1}},""),style:{backgroundColor:null!==(u=null!==m&&void 0!==m?m:e)&&void 0!==u?u:"transparent"},...p,children:[(0,l.Y)("span",{css:[o.O,"user-select:none;"],children:e}),n&&(0,l.Y)("input",{disabled:t,type:"color",value:null!==m&&void 0!==m?m:e,onChange:({target:e})=>{g(e.value),h(e.value)},list:a.U,css:d})]})}},81866:function(e,t,n){n.d(t,{$0:function(){return d},$c:function(){return w},$p:function(){return p},BE:function(){return T},CG:function(){return v},Gs:function(){return f},IP:function(){return u},QQ:function(){return c},Qs:function(){return y},SF:function(){return _},Tm:function(){return A},UA:function(){return h},Wb:function(){return x},e3:function(){return o},gL:function(){return Y},jI:function(){return l},uB:function(){return C},zA:function(){return m},zr:function(){return g}});var s=n(68048),i=n(88443),r=n(24478),a=n(50111);const o={NONE:"None",STAGING:"Staging",PRODUCTION:"Production",ARCHIVED:"Archived"},l=[o.STAGING,o.PRODUCTION],c={[o.NONE]:"None",[o.STAGING]:"Staging",[o.PRODUCTION]:"Production",[o.ARCHIVED]:"Archived"},d={[o.NONE]:(0,a.Y)(s.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_37",children:c[o.NONE]}),[o.STAGING]:(0,a.Y)(s.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_38",color:"lemon",children:c[o.STAGING]}),[o.PRODUCTION]:(0,a.Y)(s.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_39",color:"lime",children:c[o.PRODUCTION]}),[o.ARCHIVED]:(0,a.Y)(s.Tag,{componentId:"codegen_mlflow_app_src_model-registry_constants.tsx_40",color:"charcoal",children:c[o.ARCHIVED]})};let p=function(e){return e.APPLIED_TRANSITION="APPLIED_TRANSITION",e.REQUESTED_TRANSITION="REQUESTED_TRANSITION",e.SYSTEM_TRANSITION="SYSTEM_TRANSITION",e.CANCELLED_REQUEST="CANCELLED_REQUEST",e.APPROVED_REQUEST="APPROVED_REQUEST",e.REJECTED_REQUEST="REJECTED_REQUEST",e.NEW_COMMENT="NEW_COMMENT",e}({});(0,a.Y)("div",{style:{marginTop:-12},children:"_"});const u={READY:"READY"},m={[u.READY]:(0,a.Y)(i.A,{id:"f/An1W",defaultMessage:"Ready."})},g={[u.READY]:(0,a.Y)(i.A,{id:"zAvilr",defaultMessage:"Ready"})},h={[u.READY]:(0,a.Y)(r.vV,{})},f=1e4,v=25,x=25,_=75,y="name",T="timestamp",w="creation_timestamp",C={ASC:"ascend",DESC:"descend"},Y=e=>(0,a.Y)(i.A,{id:"Ll6vbT",defaultMessage:"Model versions in the `{currentStage}` stage will be moved to the `Archived` stage.",values:{currentStage:e}}),A="https://mlflow.org/docs/latest/model-registry.html#using-registered-model-aliases"},85343:function(e,t,n){n.d(t,{O:function(){return $}});var s=n(89555),i=n(31014),r=n(59403),a=n(68048),o=n(23823),l=n(25866),c=n(88443),d=n(50111);var p={name:"1d3w5wq",styles:"width:100%"};const u=({schema:e,filter:t})=>{const n=e.filter(((e,n)=>{return s=e.name,i=e.type,""===t||(null===s||void 0===s?void 0:s.toLowerCase().includes(t.toLowerCase()))||(null===i||void 0===i?void 0:i.toLowerCase().includes(t.toLowerCase()));var s,i}));return(0,d.FD)(a.Table,{scrollable:!0,css:p,children:[(0,d.FD)(a.TableRow,{isHeader:!0,children:[(0,d.Y)(a.TableHeader,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetschematable.tsx_57",children:(0,d.Y)(c.A,{id:"rCMgRJ",defaultMessage:"Name"})}),(0,d.Y)(a.TableHeader,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetschematable.tsx_58",children:(0,d.Y)(c.A,{id:"a0NgR8",defaultMessage:"Type"})})]}),(0,d.Y)("div",{onWheel:e=>e.stopPropagation(),children:0===n.length?(0,d.Y)(a.TableRow,{children:(0,d.Y)(a.TableCell,{children:(0,d.Y)(c.A,{id:"dl3Yfr",defaultMessage:"No results match this search."})})}):n.map(((e,t)=>(0,d.FD)(a.TableRow,{children:[(0,d.Y)(a.TableCell,{children:e.name}),(0,d.Y)(a.TableCell,{children:e.type})]},`table-body-row-${t}`)))})]})};var m={name:"zyllbl",styles:"display:flex;flex-direction:column;height:100vh"},g={name:"1bnvdh6",styles:"height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-content:center"},h={name:"84euy4",styles:"display:flex;flex-direction:column;overflow:hidden;height:100vh"},f={name:"1d3w5wq",styles:"width:100%"},v={name:"s1n8ed",styles:"height:100vh"},x={name:"p03wc2",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%"},_={name:"1azakc",styles:"text-align:center"},y={name:"1r9xdqo",styles:"display:flex;flex-direction:column;justify-content:flex-start"},T={name:"1r9xdqo",styles:"display:flex;flex-direction:column;justify-content:flex-start"};const w=({datasetWithTags:e})=>{const{theme:t}=(0,r.u)(),{dataset:n}=e,[o,l]=(0,i.useState)("");if(null===n.schema||""===n.schema)return(0,d.Y)("div",{css:m,children:(0,d.Y)("div",{css:g,children:(0,d.Y)(a.Header,{title:(0,d.Y)("div",{css:(0,s.AH)({color:t.colors.grey600},""),children:"No schema available"})})})});try{const e=JSON.parse(n.schema);return"mlflow_colspec"in e?(0,d.FD)("div",{css:h,children:[(0,d.Y)("div",{css:(0,s.AH)({marginTop:t.spacing.sm,form:{width:"100%"}},""),children:(0,d.Y)(a.TableFilterInput,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetschema.tsx_92",value:o,placeholder:"Search fields",onChange:e=>l(e.target.value),onClear:()=>{l("")},css:f,containerProps:{style:{width:"auto"}}})}),(0,d.Y)("div",{css:(0,s.AH)({marginTop:t.spacing.sm,overflow:"hidden"},""),children:(0,d.Y)(u,{schema:e.mlflow_colspec,filter:o})})]}):"mlflow_tensorspec"in e?(0,d.Y)("div",{css:v,children:(0,d.FD)("div",{css:x,children:[(0,d.Y)(a.TableIcon,{css:(0,s.AH)({fontSize:"56px",color:t.colors.grey600},"")}),(0,d.Y)(a.Header,{title:(0,d.Y)("div",{css:(0,s.AH)({color:t.colors.grey600},""),children:"Array Datasource"})}),(0,d.Y)(r.T.Text,{color:t.colors.grey600,css:_,children:(0,d.Y)(c.A,{id:"sDqD2S",defaultMessage:"The dataset is an array. To see a preview of the dataset, view the dataset in the training notebook."})})]})}):(0,d.Y)("div",{css:(0,s.AH)({marginLeft:t.spacing.lg,marginTop:t.spacing.md,width:"100%"},""),children:(0,d.FD)("div",{css:y,children:[(0,d.Y)(a.Header,{title:(0,d.Y)("div",{css:(0,s.AH)({color:t.colors.grey600},""),children:"Unrecognized Schema Format"})}),(0,d.FD)(r.T.Text,{color:t.colors.grey600,children:[(0,d.Y)(c.A,{id:"T/UYwm",defaultMessage:"Raw Schema JSON: "}),JSON.stringify(e)]})]})})}catch{return(0,d.Y)("div",{css:(0,s.AH)({marginLeft:t.spacing.lg,marginTop:t.spacing.md,width:"100%"},""),children:(0,d.Y)("div",{css:T,children:(0,d.Y)(a.Header,{title:(0,d.Y)("div",{css:(0,s.AH)({color:t.colors.grey600},""),children:"No schema available"})})})})}};var C=n(32378),Y=n(18476),A=n(56412);const b=({datasetWithTags:e,runTags:t})=>{const{dataset:n}=e;if(n.sourceType===C.Fv.HTTP||n.sourceType===C.Fv.HUGGING_FACE){const t=(0,Y.V)(e);if(t)return(0,d.Y)(r.B,{type:"primary",componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetlink.tsx_19_1",icon:(0,d.Y)(r.av,{}),href:t,target:"_blank",children:(0,d.Y)(c.A,{id:"Vvn8Cb",defaultMessage:"Open dataset"})})}if(n.sourceType===C.Fv.S3){const t=(0,Y.V)(e);if(t)return(0,d.Y)(A.i,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetlink.tsx_19_2",icon:(0,d.Y)(a.CopyIcon,{}),copyText:t,children:(0,d.Y)(c.A,{id:"SZj964",defaultMessage:"Copy S3 URI to clipboard"})})}return n.sourceType===C.Fv.EXTERNAL?(0,d.Y)(r.B,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetlink.tsx_19_3",icon:(0,d.Y)(r.av,{}),children:(0,d.Y)(c.A,{id:"tbAlJg",defaultMessage:"Go to external location"})}):null};var E=n(48624),I=n(58481),S=n(38243),R=n(79432);const N=({datasetWithTags:e})=>{const{dataset:t}=e,n=t.sourceType,s=n===C.Fv.HTTP||n===C.Fv.EXTERNAL?(0,d.Y)(c.A,{id:"Aqq08o",defaultMessage:"HTTP"}):n===C.Fv.S3?(0,d.Y)(c.A,{id:"K5rmCE",defaultMessage:"S3"}):n===C.Fv.HUGGING_FACE?(0,d.Y)(c.A,{id:"JuHp/q",defaultMessage:"Hugging Face"}):null;return s?(0,d.Y)(r.T.Hint,{children:(0,d.Y)(c.A,{id:"g2tInh",defaultMessage:"Source type: {typeLabel}",values:{typeLabel:s}})}):null};var D={name:"andpxo",styles:"display:flex;overflow:hidden"},L={name:"1gz2b5f",styles:"overflow:hidden;text-overflow:ellipsis"},H={name:"l8l8b8",styles:"white-space:nowrap;overflow:hidden;text-overflow:ellipsis"};const k=({datasetWithTags:e})=>{const{dataset:t}=e,{theme:n}=(0,r.u)(),i=t.sourceType;if(i===C.Fv.HTTP||i===C.Fv.EXTERNAL||i===C.Fv.HUGGING_FACE){const t=(0,Y.V)(e);if(t)return(0,d.FD)("div",{css:(0,s.AH)({whiteSpace:"nowrap",display:"flex",fontSize:n.typography.fontSizeSm,color:n.colors.textSecondary,columnGap:n.spacing.xs},""),title:t,children:["URL:"," ",(0,d.Y)(r.T.Link,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetsourceurl.tsx_34",openInNewTab:!0,href:t,css:D,children:(0,d.Y)("span",{css:L,children:t})})]})}if(i===C.Fv.S3)try{const{uri:e}=JSON.parse(t.source);if(e)return(0,d.FD)(r.T.Hint,{title:e,css:H,children:["S3 URI: ",e]})}catch{return null}return null},M=({datasetWithTags:e})=>{const{dataset:t}=e;return(0,d.Y)(r.T.Hint,{children:(0,d.Y)(c.A,{id:"WeAgwI",defaultMessage:"Digest: {digest}",values:{digest:(0,d.Y)("code",{children:t.digest})}})})};var F=n(70403);var O={name:"197dxto",styles:"display:flex;align-items:center;height:100%"},U={name:"10fhuyv",styles:"height:100%;display:flex;overflow:auto"},P={name:"1jf8xyb",styles:"display:flex;flex-direction:column;overflow:visible;flex:1"},G={name:"82a6rk",styles:"flex:1"},z={name:"fhxb3m",styles:"display:flex;flex-direction:row;align-items:center"},W={name:"1fu4rcv",styles:"margin-bottom:0;max-width:200px"};const V=({isOpen:e,setIsOpen:t,selectedDatasetWithRun:n,setSelectedDatasetWithRun:i})=>{var p;const{theme:u}=(0,r.u)(),{datasetWithTags:m,runData:g}=n,h=n?null===m||void 0===m||null===(p=m.tags)||void 0===p?void 0:p.find((e=>e.key===l.AS)):void 0,f=m.dataset.profile&&"null"!==m.dataset.profile?m.dataset.profile:void 0,v=(0,F.LE)(),{experimentId:x="",tags:_={}}=g;return(0,d.Y)(a.Drawer.Root,{open:e,onOpenChange:e=>{e||t(!1)},children:(0,d.Y)(a.Drawer.Content,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetdrawer.tsx_81",title:(0,d.FD)("div",{css:O,children:[(0,d.Y)(r.T.Title,{level:4,css:(0,s.AH)({marginRight:u.spacing.sm,marginBottom:0},""),children:(0,d.Y)(c.A,{id:"obI80o",defaultMessage:"Data details for "})}),(0,d.FD)(E.N_,{to:I.Ay.getRunPageRoute(x,g.runUuid),css:j.runLink,children:[(0,d.Y)(R.E,{color:v(g.runUuid)}),(0,d.Y)("span",{css:j.runName,children:g.runName})]})]}),width:"800px",footer:(0,d.Y)(o.S,{size:"xs"}),children:(0,d.FD)("div",{css:(0,s.AH)({display:"flex",borderTop:`1px solid ${u.colors.border}`,height:"100%",marginLeft:-u.spacing.sm},""),children:[(0,d.FD)("div",{css:(0,s.AH)({display:"flex",flexDirection:"column",width:"300px",borderRight:`1px solid ${u.colors.border}`,height:"100%"},""),children:[(0,d.FD)(r.T.Text,{color:"secondary",css:(0,s.AH)({marginBottom:u.spacing.sm,marginTop:u.spacing.sm,paddingLeft:u.spacing.sm},""),children:[g.datasets.length," ",(0,d.Y)(c.A,{id:"vK1v9d",defaultMessage:"datasets used"})]}),(0,d.Y)("div",{css:U,onWheel:e=>e.stopPropagation(),children:(0,d.Y)("div",{css:P,children:g.datasets.map((e=>{return(0,d.Y)(r.T.Link,{componentId:"mlflow.dataset_drawer.dataset_link","aria-label":`${e.dataset.name} (${e.dataset.digest})`,css:(0,s.AH)({display:"flex",whiteSpace:"nowrap",textDecoration:"none",cursor:"pointer",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",backgroundColor:(n=e,a=m,n.dataset.digest===a.dataset.digest&&n.dataset.name===a.dataset.name?u.colors.actionTertiaryBackgroundPress:"transparent"),paddingBottom:u.spacing.sm,paddingTop:u.spacing.sm,paddingLeft:u.spacing.sm,border:0,borderTop:`1px solid ${u.colors.border}`,"&:hover":{backgroundColor:u.colors.actionTertiaryBackgroundHover}},""),onClick:()=>{i({datasetWithTags:e,runData:g}),t(!0)},children:(0,d.Y)(S.E,{datasetWithTags:e,displayTextAsLink:!1})},`${e.dataset.name}-${e.dataset.digest}`);var n,a}))})})]}),(0,d.FD)("div",{css:(0,s.AH)({overflow:"hidden",paddingLeft:u.spacing.md,paddingTop:u.spacing.md,display:"flex",flexDirection:"column",width:"100%"},""),children:[(0,d.FD)("div",{css:(0,s.AH)({display:"flex",gap:u.spacing.sm},""),children:[(0,d.FD)("div",{css:G,children:[(0,d.Y)(a.Header,{title:(0,d.FD)("div",{css:z,children:[(0,d.Y)(a.TableIcon,{css:(0,s.AH)({marginRight:u.spacing.xs},"")}),(0,d.Y)(a.LegacyTooltip,{title:m.dataset.name,children:(0,d.Y)(r.T.Title,{ellipsis:!0,level:3,css:W,children:m.dataset.name})}),h&&(0,d.Y)(a.Tag,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewdatasetdrawer.tsx_206",css:(0,s.AH)({textTransform:"capitalize",marginLeft:u.spacing.xs,marginRight:u.spacing.xs},""),children:h.value})]})}),(0,d.Y)(r.T.Title,{level:4,color:"secondary",css:(0,s.AH)({marginBottom:u.spacing.xs,marginTop:u.spacing.xs},""),title:f,children:m.dataset.profile&&"null"!==m.dataset.profile?m.dataset.profile.length>80?`${m.dataset.profile.substring(0,80)} ...`:m.dataset.profile:(0,d.Y)(c.A,{id:"uq6CTI",defaultMessage:"No profile available"})})]}),(0,d.Y)(b,{datasetWithTags:m,runTags:_})]}),(0,d.FD)("div",{css:(0,s.AH)({flexShrink:0,display:"flex",flexDirection:"column",gap:u.spacing.xs},""),children:[(0,d.Y)(M,{datasetWithTags:m}),(0,d.Y)(N,{datasetWithTags:m}),(0,d.Y)(k,{datasetWithTags:m})]}),(0,d.Y)("div",{css:(0,s.AH)({marginTop:u.spacing.sm,marginBottom:u.spacing.xs,borderTop:`1px solid ${u.colors.border}`,opacity:.5},"")}),(0,d.Y)(w,{datasetWithTags:m})]})]})})})},$=i.memo(V),j={runLink:{overflow:"hidden",display:"flex",gap:8,alignItems:"center"},runName:{overflow:"hidden",textOverflow:"ellipsis",fontSize:"13px"}}}}]); +//# sourceMappingURL=8521.b52661e6.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8521.b52661e6.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8521.b52661e6.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..7f3774785b7dacc4a3f4e2845cf94a06814d3cf9 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8521.b52661e6.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/8521.b52661e6.chunk.js","mappings":"gLAGA,SAASA,EAAqBC,GAC5B,QAAgBC,IAAZD,EAGJ,MAA0B,kBAAZA,GAAwBA,aAAmBE,UAAYF,aAAmBG,KACpFH,EACAI,KAAKC,UAAUL,EACrB,CAGO,MAAMM,EAA0BC,MACrCC,EACAC,EAA8C,MAC9CC,KAEA,MAAMC,EAAU,IACVD,EAAO,CAAE,eAAgB,oBAAuB,CAAC,MAClDE,EAAAA,EAAAA,IAAkBC,SAASC,SAE1BC,QAAiBC,MAAMR,EAAK,CAChCC,SACAC,KAAMX,EAAqBW,GAC3BC,YAEF,IAAKI,EAASE,GAAI,CAChB,MAAMC,GAAkBC,EAAAA,EAAAA,IAAqBJ,GAC7C,GAAIG,EAAiB,CACnB,IAEE,MAAME,SAAiBL,EAASM,QAAQD,QACxCF,EAAgBE,QAAiB,OAAPA,QAAO,IAAPA,EAAAA,EAAWF,EAAgBE,OACvD,CAAE,MACA,CAEF,MAAMF,CACR,CACF,CACA,OAAOH,EAASM,MAAM,C,wDCnCjB,MAAMC,EAAiBC,GAAiBC,QAAQD,EAAKE,M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,IAACE,SAAA,EAC3FC,EAAAA,EAAAA,GAAC+L,EAA2B,CAACvT,gBAAiBA,KAC9CwH,EAAAA,EAAAA,GAACqL,EAA+B,CAAC7S,gBAAiBA,KAClDwH,EAAAA,EAAAA,GAACwL,EAA8B,CAAChT,gBAAiBA,QAGnDwH,EAAAA,EAAAA,GAAA,OACEV,KAAGC,EAAAA,EAAAA,IAAE,CACHI,UAAWV,EAAMW,QAAQqK,GACzBnK,aAAcb,EAAMW,QAAQC,GAC5B2N,UAAW,aAAavO,EAAMmB,OAAO2F,SACrCG,QAAS,IACV,OAEHlG,EAAAA,EAAAA,GAAC6J,EAA2B,CAACrR,gBAAiBA,aAIxC,EAMLiW,EAA8BC,EAAAA,KAAW1C,GAEhDpN,EAAS,CACbwO,QAAS,CACP7C,SAAU,SACV/K,QAAS,OACT6O,IAAK,EACL3O,WAAY,UAEd2N,QAAS,CACP9C,SAAU,SACVoE,aAAc,WACdlE,SAAU,Q","sources":["experiment-tracking/hooks/logged-models/request.utils.ts","experiment-tracking/utils/IsUCModelName.ts","experiment-tracking/utils/DatasetUtils.ts","common/static/registered-model-grey-ok.svg","experiment-tracking/components/experiment-logged-models/hooks/useExperimentLoggedModelRegisteredVersions.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetWithContext.tsx","shared/building_blocks/Image.tsx","experiment-tracking/components/runs-charts/components/charts/ImageGridPlot.common.tsx","experiment-tracking/components/experiment-page/components/RunColorPill.tsx","model-registry/constants.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetSchemaTable.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetSchema.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetLink.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetSourceType.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetSourceURL.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetDigest.tsx","experiment-tracking/components/experiment-page/components/runs/ExperimentViewDatasetDrawer.tsx"],"sourcesContent":["import { matchPredefinedError } from '@databricks/web-shared/errors';\nimport { getDefaultHeaders } from '../../../common/utils/FetchUtils';\n\nfunction serializeRequestBody(payload: any | FormData | Blob) {\n if (payload === undefined) {\n return undefined;\n }\n return typeof payload === 'string' || payload instanceof FormData || payload instanceof Blob\n ? payload\n : JSON.stringify(payload);\n}\n\n// Helper method to make a request to the backend.\nexport const loggedModelsDataRequest = async (\n url: string,\n method: 'POST' | 'GET' | 'PATCH' | 'DELETE' = 'GET',\n body?: any,\n) => {\n const headers = {\n ...(body ? { 'Content-Type': 'application/json' } : {}),\n ...getDefaultHeaders(document.cookie),\n };\n const response = await fetch(url, {\n method,\n body: serializeRequestBody(body),\n headers,\n });\n if (!response.ok) {\n const predefinedError = matchPredefinedError(response);\n if (predefinedError) {\n try {\n // Attempt to use message from the response\n const message = (await response.json()).message;\n predefinedError.message = message ?? predefinedError.message;\n } catch {\n // If the message can't be parsed, use default one\n }\n throw predefinedError;\n }\n }\n return response.json();\n};\n","/**\n * Checks if a given model name is a valid UC entity name.\n * A valid UC entity name follows the pattern: \"catalog.schema.model\".\n * This is used to distinguish from other registries model names which should not contain dots.\n */\nexport const isUCModelName = (name: string) => Boolean(name.match(/^[^. /]+\\.[^. /]+\\.[^. /]+$/));\n","import { DatasetSourceTypes, type DatasetSummary, type RunDatasetWithTags } from '../types';\n\nexport const datasetSummariesEqual = (summary1: DatasetSummary, summary2: DatasetSummary) =>\n summary1.digest === summary2.digest && summary1.name === summary2.name && summary1.context === summary2.context;\n\nexport const getDatasetSourceUrl = (datasetWithTags: RunDatasetWithTags) => {\n const { dataset } = datasetWithTags;\n const sourceType = dataset.sourceType;\n try {\n if (sourceType === DatasetSourceTypes.HTTP) {\n const { url } = JSON.parse(dataset.source);\n return url;\n }\n if (sourceType === DatasetSourceTypes.S3) {\n const { uri } = JSON.parse(dataset.source);\n return uri;\n }\n if (sourceType === DatasetSourceTypes.HUGGING_FACE) {\n const { path } = JSON.parse(dataset.source);\n return `https://huggingface.co/datasets/${path}`;\n }\n } catch {\n return null;\n }\n return null;\n};\n","var _path, _g, _path2, _path3, _defs;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nfunction SvgRegisteredModelGreyOk({\n title,\n titleId,\n ...props\n}, svgRef) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 19,\n height: 16,\n viewBox: \"0 0 19 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_0_3)\"\n }, /*#__PURE__*/React.createElement(\"mask\", {\n id: \"mask0_0_3\",\n style: {\n maskType: \"luminance\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: 0,\n y: 0,\n width: 16,\n height: 16\n }, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 0H0V16H16V0Z\",\n fill: \"white\"\n }))), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n mask: \"url(#mask0_0_3)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M2.75 3.49999C2.05964 3.49999 1.5 4.05963 1.5 4.74999C1.5 5.44034 2.05964 5.99999 2.75 5.99999C3.44036 5.99999 4 5.44034 4 4.74999C4 4.05963 3.44036 3.49999 2.75 3.49999ZM0 4.74999C0 3.2312 1.23122 1.99999 2.75 1.99999C3.77682 1.99999 4.6722 2.56276 5.14452 3.39669L9.51655 2.44626C9.66772 1.0704 10.8338 0 12.25 0C13.7688 0 15 1.23122 15 2.75C15 3.87686 14.3222 4.84541 13.3521 5.27025L13.6341 7.52661C14.9711 7.71349 16 8.86158 16 10.25C16 11.7688 14.7687 13 13.25 13C12.3895 13 11.6214 12.6048 11.1172 11.9861L8.49749 13.1322C8.49913 13.1713 8.49997 13.2105 8.49997 13.25C8.49996 14.7688 7.26875 16 5.74997 16C4.23118 16 2.99997 14.7688 2.99996 13.25C2.99997 12.3569 3.42568 11.5633 4.08524 11.0609L3.01322 7.48755C2.92659 7.49578 2.83878 7.49999 2.75 7.49999C1.23122 7.49999 0 6.26877 0 4.74999ZM5.46534 5.18782C5.48277 5.07884 5.4938 4.96773 5.49804 4.85488L9.76409 3.92748C10.1528 4.74671 10.9346 5.34321 11.8658 5.47338L12.1478 7.72974C11.7709 7.89483 11.438 8.14204 11.1719 8.44873L5.46534 5.18782ZM4.82802 6.55126C4.70399 6.69422 4.56546 6.82424 4.41471 6.93906L5.48674 10.5124C5.57337 10.5042 5.66118 10.5 5.74997 10.5C6.69483 10.5 7.52839 10.9765 8.02345 11.7023L10.5231 10.6087C10.5079 10.4913 10.5 10.3716 10.5 10.25C10.5 10.101 10.5118 9.95475 10.5346 9.81218L4.82802 6.55126ZM12 10.25C12 9.55963 12.5596 8.99999 13.25 8.99999C13.9403 8.99999 14.5 9.55963 14.5 10.25C14.5 10.9403 13.9403 11.5 13.25 11.5C12.5596 11.5 12 10.9403 12 10.25ZM5.74997 12C5.05961 12 4.49997 12.5596 4.49997 13.25C4.49997 13.9403 5.05961 14.5 5.74997 14.5C6.44032 14.5 6.99997 13.9403 6.99997 13.25C6.99997 12.5596 6.44032 12 5.74997 12ZM11 2.75C11 2.05964 11.5596 1.5 12.25 1.5C12.9403 1.5 13.5 2.05964 13.5 2.75C13.5 3.44036 12.9403 4 12.25 4C11.5596 4 11 3.44036 11 2.75Z\",\n fill: \"currentColor\"\n }))), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.5 14C15.433 14 17 12.433 17 10.5C17 8.567 15.433 7 13.5 7C11.567 7 10 8.567 10 10.5C10 12.433 11.567 14 13.5 14Z\",\n fill: \"white\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M11.125 11C11.125 9.41218 12.4122 8.125 14 8.125C15.5878 8.125 16.875 9.41218 16.875 11C16.875 12.5878 15.5878 13.875 14 13.875C12.4122 13.875 11.125 12.5878 11.125 11ZM14 6.625C11.5838 6.625 9.625 8.58375 9.625 11C9.625 13.4162 11.5838 15.375 14 15.375C16.4162 15.375 18.375 13.4162 18.375 11C18.375 8.58375 16.4162 6.625 14 6.625ZM14.0303 12.5303L16.0303 10.5303L14.9697 9.46967L13.5 10.9393L13.0303 10.4697L11.9697 11.5303L12.9697 12.5303L13.5 13.0607L14.0303 12.5303Z\",\n fill: \"#3CAA60\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_0_3\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 19,\n height: 16,\n fill: \"white\"\n })))));\n}\nconst ForwardRef = /*#__PURE__*/React.forwardRef(SvgRegisteredModelGreyOk);\nexport default __webpack_public_path__ + \"static/media/registered-model-grey-ok.8274b58d39504c8d1b8c358aa1c9aa35.svg\";\nexport { ForwardRef as ReactComponent };","import { useMemo } from 'react';\nimport { useQueries } from '../../../../common/utils/reactQueryHooks';\nimport type { LoggedModelProto } from '../../../types';\nimport { RunPageModelVersionSummary } from '../../run-page/hooks/useUnifiedRegisteredModelVersionsSummariesForRun';\nimport { createMLflowRoutePath } from '../../../../common/utils/RoutingUtils';\nimport { isUCModelName } from '../../../utils/IsUCModelName';\nconst MODEL_VERSIONS_TAG_NAME = 'mlflow.modelVersions';\n\nconst getUCModelUrl = (name: string, version: string) =>\n `/explore/data/models/${name.replace(/\\./g, '/')}/version/${version}`;\nconst getWMRModelUrl = (name: string, version: string) => createMLflowRoutePath(`/models/${name}/versions/${version}`);\n\nconst getTagValueForModel = (loggedModel: LoggedModelProto): { name: string; version: string }[] | null => {\n try {\n const tagValue = loggedModel.info?.tags?.find((tag) => tag.key === MODEL_VERSIONS_TAG_NAME)?.value;\n\n if (tagValue) {\n // Try to parse the tag. If it's malformed, catch and return nothing.\n return JSON.parse(tagValue);\n }\n } catch (e) {\n return null;\n }\n return null;\n};\n\n// Hook for ACL checking logic\nconst useModelVersionsAclCheck = (\n ucModels: RunPageModelVersionSummary[],\n checkAcl: boolean,\n): { aclResults: Record; isLoading: boolean } => {\n const queries = useMemo(() => {\n if (!checkAcl || ucModels.length === 0) {\n return [];\n }\n return [];\n }, [ucModels, checkAcl]);\n\n const queryResults = useQueries({ queries });\n\n const { aclResults, isLoading } = useMemo(() => {\n if (!checkAcl || ucModels.length === 0) {\n return { aclResults: {}, isLoading: false };\n }\n\n const isLoading = queryResults.some((result) => result.isLoading);\n const aclResults: Record = {};\n return { aclResults, isLoading };\n }, [queryResults, queries, checkAcl, ucModels.length]);\n\n return { aclResults, isLoading };\n};\n\nexport interface RunPageModelVersionSummaryWithAccess extends RunPageModelVersionSummary {\n hasAccess: boolean;\n}\n\nexport interface UseExperimentLoggedModelRegisteredVersionsResult {\n modelVersions: RunPageModelVersionSummaryWithAccess[];\n isLoading: boolean;\n}\n\nexport const useExperimentLoggedModelRegisteredVersions = ({\n loggedModels,\n checkAcl = false,\n}: {\n loggedModels: LoggedModelProto[];\n checkAcl?: boolean;\n}): UseExperimentLoggedModelRegisteredVersionsResult => {\n // Combined useMemo for parsing tags and creating model versions\n const { modelVersions, ucModels } = useMemo(() => {\n const modelVersions = loggedModels.flatMap((loggedModel) => {\n const modelVersionsInTag = getTagValueForModel(loggedModel) ?? [];\n return modelVersionsInTag.map((registeredModelEntry) => {\n const isUCModel = isUCModelName(registeredModelEntry.name);\n const getUrlFn = isUCModel ? getUCModelUrl : getWMRModelUrl;\n return {\n displayedName: registeredModelEntry.name,\n version: registeredModelEntry.version,\n link: getUrlFn(registeredModelEntry.name, registeredModelEntry.version),\n source: null,\n status: null,\n sourceLoggedModel: loggedModel,\n };\n });\n });\n\n const ucModels = modelVersions.filter((model) => model.displayedName && isUCModelName(model.displayedName));\n\n return { modelVersions, ucModels };\n }, [loggedModels]);\n\n const { aclResults, isLoading } = useModelVersionsAclCheck(ucModels, checkAcl);\n\n // Add hasAccess to each model version\n const modelVersionsWithAccess = useMemo(\n () =>\n modelVersions.map((modelVersion) => {\n const displayedName = modelVersion.displayedName;\n const isUCModel = displayedName && isUCModelName(displayedName);\n\n let hasAccess = true; // Default for workspace models\n\n if (checkAcl && isUCModel && displayedName) {\n // For UC models with ACL check enabled, use the ACL result\n hasAccess = aclResults[`${displayedName}:${modelVersion.version}`] ?? false;\n }\n\n return {\n ...modelVersion,\n hasAccess,\n };\n }),\n [modelVersions, checkAcl, aclResults],\n );\n\n return {\n modelVersions: modelVersionsWithAccess,\n isLoading,\n };\n};\n","import { TableIcon, Tag, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport type { RunDatasetWithTags } from '../../../../types';\nimport React from 'react';\nimport { MLFLOW_RUN_DATASET_CONTEXT_TAG } from '../../../../constants';\n\nexport interface DatasetWithContextProps {\n datasetWithTags: RunDatasetWithTags;\n displayTextAsLink: boolean;\n className?: string;\n}\n\nexport const ExperimentViewDatasetWithContext = ({\n datasetWithTags,\n displayTextAsLink,\n className,\n}: DatasetWithContextProps) => {\n const { dataset, tags } = datasetWithTags;\n const { theme } = useDesignSystemTheme();\n\n const contextTag = tags?.find(({ key }) => key === MLFLOW_RUN_DATASET_CONTEXT_TAG)?.value;\n\n return (\n \n \n {displayTextAsLink ? (\n
\n {dataset.name} ({dataset.digest})\n
\n ) : (\n \n {dataset.name} ({dataset.digest})\n \n )}\n {contextTag && (\n \n {contextTag}\n \n )}\n
\n );\n};\n","import {\n ArrowLeftIcon,\n ArrowRightIcon,\n CloseIcon,\n DesignSystemContext,\n RedoIcon,\n UndoIcon,\n ZoomInIcon,\n ZoomOutIcon,\n} from '@databricks/design-system';\nimport { useContext } from 'react';\nimport RcImage from 'rc-image';\nimport './Image.css';\nimport { MLflowImagePreviewContainer } from '../../common/components/DesignSystemContainer';\n\nconst icons = {\n rotateLeft: ,\n rotateRight: ,\n zoomIn: ,\n zoomOut: ,\n close: ,\n left: ,\n right: ,\n};\n\nexport const ImagePreviewGroup = ({\n children,\n visible,\n onVisibleChange,\n}: {\n children: React.ReactNode;\n visible: boolean;\n onVisibleChange: (v: boolean) => void;\n}) => {\n const { getImagePreviewPopupContainer } = useContext(MLflowImagePreviewContainer);\n\n return (\n onVisibleChange(v),\n }}\n >\n {children}\n \n );\n};\n\nexport { RcImage as Image };\n","import { ImageIcon, Spinner } from '@databricks/design-system';\nimport { useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { getArtifactLocationUrl } from '@mlflow/mlflow/src/common/utils/ArtifactUtils';\nimport { ImageEntity } from '@mlflow/mlflow/src/experiment-tracking/types';\nimport { useState, useEffect } from 'react';\nimport { Typography } from '@databricks/design-system';\nimport { ImagePreviewGroup, Image } from '../../../../../shared/building_blocks/Image';\n\n/**\n * Despite image size being dynamic, we want to set a minimum size for the grid images.\n */\nexport const MIN_GRID_IMAGE_SIZE = 200;\n\ntype ImagePlotProps = {\n imageUrl: string;\n compressedImageUrl: string;\n imageSize?: number;\n maxImageSize?: number;\n};\n\nexport const ImagePlot = ({ imageUrl, compressedImageUrl, imageSize, maxImageSize }: ImagePlotProps) => {\n const [previewVisible, setPreviewVisible] = useState(false);\n const { theme } = useDesignSystemTheme();\n\n const [imageLoading, setImageLoading] = useState(true);\n\n useEffect(() => {\n // Load the image in the memory (should reuse the same request) in order to get the loading state\n setImageLoading(true);\n const img = new window.Image();\n img.onload = () => setImageLoading(false);\n img.onerror = () => setImageLoading(false);\n img.src = compressedImageUrl;\n return () => {\n img.src = '';\n };\n }, [compressedImageUrl]);\n\n return (\n
\n
\n {compressedImageUrl === undefined || imageLoading ? (\n \n \n
\n ) : (\n \n \n \n \n
\n )}\n
\n \n );\n};\n\nexport const ImagePlotWithHistory = ({\n metadataByStep,\n imageSize,\n step,\n runUuid,\n}: {\n metadataByStep: Record;\n imageSize?: number;\n step: number;\n runUuid: string;\n}) => {\n const { theme } = useDesignSystemTheme();\n\n if (metadataByStep[step] === undefined) {\n return (\n \n \n runs charts > charts > image plot with history > no image text\"\n />\n \n );\n }\n return (\n \n );\n};\n\nexport const EmptyImageGridPlot = () => {\n return (\n \n \n Compare logged images\n \n \n Use the image grid chart to compare logged images across runs.\n \n \n );\n};\n","// This media query applies to screens with a pixel density of 2 or higher\n\nimport { debounce } from 'lodash';\nimport { useMemo, useState } from 'react';\nimport { COLORS_PALETTE_DATALIST_ID } from '../../../../common/components/ColorsPaletteDatalist';\nimport { visuallyHidden } from '@databricks/design-system';\n\n// and higher resolution values (e.g. Retina displays). 192 dpi is double the \"default\" historical 96 dpi.\nconst HIGH_RESOLUTION_MEDIA_QUERY = '@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)';\n\nconst stripedHiddenBackgroundStyle = `repeating-linear-gradient(\n 135deg,\n #959595 0,\n #e7e7e7 1px,\n #e7e7e7 2px,\n #959595 3px,\n #e7e7e7 4px,\n #e7e7e7 5px,\n #959595 6px,\n #e7e7e7 7px,\n #e7e7e7 8px,\n #959595 9px,\n #e7e7e7 10px,\n #e7e7e7 11px,\n #959595 12px,\n #e7e7e7 13px,\n #e7e7e7 14px\n)`;\n\n/**\n * Renders a colored rounded pill for a run.\n */\nexport const RunColorPill = ({\n color,\n hidden,\n onChangeColor,\n ...props\n}: {\n color?: string;\n hidden?: boolean;\n onChangeColor?: (colorValue: string) => void;\n}) => {\n const [colorValue, setColorValue] = useState(undefined);\n\n const onChangeColorDebounced = useMemo(() => {\n // Implementations of vary from browser to browser, some browser\n // fire an event on every color change so we debounce the event to avoid multiple\n // calls to the onChangeColor handler.\n if (onChangeColor) {\n return debounce(onChangeColor, 300);\n }\n return () => {};\n }, [onChangeColor]);\n\n return (\n
No schema available} />\n \n \n );\n }\n try {\n const schema = JSON.parse(dataset.schema);\n if ('mlflow_colspec' in schema) {\n // if the dataset schema is colspec\n return (\n \n \n setFilter(e.target.value)}\n onClear={() => {\n setFilter('');\n }}\n css={{ width: '100%' }}\n containerProps={{ style: { width: 'auto' } }}\n />\n \n \n \n \n \n );\n } else if ('mlflow_tensorspec' in schema) {\n // if the dataset schema is tensorspec\n return (\n
\n \n \n
Array Datasource
} />\n {/* @ts-expect-error Type 'string' is not assignable to type '\"primary\" | \"secondary\" | \"info\" | \"error\" | \"success\" | \"warning\" | undefined' */}\n \n \n \n \n \n );\n } else {\n // if the dataset schema is not colspec or tensorspec\n return (\n
\n
\n
Unrecognized Schema Format
} />\n {/* @ts-expect-error Type 'string' is not assignable to type '\"primary\" | \"secondary\" | \"info\" | \"error\" | \"success\" | \"warning\" | undefined' */}\n \n \n {JSON.stringify(schema)}\n \n
\n \n );\n }\n } catch {\n return (\n
\n
\n
No schema available
} />\n
\n \n );\n }\n};\n","import { Button, CopyIcon, NewWindowIcon, Typography } from '@databricks/design-system';\nimport { DatasetSourceTypes, RunDatasetWithTags } from '../../../../types';\nimport React from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { getDatasetSourceUrl } from '../../../../utils/DatasetUtils';\nimport { CopyButton } from '../../../../../shared/building_blocks/CopyButton';\n\nexport interface DatasetLinkProps {\n datasetWithTags: RunDatasetWithTags;\n runTags: Record;\n}\n\nexport const ExperimentViewDatasetLink = ({ datasetWithTags, runTags }: DatasetLinkProps) => {\n const { dataset } = datasetWithTags;\n if (dataset.sourceType === DatasetSourceTypes.HTTP || dataset.sourceType === DatasetSourceTypes.HUGGING_FACE) {\n const url = getDatasetSourceUrl(datasetWithTags);\n if (url) {\n return (\n }\n href={url}\n target=\"_blank\"\n >\n \n \n );\n }\n }\n if (dataset.sourceType === DatasetSourceTypes.S3) {\n const url = getDatasetSourceUrl(datasetWithTags);\n if (url) {\n return (\n }\n copyText={url}\n >\n \n \n );\n }\n }\n if (dataset.sourceType === DatasetSourceTypes.EXTERNAL) {\n return (\n }\n >\n \n \n );\n }\n return null;\n};\n","import { Typography } from '@databricks/design-system';\nimport { DatasetSourceTypes, RunDatasetWithTags } from '../../../../types';\nimport React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nexport interface ExperimentViewDatasetSourceTypeProps {\n datasetWithTags: RunDatasetWithTags;\n}\n\nexport const ExperimentViewDatasetSourceType = ({ datasetWithTags }: ExperimentViewDatasetSourceTypeProps) => {\n const { dataset } = datasetWithTags;\n\n const sourceType = dataset.sourceType;\n\n const getSourceTypeLabel = () => {\n if (sourceType === DatasetSourceTypes.HTTP || sourceType === DatasetSourceTypes.EXTERNAL) {\n return (\n source type > HTTP source type label\"\n />\n );\n }\n if (sourceType === DatasetSourceTypes.S3) {\n return (\n source type > S3 source type label\"\n />\n );\n }\n if (sourceType === DatasetSourceTypes.HUGGING_FACE) {\n return (\n source type > Hugging Face source type label\"\n />\n );\n }\n return null;\n };\n\n const typeLabel = getSourceTypeLabel();\n\n if (typeLabel) {\n return (\n \n source type > label\"\n values={{ typeLabel }}\n />\n \n );\n }\n\n return null;\n};\n","import { Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { DatasetSourceTypes, RunDatasetWithTags } from '../../../../types';\nimport { getDatasetSourceUrl } from '../../../../utils/DatasetUtils';\n\nexport interface ExperimentViewDatasetSourceProps {\n datasetWithTags: RunDatasetWithTags;\n}\n\nexport const ExperimentViewDatasetSourceURL = ({ datasetWithTags }: ExperimentViewDatasetSourceProps) => {\n const { dataset } = datasetWithTags;\n const { theme } = useDesignSystemTheme();\n\n const sourceType = dataset.sourceType;\n\n if (\n sourceType === DatasetSourceTypes.HTTP ||\n sourceType === DatasetSourceTypes.EXTERNAL ||\n sourceType === DatasetSourceTypes.HUGGING_FACE\n ) {\n const url = getDatasetSourceUrl(datasetWithTags);\n if (url) {\n return (\n \n URL:{' '}\n \n {url}\n \n \n );\n }\n }\n if (sourceType === DatasetSourceTypes.S3) {\n try {\n const { uri } = JSON.parse(dataset.source);\n if (uri) {\n return (\n \n S3 URI: {uri}\n \n );\n }\n } catch {\n return null;\n }\n }\n return null;\n};\n","import { Typography } from '@databricks/design-system';\nimport { RunDatasetWithTags } from '../../../../types';\nimport { FormattedMessage } from 'react-intl';\n\nexport const ExperimentViewDatasetDigest = ({ datasetWithTags }: { datasetWithTags: RunDatasetWithTags }) => {\n const { dataset } = datasetWithTags;\n return (\n \n digest > label and value\"\n values={{ digest: {dataset.digest} }}\n />\n \n );\n};\n","import React from 'react';\nimport { useState } from 'react';\nimport {\n Button,\n Drawer,\n Header,\n Spacer,\n TableIcon,\n Tag,\n LegacyTooltip,\n Typography,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport type { RunDatasetWithTags } from '../../../../types';\nimport { MLFLOW_RUN_DATASET_CONTEXT_TAG } from '../../../../constants';\nimport { ExperimentViewDatasetSchema } from './ExperimentViewDatasetSchema';\nimport { ExperimentViewDatasetLink } from './ExperimentViewDatasetLink';\nimport { Link } from '../../../../../common/utils/RoutingUtils';\nimport Routes from '../../../../routes';\nimport { FormattedMessage } from 'react-intl';\nimport { ExperimentViewDatasetWithContext } from './ExperimentViewDatasetWithContext';\nimport { RunColorPill } from '../RunColorPill';\nimport { ExperimentViewDatasetSourceType } from './ExperimentViewDatasetSourceType';\nimport { ExperimentViewDatasetSourceURL } from './ExperimentViewDatasetSourceURL';\nimport { ExperimentViewDatasetDigest } from './ExperimentViewDatasetDigest';\nimport { useSelector } from 'react-redux';\nimport { ReduxState } from '../../../../../redux-types';\nimport { useGetExperimentRunColor } from '../../hooks/useExperimentRunColor';\n\nexport type DatasetWithRunType = {\n datasetWithTags: RunDatasetWithTags;\n runData: {\n experimentId?: string;\n tags?: Record;\n runUuid: string;\n runName?: string;\n datasets: RunDatasetWithTags[];\n };\n};\n\nexport interface DatasetsCellRendererProps {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n selectedDatasetWithRun: DatasetWithRunType;\n setSelectedDatasetWithRun: (datasetWithRun: DatasetWithRunType) => void;\n}\n\nconst DRAWER_WITDH = '800px';\nconst MAX_PROFILE_LENGTH = 80;\n\nconst areDatasetsEqual = (datasetA: RunDatasetWithTags, datasetB: RunDatasetWithTags) => {\n return datasetA.dataset.digest === datasetB.dataset.digest && datasetA.dataset.name === datasetB.dataset.name;\n};\n\nconst ExperimentViewDatasetDrawerImpl = ({\n isOpen,\n setIsOpen,\n selectedDatasetWithRun,\n setSelectedDatasetWithRun,\n}: DatasetsCellRendererProps): JSX.Element => {\n const { theme } = useDesignSystemTheme();\n const { datasetWithTags, runData } = selectedDatasetWithRun;\n const contextTag = selectedDatasetWithRun\n ? datasetWithTags?.tags?.find((tag) => tag.key === MLFLOW_RUN_DATASET_CONTEXT_TAG)\n : undefined;\n const fullProfile =\n datasetWithTags.dataset.profile && datasetWithTags.dataset.profile !== 'null'\n ? datasetWithTags.dataset.profile\n : undefined;\n\n const getRunColor = useGetExperimentRunColor();\n const { experimentId = '', tags = {} } = runData;\n\n return (\n {\n if (!open) {\n setIsOpen(false);\n }\n }}\n >\n \n \n \n \n \n \n {runData.runName}\n \n \n }\n width={DRAWER_WITDH}\n footer={}\n >\n \n {/* column for dataset selection */}\n \n \n {runData.datasets.length}{' '}\n \n \n e.stopPropagation()}\n >\n \n {runData.datasets.map((dataset) => (\n {\n setSelectedDatasetWithRun({ datasetWithTags: dataset, runData: runData });\n setIsOpen(true);\n }}\n >\n \n \n ))}\n \n \n \n {/* column for dataset details */}\n \n {/* dataset metadata */}\n \n
\n \n \n \n \n {datasetWithTags.dataset.name}\n \n \n {contextTag && (\n \n {contextTag.value}\n \n )}\n
\n }\n />\n \n {datasetWithTags.dataset.profile && datasetWithTags.dataset.profile !== 'null' ? (\n datasetWithTags.dataset.profile.length > MAX_PROFILE_LENGTH ? (\n `${datasetWithTags.dataset.profile.substring(0, MAX_PROFILE_LENGTH)} ...`\n ) : (\n datasetWithTags.dataset.profile\n )\n ) : (\n \n )}\n \n \n \n \n
\n \n \n \n
\n {/* dataset schema */}\n \n \n \n \n \n \n );\n};\n\n// Memoize the component so it rerenders only when props change directly, preventing\n// rerenders caused e.g. by the overarching context provider.\nexport const ExperimentViewDatasetDrawer = React.memo(ExperimentViewDatasetDrawerImpl);\n\nconst styles = {\n runLink: {\n overflow: 'hidden',\n display: 'flex',\n gap: 8,\n alignItems: 'center',\n },\n runName: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n fontSize: '13px',\n },\n};\n"],"names":["serializeRequestBody","payload","undefined","FormData","Blob","JSON","stringify","loggedModelsDataRequest","async","url","method","body","headers","getDefaultHeaders","document","cookie","response","fetch","ok","predefinedError","matchPredefinedError","message","json","isUCModelName","name","Boolean","match","datasetSummariesEqual","summary1","summary2","digest","context","getDatasetSourceUrl","datasetWithTags","dataset","sourceType","DatasetSourceTypes","HTTP","parse","source","S3","uri","HUGGING_FACE","path","_path","_g","_path2","_path3","_defs","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","SvgRegisteredModelGreyOk","title","titleId","props","svgRef","width","height","viewBox","fill","xmlns","ref","id","clipPath","style","maskType","maskUnits","x","y","d","mask","fillRule","clipRule","ForwardRef","getUCModelUrl","version","replace","getWMRModelUrl","createMLflowRoutePath","useExperimentLoggedModelRegisteredVersions","loggedModels","checkAcl","modelVersions","ucModels","useMemo","flatMap","loggedModel","_getTagValueForModel","modelVersionsInTag","_loggedModel$info","_loggedModel$info$tag","_loggedModel$info$tag2","tagValue","info","tags","find","tag","key","value","getTagValueForModel","map","registeredModelEntry","getUrlFn","displayedName","link","status","sourceLoggedModel","filter","model","aclResults","isLoading","useModelVersionsAclCheck","queries","queryResults","useQueries","some","result","modelVersion","isUCModel","hasAccess","_aclResults","_ref","styles","ExperimentViewDatasetWithContext","displayTextAsLink","className","_tags$find","theme","useDesignSystemTheme","contextTag","MLFLOW_RUN_DATASET_CONTEXT_TAG","_jsxs","css","_css","display","flexDirection","alignItems","marginTop","spacing","xs","marginBottom","children","_jsx","TableIcon","marginRight","color","colors","textSecondary","Typography","Text","size","Tag","componentId","textTransform","marginLeft","icons","rotateLeft","UndoIcon","rotateRight","RedoIcon","zoomIn","ZoomInIcon","zoomOut","ZoomOutIcon","close","CloseIcon","left","ArrowLeftIcon","right","ArrowRightIcon","ImagePreviewGroup","visible","onVisibleChange","getImagePreviewPopupContainer","useContext","MLflowImagePreviewContainer","RcImage","PreviewGroup","preview","getContainer","v","MIN_GRID_IMAGE_SIZE","ImagePlot","imageUrl","compressedImageUrl","imageSize","maxImageSize","previewVisible","setPreviewVisible","useState","imageLoading","setImageLoading","useEffect","img","window","Image","onload","onerror","src","backgroundColor","backgroundSecondary","aspectRatio","justifyContent","Spinner","maxWidth","maxHeight","cursor","ImagePlotWithHistory","metadataByStep","step","runUuid","textAlign","padding","md","ImageIcon","FormattedMessage","defaultMessage","getArtifactLocationUrl","filepath","compressed_filepath","_ref2","_ref3","_ref4","EmptyImageGridPlot","Title","level","HIGH_RESOLUTION_MEDIA_QUERY","RunColorPill","hidden","onChangeColor","colorValue","setColorValue","onChangeColorDebounced","debounce","boxSizing","borderRadius","flexShrink","border","background","position","opacity","visuallyHidden","disabled","type","onChange","target","list","COLORS_PALETTE_DATALIST_ID","Stages","NONE","STAGING","PRODUCTION","ARCHIVED","ACTIVE_STAGES","StageLabels","StageTagComponents","ActivityTypes","ModelVersionStatus","READY","DefaultModelVersionStatusMessages","modelVersionStatusIconTooltips","ModelVersionStatusIcons","ReadyIcon","MODEL_VERSION_STATUS_POLL_INTERVAL","REGISTERED_MODELS_PER_PAGE_COMPACT","MODEL_VERSIONS_PER_PAGE_COMPACT","MAX_RUNS_IN_SEARCH_MODEL_VERSIONS_FILTER","REGISTERED_MODELS_SEARCH_NAME_FIELD","REGISTERED_MODELS_SEARCH_TIMESTAMP_FIELD","MODEL_VERSIONS_SEARCH_TIMESTAMP_FIELD","AntdTableSortOrder","ASC","DESC","archiveExistingVersionToolTipText","currentStage","values","mlflowAliasesLearnMoreLink","ExperimentViewDatasetSchemaTable","schema","filteredSchema","row","_","hasFilter","toLowerCase","includes","Table","scrollable","TableRow","isHeader","TableHeader","onWheel","stopPropagation","TableCell","idx","_ref5","_ref6","_ref7","_ref8","_ref9","ExperimentViewDatasetSchema","setFilter","Header","grey600","sm","form","TableFilterInput","placeholder","onClear","containerProps","overflow","mlflow_colspec","fontSize","lg","ExperimentViewDatasetLink","runTags","Button","icon","NewWindowIcon","href","CopyButton","CopyIcon","copyText","EXTERNAL","ExperimentViewDatasetSourceType","typeLabel","Hint","ExperimentViewDatasetSourceURL","whiteSpace","typography","fontSizeSm","columnGap","Link","openInNewTab","ExperimentViewDatasetDigest","ExperimentViewDatasetDrawerImpl","isOpen","setIsOpen","selectedDatasetWithRun","setSelectedDatasetWithRun","_datasetWithTags$tags","runData","fullProfile","profile","getRunColor","useGetExperimentRunColor","experimentId","Drawer","Root","open","onOpenChange","Content","to","Routes","getRunPageRoute","runLink","runName","footer","Spacer","borderTop","borderRight","paddingLeft","datasets","textDecoration","datasetA","datasetB","actionTertiaryBackgroundPress","paddingBottom","paddingTop","actionTertiaryBackgroundHover","onClick","areDatasetsEqual","gap","LegacyTooltip","ellipsis","substring","ExperimentViewDatasetDrawer","React","textOverflow"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8649.c727bd23.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8649.c727bd23.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..b926933ece0f5f90559564aa91f2b7a2fee68d26 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8649.c727bd23.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[8649],{8296:function(e,t,s){s.r(t),s.d(t,{ModelPage:function(){return me},ModelPageImpl:function(){return ge},default:function(){return pe},getOrderByExpr:function(){return ce}});var a=s(31014),o=s(10811),i=s(69708),n=s(9133),l=s.n(n),r=s(59403),d=s(68048),c=s(70618),g=s(9856),h=s(88443),u=s(88464),m=s(47664),p=s(81866),f=s(48624),v=s(69869),y=s(76010),S=s(89555),M=s(98597),_=s(50111);const C=({tags:e=[],onAddEdit:t})=>{const{theme:s}=(0,r.u)();return(0,_.Y)("div",{css:(0,S.AH)({display:"flex",flexWrap:"wrap","> *":{marginRight:"0 !important"},gap:s.spacing.xs},""),children:e.length<1?(0,_.Y)(r.B,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetagseditorcell.tsx_29",size:"small",type:"link",onClick:t,children:(0,_.Y)(h.A,{id:"Li72QU",defaultMessage:"Add"})}):(0,_.FD)(_.FK,{children:[e.map((e=>(0,_.Y)(M.t,{tag:e},`${e.key}-${e.value}`))),(0,_.Y)(r.B,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetagseditorcell.tsx_37",size:"small",icon:(0,_.Y)(d.PencilIcon,{}),onClick:t})]})})};var A=s(43683),w=s(23381),T=s(91164),k=s(45653);var b=function(e){return e.STATUS="status",e.VERSION="version",e.CREATION_TIMESTAMP="creation_timestamp",e.USER_ID="user_id",e.TAGS="tags",e.STAGE="current_stage",e.DESCRIPTION="description",e.ALIASES="aliases",e}(b||{});const x=e=>(0,_.Y)(h.A,{id:"4Jyn2b",defaultMessage:"Add/Edit alias for model version {version}",values:{version:e}});var I={name:"10lkuaq",styles:".table-row-select-cell{align-items:flex-start;}"};const R=({modelName:e,modelVersions:t,activeStageOnly:s,orderByAsc:n,orderByKey:l,onSortChange:S,onChange:M,getSortFieldName:R,modelEntity:P,onMetadataUpdated:Y,usingNextModelsUI:D,aliases:E,pagination:V,isLoading:N})=>{var F;const B=(0,a.useMemo)((()=>{const e={};return null===E||void 0===E||E.forEach((({alias:t,version:s})=>{e[s]||(e[s]=[]),e[s].push(t)})),e}),[E]),L=(0,a.useMemo)((()=>s?(t||[]).filter((({current_stage:e})=>p.jI.includes(e))):t),[s,t]),{theme:K}=(0,r.u)(),O=(0,u.A)(),U=(0,a.useMemo)((()=>{const e=(null===L||void 0===L?void 0:L.map((e=>(null===e||void 0===e?void 0:e.tags)||[])).flat())||[];return Array.from(new Set(e.map((({key:e})=>e)))).sort()}),[L]),H=(0,o.wA)(),{EditTagsModal:q,showEditTagsModal:j}=(0,A.Q)({allAvailableTags:U,saveTagsHandler:async(e,t,s)=>H((0,i.kM)(e,t,s)),onSuccess:Y}),{EditAliasesModal:W,showEditAliasesModal:G}=(0,w.t)({aliases:null!==(F=null===P||void 0===P?void 0:P.aliases)&&void 0!==F?F:[],onSuccess:Y,onSave:async(t,s,a)=>H((0,i.mq)(e,t,s,a)),getTitle:x,description:(0,_.Y)(h.A,{id:"2DNVN4",defaultMessage:"Aliases allow you to assign a mutable, named reference to a particular model version. Learn more",values:{link:e=>(0,_.Y)("a",{href:p.Tm,rel:"noreferrer",target:"_blank",children:e})}})}),[$,z]=(0,a.useState)({});(0,a.useEffect)((()=>{const e=(L||[]).filter((({version:e})=>$[e])),t=e.map((({version:e})=>e));M(t,e)}),[$,M,L]);const J=(0,a.useMemo)((()=>{const t=[{id:b.STATUS,enableSorting:!1,header:"",meta:{styles:{flexBasis:K.general.heightSm,flexGrow:0}},cell:({row:{original:e}})=>{const{status:t,status_message:s}=e||{};return(0,_.Y)(d.LegacyTooltip,{title:s||p.zr[t],children:(0,_.Y)(r.T.Text,{children:p.UA[t]})})}}];return t.push({id:b.VERSION,enableSorting:!1,header:O.formatMessage({id:"1f72BQ",defaultMessage:"Version"}),meta:{className:"model-version"},accessorKey:"version",cell:({getValue:t})=>(0,_.Y)(h.A,{id:"yjerKR",defaultMessage:"Version {versionNumber}",values:{link:s=>(0,_.Y)(f.N_,{to:v.fM.getModelVersionPageRoute(e,String(t())),children:s}),versionNumber:t()}})},{id:b.CREATION_TIMESTAMP,enableSorting:!0,meta:{styles:{minWidth:200}},header:O.formatMessage({id:"Nm/Pjx",defaultMessage:"Registered at"}),accessorKey:"creation_timestamp",cell:({getValue:e})=>y.A.formatTimestamp(e(),O)},{id:b.USER_ID,enableSorting:!1,meta:{styles:{minWidth:100}},header:O.formatMessage({id:"xRw7H2",defaultMessage:"Created by"}),accessorKey:"user_id",cell:({getValue:e})=>(0,_.Y)("span",{children:e()})}),D?t.push({id:b.TAGS,enableSorting:!1,header:O.formatMessage({id:"7NOp4F",defaultMessage:"Tags"}),meta:{styles:{flex:2}},accessorKey:"tags",cell:({getValue:e,row:{original:t}})=>(0,_.Y)(C,{tags:e(),onAddEdit:()=>{null===j||void 0===j||j(t)}})},{id:b.ALIASES,accessorKey:"aliases",enableSorting:!1,header:O.formatMessage({id:"wNHR0W",defaultMessage:"Aliases"}),meta:{styles:{flex:2},multiline:!0},cell:({getValue:t,row:{original:s}})=>{const a=B[s.version]||[];return(0,_.Y)(T.Y,{modelName:e,version:s.version,aliases:a,onAddEdit:()=>{null===G||void 0===G||G(s.version)}})}}):t.push({id:b.STAGE,enableSorting:!1,header:O.formatMessage({id:"7F/CBv",defaultMessage:"Stage"}),accessorKey:"current_stage",cell:({getValue:e})=>p.$0[e()]}),t.push({id:b.DESCRIPTION,enableSorting:!1,header:O.formatMessage({id:"Vm9CvZ",defaultMessage:"Description"}),meta:{styles:{flex:2}},accessorKey:"description",cell:({getValue:e})=>(0,k.Y7)(e(),32)}),t}),[K,O,e,j,G,D,B]),X=[{id:l,desc:!n}],Z=(0,c.N4)({data:L||[],columns:J,state:{rowSelection:$,sorting:X},getCoreRowModel:(0,g.HT)(),getSortedRowModel:(0,g.h5)(),getRowId:({version:e})=>e,onRowSelectionChange:z,onSortingChange:e=>{const[t]="function"===typeof e?e(X):e;t&&S({sorter:t})}}),Q=(0,_.Y)(d.Empty,{description:(0,_.Y)(h.A,{id:"ynkoR7",defaultMessage:"No models versions are registered yet. Learn more about how to register a model version.",values:{link:e=>(0,_.Y)(r.T.Link,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversiontable.tsx_425",target:"_blank",href:m.gw,children:e})}}),image:(0,_.Y)(d.PlusIcon,{})});return(0,_.FD)(_.FK,{children:[(0,_.FD)(d.Table,{"data-testid":"model-version-table",pagination:V,scrollable:!0,empty:0===Z.getRowModel().rows.length?Q:void 0,someRowsSelected:Z.getIsSomeRowsSelected()||Z.getIsAllRowsSelected(),children:[(0,_.FD)(d.TableRow,{isHeader:!0,children:[(0,_.Y)(d.TableRowSelectCell,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversiontable.tsx_450",checked:Z.getIsAllRowsSelected(),indeterminate:Z.getIsSomeRowsSelected(),onChange:Z.getToggleAllRowsSelectedHandler()}),Z.getLeafHeaders().map((e=>{var t;return(0,_.Y)(d.TableHeader,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversiontable.tsx_458",multiline:!1,sortable:e.column.getCanSort(),sortDirection:e.column.getIsSorted()||"none",onToggleSort:()=>{const[t]=X,s=!!(e.column.id===t.id)&&!t.desc;e.column.toggleSorting(s)},css:null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.styles,children:(0,c.Kv)(e.column.columnDef.header,e.getContext())},e.id)}))]}),N?(0,_.Y)(d.TableSkeletonRows,{table:Z}):Z.getRowModel().rows.map((e=>(0,_.FD)(d.TableRow,{css:I,children:[(0,_.Y)(d.TableRowSelectCell,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversiontable.tsx_477",checked:e.getIsSelected(),onChange:e.getToggleSelectedHandler()}),e.getAllCells().map((e=>{var t,s,a;return(0,_.Y)(d.TableCell,{className:null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.className,multiline:null===(s=e.column.columnDef.meta)||void 0===s?void 0:s.multiline,css:null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.styles,children:(0,c.Kv)(e.column.columnDef.cell,e.getContext())},e.id)}))]},e.id)))]}),q,W]})};var P=s(10405),Y=s(96034),D=s(41287),E=s(65871),V=s(79085),N=s(64912),F=s(23823),B=s(90925),L=s(3966),K=s(91144),O=s(84963),U=s(73414),H=s(52350);const q="ALL",j="ACTIVE";var W={name:"lugakg",styles:"font-weight:normal"},G={name:"1ootkdu",styles:"margin-bottom:8px;display:flex;justify-content:flex-end"},$={name:"18e72da",styles:"width:100%;align-items:center;display:flex"},z={name:"70euf1",styles:"display:flex;justify-content:flex-end;margin-top:8px"};class J extends a.Component{constructor(e){super(e),this.state={maxResultsSelection:p.Wb,stageFilter:q,showDescriptionEditor:!1,isDeleteModalVisible:!1,isDeleteModalConfirmLoading:!1,runsSelected:{},isTagsRequestPending:!1,updatingEmailPreferences:!1,isTagAssignmentModalVisible:!1,isSavingTags:!1,tagSavingError:void 0},this.formRef=a.createRef(),this.sharedTaggingUIEnabled=(0,K.V0)(),this.handleSetMaxResult=({key:e})=>{this.props.onSetMaxResult(e)},this.getSortFieldName=e=>"creation_timestamp"===e?p.$c:null,this.handleSortChange=e=>{const t=e.sorter;this.props.onClickSortableColumn(this.getSortFieldName(t.id),t.desc)},this.handleStageFilterChange=e=>{this.setState({stageFilter:e.target.value})},this.handleCancelEditDescription=()=>{this.setState({showDescriptionEditor:!1})},this.handleSubmitEditDescription=e=>this.props.handleEditDescription(e).then((()=>{this.setState({showDescriptionEditor:!1})})),this.startEditingDescription=e=>{e.stopPropagation(),this.setState({showDescriptionEditor:!0})},this.showDeleteModal=()=>{this.setState({isDeleteModalVisible:!0})},this.hideDeleteModal=()=>{this.setState({isDeleteModalVisible:!1})},this.showConfirmLoading=()=>{this.setState({isDeleteModalConfirmLoading:!0})},this.hideConfirmLoading=()=>{this.setState({isDeleteModalConfirmLoading:!1})},this.handleDeleteConfirm=()=>{const{navigate:e}=this.props;this.showConfirmLoading(),this.props.handleDelete().then((()=>{e(v.fM.modelListPageRoute)})).catch((e=>{this.hideConfirmLoading(),y.A.logErrorAndNotifyUser(e)}))},this.getTags=()=>l().sortBy(y.A.getVisibleTagValues(this.props.tags).map((e=>({key:e[0],name:e[0],value:e[1]}))),"name"),this.handleEditTags=()=>{this.setState({isTagAssignmentModalVisible:!0,tagSavingError:void 0})},this.handleCloseTagAssignmentModal=()=>{this.setState({isTagAssignmentModalVisible:!1,tagSavingError:void 0})},this.handleAddTag=e=>{const t=this.formRef.current,{model:s}=this.props,a=s.name;this.setState({isTagsRequestPending:!0}),this.props.setRegisteredModelTagApi(a,e.name,e.value).then((()=>{this.setState({isTagsRequestPending:!1}),t.resetFields()})).catch((e=>{this.setState({isTagsRequestPending:!1}),console.error(e);const t=e instanceof H.s?e.getMessageField():e.message;y.A.displayGlobalErrorNotification("Failed to add tag. Error: "+t)}))},this.handleSaveEdit=({name:e,value:t})=>{const{model:s}=this.props,a=s.name;return this.props.setRegisteredModelTagApi(a,e,t).catch((e=>{console.error(e);const t=e instanceof H.s?e.getMessageField():e.message;y.A.displayGlobalErrorNotification("Failed to set tag. Error: "+t)}))},this.handleDeleteTag=({name:e})=>{const{model:t}=this.props,s=t.name;return this.props.deleteRegisteredModelTagApi(s,e).catch((e=>{console.error(e);const t=e instanceof H.s?e.getMessageField():e.message;y.A.displayGlobalErrorNotification("Failed to delete tag. Error: "+t)}))},this.handleSaveTags=(e,t)=>{this.setState({isSavingTags:!0});const{model:s}=this.props,a=s.name,o=e.map((({key:e,value:t})=>this.props.setRegisteredModelTagApi(a,e,t))),i=t.map((({key:e})=>this.props.deleteRegisteredModelTagApi(a,e)));return Promise.all([...o,...i]).then((()=>{this.setState({isSavingTags:!1})})).catch((e=>{const t=e instanceof H.s?e.getMessageField():e.message;this.setState({isSavingTags:!1,tagSavingError:t})}))},this.onChange=(e,t)=>{const s=Object.assign({},this.state);s.runsSelected={},t.forEach((e=>{s.runsSelected={...s.runsSelected,[e.version]:e.run_id}})),this.setState(s)},this.renderDetails=()=>{const{model:e,modelVersions:t,tags:s,currentPage:a,nextPageToken:o}=this.props,{stageFilter:i,showDescriptionEditor:n,isDeleteModalVisible:l,isDeleteModalConfirmLoading:c,isTagsRequestPending:g}=this.state,u=e.name,m=Object.keys(this.state.runsSelected).length<2;return(0,_.FD)("div",{css:Z.wrapper,children:[(0,_.FD)(B.K,{columns:3,"data-testid":"model-view-metadata",children:[(0,_.Y)(B.K.Item,{"data-testid":"model-view-metadata-item",label:this.props.intl.formatMessage({id:"At3XhS",defaultMessage:"Created Time"}),children:y.A.formatTimestamp(e.creation_timestamp,this.props.intl)}),(0,_.Y)(B.K.Item,{"data-testid":"model-view-metadata-item",label:this.props.intl.formatMessage({id:"j/pJM6",defaultMessage:"Last Modified"}),children:y.A.formatTimestamp(e.last_updated_timestamp,this.props.intl)}),e.user_id&&(0,_.Y)(B.K.Item,{"data-testid":"model-view-metadata-item",label:this.props.intl.formatMessage({id:"1jPG5D",defaultMessage:"Creator"}),children:(0,_.Y)("div",{children:e.user_id})})]}),this.sharedTaggingUIEnabled&&(0,_.Y)(B.K,{columns:1,"data-testid":"model-view-tags",children:(0,_.Y)(B.K.Item,{label:"Tags",children:(0,_.Y)(L.L,{tags:this.getTags(),onEdit:this.handleEditTags})})}),(0,_.Y)(P.i,{css:Z.collapsiblePanel,title:(0,_.FD)("span",{children:[(0,_.Y)(h.A,{id:"oHW+ks",defaultMessage:"Description"})," ",n?null:this.renderDescriptionEditIcon()]}),forceOpen:n,defaultCollapsed:!e.description,"data-test-id":"model-description-section",children:(0,_.Y)(Y.V,{defaultMarkdown:e.description,onSubmit:this.handleSubmitEditDescription,onCancel:this.handleCancelEditDescription,showEditor:n})}),!this.sharedTaggingUIEnabled&&(0,_.Y)("div",{"data-test-id":"tags-section",children:(0,_.Y)(P.i,{css:Z.collapsiblePanel,title:(0,_.Y)(h.A,{id:"HyBP+D",defaultMessage:"Tags"}),defaultCollapsed:0===y.A.getVisibleTagValues(s).length,"data-test-id":"model-tags-section",children:(0,_.Y)(D.h,{innerRef:this.formRef,handleAddTag:this.handleAddTag,handleDeleteTag:this.handleDeleteTag,handleSaveEdit:this.handleSaveEdit,tags:s,isRequestPending:g})})}),(0,_.FD)(P.i,{css:Z.collapsiblePanel,title:(0,_.Y)(_.FK,{children:(0,_.FD)("div",{css:Z.versionsTabButtons,children:[(0,_.Y)("span",{children:(0,_.Y)(h.A,{id:"Z5en2d",defaultMessage:"Versions"})}),!this.props.usingNextModelsUI&&(0,_.FD)(d.SegmentedControlGroup,{componentId:"codegen_mlflow_app_src_model-registry_components_modelview.tsx_600",name:"stage-filter",value:this.state.stageFilter,onChange:e=>this.handleStageFilterChange(e),css:W,children:[(0,_.Y)(d.SegmentedControlButton,{value:q,children:(0,_.Y)(h.A,{id:"vi2MM7",defaultMessage:"All"})}),(0,_.FD)(d.SegmentedControlButton,{value:j,children:[(0,_.Y)(h.A,{id:"xPkIEE",defaultMessage:"Active"})," ",this.getActiveVersionsCount()]})]}),(0,_.Y)(r.B,{componentId:"codegen_mlflow_app_src_model-registry_components_modelview.tsx_619","data-testid":"compareButton",disabled:m,onClick:this.onCompare,children:(0,_.Y)(h.A,{id:"FpjDSq",defaultMessage:"Compare"})})]})}),"data-test-id":"model-versions-section",children:[(0,K.WX)()&&(0,_.Y)("div",{css:G,children:(0,_.Y)(O.C,{})}),(0,_.Y)(R,{isLoading:this.props.loading||!1,activeStageOnly:i===j&&!this.props.usingNextModelsUI,modelName:u,modelVersions:t,modelEntity:e,onChange:this.onChange,onMetadataUpdated:this.props.onMetadataUpdated,usingNextModelsUI:this.props.usingNextModelsUI,aliases:null===e||void 0===e?void 0:e.aliases,orderByKey:this.props.orderByKey,orderByAsc:this.props.orderByAsc,onSortChange:this.handleSortChange,getSortFieldName:this.getSortFieldName,pagination:(0,_.Y)("div",{"data-testid":"model-view-pagination-section",css:$,children:(0,_.Y)("div",{css:z,children:(0,_.Y)(d.CursorPagination,{componentId:"codegen_mlflow_app_src_model-registry_components_modelview.tsx_646",hasNextPage:Boolean(o),hasPreviousPage:a>1,onNextPage:this.props.onClickNext,onPreviousPage:this.props.onClickPrev,pageSizeSelect:{onChange:e=>this.handleSetMaxResult({key:e}),default:this.props.maxResultValue,options:[10,25,50,100]}})})})})]}),(0,_.Y)(F.f,{componentId:"codegen_mlflow_app_src_model-registry_components_modelview.tsx_662","data-testid":"mlflow-input-modal",title:this.props.intl.formatMessage({id:"Gg/vLZ",defaultMessage:"Delete Model"}),visible:l,confirmLoading:c,onOk:this.handleDeleteConfirm,okText:this.props.intl.formatMessage({id:"a8rS4O",defaultMessage:"Delete"}),cancelText:this.props.intl.formatMessage({id:"yK/6vg",defaultMessage:"Cancel"}),onCancel:this.hideDeleteModal,children:(0,_.Y)("span",{children:(0,_.Y)(h.A,{id:"HUf9qJ",defaultMessage:"Are you sure you want to delete {modelName}? This cannot be undone.",values:{modelName:u}})})})]})},this.onCompare=this.onCompare.bind(this)}componentDidMount(){const e=`${this.props.model.name} - MLflow Model`;y.A.updatePageTitle(e)}getActiveVersionsCount(){const{modelVersions:e}=this.props;return e?e.filter((e=>p.jI.includes(e.current_stage))).length:0}getOverflowMenuItems(){return[{id:"delete",itemName:(0,_.Y)(h.A,{id:"9fVZg8",defaultMessage:"Delete"}),onClick:this.showDeleteModal,disabled:this.getActiveVersionsCount()>0}]}onCompare(){this.props.model&&this.props.navigate(v.fM.getCompareModelVersionsPageRoute(this.props.model.name,this.state.runsSelected))}renderDescriptionEditIcon(){return(0,_.Y)(r.B,{componentId:"codegen_mlflow_app_src_model-registry_components_modelview.tsx_467","data-test-id":"descriptionEditButton",type:"link",css:Z.editButton,onClick:this.startEditingDescription,children:(0,_.Y)(h.A,{id:"36g3aR",defaultMessage:"Edit"})})}renderMainPanel(){return this.renderDetails()}render(){const{model:e}=this.props,t=e.name,s=[(0,_.Y)(f.N_,{to:v.fM.modelListPageRoute,children:(0,_.Y)(h.A,{id:"raa3Ij",defaultMessage:"Registered Models"})})];return(0,_.FD)("div",{children:[(0,_.Y)(V.z,{title:t,breadcrumbs:s,children:(0,_.Y)(V.o,{menu:this.getOverflowMenuItems()})}),this.renderMainPanel()]})}}const X={setRegisteredModelTagApi:i._e,deleteRegisteredModelTagApi:i.bE},Z={emailNotificationPreferenceDropdown:e=>({width:300,marginBottom:e.spacing.md}),emailNotificationPreferenceTip:e=>({paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm}),collapsiblePanel:e=>({marginBottom:e.spacing.md}),wrapper:e=>({'div[role="button"][aria-expanded]':{height:e.general.buttonHeight}}),editButton:e=>({marginLeft:e.spacing.md}),versionsTabButtons:e=>({display:"flex",gap:e.spacing.md,alignItems:"center"})},Q=(0,o.Ng)(((e,t)=>{const s=t.model.name;return{tags:(0,E.ZG)(s,e)}}),X)((0,U.p)((0,N.Ay)(J)));var ee=s(32614),te=s(48588),se=s(68621),ae=s(96277),oe=s(82214),ie=s(7204),ne=s(25869),le=s(20109),re=s(62448);function de(e){return ee.A.getSessionScopedStoreForComponent("ModelPage",e)}function ce(e,t){return e?`${e} ${t?"ASC":"DESC"}`:""}class ge extends a.Component{constructor(e){super(e),this.modelPageStoreKey="ModelPageStore",this.defaultPersistedPageTokens={1:null},this.initSearchModelVersionsApiRequestId=(0,ie.yk)(),this.initgetRegisteredModelApiRequestId=(0,ie.yk)(),this.updateRegisteredModelApiId=(0,ie.yk)(),this.deleteRegisteredModelApiId=(0,ie.yk)(),this.criticalInitialRequestIds=[this.initSearchModelVersionsApiRequestId,this.initgetRegisteredModelApiRequestId],this.isEmptyPageResponse=e=>!e||!e.model_versions||!e.next_page_token,this.handleEditDescription=e=>{const{model:t}=this.props;return this.props.updateRegisteredModelApi(t.name,e,this.updateRegisteredModelApiId).then((()=>this.loadPage(1,!1,!0)))},this.handleDelete=()=>{const{model:e}=this.props;return this.props.deleteRegisteredModelApi(e.name,this.deleteRegisteredModelApiId).then((()=>{this.props.navigate(v.fM.modelListPageRoute)}))},this.loadPage=(e,t,s=!1)=>{const{modelName:a}=this.props,{pageTokens:o}=this.state;this.setState({loading:!0,error:void 0});const i={name:a},n=[this.props.searchModelVersionsApi(i,t?this.initSearchModelVersionsApiRequestId:null,this.state.maxResultsSelection,ce(this.orderByKey,this.orderByAsc),o[e]).then((t=>{this.updatePageState(e,t)}))];return s&&n.push(this.props.getRegisteredModelApi(a,!0===t?this.initgetRegisteredModelApiRequestId:null)),Promise.all(n).then((()=>{this.setState({loading:!1})})).catch((e=>{this.setState({loading:!1,error:e}),this.resetHistoryState()}))},this.updatePageState=(e,t={})=>{const s=this.getNextPageTokenFromResponse(t);this.setState((t=>({pageTokens:{...t.pageTokens,[e+1]:s}})),(()=>{this.setPersistedPageTokens(this.state.pageTokens)}))},this.handleMaxResultsChange=e=>{this.setState({maxResultsSelection:parseInt(e,10)},(()=>{this.resetHistoryState();const{maxResultsSelection:e}=this.state;this.setMaxResultsInStore(e),this.loadPage(1,!1)}))},this.handleClickNext=()=>{const e=this.currentPage+1;this.updateUrlWithState(this.orderByKey,this.orderByAsc,e).then((()=>{this.loadPage(e,!1)}))},this.handleClickPrev=()=>{const e=this.currentPage-1;this.updateUrlWithState(this.orderByKey,this.orderByAsc,e).then((()=>{this.loadPage(e,!1)}))},this.handleClickSortableColumn=(e,t)=>{const s=!t;this.resetHistoryState(),this.updateUrlWithState(e,s,1).then((()=>{this.loadPage(1,!1)}))},this.getMaxResultsSelection=()=>this.state.maxResultsSelection;const t=this.getPersistedPageTokens(),s=this.getPersistedMaxResults();this.state={maxResultsSelection:s,pageTokens:t,loading:!0,error:void 0}}componentDidMount(){this.loadModelVersions(!0)}updateUrlWithState(e,t,s){return new Promise((a=>{const o=new URLSearchParams(this.props.searchParams);e&&o.set("orderByKey",e),void 0!==t&&o.set("orderByAsc",String(t)),s&&o.set("page",String(s)),this.props.setSearchParams(o),a()}))}resetHistoryState(){this.setState((e=>({pageTokens:this.defaultPersistedPageTokens}))),this.setPersistedPageTokens(this.defaultPersistedPageTokens)}loadModelVersions(e=!0){this.loadPage(this.currentPage,e,!0)}get currentPage(){const e=parseInt(this.props.searchParams.get("page")||"1",10);return isNaN(e)?1:e}get orderByKey(){var e;return null!==(e=this.props.searchParams.get("orderByKey"))&&void 0!==e?e:p.$c}get orderByAsc(){return"true"===this.props.searchParams.get("orderByAsc")}getPersistedPageTokens(){const e=de(this.modelPageStoreKey);return e&&e.getItem("page_tokens")?JSON.parse(e.getItem("page_tokens")):this.defaultPersistedPageTokens}setPersistedPageTokens(e){const t=de(this.modelPageStoreKey);t&&t.setItem("page_tokens",JSON.stringify(e))}getPersistedMaxResults(){const e=de(this.modelPageStoreKey);return e&&e.getItem("max_results")?parseInt(e.getItem("max_results"),10):p.Wb}setMaxResultsInStore(e){de(this.modelPageStoreKey).setItem("max_results",e.toString())}getNextPageTokenFromResponse(e){const{value:t}=e;return this.isEmptyPageResponse(t)?null:t.next_page_token}render(){const{model:e,modelVersions:t,navigate:s,modelName:a}=this.props,{pageTokens:o}=this.state;return(0,_.Y)(te.L,{children:(0,_.Y)(se.Ay,{requestIds:this.criticalInitialRequestIds,children:(i,n,l)=>{if(n){if(y.A.shouldRender404(l,[this.initgetRegisteredModelApiRequestId]))return(0,_.Y)(oe.E,{statusCode:404,subMessage:this.props.intl.formatMessage({id:"tD0/e2",defaultMessage:"Model {modelName} does not exist"},{modelName:a}),fallbackHomePageReactRoute:v.fM.modelListPageRoute});const e=l.filter((e=>{var t;return this.criticalInitialRequestIds.includes(e.id)&&(null===(t=e.error)||void 0===t?void 0:t.getErrorCode())===m.tG.PERMISSION_DENIED}));var r;if(e&&e[0])return(0,_.Y)(oe.E,{statusCode:403,subMessage:this.props.intl.formatMessage({id:"rJitqj",defaultMessage:'Permission denied for {modelName}. Error: "{errorMsg}"'},{modelName:a,errorMsg:null===(r=e[0].error)||void 0===r?void 0:r.getMessageField()}),fallbackHomePageReactRoute:v.fM.modelListPageRoute});(0,se.dD)(l)}else{if(i)return(0,_.Y)(ae.y,{});if(e)return(0,_.Y)(Q,{model:e,modelVersions:t,handleEditDescription:this.handleEditDescription,handleDelete:this.handleDelete,navigate:s,onMetadataUpdated:this.loadModelVersions,orderByKey:this.orderByKey,orderByAsc:this.orderByAsc,currentPage:this.currentPage,nextPageToken:o[this.currentPage+1],onClickNext:this.handleClickNext,onClickPrev:this.handleClickPrev,onClickSortableColumn:this.handleClickSortableColumn,onSetMaxResult:this.handleMaxResultsChange,maxResultValue:this.getMaxResultsSelection(),loading:this.state.loading})}return null}})})}}const he={searchModelVersionsApi:i.hY,getRegisteredModelApi:i.SY,updateRegisteredModelApi:i.tL,deleteRegisteredModelApi:i.r9},ue=(0,ne.h)((0,o.Ng)(((e,t)=>{const s=decodeURIComponent(t.params.modelName);return{modelName:s,model:e.entities.modelByName[s],modelVersions:(0,E.Tr)(e,s)}}),he)((0,N.Ay)(ge))),me=(0,le.X)(re.A.mlflowServices.MODEL_REGISTRY,ue);var pe=me},32614:function(e,t,s){s.d(t,{A:function(){return a}});class a{static getStoreForComponent(e,t){return new o([e,t].join("-"),"localStorage")}static getSessionScopedStoreForComponent(e,t){return new o([e,t].join("-"),"sessionStorage")}}a.version="1.1";class o{constructor(e,t){this.scope=void 0,this.storageObj=void 0,this.scope=e,this.storageObj="localStorage"===t?window.localStorage:window.sessionStorage}loadComponentState(){const e=this.getItem(o.reactComponentStateKey);return e?JSON.parse(e):{}}saveComponentState(e){const t="function"===typeof e.toJSON?e.toJSON():e;this.setItem(o.reactComponentStateKey,JSON.stringify(t))}withScopePrefix(e){return["MLflowLocalStorage",a.version,this.scope,e].join("-")}setItem(e,t){this.storageObj.setItem(this.withScopePrefix(e),t)}getItem(e){return this.storageObj.getItem(this.withScopePrefix(e))}}o.reactComponentStateKey="ReactComponentState"},43683:function(e,t,s){s.d(t,{Q:function(){return C}});var a=s(89555),o=s(9133),i=s(31014),n=s(59403),l=s(23823),r=s(68048),d=s(88464),c=s(88443),g=s(13369),h=s(50111);var u={name:"4zleql",styles:"display:block"};function m(e){return t=>function(e,t){const s=(0,d.A)(),{theme:l}=(0,n.u)(),c=e.props.searchValue.toLowerCase();return(0,i.useMemo)((()=>{if(!c)return e;if((0,o.sortedIndexOf)(t,c)>=0)return e;const n=/^[^,.:/=\-\s]+$/.test(c);return i.cloneElement(e,{flattenOptions:[{data:{value:c,disabled:!n,style:{color:n?l.colors.actionTertiaryTextDefault:l.colors.actionDisabledText},children:(0,h.Y)(r.LegacyTooltip,{title:n?void 0:s.formatMessage({id:"fWEvZL",defaultMessage:", . : / - = and blank spaces are not allowed"}),placement:"right",children:(0,h.FD)("span",{css:u,children:[(0,h.Y)(r.PlusIcon,{css:(0,a.AH)({marginRight:l.spacing.sm},"")}),s.formatMessage({id:"IJbauF",defaultMessage:'Add tag "{tagKey}"'},{tagKey:c})]})})},key:c,groupOption:!1},...e.props.flattenOptions]})}),[t,e,c,s,l])}(t,e)}var p={name:"1d3w5wq",styles:"width:100%"};function f({allAvailableTags:e,control:t,onKeyChangeCallback:s}){const a=(0,d.A)(),[o,n]=(0,i.useState)(!1),l=(0,i.useRef)(null),{field:c,fieldState:u}=(0,g.as)({control:t,name:"key",rules:{required:{message:a.formatMessage({id:"RlBbjb",defaultMessage:"A tag key is required"}),value:!0}}});return(0,h.Y)(r.LegacySelect,{allowClear:!0,ref:l,dangerouslySetAntdProps:{showSearch:!0,dropdownRender:m(e)},css:p,placeholder:a.formatMessage({id:"8ALhnh",defaultMessage:"Type a key"}),value:c.value,defaultValue:c.value,open:o,onDropdownVisibleChange:e=>{n(e)},filterOption:(e,t)=>null===t||void 0===t?void 0:t.value.toLowerCase().includes(e.toLowerCase()),onSelect:e=>{c.onChange(e),null===s||void 0===s||s(e)},onClear:()=>{c.onChange(void 0),null===s||void 0===s||s(void 0)},validationState:u.error?"error":void 0,children:e.map((e=>(0,h.Y)(r.LegacySelect.Option,{value:e,children:e},e)))})}var v=s(98597),y=s(52350);function S(e){return new Map(e.map((e=>[e.key,e])))}var M={name:"82a6rk",styles:"flex:1"},_={name:"82a6rk",styles:"flex:1"};const C=({onSuccess:e,saveTagsHandler:t,allAvailableTags:s,valueRequired:u=!1,title:m})=>{const p=(0,i.useRef)(),[C,A]=(0,i.useState)(""),{theme:T}=(0,n.u)(),[k,b]=(0,i.useState)(new Map),[x,I]=(0,i.useState)(new Map),[R,P]=(0,i.useState)(!1),Y=(0,g.mN)({defaultValues:{key:void 0,value:""}}),D=()=>P(!1),E=(0,i.useCallback)((e=>{p.current=e,b(S(e.tags||[])),I(S(e.tags||[])),Y.reset(),P(!0)}),[Y]),V=async()=>{p.current&&(A(""),L(!0),t(p.current,Array.from(k.values()),Array.from(x.values())).then((()=>{D(),null===e||void 0===e||e(),L(!1)})).catch((e=>{var t;L(!1),A(e instanceof y.s?null===(t=e.getUserVisibleError())||void 0===t?void 0:t.message:e.message)})))},N=(0,d.A)(),F=Y.watch(),[B,L]=(0,i.useState)(!1),K=(0,i.useMemo)((()=>!(0,o.isEqual)((0,o.sortBy)(Array.from(k.values()),"key"),(0,o.sortBy)(Array.from(x.values()),"key"))),[k,x]),O=F.key||F.value,U=K&&O;return{EditTagsModal:(0,h.FD)(l.d,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_135",destroyOnClose:!0,visible:R,title:null!==m&&void 0!==m?m:(0,h.Y)(c.A,{id:"TBX+Gs",defaultMessage:"Add/Edit tags"}),onCancel:D,footer:(0,h.FD)(n.y,{children:[(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_147",dangerouslyUseFocusPseudoClass:!0,onClick:D,css:(0,a.AH)({marginRight:K?0:T.spacing.sm},""),children:N.formatMessage({id:"2a/rR8",defaultMessage:"Cancel"})}),U?(0,h.Y)(w,{formValues:F,isLoading:B,onSaveTask:V}):(0,h.Y)(r.LegacyTooltip,{title:K?void 0:N.formatMessage({id:"16onEc",defaultMessage:"Please add or remove one or more tags before saving"}),children:(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_174",dangerouslyUseFocusPseudoClass:!0,disabled:!K,loading:B,type:"primary",onClick:V,children:N.formatMessage({id:"801Xh4",defaultMessage:"Save tags"})})})]}),children:[(0,h.FD)("form",{onSubmit:Y.handleSubmit((()=>{if(u&&!F.value.trim())return;const e=new Map(x);e.set(F.key,F),I(e),Y.reset()})),css:(0,a.AH)({display:"flex",alignItems:"flex-end",gap:T.spacing.md},""),children:[(0,h.FD)("div",{css:(0,a.AH)({minWidth:0,display:"flex",gap:T.spacing.md,flex:1},""),children:[(0,h.FD)("div",{css:M,children:[(0,h.Y)(r.FormUI.Label,{htmlFor:"key",children:N.formatMessage({id:"crTWax",defaultMessage:"Key"})}),(0,h.Y)(f,{allAvailableTags:s||[],control:Y.control,onKeyChangeCallback:e=>{var t;const s=e?x.get(e):void 0;Y.setValue("value",null!==(t=null===s||void 0===s?void 0:s.value)&&void 0!==t?t:"")}})]}),(0,h.FD)("div",{css:_,children:[(0,h.Y)(r.FormUI.Label,{htmlFor:"value",children:u?N.formatMessage({id:"tHrp+A",defaultMessage:"Value"}):N.formatMessage({id:"4B8k46",defaultMessage:"Value (optional)"})}),(0,h.Y)(r.RHFControlledComponents.Input,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_223",name:"value",control:Y.control,"aria-label":u?N.formatMessage({id:"tHrp+A",defaultMessage:"Value"}):N.formatMessage({id:"4B8k46",defaultMessage:"Value (optional)"}),placeholder:N.formatMessage({id:"FFe+Ug",defaultMessage:"Type a value"})})]})]}),(0,h.Y)(r.LegacyTooltip,{title:N.formatMessage({id:"tx3aAM",defaultMessage:"Add tag"}),children:(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_248",htmlType:"submit","aria-label":N.formatMessage({id:"tx3aAM",defaultMessage:"Add tag"}),children:(0,h.Y)(r.PlusIcon,{})})})]}),C&&(0,h.Y)(r.FormUI.Message,{type:"error",message:C}),(0,h.Y)("div",{css:(0,a.AH)({display:"flex",rowGap:T.spacing.xs,flexWrap:"wrap",marginTop:T.spacing.sm},""),children:Array.from(x.values()).map((e=>(0,h.Y)(v.t,{isClosable:!0,tag:e,onClose:()=>(({key:e})=>{I((t=>(t.delete(e),new Map(t))))})(e)},e.key)))})]}),showEditTagsModal:E,isLoading:B}};var A={name:"1y0ex1",styles:"max-width:400px"};function w({isLoading:e,formValues:t,onSaveTask:s}){const i=(0,d.A)(),{theme:l}=(0,n.u)(),r=`${`${(0,o.truncate)(t.key,{length:20})||"_"}`}${t.value?`:${(0,o.truncate)(t.value,{length:20})}`:""}`,c=i.formatMessage({id:"wcSVYI",defaultMessage:'Are you sure you want to save and close without adding "{tag}"'},{tag:r});return(0,h.FD)(n.ax.Root,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_309",children:[(0,h.Y)(n.ax.Trigger,{asChild:!0,children:(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_306",dangerouslyUseFocusPseudoClass:!0,loading:e,type:"primary",children:i.formatMessage({id:"801Xh4",defaultMessage:"Save tags"})})}),(0,h.FD)(n.ax.Content,{align:"end","aria-label":c,children:[(0,h.Y)(n.T.Paragraph,{css:A,children:c}),(0,h.Y)(n.ax.Close,{asChild:!0,children:(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_316",onClick:s,children:i.formatMessage({id:"mv6CY3",defaultMessage:"Yes, save and close"})})}),(0,h.Y)(n.ax.Close,{asChild:!0,children:(0,h.Y)(n.B,{componentId:"codegen_mlflow_app_src_common_hooks_useeditkeyvaluetagsmodal.tsx_324",type:"primary",css:(0,a.AH)({marginLeft:l.spacing.sm},""),children:i.formatMessage({id:"geizp1",defaultMessage:"Cancel"})})}),(0,h.Y)(n.ax.Arrow,{})]})]})}},45653:function(e,t,s){s.d(t,{Qr:function(){return d},U1:function(){return f},Xb:function(){return u},Y7:function(){return n},fx:function(){return l},ib:function(){return v},yv:function(){return c},z7:function(){return p}});var a=s(9133),o=s.n(a);const i=()=>s.e(6386).then(s.t.bind(s,86386,23)),n=(e,t)=>{const s=o().truncate(e,{length:t});return o().takeWhile(s,(e=>"\n"!==e)).join("")},l=(e,t)=>{if(e.length>t){const s=Math.floor((t-3)/2),a=t-3-s;return e.substring(0,s)+"..."+e.substring(e.length-a,e.length)}return e},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=e=>{let t="",s=0;const a=g(e);for(;s>2,l=(3&e)<<4|o>>4;let d=(15&o)<<2|i>>6,c=63&i;isNaN(o)?(c=64,d=c):isNaN(i)&&(c=64),t=t+r.charAt(n)+r.charAt(l)+r.charAt(d)+r.charAt(c)}return t},c=e=>{let t="",s=0;const a=(null===e||void 0===e?void 0:e.replace(/[^A-Za-z0-9+/=]/g,""))||"";for(;s>4,d=(15&o)<<4|i>>2,c=(3&i)<<6|n;t+=String.fromCharCode(l),64!==i&&(t+=String.fromCharCode(d)),64!==n&&(t+=String.fromCharCode(c))}return h(t)},g=(e="")=>{const t=e.replace(/\r\n/g,"\n");let s="";for(let a=0;a127&&e<2048?String.fromCharCode(e>>6|192)+String.fromCharCode(63&e|128):String.fromCharCode(e>>12|224)+String.fromCharCode(e>>6&63|128)+String.fromCharCode(63&e|128)}return s},h=(e="")=>{let t="",s=0;for(;s191&&a<224){const o=e.charCodeAt(s+1);t+=String.fromCharCode((31&a)<<6|63&o),s+=2}else{const o=e.charCodeAt(s+1),i=e.charCodeAt(s+2);t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&i),s+=3}}return t},u=e=>crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e)).then((e=>Array.prototype.map.call(new Uint8Array(e),(e=>("00"+e.toString(16)).slice(-2))).join(""))),m="deflate;",p=async e=>{const t=(await i()).deflate(e);if("undefined"!==typeof Buffer){const e=Buffer.from(t).toString("base64");return`${m}${e}`}const s=Array.from(t,(e=>String.fromCodePoint(e))).join("");return`${m}${btoa(s)}`},f=async e=>{const t=await i();if(!e.startsWith(m))throw new Error("Invalid compressed text, payload header invalid");const s=e.slice(8);if("undefined"!==typeof Buffer){const e=Buffer.from(s,"base64");return t.inflate(e,{to:"string"})}const a=atob(s);return t.inflate(Uint8Array.from(a,(e=>{var t;return null!==(t=e.codePointAt(0))&&void 0!==t?t:0})),{to:"string"})},v=e=>e.startsWith(m)},56412:function(e,t,s){s.d(t,{i:function(){return d}});var a=s(31014),o=s(88443),i=s(68048),n=s(59403),l=s(50111);var r={name:"1739oy8",styles:"z-index:1"};const d=({copyText:e,showLabel:t=!0,componentId:s,...d})=>{const[c,g]=(0,a.useState)(!1);return(0,l.Y)(i.LegacyTooltip,{title:(0,l.Y)(o.A,{id:"X+boXI",defaultMessage:"Copied"}),dangerouslySetAntdProps:{visible:c},children:(0,l.Y)(n.B,{componentId:null!==s&&void 0!==s?s:"mlflow.shared.copy_button",type:"primary",onClick:()=>{navigator.clipboard.writeText(e),g(!0),setTimeout((()=>{g(!1)}),3e3)},onMouseLeave:()=>{g(!1)},css:r,children:t?(0,l.Y)(o.A,{id:"1Iq+NW",defaultMessage:"Copy"}):void 0,...d})})}},91164:function(e,t,s){s.d(t,{Y:function(){return d}});var a=s(89555),o=s(59403),i=s(68048),n=s(86020),l=s(88443),r=s(50111);const d=({aliases:e=[],onAddEdit:t,className:s})=>{const{theme:d}=(0,o.u)();return(0,r.Y)("div",{css:(0,a.AH)({maxWidth:300,display:"flex",flexWrap:"wrap",alignItems:"flex-start","> *":{marginRight:"0 !important"},rowGap:d.spacing.xs/2,columnGap:d.spacing.xs},""),className:s,children:e.length<1?(0,r.Y)(o.B,{componentId:"codegen_mlflow_app_src_model-registry_components_aliases_modelversiontablealiasescell.tsx_30",size:"small",type:"link",onClick:t,children:(0,r.Y)(l.A,{id:"pU6cxH",defaultMessage:"Add"})}):(0,r.FD)(r.FK,{children:[e.map((e=>(0,r.Y)(n.Z,{value:e,css:(0,a.AH)({marginTop:d.spacing.xs/2},"")},e))),(0,r.Y)(o.B,{componentId:"codegen_mlflow_app_src_model-registry_components_aliases_modelversiontablealiasescell.tsx_41",size:"small",icon:(0,r.Y)(i.PencilIcon,{}),onClick:t})]})})}},98597:function(e,t,s){s.d(t,{t:function(){return f}});var a=s(89555),o=s(68048),i=s(59403),n=s(31014),l=s(88464),r=s(23823),d=s(56412),c=s(50111);const{Paragraph:g}=i.T;var h={name:"zjik7",styles:"display:flex"},u={name:"1ff36h2",styles:"flex-grow:1"};const m=n.memo((e=>{const{theme:t}=(0,i.u)();return(0,c.Y)(r.d,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetagfullviewmodal.tsx_17",title:"Tag: "+e.tagKey,visible:e.isKeyValueTagFullViewModalVisible,onCancel:()=>e.setIsKeyValueTagFullViewModalVisible(!1),children:(0,c.FD)("div",{css:h,children:[(0,c.Y)(g,{css:u,children:(0,c.Y)("pre",{css:(0,a.AH)({backgroundColor:t.colors.backgroundPrimary,marginTop:t.spacing.sm,whiteSpace:"pre-wrap",wordBreak:"break-all"},""),children:e.tagValue})}),(0,c.Y)("div",{css:(0,a.AH)({marginTop:t.spacing.sm},""),children:(0,c.Y)(d.i,{copyText:e.tagValue,showLabel:!1,icon:(0,c.Y)(o.CopyIcon,{}),"aria-label":"Copy"})})]})})}));function p(e=!0){return e?{overflow:"hidden",textOverflow:"ellipsis",textWrap:"nowrap",whiteSpace:"nowrap"}:{whiteSpace:"nowrap"}}const f=({isClosable:e=!1,onClose:t,tag:s,enableFullViewModal:r=!1,charLimit:d=30,maxWidth:g=300,className:h})=>{const u=(0,l.A)(),[f,v]=(0,n.useState)(!1),{shouldTruncateKey:y,shouldTruncateValue:S}=function(e,t=30){const{key:s,value:a}=e,o=s.length+a.length,i=s.length>a.length,n=i?a.length:s.length;return o<=t?{shouldTruncateKey:!1,shouldTruncateValue:!1}:n>t/2?{shouldTruncateKey:!0,shouldTruncateValue:!0}:{shouldTruncateKey:i,shouldTruncateValue:!i}}(s,d),M=r&&(y||S),_=u.formatMessage({id:"ZXUtU8",defaultMessage:"Click to see more"});return(0,c.FD)("div",{children:[(0,c.Y)(o.Tag,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetag.tsx_60",closable:e,onClose:t,title:s.key,className:h,children:(0,c.Y)(o.LegacyTooltip,{title:M?_:"",children:(0,c.FD)("span",{css:(0,a.AH)({maxWidth:g,display:"inline-flex"},""),onClick:()=>M?v(!0):void 0,children:[(0,c.Y)(i.T.Text,{bold:!0,title:s.key,css:p(y),children:s.key}),s.value&&(0,c.FD)(i.T.Text,{title:s.value,css:p(S),children:[": ",s.value]})]})})}),(0,c.Y)("div",{children:f&&(0,c.Y)(m,{tagKey:s.key,tagValue:s.value,isKeyValueTagFullViewModalVisible:f,setIsKeyValueTagFullViewModalVisible:v})})]})}}}]); +//# sourceMappingURL=8649.c727bd23.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8649.c727bd23.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8649.c727bd23.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..3abc02f4019041539438f4158fc62072e194dcb2 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8649.c727bd23.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/8649.c727bd23.chunk.js","mappings":"8dAaO,MAAMA,EAAyBA,EAAGC,OAAO,GAAIC,gBAClD,MAAM,MAAEC,IAAUC,EAAAA,EAAAA,KAElB,OACEC,EAAAA,EAAAA,GAAA,OACEC,KAAGC,EAAAA,EAAAA,IAAE,CACHC,QAAS,OACTC,SAAU,OACV,MAAO,CACLC,YAAa,gBAEfC,IAAKR,EAAMS,QAAQC,IACpB,IAACC,SAEDb,EAAKc,OAAS,GACbV,EAAAA,EAAAA,GAACW,EAAAA,EAAM,CACLC,YAAY,yEACZC,KAAK,QACLC,KAAK,OACLC,QAASlB,EAAUY,UAEnBT,EAAAA,EAAAA,GAACgB,EAAAA,EAAgB,C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qB,kCAAmCA,EACnCC,qCAAsCA,QAIxC,C","sources":["common/components/KeyValueTagsEditorCell.tsx","model-registry/components/ModelVersionTable.tsx","model-registry/components/ModelView.tsx","model-registry/components/ModelPage.tsx","common/utils/LocalStorageUtils.ts","common/components/TagSelectDropdown.tsx","common/hooks/useEditKeyValueTagsModal.tsx","common/utils/StringUtils.ts","shared/building_blocks/CopyButton.tsx","model-registry/components/aliases/ModelVersionTableAliasesCell.tsx","common/components/KeyValueTagFullViewModal.tsx","common/components/KeyValueTag.tsx"],"sourcesContent":["import { Button, PencilIcon, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\nimport { KeyValueEntity } from '../types';\nimport { KeyValueTag } from './KeyValueTag';\n\ninterface KeyValueTagsEditorCellProps {\n tags?: KeyValueEntity[];\n onAddEdit: () => void;\n}\n\n/**\n * A cell renderer used in tables, displaying a list of key-value tags with button for editing those\n */\nexport const KeyValueTagsEditorCell = ({ tags = [], onAddEdit }: KeyValueTagsEditorCellProps) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n *': {\n marginRight: '0 !important',\n },\n gap: theme.spacing.xs,\n }}\n >\n {tags.length < 1 ? (\n \n 'add' button label\" />\n \n ) : (\n <>\n {tags.map((tag) => (\n \n ))}\n }\n onClick={onAddEdit}\n />\n \n )}\n \n );\n};\n","import {\n Empty,\n PlusIcon,\n Table,\n TableCell,\n TableHeader,\n TableRow,\n TableRowSelectCell,\n LegacyTooltip,\n Typography,\n useDesignSystemTheme,\n TableSkeletonRows,\n} from '@databricks/design-system';\nimport {\n ColumnDef,\n RowSelectionState,\n SortingState,\n ColumnSort,\n flexRender,\n getCoreRowModel,\n getSortedRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport { ModelEntity, ModelVersionInfoEntity, ModelAliasMap } from '../../experiment-tracking/types';\nimport { KeyValueEntity } from '../../common/types';\nimport { useEffect, useMemo, useState } from 'react';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { RegisteringModelDocUrl } from '../../common/constants';\nimport {\n ACTIVE_STAGES,\n EMPTY_CELL_PLACEHOLDER,\n ModelVersionStatusIcons,\n StageTagComponents,\n mlflowAliasesLearnMoreLink,\n modelVersionStatusIconTooltips,\n} from '../constants';\nimport { Link } from '../../common/utils/RoutingUtils';\nimport { ModelRegistryRoutes } from '../routes';\nimport Utils from '../../common/utils/Utils';\nimport { KeyValueTagsEditorCell } from '../../common/components/KeyValueTagsEditorCell';\nimport { useDispatch } from 'react-redux';\nimport { ThunkDispatch } from '../../redux-types';\nimport { useEditKeyValueTagsModal } from '../../common/hooks/useEditKeyValueTagsModal';\nimport { useEditAliasesModal } from '../../common/hooks/useEditAliasesModal';\nimport { updateModelVersionTagsApi } from '../actions';\nimport { ModelVersionTableAliasesCell } from './aliases/ModelVersionTableAliasesCell';\nimport { Interpolation, Theme } from '@emotion/react';\nimport { truncateToFirstLineWithMaxLength } from '../../common/utils/StringUtils';\nimport ExpandableList from '../../common/components/ExpandableList';\nimport { setModelVersionAliasesApi } from '../actions';\n\ntype ModelVersionTableProps = {\n isLoading: boolean;\n modelName: string;\n pagination: React.ReactElement;\n orderByKey: string;\n orderByAsc: boolean;\n modelVersions?: ModelVersionInfoEntity[];\n activeStageOnly?: boolean;\n onChange: (selectedRowKeys: string[], selectedRows: ModelVersionInfoEntity[]) => void;\n getSortFieldName: (columnId: string) => string | null;\n onSortChange: (params: { sorter: ColumnSort }) => void;\n modelEntity?: ModelEntity;\n onMetadataUpdated: () => void;\n usingNextModelsUI: boolean;\n aliases?: ModelAliasMap;\n};\n\ntype ModelVersionColumnDef = ColumnDef & {\n meta?: { styles?: Interpolation; multiline?: boolean; className?: string };\n};\n\nenum COLUMN_IDS {\n STATUS = 'status',\n VERSION = 'version',\n CREATION_TIMESTAMP = 'creation_timestamp',\n USER_ID = 'user_id',\n TAGS = 'tags',\n STAGE = 'current_stage',\n DESCRIPTION = 'description',\n ALIASES = 'aliases',\n}\n\nconst getAliasesModalTitle = (version: string) => (\n model version alias editor > Title of the update alias modal\"\n values={{ version }}\n />\n);\n\nexport const ModelVersionTable = ({\n modelName,\n modelVersions,\n activeStageOnly,\n orderByAsc,\n orderByKey,\n onSortChange,\n onChange,\n getSortFieldName,\n modelEntity,\n onMetadataUpdated,\n usingNextModelsUI,\n aliases,\n pagination,\n isLoading,\n}: ModelVersionTableProps) => {\n const aliasesByVersion = useMemo(() => {\n const result: Record = {};\n aliases?.forEach(({ alias, version }) => {\n if (!result[version]) {\n result[version] = [];\n }\n result[version].push(alias);\n });\n return result;\n }, [aliases]);\n const versions = useMemo(\n () =>\n activeStageOnly\n ? (modelVersions || []).filter(({ current_stage }) => ACTIVE_STAGES.includes(current_stage))\n : modelVersions,\n [activeStageOnly, modelVersions],\n );\n\n const { theme } = useDesignSystemTheme();\n const intl = useIntl();\n\n const allTagsKeys = useMemo(() => {\n const allTagsList: KeyValueEntity[] = versions?.map((modelVersion) => modelVersion?.tags || []).flat() || [];\n\n // Extract keys, remove duplicates and sort the\n return Array.from(new Set(allTagsList.map(({ key }) => key))).sort();\n }, [versions]);\n\n const dispatch = useDispatch();\n\n const { EditTagsModal, showEditTagsModal } = useEditKeyValueTagsModal({\n allAvailableTags: allTagsKeys,\n saveTagsHandler: async (modelVersion, existingTags, newTags) =>\n dispatch(updateModelVersionTagsApi(modelVersion, existingTags, newTags)),\n onSuccess: onMetadataUpdated,\n });\n\n const { EditAliasesModal, showEditAliasesModal } = useEditAliasesModal({\n aliases: modelEntity?.aliases ?? [],\n onSuccess: onMetadataUpdated,\n onSave: async (currentlyEditedVersion: string, existingAliases: string[], draftAliases: string[]) =>\n dispatch(setModelVersionAliasesApi(modelName, currentlyEditedVersion, existingAliases, draftAliases)),\n getTitle: getAliasesModalTitle,\n description: (\n Learn more\"\n description=\"Explanation of registered model aliases\"\n values={{\n link: (chunks) => (\n \n {chunks}\n \n ),\n }}\n />\n ),\n });\n\n const [rowSelection, setRowSelection] = useState({});\n\n useEffect(() => {\n const selectedVersions = (versions || []).filter(({ version }) => rowSelection[version]);\n const selectedVersionNumbers = selectedVersions.map(({ version }) => version);\n onChange(selectedVersionNumbers, selectedVersions);\n }, [rowSelection, onChange, versions]);\n\n const tableColumns = useMemo(() => {\n const columns: ModelVersionColumnDef[] = [\n {\n id: COLUMN_IDS.STATUS,\n enableSorting: false,\n header: '', // Status column does not have title\n meta: { styles: { flexBasis: theme.general.heightSm, flexGrow: 0 } },\n cell: ({ row: { original } }) => {\n const { status, status_message } = original || {};\n return (\n \n {ModelVersionStatusIcons[status]}\n \n );\n },\n },\n ];\n columns.push(\n {\n id: COLUMN_IDS.VERSION,\n enableSorting: false,\n header: intl.formatMessage({\n defaultMessage: 'Version',\n description: 'Column title text for model version in model version table',\n }),\n meta: { className: 'model-version' },\n accessorKey: 'version',\n cell: ({ getValue }) => (\n Version {versionNumber}\"\n description=\"Link to model version in the model version table\"\n values={{\n link: (chunks) => (\n {chunks}\n ),\n versionNumber: getValue(),\n }}\n />\n ),\n },\n {\n id: COLUMN_IDS.CREATION_TIMESTAMP,\n enableSorting: true,\n meta: { styles: { minWidth: 200 } },\n header: intl.formatMessage({\n defaultMessage: 'Registered at',\n description: 'Column title text for created at timestamp in model version table',\n }),\n accessorKey: 'creation_timestamp',\n cell: ({ getValue }) => Utils.formatTimestamp(getValue(), intl),\n },\n\n {\n id: COLUMN_IDS.USER_ID,\n enableSorting: false,\n meta: { styles: { minWidth: 100 } },\n header: intl.formatMessage({\n defaultMessage: 'Created by',\n description: 'Column title text for creator username in model version table',\n }),\n accessorKey: 'user_id',\n cell: ({ getValue }) => {getValue()},\n },\n );\n\n if (usingNextModelsUI) {\n // Display tags and aliases columns only when \"new models UI\" is flipped\n columns.push(\n {\n id: COLUMN_IDS.TAGS,\n enableSorting: false,\n header: intl.formatMessage({\n defaultMessage: 'Tags',\n description: 'Column title text for model version tags in model version table',\n }),\n meta: { styles: { flex: 2 } },\n accessorKey: 'tags',\n cell: ({ getValue, row: { original } }) => {\n return (\n {\n showEditTagsModal?.(original);\n }}\n />\n );\n },\n },\n {\n id: COLUMN_IDS.ALIASES,\n accessorKey: 'aliases',\n enableSorting: false,\n header: intl.formatMessage({\n defaultMessage: 'Aliases',\n description: 'Column title text for model version aliases in model version table',\n }),\n meta: { styles: { flex: 2 }, multiline: true },\n cell: ({ getValue, row: { original } }) => {\n const mvAliases = aliasesByVersion[original.version] || [];\n return (\n {\n showEditAliasesModal?.(original.version);\n }}\n />\n );\n },\n },\n );\n } else {\n // If not, display legacy \"Stage\" columns\n columns.push({\n id: COLUMN_IDS.STAGE,\n enableSorting: false,\n header: intl.formatMessage({\n defaultMessage: 'Stage',\n description: 'Column title text for model version stage in model version table',\n }),\n accessorKey: 'current_stage',\n cell: ({ getValue }) => {\n return StageTagComponents[getValue() as string];\n },\n });\n }\n columns.push({\n id: COLUMN_IDS.DESCRIPTION,\n enableSorting: false,\n header: intl.formatMessage({\n defaultMessage: 'Description',\n description: 'Column title text for description in model version table',\n }),\n meta: { styles: { flex: 2 } },\n accessorKey: 'description',\n cell: ({ getValue }) => truncateToFirstLineWithMaxLength(getValue() as string, 32),\n });\n return columns;\n }, [theme, intl, modelName, showEditTagsModal, showEditAliasesModal, usingNextModelsUI, aliasesByVersion]);\n\n const sorting: SortingState = [{ id: orderByKey, desc: !orderByAsc }];\n\n const setSorting = (stateUpdater: SortingState | ((state: SortingState) => SortingState)) => {\n const [newSortState] = typeof stateUpdater === 'function' ? stateUpdater(sorting) : stateUpdater;\n if (newSortState) {\n onSortChange({ sorter: newSortState });\n }\n };\n\n const table = useReactTable({\n data: versions || [],\n columns: tableColumns,\n state: {\n rowSelection,\n sorting,\n },\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n getRowId: ({ version }) => version,\n onRowSelectionChange: setRowSelection,\n onSortingChange: setSorting,\n });\n\n const isEmpty = () => table.getRowModel().rows.length === 0;\n\n const getLearnMoreLinkUrl = () => {\n return RegisteringModelDocUrl;\n };\n\n const emptyComponent = (\n Learn more about how to\n register a model version.\"\n description=\"Message text when no model versions are registered\"\n values={{\n link: (chunks) => (\n \n {chunks}\n \n ),\n }}\n />\n }\n image={}\n />\n );\n return (\n <>\n \n \n \n {table.getLeafHeaders().map((header) => (\n {\n const [currentSortColumn] = sorting;\n const changingDirection = header.column.id === currentSortColumn.id;\n const sortDesc = changingDirection ? !currentSortColumn.desc : false;\n header.column.toggleSorting(sortDesc);\n }}\n css={(header.column.columnDef as ModelVersionColumnDef).meta?.styles}\n >\n {flexRender(header.column.columnDef.header, header.getContext())}\n \n ))}\n \n {isLoading ? (\n \n ) : (\n table.getRowModel().rows.map((row) => (\n \n \n {row.getAllCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n )}\n \n {EditTagsModal}\n {EditAliasesModal}\n \n );\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport _ from 'lodash';\nimport { ModelVersionTable } from './ModelVersionTable';\nimport Utils from '../../common/utils/Utils';\nimport { Link, NavigateFunction } from '../../common/utils/RoutingUtils';\nimport { ModelRegistryRoutes } from '../routes';\nimport { ACTIVE_STAGES, MODEL_VERSIONS_PER_PAGE_COMPACT, MODEL_VERSIONS_SEARCH_TIMESTAMP_FIELD } from '../constants';\nimport { CollapsibleSection } from '../../common/components/CollapsibleSection';\nimport { EditableNote } from '../../common/components/EditableNote';\nimport { EditableTagsTableView } from '../../common/components/EditableTagsTableView';\nimport { getRegisteredModelTags } from '../reducers';\nimport { setRegisteredModelTagApi, deleteRegisteredModelTagApi } from '../actions';\nimport { connect } from 'react-redux';\nimport { OverflowMenu, PageHeader } from '../../shared/building_blocks/PageHeader';\nimport { FormattedMessage, type IntlShape, injectIntl } from 'react-intl';\nimport {\n Button,\n SegmentedControlGroup,\n SegmentedControlButton,\n DangerModal,\n CursorPagination,\n} from '@databricks/design-system';\nimport { KeyValueEntity } from '../../common/types';\nimport { Descriptions } from '../../common/components/Descriptions';\nimport { TagList } from '../../common/components/TagList';\nimport { ModelVersionInfoEntity, type ModelEntity } from '../../experiment-tracking/types';\nimport { shouldShowModelsNextUI, shouldUseSharedTaggingUI } from '../../common/utils/FeatureUtils';\nimport { ModelsNextUIToggleSwitch } from './ModelsNextUIToggleSwitch';\nimport { withNextModelsUIContext } from '../hooks/useNextModelsUI';\nimport { ErrorWrapper } from '../../common/utils/ErrorWrapper';\nimport { ColumnSort } from '@tanstack/react-table';\n\nconst CREATION_TIMESTAMP_COLUMN_INDEX = 'creation_timestamp';\n\nexport const StageFilters = {\n ALL: 'ALL',\n ACTIVE: 'ACTIVE',\n};\n\ntype ModelViewImplProps = {\n model?: ModelEntity;\n modelVersions?: ModelVersionInfoEntity[];\n handleEditDescription: (...args: any[]) => any;\n handleDelete: (...args: any[]) => any;\n navigate: NavigateFunction;\n showEditPermissionModal: (...args: any[]) => any;\n activePane?: any; // TODO: PropTypes.oneOf(Object.values(PANES))\n emailSubscriptionStatus?: string;\n userLevelEmailSubscriptionStatus?: string;\n handleEmailNotificationPreferenceChange?: (...args: any[]) => any;\n tags: any;\n setRegisteredModelTagApi: (...args: any[]) => any;\n deleteRegisteredModelTagApi: (...args: any[]) => any;\n intl: IntlShape;\n onMetadataUpdated: () => void;\n usingNextModelsUI: boolean;\n orderByKey: string;\n orderByAsc: boolean;\n currentPage: number;\n nextPageToken: string | null;\n onClickNext: () => void;\n onClickPrev: () => void;\n onClickSortableColumn: (fieldName: string | null, isDescending: boolean) => void;\n onSetMaxResult: (key: number) => void;\n maxResultValue: number;\n loading?: boolean;\n};\n\ntype ModelViewImplState = any;\n\nexport class ModelViewImpl extends React.Component {\n constructor(props: ModelViewImplProps) {\n super(props);\n this.onCompare = this.onCompare.bind(this);\n }\n\n state = {\n maxResultsSelection: MODEL_VERSIONS_PER_PAGE_COMPACT,\n stageFilter: StageFilters.ALL,\n showDescriptionEditor: false,\n isDeleteModalVisible: false,\n isDeleteModalConfirmLoading: false,\n runsSelected: {},\n isTagsRequestPending: false,\n updatingEmailPreferences: false,\n isTagAssignmentModalVisible: false,\n isSavingTags: false,\n tagSavingError: undefined,\n };\n\n formRef = React.createRef();\n\n sharedTaggingUIEnabled = shouldUseSharedTaggingUI();\n\n componentDidMount() {\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const pageTitle = `${this.props.model.name} - MLflow Model`;\n Utils.updatePageTitle(pageTitle);\n }\n\n handleSetMaxResult = ({ key }: { key: number }) => {\n this.props.onSetMaxResult(key);\n };\n\n getSortFieldName = (column: any) => {\n switch (column) {\n case CREATION_TIMESTAMP_COLUMN_INDEX:\n return MODEL_VERSIONS_SEARCH_TIMESTAMP_FIELD;\n default:\n return null;\n }\n };\n\n handleSortChange = (params: { sorter: ColumnSort }) => {\n const sorter = params.sorter;\n this.props.onClickSortableColumn(this.getSortFieldName(sorter.id), sorter.desc);\n };\n\n handleStageFilterChange = (e: any) => {\n this.setState({ stageFilter: e.target.value });\n };\n\n getActiveVersionsCount() {\n const { modelVersions } = this.props;\n return modelVersions ? modelVersions.filter((v) => ACTIVE_STAGES.includes(v.current_stage)).length : 0;\n }\n\n handleCancelEditDescription = () => {\n this.setState({ showDescriptionEditor: false });\n };\n\n handleSubmitEditDescription = (description: any) => {\n return this.props.handleEditDescription(description).then(() => {\n this.setState({ showDescriptionEditor: false });\n });\n };\n\n startEditingDescription = (e: any) => {\n e.stopPropagation();\n this.setState({ showDescriptionEditor: true });\n };\n\n getOverflowMenuItems() {\n const menuItems = [\n {\n id: 'delete',\n itemName: (\n \n ),\n onClick: this.showDeleteModal,\n disabled: this.getActiveVersionsCount() > 0,\n },\n ];\n\n return menuItems;\n }\n\n showDeleteModal = () => {\n this.setState({ isDeleteModalVisible: true });\n };\n\n hideDeleteModal = () => {\n this.setState({ isDeleteModalVisible: false });\n };\n\n showConfirmLoading = () => {\n this.setState({ isDeleteModalConfirmLoading: true });\n };\n\n hideConfirmLoading = () => {\n this.setState({ isDeleteModalConfirmLoading: false });\n };\n\n handleDeleteConfirm = () => {\n const { navigate } = this.props;\n this.showConfirmLoading();\n this.props\n .handleDelete()\n .then(() => {\n navigate(ModelRegistryRoutes.modelListPageRoute);\n })\n .catch((e: any) => {\n this.hideConfirmLoading();\n Utils.logErrorAndNotifyUser(e);\n });\n };\n\n getTags = () =>\n _.sortBy(\n Utils.getVisibleTagValues(this.props.tags).map((values) => ({\n key: values[0],\n name: values[0],\n value: values[1],\n })),\n 'name',\n );\n\n handleEditTags = () => {\n this.setState({ isTagAssignmentModalVisible: true, tagSavingError: undefined });\n };\n\n handleCloseTagAssignmentModal = () => {\n this.setState({ isTagAssignmentModalVisible: false, tagSavingError: undefined });\n };\n\n handleAddTag = (values: any) => {\n const form = this.formRef.current;\n const { model } = this.props;\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const modelName = model.name;\n this.setState({ isTagsRequestPending: true });\n this.props\n .setRegisteredModelTagApi(modelName, values.name, values.value)\n .then(() => {\n this.setState({ isTagsRequestPending: false });\n (form as any).resetFields();\n })\n .catch((ex: ErrorWrapper | Error) => {\n this.setState({ isTagsRequestPending: false });\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(ex);\n const message = ex instanceof ErrorWrapper ? ex.getMessageField() : ex.message;\n Utils.displayGlobalErrorNotification('Failed to add tag. Error: ' + message);\n });\n };\n\n handleSaveEdit = ({ name, value }: any) => {\n const { model } = this.props;\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const modelName = model.name;\n return this.props.setRegisteredModelTagApi(modelName, name, value).catch((ex: ErrorWrapper | Error) => {\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(ex);\n const message = ex instanceof ErrorWrapper ? ex.getMessageField() : ex.message;\n Utils.displayGlobalErrorNotification('Failed to set tag. Error: ' + message);\n });\n };\n\n handleDeleteTag = ({ name }: any) => {\n const { model } = this.props;\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const modelName = model.name;\n return this.props.deleteRegisteredModelTagApi(modelName, name).catch((ex: ErrorWrapper | Error) => {\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(ex);\n const message = ex instanceof ErrorWrapper ? ex.getMessageField() : ex.message;\n Utils.displayGlobalErrorNotification('Failed to delete tag. Error: ' + message);\n });\n };\n\n handleSaveTags = (newTags: KeyValueEntity[], deletedTags: KeyValueEntity[]): Promise => {\n this.setState({ isSavingTags: true });\n const { model } = this.props;\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const modelName = model.name;\n\n const newTagsToSet = newTags.map(({ key, value }) => this.props.setRegisteredModelTagApi(modelName, key, value));\n\n const deletedTagsToDelete = deletedTags.map(({ key }) => this.props.deleteRegisteredModelTagApi(modelName, key));\n\n return Promise.all([...newTagsToSet, ...deletedTagsToDelete])\n .then(() => {\n this.setState({ isSavingTags: false });\n })\n .catch((error: ErrorWrapper | Error) => {\n const message = error instanceof ErrorWrapper ? error.getMessageField() : error.message;\n\n this.setState({ isSavingTags: false, tagSavingError: message });\n });\n };\n\n onChange = (selectedRowKeys: any, selectedRows: any) => {\n const newState = Object.assign({}, this.state);\n newState.runsSelected = {};\n selectedRows.forEach((row: any) => {\n newState.runsSelected = {\n ...newState.runsSelected,\n [row.version]: row.run_id,\n };\n });\n this.setState(newState);\n };\n\n onCompare() {\n if (!this.props.model) {\n return;\n }\n this.props.navigate(\n ModelRegistryRoutes.getCompareModelVersionsPageRoute(this.props.model.name, this.state.runsSelected),\n );\n }\n\n renderDescriptionEditIcon() {\n return (\n \n \n \n );\n }\n\n renderDetails = () => {\n const { model, modelVersions, tags, currentPage, nextPageToken } = this.props;\n const {\n stageFilter,\n showDescriptionEditor,\n isDeleteModalVisible,\n isDeleteModalConfirmLoading,\n isTagsRequestPending,\n } = this.state;\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const modelName = model.name;\n const compareDisabled = Object.keys(this.state.runsSelected).length < 2;\n return (\n
\n {/* Metadata List */}\n \n \n {/* @ts-expect-error TS(2532): Object is possibly 'undefined'. */}\n {Utils.formatTimestamp(model.creation_timestamp, this.props.intl)}\n \n \n {/* @ts-expect-error TS(2532): Object is possibly 'undefined'. */}\n {Utils.formatTimestamp(model.last_updated_timestamp, this.props.intl)}\n \n {/* Reported during ESLint upgrade */}\n {/* eslint-disable-next-line react/prop-types */}\n {(model as any).user_id && (\n \n {/* eslint-disable-next-line react/prop-types */}\n
{(model as any).user_id}
\n \n )}\n
\n {this.sharedTaggingUIEnabled && (\n \n \n \n \n \n )}\n {/* Page Sections */}\n \n {' '}\n {!showDescriptionEditor ? this.renderDescriptionEditIcon() : null}\n \n }\n forceOpen={showDescriptionEditor}\n // Reported during ESLint upgrade\n // eslint-disable-next-line react/prop-types\n defaultCollapsed={!(model as any).description}\n data-test-id=\"model-description-section\"\n >\n \n \n {!this.sharedTaggingUIEnabled && (\n
\n \n }\n defaultCollapsed={Utils.getVisibleTagValues(tags).length === 0}\n data-test-id=\"model-tags-section\"\n >\n ; handleAddTag... Remove this comment to see the full error message\n innerRef={this.formRef}\n handleAddTag={this.handleAddTag}\n handleDeleteTag={this.handleDeleteTag}\n handleSaveEdit={this.handleSaveEdit}\n tags={tags}\n isRequestPending={isTagsRequestPending}\n />\n \n
\n )}\n \n
\n \n \n \n {!this.props.usingNextModelsUI && (\n this.handleStageFilterChange(e)}\n css={{ fontWeight: 'normal' }}\n >\n \n \n \n \n {' '}\n {this.getActiveVersionsCount()}\n \n \n )}\n \n \n \n
\n \n }\n data-test-id=\"model-versions-section\"\n >\n {shouldShowModelsNextUI() && (\n \n \n
\n )}\n \n
\n 1}\n onNextPage={this.props.onClickNext}\n onPreviousPage={this.props.onClickPrev}\n pageSizeSelect={{\n onChange: (num) => this.handleSetMaxResult({ key: num }),\n default: this.props.maxResultValue,\n options: [10, 25, 50, 100],\n }}\n />\n
\n \n }\n />\n \n\n {/* Delete Model Dialog */}\n \n \n \n \n \n \n );\n };\n\n renderMainPanel() {\n return this.renderDetails();\n }\n\n render() {\n const { model } = this.props;\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n const modelName = model.name;\n\n const breadcrumbs = [\n \n \n ,\n ];\n return (\n
\n \n \n \n {this.renderMainPanel()}\n
\n );\n }\n}\n\nconst mapStateToProps = (state: any, ownProps: any) => {\n const modelName = ownProps.model.name;\n const tags = getRegisteredModelTags(modelName, state);\n return { tags };\n};\nconst mapDispatchToProps = { setRegisteredModelTagApi, deleteRegisteredModelTagApi };\n\nconst styles = {\n emailNotificationPreferenceDropdown: (theme: any) => ({\n width: 300,\n marginBottom: theme.spacing.md,\n }),\n emailNotificationPreferenceTip: (theme: any) => ({\n paddingLeft: theme.spacing.sm,\n paddingRight: theme.spacing.sm,\n }),\n collapsiblePanel: (theme: any) => ({\n marginBottom: theme.spacing.md,\n }),\n wrapper: (theme: any) => ({\n /**\n * This seems to be a best and most stable method to catch\n * antd's collapsible section buttons without hacks\n * and using class names.\n */\n 'div[role=\"button\"][aria-expanded]': {\n height: theme.general.buttonHeight,\n },\n }),\n editButton: (theme: any) => ({\n marginLeft: theme.spacing.md,\n }),\n versionsTabButtons: (theme: any) => ({\n display: 'flex',\n gap: theme.spacing.md,\n alignItems: 'center',\n }),\n};\n\nexport const ModelView = connect(\n mapStateToProps,\n mapDispatchToProps,\n)(withNextModelsUIContext(injectIntl(ModelViewImpl)));\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport {\n searchModelVersionsApi,\n getRegisteredModelApi,\n updateRegisteredModelApi,\n deleteRegisteredModelApi,\n} from '../actions';\nimport { ModelView } from './ModelView';\nimport { getModelVersions } from '../reducers';\nimport LocalStorageUtils from '../../common/utils/LocalStorageUtils';\nimport { MODEL_VERSIONS_SEARCH_TIMESTAMP_FIELD, MODEL_VERSIONS_PER_PAGE_COMPACT } from '../constants';\nimport { PageContainer } from '../../common/components/PageContainer';\nimport RequestStateWrapper, { triggerError } from '../../common/components/RequestStateWrapper';\nimport { Spinner } from '../../common/components/Spinner';\nimport { ErrorView } from '../../common/components/ErrorView';\nimport { ModelRegistryRoutes } from '../routes';\nimport Utils from '../../common/utils/Utils';\nimport { getUUID } from '../../common/utils/ActionUtils';\nimport { injectIntl } from 'react-intl';\nimport { withRouterNext } from '../../common/utils/withRouterNext';\nimport type { WithRouterNextProps } from '../../common/utils/withRouterNext';\nimport { withErrorBoundary } from '../../common/utils/withErrorBoundary';\nimport ErrorUtils from '../../common/utils/ErrorUtils';\nimport { ErrorCodes } from '../../common/constants';\n\ntype ModelPageImplState = {\n maxResultsSelection: number;\n pageTokens: Record;\n loading: boolean;\n error: Error | undefined;\n};\n\ntype ModelPageImplProps = WithRouterNextProps<{ subpage: string }> & {\n modelName: string;\n model?: any;\n modelVersions?: any[];\n emailSubscriptionStatus?: string;\n userLevelEmailSubscriptionStatus?: string;\n searchModelVersionsApi: (...args: any[]) => any;\n getRegisteredModelApi: (...args: any[]) => any;\n updateRegisteredModelApi: (...args: any[]) => any;\n deleteRegisteredModelApi: (...args: any[]) => any;\n setEmailSubscriptionStatusApi: (...args: any[]) => any;\n getEmailSubscriptionStatusApi: (...args: any[]) => any;\n getUserLevelEmailSubscriptionStatusApi: (...args: any[]) => any;\n searchEndpointsByModelNameApi: (...args: any[]) => any;\n searchParams: URLSearchParams;\n setSearchParams: (params: URLSearchParams | ((prev: URLSearchParams) => URLSearchParams)) => void;\n intl?: any;\n};\n\n/**\n * Returns a LocalStorageStore instance that can be used to persist data associated with the\n * ModelRegistry component.\n */\nfunction getModelPageSessionStore(key: any) {\n return LocalStorageUtils.getSessionScopedStoreForComponent('ModelPage', key);\n}\n\nexport function getOrderByExpr(orderByKey: string, orderByAsc: boolean): string {\n return orderByKey ? `${orderByKey} ${orderByAsc ? 'ASC' : 'DESC'}` : '';\n}\n\nexport class ModelPageImpl extends React.Component {\n constructor(props: ModelPageImplProps) {\n super(props);\n const persistedPageTokens = this.getPersistedPageTokens();\n const maxResultsForTokens = this.getPersistedMaxResults();\n\n this.state = {\n maxResultsSelection: maxResultsForTokens,\n pageTokens: persistedPageTokens,\n loading: true,\n error: undefined,\n };\n }\n modelPageStoreKey = 'ModelPageStore';\n defaultPersistedPageTokens = { 1: null };\n\n initSearchModelVersionsApiRequestId = getUUID();\n initgetRegisteredModelApiRequestId = getUUID();\n updateRegisteredModelApiId = getUUID();\n deleteRegisteredModelApiId = getUUID();\n\n criticalInitialRequestIds = [this.initSearchModelVersionsApiRequestId, this.initgetRegisteredModelApiRequestId];\n\n componentDidMount() {\n this.loadModelVersions(true);\n }\n\n updateUrlWithState(orderByKey: string, orderByAsc: boolean, page: number): Promise {\n return new Promise((resolve) => {\n const newParams = new URLSearchParams(this.props.searchParams);\n if (orderByKey) newParams.set('orderByKey', orderByKey);\n if (orderByAsc !== undefined) newParams.set('orderByAsc', String(orderByAsc));\n if (page) newParams.set('page', String(page));\n this.props.setSearchParams(newParams);\n resolve();\n });\n }\n\n resetHistoryState() {\n this.setState((prevState: any) => ({\n pageTokens: this.defaultPersistedPageTokens,\n }));\n this.setPersistedPageTokens(this.defaultPersistedPageTokens);\n }\n\n isEmptyPageResponse = (value: any) => {\n return !value || !value.model_versions || !value.next_page_token;\n };\n\n // Loads the initial set of model versions.\n loadModelVersions(isInitialLoading = true) {\n this.loadPage(this.currentPage, isInitialLoading, true);\n }\n get currentPage() {\n const urlPage = parseInt(this.props.searchParams.get('page') || '1', 10);\n return isNaN(urlPage) ? 1 : urlPage;\n }\n\n get orderByKey() {\n return this.props.searchParams.get('orderByKey') ?? MODEL_VERSIONS_SEARCH_TIMESTAMP_FIELD;\n }\n\n get orderByAsc() {\n return this.props.searchParams.get('orderByAsc') === 'true';\n }\n\n getPersistedPageTokens() {\n const store = getModelPageSessionStore(this.modelPageStoreKey);\n if (store && store.getItem('page_tokens')) {\n return JSON.parse(store.getItem('page_tokens'));\n } else {\n return this.defaultPersistedPageTokens;\n }\n }\n\n setPersistedPageTokens(page_tokens: any) {\n const store = getModelPageSessionStore(this.modelPageStoreKey);\n if (store) {\n store.setItem('page_tokens', JSON.stringify(page_tokens));\n }\n }\n\n getPersistedMaxResults() {\n const store = getModelPageSessionStore(this.modelPageStoreKey);\n if (store && store.getItem('max_results')) {\n return parseInt(store.getItem('max_results'), 10);\n } else {\n return MODEL_VERSIONS_PER_PAGE_COMPACT;\n }\n }\n\n setMaxResultsInStore(max_results: any) {\n const store = getModelPageSessionStore(this.modelPageStoreKey);\n store.setItem('max_results', max_results.toString());\n }\n\n handleEditDescription = (description: any) => {\n const { model } = this.props;\n return this.props\n .updateRegisteredModelApi(model.name, description, this.updateRegisteredModelApiId)\n .then(() => this.loadPage(1, false, true));\n };\n\n handleDelete = () => {\n const { model } = this.props;\n return this.props.deleteRegisteredModelApi(model.name, this.deleteRegisteredModelApiId).then(() => {\n this.props.navigate(ModelRegistryRoutes.modelListPageRoute);\n });\n };\n\n loadPage = (page: number, isInitialLoading: boolean, loadModelMetadata = false) => {\n const { modelName } = this.props;\n const { pageTokens } = this.state;\n this.setState({ loading: true, error: undefined });\n const filters_obj = { name: modelName };\n const promiseValues = [\n this.props\n .searchModelVersionsApi(\n filters_obj,\n isInitialLoading ? this.initSearchModelVersionsApiRequestId : null,\n this.state.maxResultsSelection,\n getOrderByExpr(this.orderByKey, this.orderByAsc),\n pageTokens[page],\n )\n .then((response: any) => {\n this.updatePageState(page, response);\n }),\n ];\n if (loadModelMetadata) {\n promiseValues.push(\n this.props.getRegisteredModelApi(\n modelName,\n isInitialLoading === true ? this.initgetRegisteredModelApiRequestId : null,\n ),\n );\n }\n return Promise.all(promiseValues)\n .then(() => {\n this.setState({ loading: false });\n })\n .catch((error) => {\n this.setState({ loading: false, error });\n this.resetHistoryState();\n });\n };\n\n getNextPageTokenFromResponse(response: any) {\n const { value } = response;\n if (this.isEmptyPageResponse(value)) {\n // Why we could be here:\n // 1. There are no models returned: we went to the previous page but all models after that\n // page's token has been deleted.\n // 2. If `next_page_token` is not returned, assume there is no next page.\n return null;\n } else {\n return value.next_page_token;\n }\n }\n\n updatePageState = (page: any, response = {}) => {\n const nextPageToken = this.getNextPageTokenFromResponse(response);\n this.setState(\n (prevState: any) => ({\n pageTokens: {\n ...prevState.pageTokens,\n [page + 1]: nextPageToken,\n },\n }),\n () => {\n this.setPersistedPageTokens(this.state.pageTokens);\n },\n );\n };\n\n handleMaxResultsChange = (key: string) => {\n this.setState({ maxResultsSelection: parseInt(key, 10) }, () => {\n this.resetHistoryState();\n const { maxResultsSelection } = this.state;\n this.setMaxResultsInStore(maxResultsSelection);\n this.loadPage(1, false);\n });\n };\n\n handleClickNext = () => {\n const nextPage = this.currentPage + 1;\n this.updateUrlWithState(this.orderByKey, this.orderByAsc, nextPage).then(() => {\n this.loadPage(nextPage, false);\n });\n };\n\n handleClickPrev = () => {\n const prevPage = this.currentPage - 1;\n this.updateUrlWithState(this.orderByKey, this.orderByAsc, prevPage).then(() => {\n this.loadPage(prevPage, false);\n });\n };\n\n handleClickSortableColumn = (orderByKey: string, orderByDesc: boolean) => {\n const orderByAsc = !orderByDesc;\n this.resetHistoryState();\n this.updateUrlWithState(orderByKey, orderByAsc, 1).then(() => {\n this.loadPage(1, false);\n });\n };\n\n getMaxResultsSelection = () => {\n return this.state.maxResultsSelection;\n };\n\n render() {\n const { model, modelVersions, navigate, modelName } = this.props;\n const { pageTokens } = this.state;\n return (\n \n \n {(loading: any, hasError: any, requests: any) => {\n if (hasError) {\n if (Utils.shouldRender404(requests, [this.initgetRegisteredModelApiRequestId])) {\n return (\n \n );\n }\n const permissionDeniedErrors = requests.filter((request: any) => {\n return (\n this.criticalInitialRequestIds.includes(request.id) &&\n request.error?.getErrorCode() === ErrorCodes.PERMISSION_DENIED\n );\n });\n if (permissionDeniedErrors && permissionDeniedErrors[0]) {\n return (\n \n );\n }\n // TODO(Zangr) Have a more generic boundary to handle all errors, not just 404.\n triggerError(requests);\n } else if (loading) {\n return ;\n } else if (model) {\n // Null check to prevent NPE after delete operation\n return (\n \n );\n }\n return null;\n }}\n \n \n );\n }\n}\n\nconst mapStateToProps = (state: any, ownProps: WithRouterNextProps<{ modelName: string }>) => {\n const modelName = decodeURIComponent(ownProps.params.modelName);\n const model = state.entities.modelByName[modelName];\n const modelVersions = getModelVersions(state, modelName);\n return {\n modelName,\n model,\n modelVersions,\n };\n};\n\nconst mapDispatchToProps = {\n searchModelVersionsApi,\n getRegisteredModelApi,\n updateRegisteredModelApi,\n deleteRegisteredModelApi,\n};\n\nconst ModelPageWithRouter = withRouterNext(\n // @ts-expect-error TS(2769): No overload matches this call.\n connect(mapStateToProps, mapDispatchToProps)(injectIntl(ModelPageImpl)),\n);\n\nexport const ModelPage = withErrorBoundary(ErrorUtils.mlflowServices.MODEL_REGISTRY, ModelPageWithRouter);\n\nexport default ModelPage;\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\n/**\n * Utils for working with local storage.\n */\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class -- TODO(FEINF-4274)\nexport default class LocalStorageUtils {\n /**\n * Protocol version of MLflow's local storage. Should be incremented on any breaking change in how\n * data persisted in local storage is used, to prevent old (invalid) cached data from being loaded\n * and breaking the application.\n */\n static version = '1.1';\n\n /**\n * Return a LocalStorageStore corresponding to the specified component and ID, where the ID\n * can be used to disambiguate between multiple instances of cached data for the same component\n * (e.g. cached data for multiple experiments).\n */\n static getStoreForComponent(componentName: any, id: any) {\n return new LocalStorageStore([componentName, id].join('-'), 'localStorage');\n }\n\n static getSessionScopedStoreForComponent(componentName: any, id: any) {\n return new LocalStorageStore([componentName, id].join('-'), 'sessionStorage');\n }\n}\n\n/**\n * Interface to browser local storage that allows for setting key-value pairs under the specified\n * \"scope\".\n */\nclass LocalStorageStore {\n constructor(scope: any, type: any) {\n this.scope = scope;\n if (type === 'localStorage') {\n this.storageObj = window.localStorage;\n } else {\n this.storageObj = window.sessionStorage;\n }\n }\n static reactComponentStateKey = 'ReactComponentState';\n\n scope: any;\n storageObj: any;\n\n /**\n * Loads React component state cached in local storage into a vanilla JS object.\n */\n loadComponentState() {\n const storedVal = this.getItem(LocalStorageStore.reactComponentStateKey);\n if (storedVal) {\n return JSON.parse(storedVal);\n }\n return {};\n }\n\n /**\n * Save React component state in local storage.\n * @param stateRecord: Immutable.Record instance or plain object containing component state.\n */\n saveComponentState(stateRecord: any) {\n const targetValue = typeof stateRecord.toJSON === 'function' ? stateRecord.toJSON() : stateRecord;\n this.setItem(LocalStorageStore.reactComponentStateKey, JSON.stringify(targetValue));\n }\n\n /**\n * Helper method for constructing a scoped key to use for setting/getting values in\n * local storage.\n */\n withScopePrefix(key: any) {\n return ['MLflowLocalStorage', LocalStorageUtils.version, this.scope, key].join('-');\n }\n\n /** Save the specified key-value pair in local storage. */\n setItem(key: any, value: any) {\n this.storageObj.setItem(this.withScopePrefix(key), value);\n }\n\n /** Fetch the value corresponding to the passed-in key from local storage. */\n getItem(key: any) {\n return this.storageObj.getItem(this.withScopePrefix(key));\n }\n}\n","import { sortedIndexOf } from 'lodash';\nimport React, { useMemo, useRef, useState } from 'react';\nimport { Control, useController } from 'react-hook-form';\nimport { useIntl } from 'react-intl';\n\nimport { PlusIcon, LegacySelect, LegacyTooltip, useDesignSystemTheme } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\n\n/**\n * Will show an extra row at the bottom of the dropdown menu to create a new tag when\n * The user has typed something in the search input\n * and either\n * 1. The search input is not an exact match for an existing tag name\n * 2. There are no tags available based on search input\n */\n\nfunction DropdownMenu(menu: React.ReactElement, allAvailableTags: string[]) {\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n const searchValue = menu.props.searchValue.toLowerCase();\n\n const resolvedMenu = useMemo(() => {\n if (!searchValue) return menu;\n\n const doesTagExists = sortedIndexOf(allAvailableTags, searchValue) >= 0;\n if (doesTagExists) return menu;\n\n const isValidTagKey = /^[^,.:/=\\-\\s]+$/.test(searchValue);\n\n // Overriding the menu to add a new option at the top\n return React.cloneElement(menu, {\n flattenOptions: [\n {\n data: {\n value: searchValue,\n disabled: !isValidTagKey,\n style: {\n color: isValidTagKey ? theme.colors.actionTertiaryTextDefault : theme.colors.actionDisabledText,\n },\n children: (\n Tag dropdown Manage Modal > Invalid characters error',\n })\n }\n placement=\"right\"\n >\n \n \n {intl.formatMessage(\n {\n defaultMessage: 'Add tag \"{tagKey}\"',\n description: 'Key-value tag editor modal > Tag dropdown Manage Modal > Add new tag button',\n },\n {\n tagKey: searchValue,\n },\n )}\n \n \n ),\n },\n key: searchValue,\n groupOption: false,\n },\n ...menu.props.flattenOptions,\n ],\n });\n }, [allAvailableTags, menu, searchValue, intl, theme]);\n\n return resolvedMenu;\n}\n\nfunction getDropdownMenu(allAvailableTags: string[]) {\n return (menu: React.ReactElement) => DropdownMenu(menu, allAvailableTags);\n}\n\n/**\n * Used in tag edit feature, allows selecting existing / adding new tag value\n */\nexport function TagKeySelectDropdown({\n allAvailableTags,\n control,\n onKeyChangeCallback,\n}: {\n allAvailableTags: string[];\n control: Control;\n onKeyChangeCallback?: (key?: string) => void;\n}) {\n const intl = useIntl();\n const [isOpen, setIsOpen] = useState(false);\n const selectRef = useRef<{ blur: () => void; focus: () => void }>(null);\n\n const { field, fieldState } = useController({\n control: control,\n name: 'key',\n rules: {\n required: {\n message: intl.formatMessage({\n defaultMessage: 'A tag key is required',\n description: 'Key-value tag editor modal > Tag dropdown > Tag key required error message',\n }),\n value: true,\n },\n },\n });\n\n const handleDropdownVisibleChange = (visible: boolean) => {\n setIsOpen(visible);\n };\n\n const handleClear = () => {\n field.onChange(undefined);\n onKeyChangeCallback?.(undefined);\n };\n\n const handleSelect = (key: string) => {\n field.onChange(key);\n onKeyChangeCallback?.(key);\n };\n\n return (\n Tag dropdown > Tag input placeholder',\n })}\n value={field.value}\n defaultValue={field.value}\n open={isOpen}\n onDropdownVisibleChange={handleDropdownVisibleChange}\n filterOption={(input, option) => option?.value.toLowerCase().includes(input.toLowerCase())}\n onSelect={handleSelect}\n onClear={handleClear}\n validationState={fieldState.error ? 'error' : undefined}\n >\n {allAvailableTags.map((tag) => (\n \n {tag}\n \n ))}\n \n );\n}\n","import { isEqual, sortBy } from 'lodash';\nimport { useCallback, useMemo, useRef, useState } from 'react';\nimport { truncate } from 'lodash';\n\nimport {\n Button,\n FormUI,\n Modal,\n PlusIcon,\n Popover,\n RHFControlledComponents,\n RestoreAntDDefaultClsPrefix,\n LegacyTooltip,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { Typography } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { useForm } from 'react-hook-form';\nimport { TagKeySelectDropdown } from '../components/TagSelectDropdown';\nimport { KeyValueTag } from '../components/KeyValueTag';\nimport { ErrorWrapper } from '../utils/ErrorWrapper';\n\nfunction getTagsMap(tags: KeyValueEntity[]) {\n return new Map(tags.map((tag) => [tag.key, tag]));\n}\n\n/**\n * Provides methods to initialize and display modal used to add and remove tags from any compatible entity\n */\nexport const useEditKeyValueTagsModal = ({\n onSuccess,\n saveTagsHandler,\n allAvailableTags,\n valueRequired = false,\n title,\n}: {\n onSuccess?: () => void;\n saveTagsHandler: (editedEntity: T, existingTags: KeyValueEntity[], newTags: KeyValueEntity[]) => Promise;\n allAvailableTags?: string[];\n valueRequired?: boolean;\n title?: React.ReactNode;\n}) => {\n const editedEntityRef = useRef();\n const [errorMessage, setErrorMessage] = useState('');\n const { theme } = useDesignSystemTheme();\n\n const [initialTags, setInitialTags] = useState>(new Map());\n const [finalTags, setFinalTags] = useState>(new Map());\n\n const [showModal, setShowModal] = useState(false);\n\n const form = useForm({\n defaultValues: {\n key: undefined,\n value: '',\n },\n });\n\n const hideModal = () => setShowModal(false);\n\n /**\n * Function used to invoke the modal and start editing tags of the particular model version\n */\n const showEditTagsModal = useCallback(\n (editedEntity: T) => {\n editedEntityRef.current = editedEntity;\n setInitialTags(getTagsMap(editedEntity.tags || []));\n setFinalTags(getTagsMap(editedEntity.tags || []));\n form.reset();\n\n setShowModal(true);\n },\n [form],\n );\n\n const saveTags = async () => {\n if (!editedEntityRef.current) {\n return;\n }\n setErrorMessage('');\n setIsLoading(true);\n saveTagsHandler(editedEntityRef.current, Array.from(initialTags.values()), Array.from(finalTags.values()))\n .then(() => {\n hideModal();\n onSuccess?.();\n setIsLoading(false);\n })\n .catch((e: ErrorWrapper | Error) => {\n setIsLoading(false);\n setErrorMessage(e instanceof ErrorWrapper ? e.getUserVisibleError()?.message : e.message);\n });\n };\n\n const intl = useIntl();\n const formValues = form.watch();\n\n const [isLoading, setIsLoading] = useState(false);\n\n const hasNewValues = useMemo(\n () => !isEqual(sortBy(Array.from(initialTags.values()), 'key'), sortBy(Array.from(finalTags.values()), 'key')),\n [initialTags, finalTags],\n );\n const isDirty = formValues.key || formValues.value;\n const showPopoverMessage = hasNewValues && isDirty;\n\n const onKeyChangeCallback = (key: string | undefined) => {\n const tag = key ? finalTags.get(key) : undefined;\n /**\n * If a tag value exists for provided key, set the value to the existing tag value\n */\n form.setValue('value', tag?.value ?? '');\n };\n\n const handleTagDelete = ({ key }: KeyValueEntity) => {\n setFinalTags((currentFinalTags) => {\n currentFinalTags.delete(key);\n return new Map(currentFinalTags);\n });\n };\n\n const onSubmit = () => {\n // Do not accept form if no value provided while it's required\n if (valueRequired && !formValues.value.trim()) {\n return;\n }\n\n // Add new tag to existing tags leaving only one tag per key value\n const newEntries = new Map(finalTags);\n newEntries.set(formValues.key, formValues);\n\n setFinalTags(newEntries);\n form.reset();\n };\n\n const EditTagsModal = (\n Title of the update tags modal\"\n />\n )\n }\n onCancel={hideModal}\n footer={\n \n \n {intl.formatMessage({\n defaultMessage: 'Cancel',\n description: 'Key-value tag editor modal > Manage Tag cancel button',\n })}\n \n {showPopoverMessage ? (\n \n ) : (\n Tag disabled message',\n })\n : undefined\n }\n >\n \n {intl.formatMessage({\n defaultMessage: 'Save tags',\n description: 'Key-value tag editor modal > Manage Tag save button',\n })}\n \n \n )}\n \n }\n >\n \n
\n
\n \n {intl.formatMessage({\n defaultMessage: 'Key',\n description: 'Key-value tag editor modal > Key input label',\n })}\n \n \n
\n
\n \n {valueRequired\n ? intl.formatMessage({\n defaultMessage: 'Value',\n description: 'Key-value tag editor modal > Value input label (required)',\n })\n : intl.formatMessage({\n defaultMessage: 'Value (optional)',\n description: 'Key-value tag editor modal > Value input label',\n })}\n \n Value input label (required)',\n })\n : intl.formatMessage({\n defaultMessage: 'Value (optional)',\n description: 'Key-value tag editor modal > Value input label',\n })\n }\n placeholder={intl.formatMessage({\n defaultMessage: 'Type a value',\n description: 'Key-value tag editor modal > Value input placeholder',\n })}\n />\n
\n
\n Add tag button',\n })}\n >\n Add tag button',\n })}\n >\n \n \n \n \n {errorMessage && }\n \n {Array.from(finalTags.values()).map((tag) => (\n handleTagDelete(tag)} key={tag.key} />\n ))}\n \n \n );\n\n return { EditTagsModal, showEditTagsModal, isLoading };\n};\n\nfunction UnsavedTagPopoverTrigger({\n isLoading,\n formValues,\n onSaveTask,\n}: {\n isLoading: boolean;\n formValues: any;\n onSaveTask: () => void;\n}) {\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n\n const tagKeyDisplay = `${truncate(formValues.key, { length: 20 }) || '_'}`;\n const tagValueDisplay = formValues.value ? `:${truncate(formValues.value, { length: 20 })}` : '';\n const fullTagDisplay = `${tagKeyDisplay}${tagValueDisplay}`;\n\n const shownText = intl.formatMessage(\n {\n defaultMessage: 'Are you sure you want to save and close without adding \"{tag}\"',\n description: 'Key-value tag editor modal > Unsaved tag message',\n },\n {\n tag: fullTagDisplay,\n },\n );\n return (\n \n \n \n {intl.formatMessage({\n defaultMessage: 'Save tags',\n description: 'Key-value tag editor modal > Manage Tag save button',\n })}\n \n \n \n {shownText}\n \n \n {intl.formatMessage({\n defaultMessage: 'Yes, save and close',\n description: 'Key-value tag editor modal > Unsaved tag message > Yes, save and close button',\n })}\n \n \n \n \n {intl.formatMessage({\n defaultMessage: 'Cancel',\n description: 'Key-value tag editor modal > Unsaved tag message > cancel button',\n })}\n \n \n \n \n \n );\n}\n","import _ from 'lodash';\n// Import pako lazily to reduce bundle size\nconst lazyPako = () => import('pako');\n\nexport const truncateToFirstLineWithMaxLength = (str: string, maxLength: number): string => {\n const truncated = _.truncate(str, {\n length: maxLength,\n });\n return _.takeWhile(truncated, (char) => char !== '\\n').join('');\n};\n\nexport const capitalizeFirstChar = (str: unknown) => {\n if (!str || typeof str !== 'string' || str.length < 1) {\n return str;\n }\n return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();\n};\n\nexport const middleTruncateStr = (str: string, maxLen: number) => {\n if (str.length > maxLen) {\n const firstPartLen = Math.floor((maxLen - 3) / 2);\n const lastPartLen = maxLen - 3 - firstPartLen;\n return str.substring(0, firstPartLen) + '...' + str.substring(str.length - lastPartLen, str.length);\n } else {\n return str;\n }\n};\n\nconst capitalizeFirstLetter = (string: string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nconst _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n/* eslint-disable no-bitwise */\n/**\n * UTF-8 safe version of base64 encoder\n * Source: http://www.webtoolkit.info/javascript_base64.html\n *\n * @param {string} input - Text to encode\n */\nexport const btoaUtf8 = (input: string) => {\n let output = '';\n let i = 0;\n\n const result = _utf8_encode(input);\n\n while (i < result.length) {\n const chr1 = result.charCodeAt(i++);\n const chr2 = result.charCodeAt(i++);\n const chr3 = result.charCodeAt(i++);\n\n const enc1 = chr1 >> 2;\n const enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n let enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n let enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc4 = 64;\n enc3 = enc4;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n }\n\n return output;\n};\n\n/**\n * UTF-8 safe version of base64 decoder\n * Source: http://www.webtoolkit.info/javascript_base64.html\n *\n * @param {string} input - Text to decode\n */\nexport const atobUtf8 = (input: string) => {\n let output = '';\n let i = 0;\n\n const result = input?.replace(/[^A-Za-z0-9+/=]/g, '') || '';\n\n while (i < result.length) {\n const enc1 = _keyStr.indexOf(result.charAt(i++));\n const enc2 = _keyStr.indexOf(result.charAt(i++));\n const enc3 = _keyStr.indexOf(result.charAt(i++));\n const enc4 = _keyStr.indexOf(result.charAt(i++));\n\n const chr1 = (enc1 << 2) | (enc2 >> 4);\n const chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n const chr3 = ((enc3 & 3) << 6) | enc4;\n\n output += String.fromCharCode(chr1);\n\n if (enc3 !== 64) {\n output += String.fromCharCode(chr2);\n }\n\n if (enc4 !== 64) {\n output += String.fromCharCode(chr3);\n }\n }\n\n return _utf8_decode(output);\n};\n\n/**\n * (private method) does a UTF-8 encoding\n *\n * @private\n * @param {string} string - Text to encode\n */\nconst _utf8_encode = (string = '') => {\n const result = string.replace(/\\r\\n/g, '\\n');\n let utftext = '';\n\n for (let n = 0; n < result.length; n++) {\n const c = result.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n } else if (c > 127 && c < 2048) {\n utftext += String.fromCharCode((c >> 6) | 192) + String.fromCharCode((c & 63) | 128);\n } else {\n utftext +=\n String.fromCharCode((c >> 12) | 224) +\n String.fromCharCode(((c >> 6) & 63) | 128) +\n String.fromCharCode((c & 63) | 128);\n }\n }\n\n return utftext;\n};\n\n/**\n * (private method) does a UTF-8 decoding\n *\n * @private\n * @param {string} utftext - UTF-8 text to dencode\n */\nconst _utf8_decode = (utftext = '') => {\n let string = '';\n let i = 0;\n\n while (i < utftext.length) {\n const c = utftext.charCodeAt(i);\n\n if (c < 128) {\n string += String.fromCharCode(c);\n i++;\n } else if (c > 191 && c < 224) {\n const c2 = utftext.charCodeAt(i + 1);\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n i += 2;\n } else {\n const c2 = utftext.charCodeAt(i + 1);\n const c3 = utftext.charCodeAt(i + 2);\n string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n i += 3;\n }\n }\n return string;\n};\n/* eslint-enable no-bitwise */\n\n/**\n * Returns a SHA256 hash of the input string\n */\nexport const getStringSHA256 = (input: string) => {\n return crypto.subtle.digest('SHA-256', new TextEncoder().encode(input)).then((arrayBuffer) => {\n return Array.prototype.map.call(new Uint8Array(arrayBuffer), (x) => ('00' + x.toString(16)).slice(-2)).join('');\n });\n};\n\nconst COMPRESSED_TEXT_DEFLATE_PREFIX = 'deflate;';\n\nexport const textCompressDeflate = async (text: string) => {\n const pako = await lazyPako();\n const binaryData = pako.deflate(text);\n\n // Buffer-based implementation\n if (typeof Buffer !== 'undefined') {\n const b64encoded = Buffer.from(binaryData).toString('base64');\n return `${COMPRESSED_TEXT_DEFLATE_PREFIX}${b64encoded}`;\n }\n\n // btoa-based implementation\n const binaryString = Array.from(binaryData, (byte) => String.fromCodePoint(byte)).join('');\n return `${COMPRESSED_TEXT_DEFLATE_PREFIX}${btoa(binaryString)}`;\n};\n\nexport const textDecompressDeflate = async (compressedText: string) => {\n const pako = await lazyPako();\n if (!compressedText.startsWith(COMPRESSED_TEXT_DEFLATE_PREFIX)) {\n throw new Error('Invalid compressed text, payload header invalid');\n }\n const compressedTextWithoutPrefix = compressedText.slice(COMPRESSED_TEXT_DEFLATE_PREFIX.length);\n\n // Buffer-based implementation\n if (typeof Buffer !== 'undefined') {\n const binaryString = Buffer.from(compressedTextWithoutPrefix, 'base64');\n return pako.inflate(\n // This doesn't fail in Mlflow-Copybara-Tester-Pr. TODO: check why.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore [FEINF-4084] No overload matches this call.\n binaryString,\n { to: 'string' },\n );\n }\n\n // atob-based implementation\n const binaryString = atob(compressedTextWithoutPrefix);\n return pako.inflate(\n Uint8Array.from(binaryString, (m) => m.codePointAt(0) ?? 0),\n { to: 'string' },\n );\n};\n\nexport const isTextCompressedDeflate = (text: string) => text.startsWith(COMPRESSED_TEXT_DEFLATE_PREFIX);\n","import React, { useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { Button, type ButtonProps, LegacyTooltip } from '@databricks/design-system';\n\ninterface CopyButtonProps extends Partial {\n copyText: string;\n showLabel?: React.ReactNode;\n componentId?: string;\n}\n\nexport const CopyButton = ({ copyText, showLabel = true, componentId, ...buttonProps }: CopyButtonProps) => {\n const [showTooltip, setShowTooltip] = useState(false);\n\n const handleClick = () => {\n navigator.clipboard.writeText(copyText);\n setShowTooltip(true);\n setTimeout(() => {\n setShowTooltip(false);\n }, 3000);\n };\n\n const handleMouseLeave = () => {\n setShowTooltip(false);\n };\n\n return (\n \n }\n dangerouslySetAntdProps={{\n visible: showTooltip,\n }}\n >\n : undefined\n }\n {...buttonProps}\n />\n \n );\n};\n","import { Button, PencilIcon, useDesignSystemTheme } from '@databricks/design-system';\nimport { AliasTag } from '../../../common/components/AliasTag';\nimport { FormattedMessage } from 'react-intl';\n\ninterface ModelVersionTableAliasesCellProps {\n aliases?: string[];\n modelName: string;\n version: string;\n onAddEdit: () => void;\n className?: string;\n}\n\nexport const ModelVersionTableAliasesCell = ({\n aliases = [],\n onAddEdit,\n className,\n}: ModelVersionTableAliasesCellProps) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n *': {\n marginRight: '0 !important',\n },\n rowGap: theme.spacing.xs / 2,\n columnGap: theme.spacing.xs,\n }}\n className={className}\n >\n {aliases.length < 1 ? (\n \n model version table > aliases column > 'add' button label\"\n />\n \n ) : (\n <>\n {aliases.map((alias) => (\n \n ))}\n }\n onClick={onAddEdit}\n />\n \n )}\n \n );\n};\n","import React from 'react';\nimport { Modal, Typography, CopyIcon, useDesignSystemTheme } from '@databricks/design-system';\nconst { Paragraph } = Typography;\nimport { CopyButton } from '@mlflow/mlflow/src/shared/building_blocks/CopyButton';\n\nexport interface KeyValueTagFullViewModalProps {\n tagKey: string;\n tagValue: string;\n setIsKeyValueTagFullViewModalVisible: React.Dispatch>;\n isKeyValueTagFullViewModalVisible: boolean;\n}\n\nexport const KeyValueTagFullViewModal = React.memo((props: KeyValueTagFullViewModalProps) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n props.setIsKeyValueTagFullViewModalVisible(false)}\n >\n
\n \n \n {props.tagValue}\n \n \n \n } aria-label=\"Copy\" />\n
\n \n \n );\n});\n","import { Tag, LegacyTooltip, Typography } from '@databricks/design-system';\nimport { KeyValueEntity } from '../types';\nimport React, { useState } from 'react';\nimport { useIntl } from 'react-intl';\nimport { KeyValueTagFullViewModal } from './KeyValueTagFullViewModal';\nimport { Interpolation, Theme } from '@emotion/react';\n\n/**\n * An arbitrary number that is used to determine if a tag is too\n * long and should be truncated. We want to avoid short keys or values\n * in a long tag to be truncated\n * */\nconst TRUNCATE_ON_CHARS_LENGTH = 30;\n\nfunction getTruncatedStyles(shouldTruncate = true): Interpolation {\n return shouldTruncate\n ? {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textWrap: 'nowrap',\n whiteSpace: 'nowrap' as const,\n }\n : { whiteSpace: 'nowrap' as const };\n}\n\n/**\n * A wrapper used for displaying key-value entity\n */\nexport const KeyValueTag = ({\n isClosable = false,\n onClose,\n tag,\n enableFullViewModal = false,\n charLimit = TRUNCATE_ON_CHARS_LENGTH,\n maxWidth = 300,\n className,\n}: {\n isClosable?: boolean;\n onClose?: () => void;\n tag: KeyValueEntity;\n enableFullViewModal?: boolean;\n charLimit?: number;\n maxWidth?: number;\n className?: string;\n}) => {\n const intl = useIntl();\n\n const [isKeyValueTagFullViewModalVisible, setIsKeyValueTagFullViewModalVisible] = useState(false);\n\n const { shouldTruncateKey, shouldTruncateValue } = getKeyAndValueComplexTruncation(tag, charLimit);\n const allowFullViewModal = enableFullViewModal && (shouldTruncateKey || shouldTruncateValue);\n\n const fullViewModalLabel = intl.formatMessage({\n defaultMessage: 'Click to see more',\n description: 'Run page > Overview > Tags cell > Tag',\n });\n\n return (\n
\n \n \n (allowFullViewModal ? setIsKeyValueTagFullViewModalVisible(true) : undefined)}\n >\n \n {tag.key}\n \n {tag.value && (\n \n : {tag.value}\n \n )}\n \n \n \n
\n {isKeyValueTagFullViewModalVisible && (\n \n )}\n
\n
\n );\n};\n\nexport function getKeyAndValueComplexTruncation(\n tag: KeyValueEntity,\n charLimit = TRUNCATE_ON_CHARS_LENGTH,\n): { shouldTruncateKey: boolean; shouldTruncateValue: boolean } {\n const { key, value } = tag;\n const fullLength = key.length + value.length;\n const isKeyLonger = key.length > value.length;\n const shorterLength = isKeyLonger ? value.length : key.length;\n\n // No need to truncate if tag is short enough\n if (fullLength <= charLimit) return { shouldTruncateKey: false, shouldTruncateValue: false };\n // If the shorter string is too long, truncate both key and value.\n if (shorterLength > charLimit / 2) return { shouldTruncateKey: true, shouldTruncateValue: true };\n\n // Otherwise truncate the longer string\n return {\n shouldTruncateKey: isKeyLonger,\n shouldTruncateValue: !isKeyLonger,\n };\n}\n"],"names":["KeyValueTagsEditorCell","tags","onAddEdit","theme","useDesignSystemTheme","_jsx","css","_css","display","flexWrap","marginRight","gap","spacing","xs","children","length","Button","componentId","size","type","onClick","FormattedMessage","id","defaultMessage","_jsxs","_Fragment","map","tag","KeyValueTag","key","value","icon","PencilIcon","COLUMN_IDS","getAliasesModalTitle","version","values","_ref","name","styles","ModelVersionTable","modelName","modelVersions","activeStageOnly","orderByAsc","orderByKey","onSortChange","onChange","getSortFieldName","modelEntity","onMetadataUpdated","usingNextModelsUI","aliases","pagination","isLoading","_modelEntity$aliases","aliasesByVersion","useMemo","result","forEach","alias","push","versions","filter","current_stage","ACTIVE_STAGES","includes","intl","useIntl","allTagsKeys","allTagsList","modelVersion","flat","Array","from","Set","sort","dispatch","useDispatch","EditTagsModal","showEditTagsModal","useEditKeyValueTagsModal","allAvailableTags","saveTagsHandler","async","existingTags","newTags","updateModelVersionTagsApi","onSuccess","EditAliasesModal","showEditAliasesModal","useEditAliasesModal","onSave","currentlyEditedVersion","existingAliases","draftAliases","setModelVersionAliasesApi","getTitle","description","link","chunks","href","mlflowAliasesLearnMoreLink","rel","target","rowSelection","setRowSelection","useState","useEffect","selectedVersions","selectedVersionNumbers","tableColumns","columns","STATUS","enableSorting","header","meta","flexBasis","general","heightSm","flexGrow","cell","row","original","status","status_message","LegacyTooltip","title","modelVersionStatusIconTooltips","Typography","Text","ModelVersionStatusIcons","VERSION","formatMessage","className","accessorKey","getValue","Link","to","ModelRegistryRoutes","getModelVersionPageRoute","String","versionNumber","CREATION_TIMESTAMP","minWidth","Utils","formatTimestamp","USER_ID","TAGS","flex","ALIASES","multiline","mvAliases","ModelVersionTableAliasesCell","STAGE","StageTagComponents","DESCRIPTION","truncateToFirstLineWithMaxLength","sorting","desc","table","useReactTable","data","state","getCoreRowModel","getSortedRowModel","getRowId","onRowSelectionChange","onSortingChange","stateUpdater","newSortState","sorter","emptyComponent","Empty","RegisteringModelDocUrl","image","PlusIcon","Table","scrollable","empty","getRowModel","rows","undefined","someRowsSelected","getIsSomeRowsSelected","getIsAllRowsSelected","TableRow","isHeader","TableRowSelectCell","checked","indeterminate","getToggleAllRowsSelectedHandler","getLeafHeaders","_meta","TableHeader","sortable","column","getCanSort","sortDirection","getIsSorted","onToggleSort","currentSortColumn","sortDesc","toggleSorting","columnDef","flexRender","getContext","TableSkeletonRows","getIsSelected","getToggleSelectedHandler","getAllCells","_meta2","_meta3","_meta4","TableCell","StageFilters","_ref2","_ref3","_ref4","ModelViewImpl","React","constructor","props","super","maxResultsSelection","MODEL_VERSIONS_PER_PAGE_COMPACT","stageFilter","showDescriptionEditor","isDeleteModalVisible","isDeleteModalConfirmLoading","runsSelected","isTagsRequestPending","updatingEmailPreferences","isTagAssignmentModalVisible","isSavingTags","tagSavingError","formRef","sharedTaggingUIEnabled","shouldUseSharedTaggingUI","handleSetMaxResult","this","onSetMaxResult","MODEL_VERSIONS_SEARCH_TIMESTAMP_FIELD","handleSortChange","params","onClickSortableColumn","handleStageFilterChange","e","setState","handleCancelEditDescription","handleSubmitEditDescription","handleEditDescription","then","startEditingDescription","stopPropagation","showDeleteModal","hideDeleteModal","showConfirmLoading","hideConfirmLoading","handleDeleteConfirm","navigate","handleDelete","modelListPageRoute","catch","logErrorAndNotifyUser","getTags","_","getVisibleTagValues","handleEditTags","handleCloseTagAssignmentModal","handleAddTag","form","current","model","setRegisteredModelTagApi","resetFields","ex","console","error","message","ErrorWrapper","getMessageField","displayGlobalErrorNotification","handleSaveEdit","handleDeleteTag","deleteRegisteredModelTagApi","handleSaveTags","deletedTags","newTagsToSet","deletedTagsToDelete","Promise","all","selectedRowKeys","selectedRows","newState","Object","assign","run_id","renderDetails","currentPage","nextPageToken","compareDisabled","keys","wrapper","Descriptions","Item","label","creation_timestamp","last_updated_timestamp","user_id","TagList","onEdit","CollapsibleSection","collapsiblePanel","renderDescriptionEditIcon","forceOpen","defaultCollapsed","EditableNote","defaultMarkdown","onSubmit","onCancel","showEditor","EditableTagsTableView","innerRef","isRequestPending","versionsTabButtons","SegmentedControlGroup","SegmentedControlButton","getActiveVersionsCount","disabled","onCompare","shouldShowModelsNextUI","ModelsNextUIToggleSwitch","loading","CursorPagination","hasNextPage","Boolean","hasPreviousPage","onNextPage","onClickNext","onPreviousPage","onClickPrev","pageSizeSelect","num","default","maxResultValue","options","DangerModal","visible","confirmLoading","onOk","okText","cancelText","bind","componentDidMount","pageTitle","updatePageTitle","v","getOverflowMenuItems","itemName","getCompareModelVersionsPageRoute","editButton","renderMainPanel","render","breadcrumbs","PageHeader","OverflowMenu","menu","mapDispatchToProps","emailNotificationPreferenceDropdown","width","marginBottom","md","emailNotificationPreferenceTip","paddingLeft","sm","paddingRight","height","buttonHeight","marginLeft","alignItems","ModelView","connect","mapStateToProps","ownProps","getRegisteredModelTags","withNextModelsUIContext","injectIntl","getModelPageSessionStore","LocalStorageUtils","getSessionScopedStoreForComponent","getOrderByExpr","ModelPageImpl","modelPageStoreKey","defaultPersistedPageTokens","initSearchModelVersionsApiRequestId","getUUID","initgetRegisteredModelApiRequestId","updateRegisteredModelApiId","deleteRegisteredModelApiId","criticalInitialRequestIds","isEmptyPageResponse","model_versions","next_page_token","updateRegisteredModelApi","loadPage","deleteRegisteredModelApi","page","isInitialLoading","loadModelMetadata","pageTokens","filters_obj","promiseValues","searchModelVersionsApi","response","updatePageState","getRegisteredModelApi","resetHistoryState","getNextPageTokenFromResponse","prevState","setPersistedPageTokens","handleMaxResultsChange","parseInt","setMaxResultsInStore","handleClickNext","nextPage","updateUrlWithState","handleClickPrev","prevPage","handleClickSortableColumn","orderByDesc","getMaxResultsSelection","persistedPageTokens","getPersistedPageTokens","maxResultsForTokens","getPersistedMaxResults","loadModelVersions","resolve","newParams","URLSearchParams","searchParams","set","setSearchParams","urlPage","get","isNaN","_this$props$searchPar","store","getItem","JSON","parse","page_tokens","setItem","stringify","max_results","toString","PageContainer","RequestStateWrapper","requestIds","hasError","requests","shouldRender404","ErrorView","statusCode","subMessage","fallbackHomePageReactRoute","permissionDeniedErrors","request","_request$error","getErrorCode","ErrorCodes","PERMISSION_DENIED","_permissionDeniedErro","errorMsg","triggerError","Spinner","ModelPageWithRouter","withRouterNext","decodeURIComponent","entities","modelByName","getModelVersions","ModelPage","withErrorBoundary","ErrorUtils","mlflowServices","MODEL_REGISTRY","getStoreForComponent","componentName","LocalStorageStore","join","scope","storageObj","window","localStorage","sessionStorage","loadComponentState","storedVal","reactComponentStateKey","saveComponentState","stateRecord","targetValue","toJSON","withScopePrefix","getDropdownMenu","searchValue","toLowerCase","sortedIndexOf","isValidTagKey","test","flattenOptions","style","color","colors","actionTertiaryTextDefault","actionDisabledText","placement","tagKey","groupOption","DropdownMenu","TagKeySelectDropdown","control","onKeyChangeCallback","isOpen","setIsOpen","selectRef","useRef","field","fieldState","useController","rules","required","LegacySelect","allowClear","ref","dangerouslySetAntdProps","showSearch","dropdownRender","placeholder","defaultValue","open","onDropdownVisibleChange","filterOption","input","option","onSelect","onClear","handleClear","validationState","Option","getTagsMap","Map","valueRequired","editedEntityRef","errorMessage","setErrorMessage","initialTags","setInitialTags","finalTags","setFinalTags","showModal","setShowModal","useForm","defaultValues","hideModal","useCallback","editedEntity","reset","saveTags","setIsLoading","_e$getUserVisibleErro","getUserVisibleError","formValues","watch","hasNewValues","isEqual","sortBy","isDirty","showPopoverMessage","Modal","destroyOnClose","footer","RestoreAntDDefaultClsPrefix","dangerouslyUseFocusPseudoClass","UnsavedTagPopoverTrigger","onSaveTask","handleSubmit","trim","newEntries","FormUI","Label","htmlFor","_tag$value","setValue","RHFControlledComponents","Input","htmlType","Message","rowGap","marginTop","isClosable","onClose","handleTagDelete","currentFinalTags","delete","fullTagDisplay","truncate","shownText","Popover","Root","Trigger","asChild","Content","align","Paragraph","Close","Arrow","lazyPako","str","maxLength","truncated","char","middleTruncateStr","maxLen","firstPartLen","Math","floor","lastPartLen","substring","_keyStr","btoaUtf8","output","i","_utf8_encode","chr1","charCodeAt","chr2","chr3","enc1","enc2","enc3","enc4","charAt","atobUtf8","replace","indexOf","fromCharCode","_utf8_decode","string","utftext","n","c","c2","c3","getStringSHA256","crypto","subtle","digest","TextEncoder","encode","arrayBuffer","prototype","call","Uint8Array","x","slice","COMPRESSED_TEXT_DEFLATE_PREFIX","textCompressDeflate","binaryData","deflate","text","Buffer","b64encoded","binaryString","byte","fromCodePoint","btoa","textDecompressDeflate","pako","compressedText","startsWith","Error","compressedTextWithoutPrefix","inflate","atob","m","_m$codePointAt","codePointAt","isTextCompressedDeflate","CopyButton","copyText","showLabel","buttonProps","showTooltip","setShowTooltip","handleClick","navigator","clipboard","writeText","setTimeout","onMouseLeave","handleMouseLeave","maxWidth","columnGap","AliasTag","KeyValueTagFullViewModal","isKeyValueTagFullViewModalVisible","setIsKeyValueTagFullViewModalVisible","backgroundColor","backgroundPrimary","whiteSpace","wordBreak","tagValue","CopyIcon","getTruncatedStyles","shouldTruncate","overflow","textOverflow","textWrap","enableFullViewModal","charLimit","shouldTruncateKey","shouldTruncateValue","fullLength","isKeyLonger","shorterLength","getKeyAndValueComplexTruncation","allowFullViewModal","fullViewModalLabel","Tag","closable","bold"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8722.b1d1065a.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8722.b1d1065a.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..f4ec0827b12abcae9d96b5bcf707867725859cb3 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8722.b1d1065a.chunk.js @@ -0,0 +1,32 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[8722],{4877:function(e){e.exports=function(e,t,n,r,i,o,l,s){if(!e){var d;if(void 0===t)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[n,r,i,o,l,s],u=0;(d=new Error(t.replace(/%s/g,(function(){return a[u++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}},11473:function(e,t,n){n.d(t,{N9:function(){return g},NW:function(){return u},OT:function(){return d},Yc:function(){return c}});var r=n(31014),i=n(37504),o=n.n(i),l=n(75826);let s=null;const d=()=>s||(s=new l.Converter,s.setFlavor("github"),s),a={allowedTags:["h1","h2","h3","h4","h5","h6","h7","h8","blockquote","p","a","ul","ol","nl","li","ins","b","i","strong","em","strike","code","hr","br","div","table","thead","tbody","tr","th","td","pre","del","sup","sub","dl","dt","dd","kbd","q","samp","samp","var","hr","rt","rp","summary","iframe","img","caption","figure"],allowedAttributes:{a:["href","name","target"],img:["src","longdesc"],div:["itemscope","itemtype"]}},u=e=>o()(e,a),c=e=>e.replace(new RegExp("(0,r.useCallback)((e=>{const t=d().makeHtml(e);return u(t)}),[])},27705:function(e,t,n){n.d(t,{g:function(){return l}});var r=n(31014),i=n(76010),o=n(50111);class l extends r.Component{constructor(...e){super(...e),this.state={error:null}}componentDidCatch(e,t){this.setState({error:e}),console.error(e,t)}renderErrorMessage(e){return this.props.showServerError?(0,o.FD)("div",{children:["Error message: ",e.message]}):""}render(){const{children:e}=this.props,{error:t}=this.state;return t?(0,o.Y)("div",{children:(0,o.FD)("p",{children:[(0,o.Y)("i",{"data-testid":"icon-fail",className:"fa fa-exclamation-triangle mlflow-icon-fail",css:s.wrapper}),(0,o.Y)("span",{children:" Something went wrong with this section. "}),(0,o.Y)("span",{children:"If this error persists, please report an issue "}),(0,o.Y)("a",{href:i.A.getSupportPageUrl(),target:"_blank",children:"here"}),".",this.renderErrorMessage(t)]})}):e}}const s={wrapper:{marginLeft:-2}}},30214:function(e,t,n){n.d(t,{W:function(){return d}});var r=n(89555),i=(n(31014),n(88443)),o=n(59403),l=n(68048),s=n(50111);const d=({className:e})=>{const{theme:t}=(0,o.u)();return(0,s.Y)(l.Tag,{componentId:"codegen_mlflow_app_src_shared_building_blocks_previewbadge.tsx_14",className:e,css:(0,r.AH)({marginLeft:t.spacing.xs},""),color:"turquoise",children:(0,s.Y)(i.A,{id:"8qJt7/",defaultMessage:"Experimental"})})}},34860:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAB3CAYAAAA5Od+KAAAAAXNSR0IArs4c6QAABBdpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodH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vWXG2kgn9sdqSfHINzZ17L2DMshrjl3LMNh2z63ZMVPkl51kPk7LTWwyzknlPHXKNWJBHlQnPTUjNKzAqpH6jaUOOqjslbyD7fYxkZDyTrOw3nCmpR66hqZw+apNzmPgSNJ8WolgeZ7xK/p26sAXCRm5lz5IfTUrc/LEoDU9dcv0NkZPVDjTNYpR9DxWwIsy2lJuGJK4Z5z0pU7yGaT5/Ihz/JieF+5uQjOf0IDc4Zh5qtpEMMZMJkY8uvPORfX8bXiYGe4vjdxMqeLtR/r8h7+TosdfJ7d/sjAMvKUHTk9xQUbWhaSzpFecQC5Ukn4FTP04HMWcK3r/Mg9IxWJTaby/tRBfgESyVO4KRmA7sAdKMeyPCNhL38UZsI384lIgRt5EYSJkY+H8lx8IKTKY5+wAAAABJRU5ErkJggg=="},56412:function(e,t,n){n.d(t,{i:function(){return a}});var r=n(31014),i=n(88443),o=n(68048),l=n(59403),s=n(50111);var d={name:"1739oy8",styles:"z-index:1"};const a=({copyText:e,showLabel:t=!0,componentId:n,...a})=>{const[u,c]=(0,r.useState)(!1);return(0,s.Y)(o.LegacyTooltip,{title:(0,s.Y)(i.A,{id:"X+boXI",defaultMessage:"Copied"}),dangerouslySetAntdProps:{visible:u},children:(0,s.Y)(l.B,{componentId:null!==n&&void 0!==n?n:"mlflow.shared.copy_button",type:"primary",onClick:()=>{navigator.clipboard.writeText(e),c(!0),setTimeout((()=>{c(!1)}),3e3)},onMouseLeave:()=>{c(!1)},css:d,children:t?(0,s.Y)(i.A,{id:"1Iq+NW",defaultMessage:"Copy"}):void 0,...a})})}},68621:function(e,t,n){n.d(t,{dD:function(){return u}});var r=n(31014),i=n(10811),o=n(26458),l=n(96277),s=n(47664),d=n(50111);class a extends r.Component{constructor(...e){super(...e),this.state={shouldRender:!1,shouldRenderError:!1}}static getErrorRequests(e,t){return e.filter((e=>void 0!==e.error&&!(t&&t.includes(e.id)&&e.error.getErrorCode()===s.tG.RESOURCE_DOES_NOT_EXIST)))}static getDerivedStateFromProps(e){const t=!!e.requests.length&&e.requests.every((e=>e&&!1===e.active)),n=a.getErrorRequests(e.requests,e.requestIdsWith404sToIgnore);return{shouldRender:t,shouldRenderError:n.length>0,requestErrors:n}}getRenderedContent(){const{children:e,requests:t,customSpinner:n,permissionDeniedView:r,suppressErrorThrow:i,customRequestErrorHandlerFn:o}=this.props,{shouldRender:a,shouldRenderError:c,requestErrors:g}=this.state,m=g.filter((e=>e.error.getErrorCode()===s.tG.PERMISSION_DENIED));return"function"===typeof e?e(!a,c,t,g):a||c||this.props.shouldOptimisticallyRender?m.length>0&&r?r:(c&&!i&&(o?o(g):u(g)),e):n||(0,d.Y)(l.y,{})}render(){return this.getRenderedContent()}}a.defaultProps={requests:[],requestIdsWith404sToIgnore:[],shouldOptimisticallyRender:!1};const u=e=>{throw console.error("ERROR",e),Error(`A request error occurred.: ${e.error}`)};t.Ay=(0,i.Ng)(((e,t)=>({requests:(0,o.EW)(t.requestIds,e)})))(a)},72314:function(e,t,n){n.d(t,{L:function(){return o}});var r=n(74823);const i=r.J1` + query MlflowGetExperimentQuery($input: MlflowGetExperimentInput!) @component(name: "MLflow.ExperimentRunTracking") { + mlflowGetExperiment(input: $input) { + apiError { + code + message + } + experiment { + artifactLocation + creationTime + experimentId + lastUpdateTime + lifecycleStage + name + tags { + key + value + } + } + } + } +`,o=({experimentId:e,options:t={}})=>{var n;const{data:o,loading:l,error:s,refetch:d}=(0,r.IT)(i,{variables:{input:{experimentId:e}},skip:!e,...t});return{loading:l,data:null===o||void 0===o||null===(n=o.mlflowGetExperiment)||void 0===n?void 0:n.experiment,refetch:d,apolloError:s,apiError:(()=>{var e;return null===o||void 0===o||null===(e=o.mlflowGetExperiment)||void 0===e?void 0:e.apiError})()}}},76137:function(e,t,n){n.d(t,{YQ:function(){return i},d7:function(){return l}});var r=n(31014);function i(e,t,n){var i=this,o=(0,r.useRef)(null),l=(0,r.useRef)(0),s=(0,r.useRef)(null),d=(0,r.useRef)([]),a=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(e),g=(0,r.useRef)(!0);c.current=e;var m="undefined"!=typeof window,v=!t&&0!==t&&m;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var f=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,h="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,Y=h?Math.max(+n.maxWait||0,t):null;(0,r.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var M=(0,r.useMemo)((function(){var e=function(e){var t=d.current,n=a.current;return d.current=a.current=null,l.current=e,u.current=c.current.apply(n,t)},n=function(e,t){v&&cancelAnimationFrame(s.current),s.current=v?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!g.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||h&&e-l.current>=Y},M=function(t){return s.current=null,p&&d.current?e(t):(d.current=a.current=null,u.current)},A=function e(){var i=Date.now();if(r(i))return M(i);if(g.current){var s=t-(i-o.current),d=h?Math.min(s,Y-(i-l.current)):s;n(e,d)}},b=function(){if(m||y){var c=Date.now(),v=r(c);if(d.current=[].slice.call(arguments),a.current=i,o.current=c,v){if(!s.current&&g.current)return l.current=o.current,n(A,t),f?e(o.current):u.current;if(h)return n(A,t),e(o.current)}return s.current||n(A,t),u.current}};return b.cancel=function(){s.current&&(v?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,d.current=o.current=a.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?M(Date.now()):u.current},b}),[f,h,t,Y,p,v,m,y]);return M}function o(e,t){return e===t}function l(e,t,n){var l=n&&n.equalityFn||o,s=(0,r.useRef)(e),d=(0,r.useState)({})[1],a=i((0,r.useCallback)((function(e){s.current=e,d({})}),[d]),t,n),u=(0,r.useRef)(e);return l(u.current,e)||(a(e),u.current=e),[s.current,a]}},77735:function(e,t,n){n.d(t,{E:function(){return f}});var r=n(31014),i=n(61226),o=n(28999),l=n(95904),s=n(45586),d=n(21363);class a extends d.Q{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,l.j.batch((()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)));const r=n.map((e=>e.observer)),i=Object.fromEntries(r.map((e=>[e.options.queryHash,e]))),l=r.map((e=>e.getCurrentResult())),s=r.some(((t,n)=>t!==e[n]));(e.length!==r.length||s)&&(this.observers=r,this.observersMap=i,this.result=l,this.hasListeners()&&((0,o.iv)(e,r).forEach((e=>{e.destroy()})),(0,o.iv)(r,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,n=new Map(t.map((e=>[e.options.queryHash,e]))),r=e.map((e=>this.client.defaultQueryOptions(e))),i=r.flatMap((e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=new Set(i.map((e=>e.defaultedQueryOptions.queryHash))),l=r.filter((e=>!o.has(e.queryHash))),d=new Set(i.map((e=>e.observer))),a=t.filter((e=>!d.has(e))),u=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new s.$(this.client,t)},c=l.map(((e,t)=>{if(e.keepPreviousData){const n=a[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:u(e)}}));return i.concat(c).sort(((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=(0,o._D)(this.result,n,t),this.notify())}notify(){l.j.batch((()=>{this.listeners.forEach((({listener:e})=>{e(this.result)}))}))}}var u=n(27288),c=n(26737),g=n(35067),m=n(52165),v=n(41698);function f({queries:e,context:t}){const n=(0,u.jE)({context:t}),o=(0,c.w)(),s=(0,g.h)(),d=r.useMemo((()=>e.map((e=>{const t=n.defaultQueryOptions(e);return t._optimisticResults=o?"isRestoring":"optimistic",t}))),[e,n,o]);d.forEach((e=>{(0,v.tu)(e),(0,m.LJ)(e,s)})),(0,m.wZ)(s);const[f]=r.useState((()=>new a(n,d))),p=f.getOptimisticResult(d);(0,i.r)(r.useCallback((e=>o?()=>{}:f.subscribe(l.j.batchCalls(e))),[f,o]),(()=>f.getCurrentResult()),(()=>f.getCurrentResult())),r.useEffect((()=>{f.setQueries(d,{listeners:!1})}),[d,f]);const h=p.some(((e,t)=>(0,v.EU)(d[t],e,o)))?p.flatMap(((e,t)=>{const n=d[t],r=f.getObservers()[t];if(n&&r){if((0,v.EU)(n,e,o))return(0,v.iL)(n,r,s);(0,v.nE)(e,o)&&(0,v.iL)(n,r,s)}return[]})):[];if(h.length>0)throw Promise.all(h);const y=f.getQueries(),Y=p.find(((e,t)=>{var n,r;return(0,m.$1)({result:e,errorResetBoundary:s,useErrorBoundary:null!=(n=null==(r=d[t])?void 0:r.useErrorBoundary)&&n,query:y[t]})}));if(null!=Y&&Y.error)throw Y.error;return p}},79085:function(e,t,n){n.d(t,{o:function(){return u},z:function(){return g}});var r=n(89555),i=(n(31014),n(68048)),o=n(59403),l=n(23823),s=n(88464),d=n(30214),a=n(50111);function u({menu:e}){const t=(0,a.Y)(i.Menu,{children:e.map((({id:e,itemName:t,onClick:n,href:r,...o})=>(0,a.Y)(i.Menu.Item,{onClick:n,href:r,"data-testid":e,...o,children:t},e)))});return e.length>0?(0,a.Y)(i.Dropdown,{overlay:t,trigger:["click"],placement:"bottomLeft",arrow:!0,children:(0,a.Y)(o.B,{componentId:"codegen_mlflow_app_src_shared_building_blocks_pageheader.tsx_54",icon:(0,a.Y)(i.OverflowIcon,{}),"data-testid":"overflow-menu-trigger","aria-label":"Open header dropdown menu"})}):null}var c={name:"1gz4j9a",styles:"margin-left:0"};function g(e){const{title:t,breadcrumbs:n=[],titleAddOns:u=[],preview:g,children:m,spacerSize:v,hideSpacer:f=!1,dangerouslyAppendEmotionCSS:p}=e,{theme:h}=(0,o.u)();(0,s.A)();return(0,a.FD)(a.FK,{children:[(0,a.Y)(i.Header,{breadcrumbs:n.length>0&&(0,a.Y)(i.Breadcrumb,{includeTrailingCaret:!0,children:n.map(((e,t)=>(0,a.Y)(i.Breadcrumb.Item,{children:e},t)))}),buttons:m,title:t,titleAddOns:(0,a.FD)(a.FK,{children:[g&&(0,a.Y)(d.W,{css:c}),u]}),dangerouslyAppendEmotionCSS:p}),(0,a.Y)(l.S,{css:(0,r.AH)({flexShrink:0,...f?{display:"none"}:{}},""),size:v})]})}},81313:function(e,t,n){function r(e,t,n){if(void 0===t||null===t||"string"!==typeof t)return n;for(const r in e)if(e[r]===t)return e[r];return n}n.d(t,{wB:function(){return h},bw:function(){return y},u8:function(){return g},SK:function(){return r}});var i=n(89555),o=n(59403),l=n(68048),s=n(31014),d=n(88443);var a=function(e,t){const[n,r]=(0,s.useState)(null);return(0,s.useEffect)((()=>{if(e.current&&t){const n=()=>{if(!e.current)return;const n=e.current.offsetWidth,i=Object.keys(t).filter((e=>t[e]>=n)).sort(((e,n)=>t[e]-t[n]))[0];r(i)};n();const i=new ResizeObserver(n);return i.observe(e.current),()=>i.disconnect()}}),[e,t]),n},u=n(50111);const c={sm:316,lg:480},g=({isLoading:e,asideSections:t,children:n,isTabLayout:r=!0,sidebarSize:d="sm",verticalStackOrder:g})=>{const{theme:v}=(0,o.u)(),f=(0,s.useRef)(null),p="small"===a(f,{small:v.responsive.breakpoints.lg}),h="main-first"===g,y=c[d],Y=y-16,M=p?h?{width:"100%"}:{borderBottom:`1px solid ${v.colors.border}`,width:"100%"}:h?{width:Y}:{paddingBottom:v.spacing.sm,width:Y};return(0,u.FD)("div",{"data-testid":"entity-overview-container",ref:f,css:(0,i.AH)({display:"flex",flexDirection:p?h?"column":"column-reverse":"row",gap:v.spacing.lg},""),children:[(0,u.Y)("div",{css:(0,i.AH)({display:"flex",flexGrow:1,flexDirection:"column",gap:v.spacing.md,width:p?"100%":`calc(100% - ${y}px)`},""),children:e?(0,u.Y)(l.GenericSkeleton,{}):n}),(0,u.Y)("div",{style:{display:"flex",...r&&{marginTop:-v.spacing.md}},children:(0,u.FD)("div",{css:(0,i.AH)({display:"flex",flexDirection:"column",gap:v.spacing.lg,...M},""),children:[e&&(0,u.Y)(l.GenericSkeleton,{}),!e&&(0,u.Y)(m,{secondarySections:t})]})})]})},m=({secondarySections:e})=>(0,u.Y)("div",{children:e.filter((e=>null!==e)).filter((e=>null!==(null===e||void 0===e?void 0:e.content))).map((({title:e,isTitleLoading:t,content:n,id:r},i)=>(0,u.Y)(f,{title:e,isTitleLoading:t,content:n,index:i},r)))}),v=({children:e})=>{const{theme:t}=(0,o.u)();return(0,u.Y)(o.T.Title,{level:4,style:{whiteSpace:"nowrap",marginRight:t.spacing.lg,marginTop:0},children:e})},f=({title:e,content:t,index:n,isTitleLoading:r=!1})=>{const{theme:s}=(0,o.u)(),a=r?(0,u.Y)(l.ParagraphSkeleton,{label:(0,u.Y)(d.A,{id:"KJqjTs",defaultMessage:"Section title loading"})}):e?(0,u.Y)(v,{children:e}):null,c={padding:`${s.spacing.md}px 0 ${s.spacing.md}px 0`};return(0,u.FD)("div",{css:(0,i.AH)({...c,...0===n?{}:{borderTop:`1px solid ${s.colors.border}`}},""),children:[a,t]})};var p={name:"10x9q33",styles:"flex:1;align-self:start;overflow:hidden"};const h=({keyValue:e,value:t,maxWidth:n})=>{const{theme:r}=(0,o.u)();return(0,u.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center","&:has(+ div)":{marginBottom:r.spacing.xs},maxWidth:null!==n&&void 0!==n?n:450,wordBreak:"break-word",lineHeight:r.typography.lineHeightLg},""),children:[(0,u.Y)("div",{css:(0,i.AH)({color:r.colors.textSecondary,flex:.5,alignSelf:"start"},""),children:e}),(0,u.Y)("div",{css:p,children:t})]})},y=()=>(0,u.Y)(o.T.Text,{color:"secondary",children:(0,u.Y)(d.A,{id:"8EQFzg",defaultMessage:"None"})})},88311:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(31014),i=n(9133),o=n(77735),l=n(63528);const s=e=>["USE_RELATED_RUNS_DATA_FOR_LOGGED_MODELS",{runUuid:e}],d=async({queryKey:[,{runUuid:e}]})=>{try{const t=await l.x.getRun({run_id:e});return null===t||void 0===t?void 0:t.run}catch(t){return null}},a=({loggedModels:e=[]})=>{var t;const n=(0,r.useMemo)((()=>{const t=(0,i.compact)(null===e||void 0===e?void 0:e.flatMap((e=>{var t,n;return null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.metrics)||void 0===n?void 0:n.map((e=>e.run_id))}))),n=(0,i.compact)(null===e||void 0===e?void 0:e.map((e=>{var t;return null===e||void 0===e||null===(t=e.info)||void 0===t?void 0:t.source_run_id})));return(0,i.sortBy)((0,i.uniq)([...t,...n]))}),[e]),l=(0,o.E)({queries:n.map((e=>({queryKey:s(e),queryFn:d,cacheTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,retry:!1})))}),a=l.some((({isLoading:e})=>e)),u=null===(t=l.find((({error:e})=>e)))||void 0===t?void 0:t.error,c=function(e){const t=(0,r.useRef)(),n=!(!t.current||e.length!==t.current.length)&&e.every(((e,n)=>{var r;return e===(null===(r=t.current)||void 0===r?void 0:r[n])}));return n||(t.current=e),n&&t.current?t.current:e}(l.map((({data:e})=>e)));return{data:(0,r.useMemo)((()=>c.map((e=>e)).filter(Boolean)),[c]),loading:a,error:u}}},92246:function(e,t,n){n.d(t,{X:function(){return c}});var r=n(37368),i=n(28486),o=n(68048),l=n(59403),s=n(88443),d=n(50111);var a={name:"1vfb318",styles:"flex:1;display:flex;align-items:center;justify-content:center"};const u=({error:e})=>{var t;return(0,d.Y)(o.PageWrapper,{css:a,children:(0,d.Y)(o.Empty,{"data-testid":"fallback",title:(0,d.Y)(s.A,{id:"AOoWxS",defaultMessage:"Error"}),description:null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:(0,d.Y)(s.A,{id:"zmMR5p",defaultMessage:"An error occurred while rendering this component."}),image:(0,d.Y)(l.l,{})})})},c=({children:e,resetKey:t})=>(0,d.Y)(i.tH,{FallbackComponent:u,resetKeys:[t],children:(0,d.Y)(r.Au,{children:e})})},95885:function(e,t,n){n.r(t),n.d(t,{default:function(){return Ne}});var r=n(89555),i=n(59403),o=n(68048),l=n(4877),s=n.n(l),d=n(48624),a=n(88464),u=n(88443),c=n(58481),g=n(79085),m=n(85466),v=n(31014),f=n(52350),p=n(20897),h=n(56412),y=n(77484),Y=n(25866);const M=e=>(0,v.useCallback)((async()=>{var t,r,i,o;if(null===e||void 0===e||null===(t=e.info)||void 0===t||!t.model_id||null===e||void 0===e||null===(r=e.info)||void 0===r||!r.artifact_uri)return!0;const l=(0,y.qk)(Y.eh,e.info.model_id),s=await(0,y.UQ)(l),d=(await Promise.resolve().then(n.t.bind(n,77948,23))).load(await s.text());return void 0!==(null===d||void 0===d||null===(i=d.signature)||void 0===i?void 0:i.inputs)&&void 0!==(null===d||void 0===d||null===(o=d.signature)||void 0===o?void 0:o.outputs)}),[e]);var A=n(76010),b=n(50111);const w=({loggedModel:e,onSuccess:t})=>{var n;const r=(0,a.A)(),i=(0,v.useCallback)((e=>{var n,i;null===t||void 0===t||t();const o=r.formatMessage({id:"UwpML4",defaultMessage:"Model registered successfully"});A.A.displayGlobalInfoNotification(`${o} ${null!==(n=null===e||void 0===e||null===(i=e.value)||void 0===i?void 0:i.status)&&void 0!==n?n:""}`)}),[r,t]),o=(0,v.useCallback)((e=>{var t;const n=r.formatMessage({id:"0Rao9q",defaultMessage:"Error registering model"}),i=null!==(t=e instanceof f.s?e.getMessageField():null===e||void 0===e?void 0:e.message)&&void 0!==t?t:String(e);A.A.displayGlobalErrorNotification(`${n} ${i}`)}),[r]);M(e);return null!==e&&void 0!==e&&null!==(n=e.info)&&void 0!==n&&n.artifact_uri&&e.info.model_id?(0,b.Y)(m.vR,{modelPath:e.info.artifact_uri,modelRelativePath:"",disabled:!1,loggedModelId:e.info.model_id,buttonType:"primary",showButton:!0,onRegisterSuccess:i,onRegisterFailure:o}):null};var x=n(77020),I=n(23823),R=n(8986),k=n(53962);var S={name:"ozd7xs",styles:"flex-shrink:0"};const D=({experimentId:e,experiment:t,loading:n=!1,loggedModel:r,onSuccess:l})=>{var s;const{theme:m}=(0,i.u)(),f=null===r||void 0===r||null===(s=r.info)||void 0===s?void 0:s.name,p=(0,d.Zp)(),h=(0,a.A)(),{modalElement:y,openModal:M}=(({loggedModel:e,onSuccess:t})=>{var n;const[r,i]=(0,v.useState)(!1),l=(0,x.n)({mutationFn:async({loggedModelId:e})=>{await(0,R.G)((0,k.we)(`ajax-api/2.0/mlflow/logged-models/${e}`),"DELETE")}}),{mutate:s,isLoading:d,reset:a}=l;return{modalElement:(0,b.FD)(I.d,{componentId:"mlflow.logged_model.details.delete_modal",visible:r,onCancel:()=>i(!1),title:(0,b.Y)(u.A,{id:"0IVF6w",defaultMessage:"Delete logged model"}),okText:(0,b.Y)(u.A,{id:"Wm6dYs",defaultMessage:"Delete"}),okButtonProps:{danger:!0,loading:d},onOk:async()=>{var n;null!==e&&void 0!==e&&null!==(n=e.info)&&void 0!==n&&n.model_id?s({loggedModelId:e.info.model_id},{onSuccess:()=>{null===t||void 0===t||t(),i(!1)}}):i(!1)},cancelText:(0,b.Y)(u.A,{id:"6vII7y",defaultMessage:"Cancel"}),children:[(null===(n=l.error)||void 0===n?void 0:n.message)&&(0,b.FD)(b.FK,{children:[(0,b.Y)(o.Alert,{componentId:"mlflow.logged_model.details.delete_modal.error",closable:!1,message:l.error.message,type:"error"}),(0,b.Y)(I.S,{})]}),(0,b.Y)(u.A,{id:"AzdZPn",defaultMessage:"Are you sure you want to delete this logged model?"})]}),openModal:(0,v.useCallback)((()=>{a(),i(!0)}),[a])}})({loggedModel:r,onSuccess:()=>{p(c.Ay.getExperimentPageTabRoute(e,Y.fM.Models))}}),A=[(0,b.Y)(d.N_,{to:c.Ay.getExperimentPageTabRoute(e,Y.fM.Models),children:t&&"name"in t?null===t||void 0===t?void 0:t.name:e}),(0,b.Y)(d.N_,{to:c.Ay.getExperimentPageTabRoute(e,Y.fM.Models),children:(0,b.Y)(u.A,{id:"Uue10g",defaultMessage:"Models"})})];return(0,b.FD)("div",{css:S,children:[n?(0,b.Y)(E,{}):(0,b.FD)(g.z,{title:(0,b.FD)(b.FK,{children:[(0,b.Y)(C,{}),(0,b.Y)(b.FK,{children:f})]}),dangerouslyAppendEmotionCSS:{h2:{display:"flex",gap:m.spacing.sm},wordBreak:"break-word"},breadcrumbs:A,children:[(0,b.FD)(o.DropdownMenu.Root,{children:[(0,b.Y)(o.DropdownMenu.Trigger,{asChild:!0,children:(0,b.Y)(i.B,{componentId:"mlflow.logged_model.details.more_actions",icon:(0,b.Y)(o.OverflowIcon,{}),"aria-label":h.formatMessage({id:"uB7rmB",defaultMessage:"More actions"})})}),(0,b.Y)(o.DropdownMenu.Content,{align:"end",children:(0,b.Y)(o.DropdownMenu.Item,{componentId:"mlflow.logged_model.details.delete_button",onClick:M,children:(0,b.Y)(u.A,{id:"U+2XCK",defaultMessage:"Delete"})})})]}),(0,b.Y)(w,{loggedModel:r,onSuccess:l})]}),y]})},C=()=>{const{theme:e}=(0,i.u)();return(0,b.Y)("div",{css:(0,r.AH)({display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.colors.tagDefault,width:e.general.heightSm,height:e.general.heightSm,borderRadius:e.legacyBorders.borderRadiusMd},""),children:(0,b.Y)(o.ModelsIcon,{css:(0,r.AH)({color:e.colors.textSecondary},"")})})};var T={name:"1eoy87d",styles:"display:flex;justify-content:space-between"};const E=()=>{const{theme:e}=(0,i.u)();return(0,b.FD)("div",{css:(0,r.AH)({height:2*e.general.heightSm,marginBottom:e.spacing.sm},""),children:[(0,b.Y)("div",{css:(0,r.AH)({height:e.spacing.lg},""),children:(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:100,height:e.spacing.md},""),loading:!0})}),(0,b.FD)("div",{css:T,children:[(0,b.FD)("div",{css:(0,r.AH)({display:"flex",gap:e.spacing.sm,marginTop:.5*e.spacing.xs},""),children:[(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:e.general.heightSm,height:e.general.heightSm},""),loading:!0}),(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:160,height:e.general.heightSm},""),loading:!0})]}),(0,b.FD)("div",{css:(0,r.AH)({display:"flex",gap:e.spacing.sm},""),children:[(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:100,height:e.general.heightSm},""),loading:!0}),(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:60,height:e.general.heightSm},""),loading:!0})]})]})]})};var N=n(92246);const L=({experimentId:e,modelId:t,activeTabName:n})=>(0,b.Y)(o.NavigationMenu.Root,{children:(0,b.FD)(o.NavigationMenu.List,{children:[(0,b.Y)(o.NavigationMenu.Item,{active:!n,children:(0,b.Y)(d.N_,{to:c.Ay.getExperimentLoggedModelDetailsPageRoute(e,t),children:(0,b.Y)(u.A,{id:"FBR3Q/",defaultMessage:"Overview"})})},"overview"),(0,b.Y)(o.NavigationMenu.Item,{active:"traces"===n,children:(0,b.Y)(d.N_,{to:c.Ay.getExperimentLoggedModelDetailsPageRoute(e,t,"traces"),children:(0,b.Y)(u.A,{id:"TeN9hs",defaultMessage:"Traces"})})},"traces"),(0,b.Y)(o.NavigationMenu.Item,{active:"artifacts"===n,children:(0,b.Y)(d.N_,{to:c.Ay.getExperimentLoggedModelDetailsPageRoute(e,t,"artifacts"),children:(0,b.Y)(u.A,{id:"Kwz1fc",defaultMessage:"Artifacts"})})},"artifacts")]})});var H=n(14830),F=n(4874),P=n(58710),z=n(61477),O=n(67212),B=n(96034),_=n(56928),q=n(9133);var G=n(37368);const U=({loggedModel:e,onDescriptionChanged:t})=>{var n,l,s,d,c;const g=null!==(n=null===e||void 0===e||null===(l=e.info)||void 0===l||null===(s=l.tags)||void 0===s||null===(d=s.find((e=>e.key===_.e)))||void 0===d?void 0:d.value)&&void 0!==n?n:void 0,[m,f]=(0,v.useState)(!1),p=(0,a.A)(),{theme:h}=(0,i.u)(),{patch:y}=(({loggedModelId:e})=>{const{isLoading:t,error:n,mutateAsync:r}=(0,x.n)({mutationFn:async t=>{const n={tags:(0,q.entries)(t).map((([e,t])=>({key:e,value:t})))};return(0,R.G)((0,k.we)(`ajax-api/2.0/mlflow/logged-models/${e}/tags`),"PATCH",n)}});return{isLoading:t,error:n,patch:r}})({loggedModelId:null===e||void 0===e||null===(c=e.info)||void 0===c?void 0:c.model_id}),{handleError:Y}=(0,G.tF)(),M=!g;return(0,b.FD)("div",{css:(0,r.AH)({marginBottom:h.spacing.md},""),children:[(0,b.FD)(i.T.Title,{level:4,css:(0,r.AH)({display:"flex",alignItems:"center",gap:h.spacing.xs},""),children:[(0,b.Y)(u.A,{id:"IB0MR8",defaultMessage:"Description"}),(0,b.Y)(i.B,{componentId:"mlflow.logged_models.details.description.edit",size:"small",type:"tertiary","aria-label":p.formatMessage({id:"7pRcdg",defaultMessage:"Edit description"}),onClick:()=>f(!0),icon:(0,b.Y)(o.PencilIcon,{})})]}),M&&!m&&(0,b.Y)(i.T.Hint,{children:(0,b.Y)(u.A,{id:"npKSv/",defaultMessage:"No description"})}),(!M||m)&&(0,b.Y)(B.V,{defaultMarkdown:g,onSubmit:async e=>{try{await y({[_.e]:e}),await t(),f(!1)}catch(n){Y(n)}},onCancel:()=>f(!1),showEditor:m})]})};var Z=n(68109),K=n(70169),Q=n(70618),j=n(9856);const W=({getValue:e})=>{var t;const{runName:n,runId:r}=null!==(t=e())&&void 0!==t?t:{};return(0,b.Y)(d.N_,{to:c.Ay.getDirectRunPageRoute(null!==r&&void 0!==r?r:""),children:n||r})};var V=n(28684),X=n(3288);const J=({getValue:e})=>{const{datasetDigest:t,datasetName:n,runId:r}=e();return n?(0,b.Y)(V.f,{datasetName:n,datasetDigest:t,runId:r}):"-"};var $={name:"xt6tct",styles:"flex:1;display:flex;flex-direction:column;overflow:hidden"};const ee=({loggedModel:e,relatedRunsData:t,relatedRunsLoading:n})=>{const{theme:l}=(0,i.u)(),{usingUnifiedDetailsLayout:s,detailsPageTableStyles:d,detailsPageNoEntriesStyles:c,detailsPageNoResultsWrapperStyles:g}=(0,X.z)(),m=(0,a.A)(),[f,p]=(0,v.useState)(""),h=(0,v.useMemo)((()=>{var r,i,o;return n?[]:null!==(r=null===e||void 0===e||null===(i=e.data)||void 0===i||null===(o=i.metrics)||void 0===o?void 0:o.map((n=>{var r,i,o;const l=null===t||void 0===t||null===(r=t.find((e=>{var t;return(null===(t=e.info)||void 0===t?void 0:t.runUuid)===n.run_id})))||void 0===r||null===(i=r.info)||void 0===i?void 0:i.runName;return{...n,experimentId:null===(o=e.info)||void 0===o?void 0:o.experiment_id,runName:l}})))&&void 0!==r?r:[]}),[e,n,t]),y=(0,v.useMemo)((()=>h.filter((({key:e,dataset_name:t,dataset_digest:n,runName:r})=>{const i=f.toLowerCase();return(null===e||void 0===e?void 0:e.toLowerCase().includes(i))||(null===t||void 0===t?void 0:t.toLowerCase().includes(i))||(null===n||void 0===n?void 0:n.toLowerCase().includes(i))||(null===r||void 0===r?void 0:r.toLowerCase().includes(i))}))),[f,h]),Y=(0,v.useMemo)((()=>[{id:"metric",accessorKey:"key",header:m.formatMessage({id:"R/4/8G",defaultMessage:"Metric"}),enableResizing:!0,size:240},{id:"dataset",header:m.formatMessage({id:"lCfyQO",defaultMessage:"Dataset"}),accessorFn:({dataset_name:e,dataset_digest:t,run_id:n})=>({datasetName:e,datasetDigest:t,runId:n}),enableResizing:!0,cell:J},{id:"sourceRun",header:m.formatMessage({id:"z42Rsj",defaultMessage:"Source run"}),accessorFn:({run_id:e,runName:t,experimentId:n})=>({runId:e,runName:t,experimentId:n}),enableResizing:!0,cell:W},{id:"value",header:m.formatMessage({id:"NU5iHM",defaultMessage:"Value"}),accessorKey:"value",enableResizing:!s,meta:s?{styles:{minWidth:120}}:{}}]),[m,s]),M=(0,Q.N4)({data:y,getCoreRowModel:(0,j.HT)(),getExpandedRowModel:(0,j.D0)(),getRowId:e=>{var t;return null!==(t=[e.key,e.dataset_digest,e.run_id].join("."))&&void 0!==t?t:""},enableColumnResizing:!0,columnResizeMode:"onChange",columns:Y});return(0,b.FD)("div",{css:$,children:[(0,b.Y)(i.T.Title,{level:4,children:(0,b.Y)(u.A,{id:"lPNTq7",defaultMessage:"Metrics ({length})",values:{length:h.length}})}),(0,b.Y)("div",{css:(0,r.AH)({padding:l.spacing.sm,border:`1px solid ${l.colors.borderDecorative}`,borderRadius:l.general.borderRadiusBase,flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},""),children:(()=>{if(n)return(0,b.Y)(o.TableSkeleton,{lines:3});if(!h.length)return(0,b.Y)("div",{css:c,children:(0,b.Y)(o.Empty,{description:(0,b.Y)(u.A,{id:"XwkX9B",defaultMessage:"No metrics recorded"})})});const e=y.length<1;return(0,b.FD)(b.FK,{children:[(0,b.Y)("div",{css:(0,r.AH)({marginBottom:l.spacing.sm},""),children:(0,b.Y)(K.I,{componentId:"mlflow.logged_model.details.metrics.table.search",prefix:(0,b.Y)(K.S,{}),placeholder:m.formatMessage({id:"+Cr7Gu",defaultMessage:"Search metrics"}),value:f,onChange:e=>p(e.target.value),allowClear:!0})}),(0,b.FD)(o.Table,{ref:e=>null===e||void 0===e?void 0:e.setAttribute("data-testid","logged-model-details-metrics-table"),scrollable:!0,empty:e?(0,b.Y)("div",{css:g,children:(0,b.Y)(o.Empty,{description:(0,b.Y)(u.A,{id:"hyHL1n",defaultMessage:"No metrics match the search filter"})})}):null,css:d,children:[(0,b.Y)(o.TableRow,{isHeader:!0,children:M.getLeafHeaders().map(((e,t)=>{var n;return(0,b.Y)(o.TableHeader,{componentId:"mlflow.logged_model.details.metrics.table.header",header:e,column:e.column,setColumnSizing:M.setColumnSizing,isResizing:e.column.getIsResizing(),css:(0,r.AH)({flexGrow:e.column.getCanResize()?0:1,...null===(n=e.column.columnDef.meta)||void 0===n?void 0:n.styles},""),style:{flexBasis:e.column.getCanResize()?e.column.getSize():void 0},children:(0,Q.Kv)(e.column.columnDef.header,e.getContext())},e.id)}))}),M.getRowModel().rows.map((e=>(0,b.Y)(o.TableRow,{children:e.getAllCells().map((e=>{var t;return(0,b.Y)(o.TableCell,{style:{flexGrow:e.column.getCanResize()?0:1,flexBasis:e.column.getCanResize()?e.column.getSize():void 0},css:(0,r.AH)({...null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.styles},""),children:(0,Q.Kv)(e.column.columnDef.cell,e.getContext())},e.id)}))},e.id)))]})]})})()})]})};const te=({getValue:e})=>{var t;const n=null!==(t=e())&&void 0!==t?t:[];return(0,q.isEmpty)(n)?(0,b.Y)(b.FK,{children:"-"}):(0,b.Y)(o.Overflow,{children:n.map((({datasetDigest:e,datasetName:t,runId:n})=>(0,b.Y)(V.f,{datasetName:t,datasetDigest:e,runId:n},[t,e].join("."))))})};var ne={name:"xt6tct",styles:"flex:1;display:flex;flex-direction:column;overflow:hidden"},re={name:"11g4mt0",styles:"font-size:16px"};const ie=({loggedModel:e,relatedRunsData:t,relatedRunsLoading:n})=>{const{theme:l}=(0,i.u)(),{detailsPageTableStyles:s,detailsPageNoEntriesStyles:d,detailsPageNoResultsWrapperStyles:c}=(0,X.z)(),g=(0,a.A)(),[m,f]=(0,v.useState)(""),p=(0,v.useMemo)((()=>{var r,i,o;if(n)return[];const l=null!==(r=null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.metrics)&&void 0!==r?r:[],s=(0,q.groupBy)(l,"run_id");return null!==e&&void 0!==e&&null!==(o=e.info)&&void 0!==o&&o.source_run_id&&!s[e.info.source_run_id]&&(s[e.info.source_run_id]=[]),(0,q.entries)(s).map((([n,r])=>{var i,o,l;const s=(0,q.uniqBy)(r,"dataset_name").map((({dataset_digest:e,dataset_name:t})=>({datasetDigest:e,datasetName:t,runId:n}))).filter((e=>Boolean(e.datasetName)||Boolean(e.datasetDigest))),d=null===t||void 0===t||null===(i=t.find((e=>{var t;return(null===(t=e.info)||void 0===t?void 0:t.runUuid)===n})))||void 0===i||null===(o=i.info)||void 0===o?void 0:o.runName;return{runId:n,runName:d,datasets:s,experimentId:null===e||void 0===e||null===(l=e.info)||void 0===l?void 0:l.experiment_id}}))}),[e,n,t]),h=(0,v.useMemo)((()=>p.filter((({runName:e,datasets:t})=>{const n=m.toLowerCase();return(null===e||void 0===e?void 0:e.toLowerCase().includes(n))||t.find((e=>{var t;return null===(t=e.datasetName)||void 0===t?void 0:t.toLowerCase().includes(n)}))}))),[m,p]),y=(0,v.useMemo)((()=>[{id:"run",header:g.formatMessage({id:"/4Aok8",defaultMessage:"Run"}),enableResizing:!0,size:240,accessorFn:({runId:e,runName:t,experimentId:n})=>({runId:e,runName:t,experimentId:n}),cell:W},{id:"input",header:g.formatMessage({id:"ubeHow",defaultMessage:"Input"}),accessorKey:"datasets",enableResizing:!1,cell:te}]),[g]),Y=(0,Q.N4)({data:h,getCoreRowModel:(0,j.HT)(),getExpandedRowModel:(0,j.D0)(),getRowId:e=>e.key,enableColumnResizing:!0,columnResizeMode:"onChange",columns:y});return(0,b.FD)("div",{css:ne,children:[(0,b.Y)(i.T.Title,{css:re,children:"Runs"}),(0,b.Y)("div",{css:(0,r.AH)({padding:l.spacing.sm,border:`1px solid ${l.colors.borderDecorative}`,borderRadius:l.general.borderRadiusBase,flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},""),children:(()=>{if(n)return(0,b.Y)(o.TableSkeleton,{lines:3});if(!p.length)return(0,b.Y)("div",{css:d,children:(0,b.Y)(o.Empty,{description:(0,b.Y)(u.A,{id:"TC9IhO",defaultMessage:"No runs"})})});const e=h.length<1;return(0,b.FD)(b.FK,{children:[(0,b.Y)("div",{css:(0,r.AH)({marginBottom:l.spacing.sm},""),children:(0,b.Y)(K.I,{componentId:"mlflow.logged_model.details.runs.table.search",prefix:(0,b.Y)(K.S,{}),placeholder:g.formatMessage({id:"eQV8Hs",defaultMessage:"Search runs"}),value:m,onChange:e=>f(e.target.value),allowClear:!0})}),(0,b.FD)(o.Table,{scrollable:!0,ref:e=>null===e||void 0===e?void 0:e.setAttribute("data-testid","logged-model-details-runs-table"),empty:e?(0,b.Y)("div",{css:c,children:(0,b.Y)(o.Empty,{description:(0,b.Y)(u.A,{id:"5bBqLk",defaultMessage:"No runs match the search filter"})})}):null,css:s,children:[(0,b.Y)(o.TableRow,{isHeader:!0,children:Y.getLeafHeaders().map(((e,t)=>(0,b.Y)(o.TableHeader,{componentId:"mlflow.logged_model.details.runs.table.header",header:e,column:e.column,setColumnSizing:Y.setColumnSizing,isResizing:e.column.getIsResizing(),css:(0,r.AH)({flexGrow:e.column.getCanResize()?0:1},""),style:{flexBasis:e.column.getCanResize()?e.column.getSize():void 0},children:(0,Q.Kv)(e.column.columnDef.header,e.getContext())},e.id)))}),Y.getRowModel().rows.map((e=>(0,b.Y)(o.TableRow,{children:e.getAllCells().map((e=>(0,b.Y)(o.TableCell,{style:{flexGrow:e.column.getCanResize()?0:1,flexBasis:e.column.getCanResize()?e.column.getSize():void 0},multiline:!0,children:(0,Q.Kv)(e.column.columnDef.cell,e.getContext())},e.id)))},e.id)))]})]})})()})]})};var oe=n(88311);const le=({loggedModel:e,empty:t})=>{const n=(0,v.useMemo)((()=>{var t,n;return(null!==(t=null===(n=e.data)||void 0===n?void 0:n.metrics)&&void 0!==t?t:[]).reduce(((e,{dataset_digest:t,dataset_name:n,run_id:r})=>(n&&t&&!e.find((e=>e.dataset_name===n&&e.dataset_digest===t))&&e.push({dataset_name:n,dataset_digest:t,run_id:r}),e)),[])}),[e]);return n.length?(0,b.Y)(o.Overflow,{children:n.map((({dataset_digest:e,dataset_name:t,run_id:n})=>(0,b.Y)(V.f,{datasetName:t,datasetDigest:e,runId:null!==n&&void 0!==n?n:null},[t,e].join("."))))}):null!==t&&void 0!==t?t:(0,b.Y)(b.FK,{children:"-"})};var se=n(36506),de=n(31179),ae=n(21317);var ue={name:"ozd7xs",styles:"flex-shrink:0"};const ce=({loggedModel:e,empty:t})=>{const n=(0,v.useMemo)((()=>[e]),[e]),{theme:l}=(0,i.u)(),{modelVersions:s}=(0,de.b)({loggedModels:n});return(0,q.isEmpty)(s)?null!==t&&void 0!==t?t:(0,b.Y)(b.FK,{children:"-"}):(0,b.Y)(o.Overflow,{children:null===s||void 0===s?void 0:s.map((({displayedName:e,version:t,link:n})=>(0,b.FD)(d.N_,{to:n,css:(0,r.AH)({display:"flex",alignItems:"center",gap:l.spacing.sm},""),children:[(0,b.FD)("span",{css:(0,r.AH)({display:"flex",alignItems:"center",gap:l.spacing.sm,wordBreak:"break-all"},""),children:[(0,b.Y)(ae.h,{css:ue})," ",e," "]}),(0,b.FD)(o.Tag,{componentId:"mlflow.logged_model.details.registered_model_version_tag",children:["v",t]})]},`${e}-${t}`)))})};var ge=n(43102),me=n(65287),ve=n(81313);var fe=function(e){return e.DETAILS="DETAILS",e.DATASETS="DATASETS",e.MODEL_VERSIONS="MODEL_VERSIONS",e}(fe||{}),pe={name:"1bmnxg7",styles:"white-space:nowrap"};var he={name:"82a6rk",styles:"flex:1"};const ye=({onDataUpdated:e,loggedModel:t})=>{var n,l;const{theme:s}=(0,i.u)(),{usingUnifiedDetailsLayout:g}=(0,X.z)(),{data:m,loading:f,error:p}=(0,oe.s)({loggedModels:t?[t]:[]}),h=(0,v.useMemo)((()=>null===m||void 0===m?void 0:m.find((e=>{var n,r;return(null===(n=e.info)||void 0===n?void 0:n.runUuid)===(null===t||void 0===t||null===(r=t.info)||void 0===r?void 0:r.source_run_id)}))),[null===t||void 0===t||null===(n=t.info)||void 0===n?void 0:n.source_run_id,m]),y=(0,v.useMemo)((()=>{var e,n;return(0,q.keyBy)((null!==(e=null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.params)&&void 0!==e?e:[]).filter((({key:e,value:t})=>!(0,q.isEmpty)(e)&&!(0,q.isEmpty)(t))),"key")}),[null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.params]),M=(({loggedModel:e,relatedRunsLoading:t,relatedSourceRun:n})=>{var l,s,u,g,m,v,f,p,h,y,M,A,w,x,I,R,k,S,D;const C=(0,a.A)(),{theme:T}=(0,i.u)(),E=e&&(0,b.FD)(b.FK,{children:[(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"MUUYWZ",defaultMessage:"Created at"}),value:(0,b.Y)(P.P,{value:null===e||void 0===e||null===(l=e.info)||void 0===l?void 0:l.creation_timestamp_ms})}),(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"Bs2X0L",defaultMessage:"Created by"}),value:null!==(s=null===(u=e.info)||void 0===u||null===(g=u.tags)||void 0===g||null===(m=g.find((e=>e.key===Y.g0)))||void 0===m?void 0:m.value)&&void 0!==s?s:"-"}),(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"UgF7ax",defaultMessage:"Status"}),value:(0,b.Y)(z.a,{data:e})}),(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"A+5KMV",defaultMessage:"Model ID"}),value:(0,b.Y)(O.t,{value:null!==(v=null===(f=e.info)||void 0===f?void 0:f.model_id)&&void 0!==v?v:"",css:pe})}),(null===(p=e.info)||void 0===p?void 0:p.source_run_id)&&(null===(h=e.info)||void 0===h?void 0:h.experiment_id)&&(t||n)&&(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"d8cdYc",defaultMessage:"Source run"}),value:t?(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:200,height:T.spacing.md},"")}):(0,b.Y)(d.N_,{to:c.Ay.getRunPageRoute(null===(y=e.info)||void 0===y?void 0:y.experiment_id,null===(M=e.info)||void 0===M?void 0:M.source_run_id),children:null===n||void 0===n||null===(A=n.info)||void 0===A?void 0:A.runName})}),(null===(w=e.info)||void 0===w?void 0:w.source_run_id)&&(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"wFaOf0",defaultMessage:"Source run ID"}),value:(0,b.Y)(O.t,{value:null!==(x=null===(I=e.info)||void 0===I?void 0:I.source_run_id)&&void 0!==x?x:"",element:null!==(R=e.info)&&void 0!==R&&R.experiment_id?(0,b.Y)(d.N_,{to:c.Ay.getRunPageRoute(null===(k=e.info)||void 0===k?void 0:k.experiment_id,null===(S=e.info)||void 0===S?void 0:S.source_run_id),children:null===(D=e.info)||void 0===D?void 0:D.source_run_id}):void 0})}),(0,b.Y)(ve.wB,{keyValue:C.formatMessage({id:"oShuJS",defaultMessage:"Logged from"}),value:(0,b.Y)(ge.J,{loggedModel:e,displayDetails:!0,css:(0,r.AH)({paddingTop:T.spacing.xs,paddingBottom:T.spacing.xs,wordBreak:"break-all"},"")})})]});return[{id:fe.DETAILS,title:C.formatMessage({id:"fWPlO9",defaultMessage:"About this logged model"}),content:E},{id:fe.DATASETS,title:C.formatMessage({id:"msllnR",defaultMessage:"Datasets used"}),content:e&&(0,b.Y)(le,{loggedModel:e,empty:(0,b.Y)(ve.bw,{})})},{id:fe.MODEL_VERSIONS,title:C.formatMessage({id:"LpdcPw",defaultMessage:"Model versions"}),content:e&&(0,b.Y)(ce,{empty:(0,b.Y)(ve.bw,{}),loggedModel:e})}]})({loggedModel:t,relatedRunsLoading:f,relatedSourceRun:h});return(0,b.Y)(se.Xs,{children:(0,b.FD)(me.a,{css:he,usingSidebarLayout:g,secondarySections:M,children:[(0,b.Y)(U,{loggedModel:t,onDescriptionChanged:e}),!g&&(0,b.FD)(b.FK,{children:[(0,b.Y)(i.T.Title,{level:4,children:(0,b.Y)(u.A,{id:"XcKgD5",defaultMessage:"Details"})}),(()=>{var e,n,i,l,a,g,m,v,p,y,M,A,w,x,I;return t?(0,b.FD)(H.N,{children:[(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"MUUYWZ",defaultMessage:"Created at"}),value:(0,b.Y)(P.P,{value:null===(e=t.info)||void 0===e?void 0:e.creation_timestamp_ms})}),(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"Bs2X0L",defaultMessage:"Created by"}),value:null!==(n=null===(i=t.info)||void 0===i||null===(l=i.tags)||void 0===l||null===(a=l.find((e=>e.key===Y.g0)))||void 0===a?void 0:a.value)&&void 0!==n?n:"-"}),(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"UgF7ax",defaultMessage:"Status"}),value:(0,b.Y)(z.a,{data:t})}),(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"A+5KMV",defaultMessage:"Model ID"}),value:(0,b.Y)(O.t,{value:null!==(g=null===(m=t.info)||void 0===m?void 0:m.model_id)&&void 0!==g?g:""})}),(null===(v=t.info)||void 0===v?void 0:v.source_run_id)&&(null===(p=t.info)||void 0===p?void 0:p.experiment_id)&&(f||h)&&(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"d8cdYc",defaultMessage:"Source run"}),value:f?(0,b.Y)(o.GenericSkeleton,{css:(0,r.AH)({width:200,height:s.spacing.md},"")}):(0,b.Y)(d.N_,{to:c.Ay.getRunPageRoute(null===(y=t.info)||void 0===y?void 0:y.experiment_id,null===(M=t.info)||void 0===M?void 0:M.source_run_id),children:null===h||void 0===h||null===(A=h.info)||void 0===A?void 0:A.runName})}),(null===(w=t.info)||void 0===w?void 0:w.source_run_id)&&(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"wFaOf0",defaultMessage:"Source run ID"}),value:(0,b.Y)(O.t,{value:null!==(x=null===(I=t.info)||void 0===I?void 0:I.source_run_id)&&void 0!==x?x:""})}),(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"oShuJS",defaultMessage:"Logged from"}),value:(0,b.Y)(ge.J,{loggedModel:t,displayDetails:!0})}),(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"msllnR",defaultMessage:"Datasets used"}),value:(0,b.Y)(le,{loggedModel:t})}),(0,b.Y)(F.Z,{title:(0,b.Y)(u.A,{id:"LpdcPw",defaultMessage:"Model versions"}),value:(0,b.Y)(ce,{loggedModel:t})})]}):null})()]}),(null===p||void 0===p?void 0:p.message)&&(0,b.FD)(b.FK,{children:[(0,b.Y)(o.Alert,{closable:!1,message:(0,b.Y)(u.A,{id:"nNIors",defaultMessage:"Error when fetching related runs data: {error}",values:{error:p.message}}),type:"error",componentId:"mlflow.logged_model.details.related_runs.error"}),(0,b.Y)(I.S,{size:"md"})]}),(0,b.FD)("div",{css:[g?{display:"flex",flexDirection:"column"}:{display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"400px 400px",marginBottom:s.spacing.md},{gap:s.spacing.lg,overflow:"hidden"},""],children:[(0,b.Y)(ee,{loggedModel:t,relatedRunsLoading:f,relatedRunsData:null!==m&&void 0!==m?m:void 0}),(0,b.Y)(Z.y,{params:y}),(0,b.Y)(ie,{loggedModel:t,relatedRunsLoading:f,relatedRunsData:null!==m&&void 0!==m?m:void 0})]})]})})};var Ye=n(93358),Me=n(72314),Ae=n(5643);var be={name:"1jv19ey",styles:"height:100%;overflow:hidden;display:flex"};const we=({loggedModel:e})=>{var t,n,r,i,o,l,s;return(0,b.Y)("div",{css:be,children:(0,b.Y)(Ae.Ay,{isLoggedModelsMode:!0,loggedModelId:null!==(t=null===(n=e.info)||void 0===n?void 0:n.model_id)&&void 0!==t?t:"",artifactRootUri:null!==(r=null===e||void 0===e||null===(i=e.info)||void 0===i?void 0:i.artifact_uri)&&void 0!==r?r:"",useAutoHeight:!0,experimentId:null!==(o=null===e||void 0===e||null===(l=e.info)||void 0===l?void 0:l.experiment_id)&&void 0!==o?o:"",entityTags:null===e||void 0===e||null===(s=e.info)||void 0===s?void 0:s.tags})})};var xe=n(10571);var Ie={name:"1hyob9y",styles:"position:relative;width:min-content"};const Re=({modelId:e})=>{const{theme:t}=(0,i.u)(),n=`import mlflow\n \nmlflow.set_active_model(model_id="${e}")`;return(0,b.FD)(b.FK,{children:[(0,b.Y)(i.T.Paragraph,{children:(0,b.Y)(u.A,{id:"3X52Jw",defaultMessage:"This tab displays all the traces logged to this logged model. MLflow supports automatic tracing for many popular generative AI frameworks. Follow the steps below to log your first trace. For more information about MLflow Tracing, visit the MLflow documentation.",values:{a:e=>(0,b.Y)(i.T.Link,{componentId:"mlflow.logged_model.traces.traces_table.quickstart_docs_link",href:"https://mlflow.org/docs/latest/llms/tracing/index.html",openInNewTab:!0,children:e})}})}),(0,b.Y)(i.T.Paragraph,{children:(0,b.Y)(u.A,{id:"PBeZnP",defaultMessage:"You can start logging traces to this logged model by calling {code} first:",values:{code:(0,b.Y)("code",{children:"mlflow.set_active_model"})}})}),(0,b.Y)(i.T.Paragraph,{children:(0,b.FD)("div",{css:Ie,children:[(0,b.Y)(h.i,{componentId:"mlflow.logged_model.traces.traces_table.set_active_model_quickstart_snippet_copy",css:(0,r.AH)({zIndex:1,position:"absolute",top:t.spacing.xs,right:t.spacing.xs},""),showLabel:!1,copyText:n,icon:(0,b.Y)(o.CopyIcon,{})}),(0,b.Y)(p.z7,{showLineNumbers:!0,theme:t.isDarkMode?"duotoneDark":"light",style:{padding:`${t.spacing.sm}px ${t.spacing.md}px`},language:"python",children:n})]})}),(0,b.Y)(i.T.Paragraph,{children:(0,b.Y)(u.A,{id:"uXtIPX",defaultMessage:"Next, you can log traces to this logged model depending on your framework:"})})]})};var ke=n(51455);var Se={name:"3ytxc3",styles:"height:100%;overflow:hidden"};const De=({loggedModel:e})=>{var t,n,r,i;const o=(0,v.useMemo)((()=>{var t,n;return[null!==(t=null===(n=e.info)||void 0===n?void 0:n.experiment_id)&&void 0!==t?t:""]}),[null===(t=e.info)||void 0===t?void 0:t.experiment_id]);return null!==(n=e.info)&&void 0!==n&&n.experiment_id?(0,b.Y)("div",{css:Se,children:(0,b.Y)(ke.A,{introductionText:(null===(r=e.info)||void 0===r?void 0:r.model_id)&&(0,b.Y)(Re,{modelId:e.info.model_id}),displayVersionWarnings:!1,children:(0,b.Y)(Ce,{experimentIds:o,loggedModelId:null===(i=e.info)||void 0===i?void 0:i.model_id})})}):null},Ce=({experimentIds:e,loggedModelId:t})=>(0,b.Y)(xe.O,{experimentIds:e,loggedModelId:t,baseComponentId:"mlflow.logged_model.traces"});var Te={name:"1pbmicl",styles:"overflow:auto;flex:1"};const Ee=()=>{var e;const{experimentId:t,loggedModelId:n,tabName:l}=(0,d.g)(),{clearUserActionError:a,currentUserActionError:c}=(0,G.tF)();s()(t,"Experiment ID must be defined"),s()(n,"Logged model ID must be defined");const{theme:g}=(0,i.u)(),{data:m,isLoading:v,error:f,refetch:p}=(0,Ye.b)({loggedModelId:n}),{data:h,loading:y,apiError:Y,apolloError:M}=(0,Me.L)({experimentId:t});if(f)throw f;const A=null!==Y&&void 0!==Y?Y:M;return(0,b.FD)(b.FK,{children:[(0,b.Y)(D,{experimentId:t,experiment:h,loggedModel:m,loading:v||y,onSuccess:p}),c&&(0,b.Y)(o.Alert,{componentId:"mlflow.logged_model.details.user-action-error",css:(0,r.AH)({marginBottom:g.spacing.sm},""),type:"error",message:null!==(e=c.displayMessage)&&void 0!==e?e:c.message,onClose:a}),(null===A||void 0===A?void 0:A.message)&&(0,b.Y)(o.Alert,{componentId:"mlflow.logged_model.details.experiment-error",css:(0,r.AH)({marginBottom:g.spacing.sm},""),type:"error",message:(0,b.Y)(u.A,{id:"E4Te7L",defaultMessage:"Experiment load error: {errorMessage}",values:{errorMessage:A.message}}),closable:!1}),(0,b.Y)(L,{experimentId:t,modelId:n,activeTabName:l}),(0,b.Y)("div",{css:Te,children:v?(0,b.Y)(o.TableSkeleton,{lines:12}):m?"traces"===l?(0,b.Y)(De,{loggedModel:m}):"artifacts"===l?(0,b.Y)(we,{loggedModel:m}):(0,b.Y)(ye,{onDataUpdated:p,loggedModel:m}):null})]})};var Ne=()=>{const{theme:e}=(0,i.u)();return(0,b.Y)(N.X,{children:(0,b.Y)(o.PageWrapper,{css:(0,r.AH)({paddingTop:e.spacing.md,display:"flex",paddingBottom:e.spacing.md,overflow:"hidden",height:"100%",flexDirection:"column"},""),children:(0,b.Y)(Ee,{})})})}},96277:function(e,t,n){n.d(t,{y:function(){return l}});var r=n(34860),i=n(89555),o=n(50111);function l({showImmediately:e}){return(0,o.Y)("div",{css:t=>s.spinner(t,e),children:(0,o.Y)("img",{alt:"Page loading...",src:r})})}const s={spinner:(e,t)=>({width:100,marginTop:100,marginLeft:"auto",marginRight:"auto",img:{position:"absolute",opacity:0,top:"50%",left:"50%",width:2*e.general.heightBase,height:2*e.general.heightBase,marginTop:-e.general.heightBase,marginLeft:-e.general.heightBase,animation:`${i.i7` + 0% { + opacity: 1; + } + 100% { + opacity: 1; + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } + `} 3s linear infinite`,animationDelay:t?"0s":"0.5s"}})}}}]); +//# sourceMappingURL=8722.b1d1065a.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8722.b1d1065a.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8722.b1d1065a.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..84463d55336b024e41805d347d12662a3f3def64 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8722.b1d1065a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/8722.b1d1065a.chunk.js","mappings":"kHAgDAA,EAAOC,QA5BS,SAASC,EAAWC,EAAQC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAOzD,IAAKP,EAAW,CACd,IAAIQ,EACJ,QAAeC,IAAXR,EACFO,EAAQ,IAAIE,MACV,qIAGG,CACL,IAAIC,EAAO,CAACT,EAAGC,EAAGC,EAA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GAAoC,CAACC,cAAehjB,EAAS0R,YAAaA,IATzE,SA+CN,EAwBP,OApByCwX,KACvC,MAAM,MAAEjuB,IAAUC,EAAAA,EAAAA,KAClB,OACEZ,EAAAA,EAAAA,GAACmZ,EAAAA,EAAgC,CAAAtZ,UAC/BG,EAAAA,EAAAA,GAAC8Y,EAAAA,YAAW,CACV5Y,KAAGa,EAAAA,EAAAA,IAAE,CACH+pB,WAAYnqB,EAAMK,QAAQgT,GAC1BhD,QAAS,OACT4C,cAAejT,EAAMK,QAAQgT,GAC7B2Q,SAAU,SACVvF,OAAQ,OACRvL,cAAe,UAChB,IAAChU,UAEFG,EAAAA,EAAAA,GAAC0tB,GAAoC,OAEN,C,6FCpIhC,SAAShpB,GAAQ,gBAAEmqB,IACxB,OACE7uB,EAAAA,EAAAA,GAAA,OAAKE,IAAMS,GAAUY,EAAOutB,QAAQnuB,EAAOkuB,GAAiBhvB,UAC1DG,EAAAA,EAAAA,GAAA,OAAK+uB,IAAI,kBAAkBC,IAAKF,KAGtC,CAEA,MAAMvtB,EAAS,CACbutB,QAASA,CAACnuB,EAAcsuB,KAAmB,CACzCzb,MAAO,IACPW,UAAW,IACX1T,WAAY,OACZsU,YAAa,OAEb3W,IAAK,CACHsuB,SAAU,WACVwC,QAAS,EACTvC,IAAK,MACLwC,KAAM,MACN3b,MAAkC,EAA3B7S,EAAMue,QAAQkQ,WACrBhQ,OAAmC,EAA3Bze,EAAMue,QAAQkQ,WACtBjb,WAAYxT,EAAMue,QAAQkQ,WAC1B3uB,YAAaE,EAAMue,QAAQkQ,WAC3BC,UAAW,GAAGC,EAAAA,EAAS;;;;;;;;;iCAUvBC,eAAgBN,EAAY,KAAO,U","sources":["../node_modules/invariant/browser.js","common/utils/MarkdownUtils.ts","common/components/error-boundaries/SectionErrorBoundary.tsx","shared/building_blocks/PreviewBadge.tsx","shared/building_blocks/CopyButton.tsx","common/components/RequestStateWrapper.tsx","experiment-tracking/hooks/useExperimentQuery.tsx","../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts","../node_modules/@tanstack/query-core/src/queriesObserver.ts","../node_modules/@tanstack/react-query/src/useQueries.ts","shared/building_blocks/PageHeader.tsx","shared/web-shared/utils/coerceToEnum.ts","shared/web-shared/utils/unified-details/useResponsiveContainer.ts","shared/web-shared/utils/unified-details/index.tsx","experiment-tracking/hooks/logged-models/useRelatedRunsDataForLoggedModels.tsx","common/hooks/useArrayMemo.ts","experiment-tracking/pages/experiment-logged-models/ExperimentLoggedModelPageWrapper.tsx","experiment-tracking/components/experiment-logged-models/hooks/useValidateLoggedModelSignature.ts","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsRegisterButton.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsHeader.tsx","experiment-tracking/components/experiment-logged-models/hooks/useExperimentLoggedModelDeleteModal.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsNav.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDescription.tsx","experiment-tracking/hooks/logged-models/usePatchLoggedModelsTags.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsTableRunCellRenderer.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsMetricsTable.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsRunsTable.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelAllDatasetsList.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsModelVersionsList.tsx","experiment-tracking/components/experiment-logged-models/hooks/useExperimentLoggedModelDetailsMetadataV2.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsOverview.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsArtifacts.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsTracesIntroductionText.tsx","experiment-tracking/components/experiment-logged-models/ExperimentLoggedModelDetailsTraces.tsx","experiment-tracking/pages/experiment-logged-models/ExperimentLoggedModelDetailsPage.tsx","common/components/Spinner.tsx"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport { useCallback } from 'react';\nimport sanitizeHtml from 'sanitize-html';\n// @ts-expect-error TS(7016): Could not find a declaration file for module 'show... Remove this comment to see the full error message\nimport { Converter } from 'showdown';\n\n// Use Github-like Markdown (i.e. support for tasklists, strikethrough,\n// simple line breaks, code blocks, emojis)\nconst DEFAULT_MARKDOWN_FLAVOR = 'github';\n\nlet _converter: Converter | null = null;\n\nexport const getMarkdownConverter = () => {\n // Reuse the same converter instance if available\n if (_converter) {\n return _converter;\n }\n _converter = new Converter();\n _converter.setFlavor(DEFAULT_MARKDOWN_FLAVOR);\n return _converter;\n};\n\n// Options for HTML sanitizer.\n// See https://www.npmjs.com/package/sanitize-html#what-are-the-default-options for usage.\n// These options were chosen to be similar to Github's allowlist but simpler (i.e. we don't\n// do any transforms of the contained HTML and we disallow script entirely instead of\n// removing contents).\nconst sanitizerOptions = {\n allowedTags: [\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'h7',\n 'h8',\n 'blockquote',\n 'p',\n 'a',\n 'ul',\n 'ol',\n 'nl',\n 'li',\n 'ins',\n 'b',\n 'i',\n 'strong',\n 'em',\n 'strike',\n 'code',\n 'hr',\n 'br',\n 'div',\n 'table',\n 'thead',\n 'tbody',\n 'tr',\n 'th',\n 'td',\n 'pre',\n 'del',\n 'sup',\n 'sub',\n 'dl',\n 'dt',\n 'dd',\n 'kbd',\n 'q',\n 'samp',\n 'samp',\n 'var',\n 'hr',\n 'rt',\n 'rp',\n 'summary',\n 'iframe',\n 'img',\n 'caption',\n 'figure',\n ],\n allowedAttributes: {\n a: ['href', 'name', 'target'],\n img: ['src', 'longdesc'],\n div: ['itemscope', 'itemtype'],\n },\n};\n\nexport const sanitizeConvertedHtml = (dirtyHtml: any) => {\n return sanitizeHtml(dirtyHtml, sanitizerOptions);\n};\n\nexport const forceAnchorTagNewTab = (html: any) => {\n return html.replace(new RegExp('\n useCallback((markdown?: string) => {\n const converter = getMarkdownConverter();\n const html = converter.makeHtml(markdown);\n return sanitizeConvertedHtml(html);\n }, []);\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport Utils from '../../utils/Utils';\n\ntype Props = {\n showServerError?: boolean;\n};\n\ntype State = any;\n\nexport class SectionErrorBoundary extends React.Component {\n state = { error: null };\n\n componentDidCatch(error: any, errorInfo: any) {\n this.setState({ error });\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error(error, errorInfo);\n }\n\n renderErrorMessage(error: any) {\n return this.props.showServerError ?
Error message: {error.message}
: '';\n }\n\n render() {\n const { children } = this.props;\n const { error } = this.state;\n if (error) {\n return (\n
\n

\n \n Something went wrong with this section. \n If this error persists, please report an issue \n {/* Reported during ESLint upgrade */}\n {/* eslint-disable-next-line react/jsx-no-target-blank */}\n \n here\n \n .{this.renderErrorMessage(error)}\n

\n
\n );\n }\n\n return children;\n }\n}\n\nconst classNames = {\n wrapper: {\n marginLeft: -2, // to align the failure icon with the collapsable section caret toggle\n },\n};\n","import React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { Tag, useDesignSystemTheme } from '@databricks/design-system';\nexport const PreviewBadge = ({ className }: { className?: string }) => {\n const { theme } = useDesignSystemTheme();\n return (\n \n \n
\n );\n};\n","import React, { useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { Button, type ButtonProps, LegacyTooltip } from '@databricks/design-system';\n\ninterface CopyButtonProps extends Partial {\n copyText: string;\n showLabel?: React.ReactNode;\n componentId?: string;\n}\n\nexport const CopyButton = ({ copyText, showLabel = true, componentId, ...buttonProps }: CopyButtonProps) => {\n const [showTooltip, setShowTooltip] = useState(false);\n\n const handleClick = () => {\n navigator.clipboard.writeText(copyText);\n setShowTooltip(true);\n setTimeout(() => {\n setShowTooltip(false);\n }, 3000);\n };\n\n const handleMouseLeave = () => {\n setShowTooltip(false);\n };\n\n return (\n \n }\n dangerouslySetAntdProps={{\n visible: showTooltip,\n }}\n >\n : undefined\n }\n {...buttonProps}\n />\n \n );\n};\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { getApis } from '../../experiment-tracking/reducers/Reducers';\nimport { Spinner } from './Spinner';\nimport { ErrorCodes } from '../constants';\nimport { ErrorWrapper } from '../utils/ErrorWrapper';\nimport { ReduxState } from '../../redux-types';\n\nexport const DEFAULT_ERROR_MESSAGE = 'A request error occurred.';\n\ntype RequestStateWrapperProps = {\n children?: React.ReactNode;\n customSpinner?: React.ReactNode;\n shouldOptimisticallyRender?: boolean;\n requests: any[];\n requestIds?: string[];\n requestIdsWith404sToIgnore?: string[];\n description?: any; // TODO: PropTypes.oneOf(Object.values(LoadingDescription))\n permissionDeniedView?: React.ReactNode;\n suppressErrorThrow?: boolean;\n customRequestErrorHandlerFn?: (\n failedRequests: {\n id: string;\n active?: boolean;\n error: Error | ErrorWrapper;\n }[],\n ) => void;\n};\n\ntype RequestStateWrapperState = any;\n\nexport class RequestStateWrapper extends Component {\n static defaultProps = {\n requests: [],\n requestIdsWith404sToIgnore: [],\n shouldOptimisticallyRender: false,\n };\n\n state = {\n shouldRender: false,\n shouldRenderError: false,\n };\n\n static getErrorRequests(requests: any, requestIdsWith404sToIgnore: any) {\n return requests.filter((r: any) => {\n if (r.error !== undefined) {\n return !(\n requestIdsWith404sToIgnore &&\n requestIdsWith404sToIgnore.includes(r.id) &&\n r.error.getErrorCode() === ErrorCodes.RESOURCE_DOES_NOT_EXIST\n );\n }\n return false;\n });\n }\n\n static getDerivedStateFromProps(nextProps: any) {\n const shouldRender = nextProps.requests.length\n ? nextProps.requests.every((r: any) => r && r.active === false)\n : false;\n\n const requestErrors = RequestStateWrapper.getErrorRequests(\n nextProps.requests,\n nextProps.requestIdsWith404sToIgnore,\n );\n\n return {\n shouldRender,\n shouldRenderError: requestErrors.length > 0,\n requestErrors,\n };\n }\n\n getRenderedContent() {\n const { children, requests, customSpinner, permissionDeniedView, suppressErrorThrow, customRequestErrorHandlerFn } =\n this.props;\n // @ts-expect-error TS(2339): Property 'requestErrors' does not exist on type '{... Remove this comment to see the full error message\n const { shouldRender, shouldRenderError, requestErrors } = this.state;\n const permissionDeniedErrors = requestErrors.filter((failedRequest: any) => {\n return failedRequest.error.getErrorCode() === ErrorCodes.PERMISSION_DENIED;\n });\n\n if (typeof children === 'function') {\n return children(!shouldRender, shouldRenderError, requests, requestErrors);\n } else if (shouldRender || shouldRenderError || this.props.shouldOptimisticallyRender) {\n if (permissionDeniedErrors.length > 0 && permissionDeniedView) {\n return permissionDeniedView;\n }\n if (shouldRenderError && !suppressErrorThrow) {\n customRequestErrorHandlerFn ? customRequestErrorHandlerFn(requestErrors) : triggerError(requestErrors);\n }\n\n return children;\n }\n\n return customSpinner || ;\n }\n\n render() {\n return this.getRenderedContent();\n }\n}\n\nexport const triggerError = (requests: any) => {\n // This triggers the OOPS error boundary.\n // eslint-disable-next-line no-console -- TODO(FEINF-3587)\n console.error('ERROR', requests);\n throw Error(`${DEFAULT_ERROR_MESSAGE}: ${requests.error}`);\n};\n\nconst mapStateToProps = (state: ReduxState, ownProps: Omit) => ({\n requests: getApis(ownProps.requestIds, state),\n});\n\nexport default connect(mapStateToProps)(RequestStateWrapper);\n","import { gql, QueryHookOptions } from '@mlflow/mlflow/src/common/utils/graphQLHooks';\nimport { useQuery } from '@mlflow/mlflow/src/common/utils/graphQLHooks';\nimport { MlflowGetExperimentQuery, MlflowGetExperimentQueryVariables } from '../../graphql/__generated__/graphql';\nimport { isArray } from 'lodash';\nimport { NotFoundError } from '@databricks/web-shared/errors';\n\nconst GET_EXPERIMENT_QUERY = gql`\n query MlflowGetExperimentQuery($input: MlflowGetExperimentInput!) @component(name: \"MLflow.ExperimentRunTracking\") {\n mlflowGetExperiment(input: $input) {\n apiError {\n code\n message\n }\n experiment {\n artifactLocation\n creationTime\n experimentId\n lastUpdateTime\n lifecycleStage\n name\n tags {\n key\n value\n }\n }\n }\n }\n`;\n\nexport type UseGetExperimentQueryResultExperiment = NonNullable<\n MlflowGetExperimentQuery['mlflowGetExperiment']\n>['experiment'];\n\n/* eslint-disable react-hooks/rules-of-hooks */\nexport const useGetExperimentQuery = ({\n experimentId,\n options = {},\n}: {\n experimentId?: string;\n options?: QueryHookOptions;\n}) => {\n const {\n data,\n loading,\n error: apolloError,\n refetch,\n } = useQuery(GET_EXPERIMENT_QUERY, {\n variables: {\n input: {\n experimentId,\n },\n },\n skip: !experimentId,\n ...options,\n });\n\n // Extract the single experiment entity from the response\n const experimentEntity: UseGetExperimentQueryResultExperiment | undefined = data?.mlflowGetExperiment?.experiment;\n\n const getApiError = () => {\n return data?.mlflowGetExperiment?.apiError;\n };\n\n return {\n loading,\n data: experimentEntity,\n refetch,\n apolloError: apolloError,\n apiError: getApiError(),\n } as const;\n};\n","import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState ReturnType>\n extends ControlFunctions> {\n (...args: Parameters): ReturnType | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * \n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType,\n>(func: T, wait?: number, options?: Options): DebouncedState {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef([]);\n const lastThis = useRef();\n const result = useRef>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState = (...args: Parameters): ReturnType => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n useRAF,\n isClientSide,\n debounceOnServer,\n ]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality(left: T, right: T): boolean {\n return left === right;\n}\n\nexport default function useDebounce(\n value: T,\n delay: number,\n options?: {\n maxWait?: number;\n leading?: boolean;\n trailing?: boolean;\n equalityFn?: (left: T, right: T) => boolean;\n }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const activeValue = useRef(value);\n const [, forceUpdate] = useState({});\n const debounced = useDebouncedCallback(\n useCallback(\n (value: T) => {\n activeValue.current = value;\n forceUpdate({});\n },\n [forceUpdate]\n ),\n delay,\n options\n );\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [activeValue.current as T, debounced];\n}\n","import { difference, replaceAt } from './utils'\nimport { notifyManager } from './notifyManager'\nimport type {\n QueryObserverOptions,\n QueryObserverResult,\n DefaultedQueryObserverOptions,\n} from './types'\nimport type { QueryClient } from './queryClient'\nimport type { NotifyOptions } from './queryObserver'\nimport { QueryObserver } from './queryObserver'\nimport { Subscribable } from './subscribable'\n\ntype QueriesObserverListener = (result: QueryObserverResult[]) => void\n\nexport class QueriesObserver extends Subscribable {\n private client: QueryClient\n private result: QueryObserverResult[]\n private queries: QueryObserverOptions[]\n private observers: QueryObserver[]\n private observersMap: Record\n\n constructor(client: QueryClient, queries?: QueryObserverOptions[]) {\n super()\n\n this.client = client\n this.queries = []\n this.result = []\n this.observers = []\n this.observersMap = {}\n\n if (queries) {\n this.setQueries(queries)\n }\n }\n\n protected onSubscribe(): void {\n if (this.listeners.size === 1) {\n this.observers.forEach((observer) => {\n observer.subscribe((result) => {\n this.onUpdate(observer, result)\n })\n })\n }\n }\n\n protected onUnsubscribe(): void {\n if (!this.listeners.size) {\n this.destroy()\n }\n }\n\n destroy(): void {\n this.listeners = new Set()\n this.observers.forEach((observer) => {\n observer.destroy()\n })\n }\n\n setQueries(\n queries: QueryObserverOptions[],\n notifyOptions?: NotifyOptions,\n ): void {\n this.queries = queries\n\n notifyManager.batch(() => {\n const prevObservers = this.observers\n\n const newObserverMatches = this.findMatchingObservers(this.queries)\n\n // set options for the new observers to notify of changes\n newObserverMatches.forEach((match) =>\n match.observer.setOptions(match.defaultedQueryOptions, notifyOptions),\n )\n\n const newObservers = newObserverMatches.map((match) => match.observer)\n const newObserversMap = Object.fromEntries(\n newObservers.map((observer) => [observer.options.queryHash, observer]),\n )\n const newResult = newObservers.map((observer) =>\n observer.getCurrentResult(),\n )\n\n const hasIndexChange = newObservers.some(\n (observer, index) => observer !== prevObservers[index],\n )\n if (prevObservers.length === newObservers.length && !hasIndexChange) {\n return\n }\n\n this.observers = newObservers\n this.observersMap = newObserversMap\n this.result = newResult\n\n if (!this.hasListeners()) {\n return\n }\n\n difference(prevObservers, newObservers).forEach((observer) => {\n observer.destroy()\n })\n\n difference(newObservers, prevObservers).forEach((observer) => {\n observer.subscribe((result) => {\n this.onUpdate(observer, result)\n })\n })\n\n this.notify()\n })\n }\n\n getCurrentResult(): QueryObserverResult[] {\n return this.result\n }\n\n getQueries() {\n return this.observers.map((observer) => observer.getCurrentQuery())\n }\n\n getObservers() {\n return this.observers\n }\n\n getOptimisticResult(queries: QueryObserverOptions[]): QueryObserverResult[] {\n return this.findMatchingObservers(queries).map((match) =>\n match.observer.getOptimisticResult(match.defaultedQueryOptions),\n )\n }\n\n private findMatchingObservers(\n queries: QueryObserverOptions[],\n ): QueryObserverMatch[] {\n const prevObservers = this.observers\n const prevObserversMap = new Map(\n prevObservers.map((observer) => [observer.options.queryHash, observer]),\n )\n\n const defaultedQueryOptions = queries.map((options) =>\n this.client.defaultQueryOptions(options),\n )\n\n const matchingObservers: QueryObserverMatch[] =\n defaultedQueryOptions.flatMap((defaultedOptions) => {\n const match = prevObserversMap.get(defaultedOptions.queryHash)\n if (match != null) {\n return [{ defaultedQueryOptions: defaultedOptions, observer: match }]\n }\n return []\n })\n\n const matchedQueryHashes = new Set(\n matchingObservers.map((match) => match.defaultedQueryOptions.queryHash),\n )\n const unmatchedQueries = defaultedQueryOptions.filter(\n (defaultedOptions) => !matchedQueryHashes.has(defaultedOptions.queryHash),\n )\n\n const matchingObserversSet = new Set(\n matchingObservers.map((match) => match.observer),\n )\n const unmatchedObservers = prevObservers.filter(\n (prevObserver) => !matchingObserversSet.has(prevObserver),\n )\n\n const getObserver = (options: QueryObserverOptions): QueryObserver => {\n const defaultedOptions = this.client.defaultQueryOptions(options)\n const currentObserver = this.observersMap[defaultedOptions.queryHash!]\n return currentObserver ?? new QueryObserver(this.client, defaultedOptions)\n }\n\n const newOrReusedObservers: QueryObserverMatch[] = unmatchedQueries.map(\n (options, index) => {\n if (options.keepPreviousData) {\n // return previous data from one of the observers that no longer match\n const previouslyUsedObserver = unmatchedObservers[index]\n if (previouslyUsedObserver !== undefined) {\n return {\n defaultedQueryOptions: options,\n observer: previouslyUsedObserver,\n }\n }\n }\n return {\n defaultedQueryOptions: options,\n observer: getObserver(options),\n }\n },\n )\n\n const sortMatchesByOrderOfQueries = (\n a: QueryObserverMatch,\n b: QueryObserverMatch,\n ): number =>\n defaultedQueryOptions.indexOf(a.defaultedQueryOptions) -\n defaultedQueryOptions.indexOf(b.defaultedQueryOptions)\n\n return matchingObservers\n .concat(newOrReusedObservers)\n .sort(sortMatchesByOrderOfQueries)\n }\n\n private onUpdate(observer: QueryObserver, result: QueryObserverResult): void {\n const index = this.observers.indexOf(observer)\n if (index !== -1) {\n this.result = replaceAt(this.result, index, result)\n this.notify()\n }\n }\n\n private notify(): void {\n notifyManager.batch(() => {\n this.listeners.forEach(({ listener }) => {\n listener(this.result)\n })\n })\n }\n}\n\ntype QueryObserverMatch = {\n defaultedQueryOptions: DefaultedQueryObserverOptions\n observer: QueryObserver\n}\n","import 'client-only'\nimport * as React from 'react'\nimport { useSyncExternalStore } from './useSyncExternalStore'\n\nimport type { QueryKey, QueryFunction } from '@tanstack/query-core'\nimport { notifyManager, QueriesObserver } from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport type { UseQueryOptions, UseQueryResult } from './types'\nimport { useIsRestoring } from './isRestoring'\nimport { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary,\n} from './errorBoundaryUtils'\nimport {\n ensureStaleTime,\n shouldSuspend,\n fetchOptimistic,\n willFetch,\n} from './suspense'\n\n// This defines the `UseQueryOptions` that are accepted in `QueriesOptions` & `GetOptions`.\n// - `context` is omitted as it is passed as a root-level option to `useQueries` instead.\ntype UseQueryOptionsForUseQueries<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = Omit, 'context'>\n\n// Avoid TS depth-limit error in case of large array literal\ntype MAXIMUM_DEPTH = 20\n\ntype GetOptions =\n // Part 1: responsible for applying explicit type parameter to function arguments, if object { queryFnData: TQueryFnData, error: TError, data: TData }\n T extends {\n queryFnData: infer TQueryFnData\n error?: infer TError\n data: infer TData\n }\n ? UseQueryOptionsForUseQueries\n : T extends { queryFnData: infer TQueryFnData; error?: infer TError }\n ? UseQueryOptionsForUseQueries\n : T extends { data: infer TData; error?: infer TError }\n ? UseQueryOptionsForUseQueries\n : // Part 2: responsible for applying explicit type parameter to function arguments, if tuple [TQueryFnData, TError, TData]\n T extends [infer TQueryFnData, infer TError, infer TData]\n ? UseQueryOptionsForUseQueries\n : T extends [infer TQueryFnData, infer TError]\n ? UseQueryOptionsForUseQueries\n : T extends [infer TQueryFnData]\n ? UseQueryOptionsForUseQueries\n : // Part 3: responsible for inferring and enforcing type if no explicit parameter was provided\n T extends {\n queryFn?: QueryFunction\n select: (data: any) => infer TData\n }\n ? UseQueryOptionsForUseQueries\n : T extends { queryFn?: QueryFunction }\n ? UseQueryOptionsForUseQueries<\n TQueryFnData,\n unknown,\n TQueryFnData,\n TQueryKey\n >\n : // Fallback\n UseQueryOptionsForUseQueries\n\ntype GetResults =\n // Part 1: responsible for mapping explicit type parameter to function result, if object\n T extends { queryFnData: any; error?: infer TError; data: infer TData }\n ? UseQueryResult\n : T extends { queryFnData: infer TQueryFnData; error?: infer TError }\n ? UseQueryResult\n : T extends { data: infer TData; error?: infer TError }\n ? UseQueryResult\n : // Part 2: responsible for mapping explicit type parameter to function result, if tuple\n T extends [any, infer TError, infer TData]\n ? UseQueryResult\n : T extends [infer TQueryFnData, infer TError]\n ? UseQueryResult\n : T extends [infer TQueryFnData]\n ? UseQueryResult\n : // Part 3: responsible for mapping inferred type to results, if no explicit parameter was provided\n T extends {\n queryFn?: QueryFunction\n select: (data: any) => infer TData\n }\n ? UseQueryResult\n : T extends { queryFn?: QueryFunction }\n ? UseQueryResult\n : // Fallback\n UseQueryResult\n\n/**\n * QueriesOptions reducer recursively unwraps function arguments to infer/enforce type param\n */\nexport type QueriesOptions<\n T extends any[],\n Result extends any[] = [],\n Depth extends ReadonlyArray = [],\n> = Depth['length'] extends MAXIMUM_DEPTH\n ? UseQueryOptionsForUseQueries[]\n : T extends []\n ? []\n : T extends [infer Head]\n ? [...Result, GetOptions]\n : T extends [infer Head, ...infer Tail]\n ? QueriesOptions<[...Tail], [...Result, GetOptions], [...Depth, 1]>\n : unknown[] extends T\n ? T\n : // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!\n // use this to infer the param types in the case of Array.map() argument\n T extends UseQueryOptionsForUseQueries<\n infer TQueryFnData,\n infer TError,\n infer TData,\n infer TQueryKey\n >[]\n ? UseQueryOptionsForUseQueries[]\n : // Fallback\n UseQueryOptionsForUseQueries[]\n\n/**\n * QueriesResults reducer recursively maps type param to results\n */\nexport type QueriesResults<\n T extends any[],\n Result extends any[] = [],\n Depth extends ReadonlyArray = [],\n> = Depth['length'] extends MAXIMUM_DEPTH\n ? UseQueryResult[]\n : T extends []\n ? []\n : T extends [infer Head]\n ? [...Result, GetResults]\n : T extends [infer Head, ...infer Tail]\n ? QueriesResults<[...Tail], [...Result, GetResults], [...Depth, 1]>\n : T extends UseQueryOptionsForUseQueries<\n infer TQueryFnData,\n infer TError,\n infer TData,\n any\n >[]\n ? // Dynamic-size (homogenous) UseQueryOptions array: map directly to array of results\n UseQueryResult[]\n : // Fallback\n UseQueryResult[]\n\nexport function useQueries({\n queries,\n context,\n}: {\n queries: readonly [...QueriesOptions]\n context?: UseQueryOptions['context']\n}): QueriesResults {\n const queryClient = useQueryClient({ context })\n const isRestoring = useIsRestoring()\n const errorResetBoundary = useQueryErrorResetBoundary()\n\n const defaultedQueries = React.useMemo(\n () =>\n queries.map((options) => {\n const defaultedOptions = queryClient.defaultQueryOptions(options)\n\n // Make sure the results are already in fetching state before subscribing or updating options\n defaultedOptions._optimisticResults = isRestoring\n ? 'isRestoring'\n : 'optimistic'\n\n return defaultedOptions\n }),\n [queries, queryClient, isRestoring],\n )\n\n defaultedQueries.forEach((query) => {\n ensureStaleTime(query)\n ensurePreventErrorBoundaryRetry(query, errorResetBoundary)\n })\n\n useClearResetErrorBoundary(errorResetBoundary)\n\n const [observer] = React.useState(\n () => new QueriesObserver(queryClient, defaultedQueries),\n )\n\n const optimisticResult = observer.getOptimisticResult(defaultedQueries)\n\n useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n isRestoring\n ? () => undefined\n : observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer, isRestoring],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n React.useEffect(() => {\n // Do not notify on updates because of changes in the options because\n // these changes should already be reflected in the optimistic result.\n observer.setQueries(defaultedQueries, { listeners: false })\n }, [defaultedQueries, observer])\n\n const shouldAtLeastOneSuspend = optimisticResult.some((result, index) =>\n shouldSuspend(defaultedQueries[index], result, isRestoring),\n )\n\n const suspensePromises = shouldAtLeastOneSuspend\n ? optimisticResult.flatMap((result, index) => {\n const options = defaultedQueries[index]\n const queryObserver = observer.getObservers()[index]\n\n if (options && queryObserver) {\n if (shouldSuspend(options, result, isRestoring)) {\n return fetchOptimistic(options, queryObserver, errorResetBoundary)\n } else if (willFetch(result, isRestoring)) {\n void fetchOptimistic(options, queryObserver, errorResetBoundary)\n }\n }\n return []\n })\n : []\n\n if (suspensePromises.length > 0) {\n throw Promise.all(suspensePromises)\n }\n const observerQueries = observer.getQueries()\n const firstSingleResultWhichShouldThrow = optimisticResult.find(\n (result, index) =>\n getHasError({\n result,\n errorResetBoundary,\n useErrorBoundary: defaultedQueries[index]?.useErrorBoundary ?? false,\n query: observerQueries[index]!,\n }),\n )\n\n if (firstSingleResultWhichShouldThrow?.error) {\n throw firstSingleResultWhichShouldThrow.error\n }\n\n return optimisticResult as QueriesResults\n}\n","/**\n * NOTE: this code file was automatically migrated to TypeScript using ts-migrate and\n * may contain multiple `any` type annotations and `@ts-expect-error` directives.\n * If possible, please improve types while making changes to this file. If the type\n * annotations are already looking good, please remove this comment.\n */\n\nimport React from 'react';\nimport {\n Breadcrumb,\n Button,\n Spacer,\n Dropdown,\n Menu,\n Header,\n OverflowIcon,\n useDesignSystemTheme,\n type HeaderProps,\n} from '@databricks/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { PreviewBadge } from './PreviewBadge';\n\ntype OverflowMenuProps = {\n menu?: {\n id: string;\n itemName: React.ReactNode;\n onClick?: (...args: any[]) => any;\n href?: string;\n }[];\n};\n\nexport function OverflowMenu({ menu }: OverflowMenuProps) {\n const overflowMenu = (\n \n {/* @ts-expect-error TS(2532): Object is possibly 'undefined'. */}\n {menu.map(({ id, itemName, onClick, href, ...otherProps }) => (\n // @ts-expect-error TS(2769): No overload matches this call.\n \n {itemName}\n \n ))}\n \n );\n\n // @ts-expect-error TS(2532): Object is possibly 'undefined'.\n return menu.length > 0 ? (\n \n }\n data-testid=\"overflow-menu-trigger\"\n aria-label=\"Open header dropdown menu\"\n />\n \n ) : null;\n}\n\ntype PageHeaderProps = Pick & {\n title: React.ReactNode;\n breadcrumbs?: React.ReactNode[];\n preview?: boolean;\n feedbackOrigin?: string;\n infoPopover?: React.ReactNode;\n children?: React.ReactNode;\n spacerSize?: 'xs' | 'sm' | 'md' | 'lg';\n hideSpacer?: boolean;\n titleAddOns?: React.ReactNode | React.ReactNode[];\n};\n\n/**\n * A page header that includes:\n * - title,\n * - optional breadcrumb content,\n * - optional preview mark,\n * - optional feedback origin: shows the \"Send feedback\" button when not empty, and\n * - optional info popover, safe to have link inside.\n */\nexport function PageHeader(props: PageHeaderProps) {\n const {\n title, // required\n breadcrumbs = [],\n titleAddOns = [],\n preview,\n children,\n spacerSize,\n hideSpacer = false,\n dangerouslyAppendEmotionCSS,\n } = props;\n const { theme } = useDesignSystemTheme();\n const intl = useIntl();\n\n return (\n <>\n 0 && (\n \n {breadcrumbs.map((b, i) => (\n {b}\n ))}\n \n )\n }\n buttons={children}\n title={title}\n // prettier-ignore\n titleAddOns={\n <>\n {preview && }\n {titleAddOns}\n \n }\n dangerouslyAppendEmotionCSS={dangerouslyAppendEmotionCSS}\n />\n \n \n );\n}\n","export function coerceToEnum, K extends keyof T, V extends T[K] | undefined>(\n enumObj: T,\n value: any,\n fallback: V,\n): V | T[keyof T] {\n if (value === undefined || value === null || typeof value !== 'string') {\n return fallback;\n }\n for (const v in enumObj) {\n if (enumObj[v] === value) return enumObj[v];\n }\n return fallback;\n}\n","import type { RefObject } from 'react';\nimport { useState, useEffect } from 'react';\n\ninterface SizeMap {\n [key: string]: number;\n}\n\nfunction useResponsiveContainer(ref: RefObject, sizeMap: SizeMap): string | null {\n const [matchedSize, setMatchedSize] = useState(null);\n\n useEffect(() => {\n if (ref.current && sizeMap) {\n const handleResize = () => {\n if (!ref.current) {\n return;\n }\n const elementWidth = ref.current.offsetWidth;\n const matchedKey = Object.keys(sizeMap)\n .filter((key) => sizeMap[key] >= elementWidth)\n .sort((a, b) => sizeMap[a] - sizeMap[b])[0];\n\n setMatchedSize(matchedKey);\n };\n\n handleResize();\n\n const resizeObserver = new ResizeObserver(handleResize);\n resizeObserver.observe(ref.current);\n\n return () => resizeObserver.disconnect();\n }\n return undefined;\n }, [ref, sizeMap]);\n\n return matchedSize;\n}\n\nexport default useResponsiveContainer;\n","import { GenericSkeleton, ParagraphSkeleton, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport type { ReactNode } from 'react';\nimport { useRef } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport useResponsiveContainer from './useResponsiveContainer';\n\nexport interface AsideSectionProps {\n id: string;\n title?: ReactNode;\n content: ReactNode;\n isTitleLoading?: boolean;\n}\n\nexport type MaybeAsideSection = AsideSectionProps | null;\nexport type AsideSections = Array;\n\nconst SIDEBAR_WIDTHS = {\n sm: 316,\n lg: 480,\n} as const;\nconst VERTICAL_MARGIN_PX = 16;\nconst DEFAULT_MAX_WIDTH = 450;\n\nexport const OverviewLayout = ({\n isLoading,\n asideSections,\n children,\n isTabLayout = true,\n sidebarSize = 'sm',\n verticalStackOrder,\n}: {\n isLoading?: boolean;\n asideSections: AsideSections;\n children: ReactNode;\n isTabLayout?: boolean;\n sidebarSize?: 'sm' | 'lg';\n verticalStackOrder?: 'main-first' | 'aside-first';\n}) => {\n const { theme } = useDesignSystemTheme();\n const containerRef = useRef(null);\n\n const stackVertically = useResponsiveContainer(containerRef, { small: theme.responsive.breakpoints.lg }) === 'small';\n\n // Determine vertical stack order, i.e. should the main content be on top or bottom\n const verticalDisplayPrimaryContentOnTop = verticalStackOrder === 'main-first';\n\n const totalSidebarWidth = SIDEBAR_WIDTHS[sidebarSize];\n const innerSidebarWidth = totalSidebarWidth - VERTICAL_MARGIN_PX;\n\n const secondaryStackedStyles = stackVertically\n ? verticalDisplayPrimaryContentOnTop\n ? { width: '100%' }\n : { borderBottom: `1px solid ${theme.colors.border}`, width: '100%' }\n : verticalDisplayPrimaryContentOnTop\n ? {\n width: innerSidebarWidth,\n }\n : {\n paddingBottom: theme.spacing.sm,\n width: innerSidebarWidth,\n };\n\n return (\n \n \n {isLoading ? : children}\n \n \n \n {isLoading && }\n {!isLoading && }\n \n \n \n );\n};\n\nconst SidebarWrapper = ({ secondarySections }: { secondarySections: AsideSections }) => {\n return (\n
\n {secondarySections\n .filter((section) => section !== null)\n .filter((section) => section?.content !== null)\n .map(({ title, isTitleLoading, content, id }, index) => (\n \n ))}\n
\n );\n};\n\nexport const AsideSectionTitle = ({ children }: { children: ReactNode }) => {\n const { theme } = useDesignSystemTheme();\n return (\n \n {children}\n \n );\n};\n\nconst AsideSection = ({\n title,\n content,\n index,\n isTitleLoading = false,\n}: Omit & {\n index: number;\n}) => {\n const { theme } = useDesignSystemTheme();\n\n const titleComponent = isTitleLoading ? (\n \n }\n />\n ) : title ? (\n {title}\n ) : null;\n\n const compactStyles = { padding: `${theme.spacing.md}px 0 ${theme.spacing.md}px 0` };\n\n return (\n \n {titleComponent}\n {content}\n \n );\n};\n\nexport const KeyValueProperty = ({\n keyValue,\n value,\n maxWidth,\n}: {\n keyValue: string;\n value: React.ReactNode;\n maxWidth?: number | string;\n}) => {\n const { theme } = useDesignSystemTheme();\n return (\n \n \n {keyValue}\n \n \n {value}\n \n \n );\n};\n\nexport const NoneCell = () => {\n return (\n \n \n \n );\n};\n","import type { LoggedModelProto, RunEntity } from '../../types';\nimport { useEffect, useMemo } from 'react';\nimport { compact, sortBy, uniq } from 'lodash';\nimport { QueryFunctionContext, useQueries } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { MlflowService } from '../../sdk/MlflowService';\nimport { useArrayMemo } from '../../../common/hooks/useArrayMemo';\n\ntype UseRegisteredModelRelatedRunNamesQueryKey = ['USE_RELATED_RUNS_DATA_FOR_LOGGED_MODELS', { runUuid: string }];\n\nconst getQueryKey = (runUuid: string): UseRegisteredModelRelatedRunNamesQueryKey => [\n 'USE_RELATED_RUNS_DATA_FOR_LOGGED_MODELS',\n { runUuid },\n];\n\nconst queryFn = async ({\n queryKey: [, { runUuid }],\n}: QueryFunctionContext): Promise => {\n try {\n const data = await MlflowService.getRun({ run_id: runUuid });\n return data?.run;\n } catch (e) {\n return null;\n }\n};\n\n/**\n * Hook used to fetch necessary run data based on metadata found in logged models\n */\nexport const useRelatedRunsDataForLoggedModels = ({ loggedModels = [] }: { loggedModels?: LoggedModelProto[] }) => {\n const runUuids = useMemo(() => {\n // Extract all run ids found in metrics and source run ids\n const allMetricRunUuids = compact(\n loggedModels?.flatMap((loggedModel) => loggedModel?.data?.metrics?.map((metric) => metric.run_id)),\n );\n const allSourceRunUuids = compact(loggedModels?.map((loggedModel) => loggedModel?.info?.source_run_id));\n const distinctRunUuids = sortBy(uniq([...allMetricRunUuids, ...allSourceRunUuids]));\n\n return distinctRunUuids;\n }, [loggedModels]);\n\n const queryResults = useQueries({\n queries: runUuids.map((runUuid) => ({\n queryKey: getQueryKey(runUuid),\n queryFn,\n cacheTime: Infinity,\n staleTime: Infinity,\n refetchOnWindowFocus: false,\n retry: false,\n })),\n });\n\n const loading = queryResults.some(({ isLoading }) => isLoading);\n const error = queryResults.find(({ error }) => error)?.error as Error | undefined;\n\n const memoizedQueryResults = useArrayMemo(queryResults.map(({ data }) => data));\n\n const data = useMemo(\n () => memoizedQueryResults.map((data) => data).filter(Boolean) as RunEntity[],\n [memoizedQueryResults],\n );\n\n return {\n data,\n loading,\n error,\n };\n};\n","import { useRef } from 'react';\n\n/**\n * A custom hook that memoizes an array based on the reference of its elements, not the array itself.\n */\nexport function useArrayMemo(array: T[]) {\n // This holds reference to previous value\n const ref = useRef();\n // Check if each element of the old and new array match\n const areArraysConsideredTheSame =\n ref.current && array.length === ref.current.length\n ? array.every((element, i) => {\n return element === ref.current?.[i];\n })\n : // Initially there's no old array defined/stored, so set to false\n false;\n\n if (!areArraysConsideredTheSame) {\n ref.current = array;\n }\n\n return areArraysConsideredTheSame && ref.current ? ref.current : array;\n}\n","import { UserActionErrorHandler } from '@databricks/web-shared/metrics';\nimport { QueryClient, QueryClientProvider } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { DangerIcon, Empty, PageWrapper } from '@databricks/design-system';\nimport { FormattedMessage } from 'react-intl';\n\nconst PageFallback = ({ error }: { error?: Error }) => {\n return (\n \n \n }\n description={\n error?.message ?? (\n \n )\n }\n image={}\n />\n \n );\n};\n\n/**\n * Wrapper for all experiment logged model pages.\n * Provides error boundaries and user action error handling.\n */\nexport const ExperimentLoggedModelPageWrapper = ({\n children,\n resetKey,\n}: {\n children: React.ReactNode;\n resetKey?: unknown;\n}) => {\n return (\n \n {children}\n \n );\n};\n","import { useCallback } from 'react';\nimport { getArtifactBlob, getLoggedModelArtifactLocationUrl } from '../../../../common/utils/ArtifactUtils';\nimport { MLMODEL_FILE_NAME } from '../../../constants';\nimport type { LoggedModelProto } from '../../../types';\n\nconst lazyJsYaml = () => import('js-yaml');\n\nexport const useValidateLoggedModelSignature = (loggedModel?: LoggedModelProto | null) =>\n useCallback(async () => {\n if (!loggedModel?.info?.model_id || !loggedModel?.info?.artifact_uri) {\n return true;\n }\n\n const artifactLocation = getLoggedModelArtifactLocationUrl(MLMODEL_FILE_NAME, loggedModel.info.model_id);\n const blob = await getArtifactBlob(artifactLocation);\n\n const yamlContent = (await lazyJsYaml()).load(await blob.text());\n\n const isValid = yamlContent?.signature?.inputs !== undefined && yamlContent?.signature?.outputs !== undefined;\n\n return isValid;\n }, [loggedModel]);\n","import { FormattedMessage, useIntl } from 'react-intl';\nimport { LoggedModelProto } from '../../types';\nimport { RegisterModel } from '../../../model-registry/components/RegisterModel';\nimport { useCallback } from 'react';\nimport { ErrorWrapper } from '../../../common/utils/ErrorWrapper';\nimport { CodeSnippet } from '@databricks/web-shared/snippet';\nimport { CopyButton } from '../../../shared/building_blocks/CopyButton';\nimport { CopyIcon, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { useValidateLoggedModelSignature } from './hooks/useValidateLoggedModelSignature';\nimport Utils from '../../../common/utils/Utils';\n\nconst RegisterLoggedModelInUCCodeSnippet = ({ modelId }: { modelId: string }) => {\n const { theme } = useDesignSystemTheme();\n\n const code = `import mlflow\n\nmlflow.set_registry_uri(\"databricks-uc\")\n\nmodel_uri = \"models:/${modelId}\"\nmodel_name = \"main.default.my_model\"\n\nmlflow.register_model(model_uri=model_uri, name=model_name)\n`;\n\n return (\n
\n \n \n \n
\n }\n />\n \n {code}\n \n
\n
\n );\n};\n\nexport const ExperimentLoggedModelDetailsRegisterButton = ({\n loggedModel,\n onSuccess,\n}: {\n loggedModel?: LoggedModelProto | null;\n onSuccess?: () => void;\n}) => {\n const intl = useIntl();\n const handleSuccess = useCallback(\n (data?: { value: { status?: string } }) => {\n onSuccess?.();\n const successTitle = intl.formatMessage({\n defaultMessage: 'Model registered successfully',\n description: 'Notification title for model registration succeeded on the logged model details page',\n });\n Utils.displayGlobalInfoNotification(`${successTitle} ${data?.value?.status ?? ''}`);\n },\n [intl, onSuccess],\n );\n\n const handleError = useCallback(\n (error?: Error | ErrorWrapper) => {\n const errorTitle = intl.formatMessage({\n defaultMessage: 'Error registering model',\n description: 'Notification title for model registration failure on the logged model details page',\n });\n const message = (error instanceof ErrorWrapper ? error.getMessageField() : error?.message) ?? String(error);\n Utils.displayGlobalErrorNotification(`${errorTitle} ${message}`);\n },\n [intl],\n );\n\n /**\n * Function that validates that the model file is valid to be registered in UC (contains signature inputs and outputs),\n * passed to the RegisterModel component.\n */\n const modelFileValidationFn = useValidateLoggedModelSignature(loggedModel);\n\n if (!loggedModel?.info?.artifact_uri || !loggedModel.info.model_id) {\n return null;\n }\n\n return (\n \n );\n};\n","import { FormattedMessage, useIntl } from 'react-intl';\nimport { Link, useNavigate } from '../../../common/utils/RoutingUtils';\nimport Routes from '../../routes';\nimport { PageHeader } from '../../../shared/building_blocks/PageHeader';\nimport {\n Button,\n DropdownMenu,\n GenericSkeleton,\n ModelsIcon,\n OverflowIcon,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport type { UseGetExperimentQueryResultExperiment } from '../../hooks/useExperimentQuery';\nimport type { LoggedModelProto } from '../../types';\nimport { ExperimentLoggedModelDetailsRegisterButton } from './ExperimentLoggedModelDetailsRegisterButton';\nimport { ExperimentPageTabName } from '../../constants';\nimport { useExperimentLoggedModelDeleteModal } from './hooks/useExperimentLoggedModelDeleteModal';\n\nexport const ExperimentLoggedModelDetailsHeader = ({\n experimentId,\n experiment,\n loading = false,\n loggedModel,\n onSuccess,\n}: {\n experimentId: string;\n experiment?: UseGetExperimentQueryResultExperiment;\n loading?: boolean;\n loggedModel?: LoggedModelProto | null;\n onSuccess?: () => void;\n}) => {\n const { theme } = useDesignSystemTheme();\n const modelDisplayName = loggedModel?.info?.name;\n const navigate = useNavigate();\n const intl = useIntl();\n\n const { modalElement: DeleteModalElement, openModal } = useExperimentLoggedModelDeleteModal({\n loggedModel,\n onSuccess: () => {\n navigate(Routes.getExperimentPageTabRoute(experimentId, ExperimentPageTabName.Models));\n },\n });\n\n const getExperimentName = () => {\n if (experiment && 'name' in experiment) {\n return experiment?.name;\n }\n return experimentId;\n };\n\n const breadcrumbs = [\n // eslint-disable-next-line react/jsx-key\n \n {getExperimentName()}\n ,\n // eslint-disable-next-line react/jsx-key\n \n \n ,\n ];\n\n return (\n
\n {loading ? (\n \n ) : (\n \n \n <>{modelDisplayName}\n \n }\n dangerouslyAppendEmotionCSS={{ h2: { display: 'flex', gap: theme.spacing.sm }, wordBreak: 'break-word' }}\n breadcrumbs={breadcrumbs}\n >\n \n \n }\n aria-label={intl.formatMessage({\n defaultMessage: 'More actions',\n description: 'A label for the dropdown menu trigger on the logged model details page',\n })}\n />\n \n \n \n \n \n \n \n \n \n )}\n {DeleteModalElement}\n
\n );\n};\nconst ExperimentLoggedModelDetailsHeaderIcon = () => {\n const { theme } = useDesignSystemTheme();\n return (\n \n \n \n );\n};\n\nconst ExperimentLoggedModelDetailsHeaderSkeleton = () => {\n const { theme } = useDesignSystemTheme();\n\n return (\n
\n
\n \n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n );\n};\n","import { useMutation } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { Alert, Modal, Spacer } from '@databricks/design-system';\nimport { useCallback, useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { loggedModelsDataRequest } from '../../../hooks/logged-models/request.utils';\nimport { LoggedModelProto } from '../../../types';\nimport { getAjaxUrl } from '@mlflow/mlflow/src/common/utils/FetchUtils';\n\nexport const useExperimentLoggedModelDeleteModal = ({\n loggedModel,\n onSuccess,\n}: {\n loggedModel?: LoggedModelProto | null;\n onSuccess?: () => void | Promise;\n}) => {\n const [open, setOpen] = useState(false);\n\n const mutation = useMutation<\n unknown,\n Error,\n {\n loggedModelId: string;\n }\n >({\n mutationFn: async ({ loggedModelId }) => {\n await loggedModelsDataRequest(getAjaxUrl(`ajax-api/2.0/mlflow/logged-models/${loggedModelId}`), 'DELETE');\n },\n });\n\n const { mutate, isLoading, reset: resetMutation } = mutation;\n\n const modalElement = (\n setOpen(false)}\n title={\n \n }\n okText={\n \n }\n okButtonProps={{ danger: true, loading: isLoading }}\n onOk={async () => {\n if (!loggedModel?.info?.model_id) {\n setOpen(false);\n return;\n }\n mutate(\n {\n loggedModelId: loggedModel.info.model_id,\n },\n {\n onSuccess: () => {\n onSuccess?.();\n setOpen(false);\n },\n },\n );\n }}\n cancelText={\n \n }\n >\n {mutation.error?.message && (\n <>\n \n \n \n )}\n \n \n );\n\n const openModal = useCallback(() => {\n resetMutation();\n setOpen(true);\n }, [resetMutation]);\n\n return { modalElement, openModal };\n};\n","import { NavigationMenu } from '@databricks/design-system';\nimport { Link } from '../../../common/utils/RoutingUtils';\nimport Routes from '../../routes';\n\nimport { FormattedMessage } from 'react-intl';\n\nexport const ExperimentLoggedModelDetailsNav = ({\n experimentId,\n modelId,\n activeTabName,\n}: {\n experimentId: string;\n modelId: string;\n activeTabName?: string;\n}) => {\n return (\n \n \n \n \n \n \n \n {/* TODO: Implement when available */}\n {/* \n \n \n \n */}\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { useState } from 'react';\nimport { EditableNote } from '../../../common/components/EditableNote';\nimport type { LoggedModelProto } from '../../types';\nimport { NOTE_CONTENT_TAG } from '../../utils/NoteUtils';\nimport { Button, PencilIcon, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport { usePatchLoggedModelsTags } from '../../hooks/logged-models/usePatchLoggedModelsTags';\nimport { useUserActionErrorHandler } from '@databricks/web-shared/metrics';\n\n/**\n * Displays editable description section in logged model detail overview.\n */\nexport const ExperimentLoggedModelDescription = ({\n loggedModel,\n onDescriptionChanged,\n}: {\n loggedModel?: LoggedModelProto;\n onDescriptionChanged: () => void | Promise;\n}) => {\n const descriptionContent = loggedModel?.info?.tags?.find((tag) => tag.key === NOTE_CONTENT_TAG)?.value ?? undefined;\n\n const [showNoteEditor, setShowDescriptionEditor] = useState(false);\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n const { patch } = usePatchLoggedModelsTags({ loggedModelId: loggedModel?.info?.model_id });\n const { handleError } = useUserActionErrorHandler();\n\n const handleSubmitEditDescription = async (markdown: string) => {\n try {\n await patch({ [NOTE_CONTENT_TAG]: markdown });\n await onDescriptionChanged();\n setShowDescriptionEditor(false);\n } catch (error: any) {\n handleError(error);\n }\n };\n\n const handleCancelEditDescription = () => setShowDescriptionEditor(false);\n\n const isEmpty = !descriptionContent;\n\n return (\n
\n \n \n setShowDescriptionEditor(true)}\n icon={}\n />\n \n {isEmpty && !showNoteEditor && (\n \n \n \n )}\n {(!isEmpty || showNoteEditor) && (\n \n )}\n
\n );\n};\n","import { useMutation } from '@mlflow/mlflow/src/common/utils/reactQueryHooks';\nimport { entries } from 'lodash';\nimport { loggedModelsDataRequest } from './request.utils';\nimport { getAjaxUrl } from '@mlflow/mlflow/src/common/utils/FetchUtils';\n\nexport const usePatchLoggedModelsTags = ({ loggedModelId }: { loggedModelId?: string }) => {\n const { isLoading, error, mutateAsync } = useMutation>({\n mutationFn: async (variables) => {\n const requestBody = {\n tags: entries(variables).map(([key, value]) => ({ key, value })),\n };\n\n return loggedModelsDataRequest(\n getAjaxUrl(`ajax-api/2.0/mlflow/logged-models/${loggedModelId}/tags`),\n 'PATCH',\n requestBody,\n );\n },\n });\n\n return {\n isLoading,\n error,\n patch: mutateAsync,\n } as const;\n};\n","import type { CellContext, ColumnDefTemplate } from '@tanstack/react-table';\nimport { Link } from '../../../common/utils/RoutingUtils';\nimport Routes from '../../routes';\n\nexport const ExperimentLoggedModelDetailsTableRunCellRenderer: ColumnDefTemplate<\n CellContext<\n unknown,\n {\n runId?: string | null;\n runName?: string | null;\n experimentId?: string | null;\n }\n >\n> = ({ getValue }) => {\n const { runName, runId } = getValue() ?? {};\n\n return {runName || runId};\n};\n","import {\n Empty,\n Input,\n SearchIcon,\n Table,\n TableCell,\n TableHeader,\n TableIcon,\n TableRow,\n TableSkeleton,\n Typography,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { useMemo, useState } from 'react';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport {\n type CellContext,\n type ColumnDef,\n type ColumnDefTemplate,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport type { LoggedModelProto, LoggedModelMetricProto, RunEntity } from '../../types';\nimport { ExperimentLoggedModelDetailsTableRunCellRenderer } from './ExperimentLoggedModelDetailsTableRunCellRenderer';\nimport { ExperimentLoggedModelDatasetButton } from './ExperimentLoggedModelDatasetButton';\nimport { useExperimentTrackingDetailsPageLayoutStyles } from '../../hooks/useExperimentTrackingDetailsPageLayoutStyles';\n\ninterface LoggedModelMetricWithRunData extends LoggedModelMetricProto {\n experimentId?: string | null;\n runName?: string | null;\n}\n\ntype MetricTableCellRenderer = ColumnDefTemplate>;\ntype ColumnMeta = {\n styles?: React.CSSProperties;\n};\n\nconst SingleDatasetCellRenderer = ({\n getValue,\n}: CellContext<\n LoggedModelMetricProto,\n {\n datasetName: string;\n datasetDigest: string;\n runId: string | null;\n }\n>) => {\n const { datasetDigest, datasetName, runId } = getValue();\n\n if (!datasetName) {\n return '-';\n }\n\n return ;\n};\n\nexport const ExperimentLoggedModelDetailsMetricsTable = ({\n loggedModel,\n relatedRunsData,\n relatedRunsLoading,\n}: {\n loggedModel?: LoggedModelProto;\n relatedRunsData?: RunEntity[];\n relatedRunsLoading?: boolean;\n}) => {\n const { theme } = useDesignSystemTheme();\n const {\n usingUnifiedDetailsLayout,\n detailsPageTableStyles,\n detailsPageNoEntriesStyles,\n detailsPageNoResultsWrapperStyles,\n } = useExperimentTrackingDetailsPageLayoutStyles();\n const intl = useIntl();\n const [filter, setFilter] = useState('');\n\n const metricsWithRunData = useMemo(() => {\n if (relatedRunsLoading) {\n return [];\n }\n return (\n loggedModel?.data?.metrics?.map((metric) => {\n const runName = relatedRunsData?.find((run) => run.info?.runUuid === metric.run_id)?.info?.runName;\n return {\n ...metric,\n experimentId: loggedModel.info?.experiment_id,\n runName,\n };\n }) ?? []\n );\n }, [loggedModel, relatedRunsLoading, relatedRunsData]);\n\n const filteredMetrics = useMemo(\n () =>\n metricsWithRunData.filter(({ key, dataset_name, dataset_digest, runName }) => {\n const filterLower = filter.toLowerCase();\n return (\n key?.toLowerCase().includes(filterLower) ||\n dataset_name?.toLowerCase().includes(filterLower) ||\n dataset_digest?.toLowerCase().includes(filterLower) ||\n runName?.toLowerCase().includes(filterLower)\n );\n }),\n [filter, metricsWithRunData],\n );\n\n const columns = useMemo[]>(\n () => [\n {\n id: 'metric',\n accessorKey: 'key',\n header: intl.formatMessage({\n defaultMessage: 'Metric',\n description: 'Label for the metric column in the logged model details metrics table',\n }),\n enableResizing: true,\n size: 240,\n },\n {\n id: 'dataset',\n header: intl.formatMessage({\n defaultMessage: 'Dataset',\n description: 'Label for the dataset column in the logged model details metrics table',\n }),\n accessorFn: ({ dataset_name: datasetName, dataset_digest: datasetDigest, run_id: runId }) => ({\n datasetName,\n datasetDigest,\n runId,\n }),\n enableResizing: true,\n cell: SingleDatasetCellRenderer as MetricTableCellRenderer,\n },\n {\n id: 'sourceRun',\n header: intl.formatMessage({\n defaultMessage: 'Source run',\n description:\n \"Label for the column indicating a run being the source of the logged model's metric (i.e. source run). Displayed in the logged model details metrics table.\",\n }),\n accessorFn: ({ run_id: runId, runName, experimentId }) => ({\n runId,\n runName,\n experimentId,\n }),\n enableResizing: true,\n cell: ExperimentLoggedModelDetailsTableRunCellRenderer as MetricTableCellRenderer,\n },\n {\n id: 'value',\n header: intl.formatMessage({\n defaultMessage: 'Value',\n description: 'Label for the value column in the logged model details metrics table',\n }),\n accessorKey: 'value',\n // In full-width layout, let \"Value\" fill the remaining space\n enableResizing: !usingUnifiedDetailsLayout,\n meta: usingUnifiedDetailsLayout\n ? {\n styles: {\n minWidth: 120,\n },\n }\n : {},\n },\n ],\n [intl, usingUnifiedDetailsLayout],\n );\n\n const table = useReactTable({\n data: filteredMetrics,\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getRowId: (row) => [row.key, row.dataset_digest, row.run_id].join('.') ?? '',\n enableColumnResizing: true,\n columnResizeMode: 'onChange',\n columns,\n });\n\n const renderTableContent = () => {\n if (relatedRunsLoading) {\n return ;\n }\n if (!metricsWithRunData.length) {\n return (\n
\n \n }\n />\n
\n );\n }\n\n const areAllResultsFiltered = filteredMetrics.length < 1;\n\n return (\n <>\n
\n }\n placeholder={intl.formatMessage({\n defaultMessage: 'Search metrics',\n description: 'Placeholder text for the search input in the logged model details metrics table',\n })}\n value={filter}\n onChange={(e) => setFilter(e.target.value)}\n allowClear\n />\n
\n element?.setAttribute('data-testid', 'logged-model-details-metrics-table')}\n scrollable\n empty={\n areAllResultsFiltered ? (\n
\n \n }\n />\n
\n ) : null\n }\n css={detailsPageTableStyles}\n >\n \n {table.getLeafHeaders().map((header, index) => (\n \n {flexRender(header.column.columnDef.header, header.getContext())}\n \n ))}\n \n {table.getRowModel().rows.map((row) => (\n \n {row.getAllCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))}\n \n \n );\n };\n\n return (\n
\n \n \n \n \n {renderTableContent()}\n
\n \n );\n};\n","import {\n Empty,\n Input,\n Overflow,\n SearchIcon,\n Table,\n TableCell,\n TableHeader,\n TableRow,\n TableSkeleton,\n Typography,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { useIntl } from 'react-intl';\nimport {\n CellContext,\n ColumnDef,\n ColumnDefTemplate,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport { entries, groupBy, isEmpty, uniqBy } from 'lodash';\nimport { useMemo, useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { LoggedModelProto, RunEntity } from '../../types';\nimport { ExperimentLoggedModelDetailsTableRunCellRenderer } from './ExperimentLoggedModelDetailsTableRunCellRenderer';\nimport { ExperimentLoggedModelDatasetButton } from './ExperimentLoggedModelDatasetButton';\nimport { useExperimentTrackingDetailsPageLayoutStyles } from '../../hooks/useExperimentTrackingDetailsPageLayoutStyles';\n\ninterface RunsTableRow {\n experimentId?: string;\n runName?: string;\n runId: string;\n datasets: {\n datasetName: string;\n datasetDigest: string;\n runId: string;\n }[];\n}\n\ntype RunsTableCellRenderer = ColumnDefTemplate>;\n\nconst DatasetListCellRenderer = ({ getValue }: CellContext) => {\n const datasets = getValue() ?? [];\n\n if (isEmpty(datasets)) {\n return <>-;\n }\n\n return (\n \n {datasets.map(({ datasetDigest, datasetName, runId }) => (\n \n ))}\n \n );\n};\n\nexport const ExperimentLoggedModelDetailsPageRunsTable = ({\n loggedModel,\n relatedRunsData,\n relatedRunsLoading,\n}: {\n loggedModel?: LoggedModelProto;\n relatedRunsData?: RunEntity[];\n relatedRunsLoading?: boolean;\n}) => {\n const { theme } = useDesignSystemTheme();\n const { detailsPageTableStyles, detailsPageNoEntriesStyles, detailsPageNoResultsWrapperStyles } =\n useExperimentTrackingDetailsPageLayoutStyles();\n const intl = useIntl();\n const [filter, setFilter] = useState('');\n\n const runsWithDatasets = useMemo(() => {\n if (relatedRunsLoading) {\n return [];\n }\n const allMetrics = loggedModel?.data?.metrics ?? [];\n const runsByDatasets = groupBy(allMetrics, 'run_id');\n if (loggedModel?.info?.source_run_id && !runsByDatasets[loggedModel.info.source_run_id]) {\n runsByDatasets[loggedModel.info.source_run_id] = [];\n }\n return entries(runsByDatasets).map(([runId, metrics]) => {\n // Locate unique dataset entries\n const distinctDatasets = uniqBy(metrics, 'dataset_name')\n .map(({ dataset_digest, dataset_name }) => ({\n datasetDigest: dataset_digest,\n datasetName: dataset_name,\n runId,\n }))\n .filter((dataset) => Boolean(dataset.datasetName) || Boolean(dataset.datasetDigest));\n\n const runName = relatedRunsData?.find((run) => run.info?.runUuid === runId)?.info?.runName;\n return {\n runId,\n runName,\n datasets: distinctDatasets,\n experimentId: loggedModel?.info?.experiment_id,\n };\n });\n }, [loggedModel, relatedRunsLoading, relatedRunsData]);\n\n const filteredRunsWithDatasets = useMemo(\n () =>\n runsWithDatasets.filter(({ runName, datasets }) => {\n const filterLower = filter.toLowerCase();\n return (\n runName?.toLowerCase().includes(filterLower) ||\n datasets.find((d) => d.datasetName?.toLowerCase().includes(filterLower))\n );\n }),\n [filter, runsWithDatasets],\n );\n\n const columns = useMemo[]>(\n () => [\n {\n id: 'run',\n header: intl.formatMessage({\n defaultMessage: 'Run',\n description: 'Column header for the run name in the runs table on the logged model details page',\n }),\n enableResizing: true,\n size: 240,\n accessorFn: ({ runId, runName, experimentId }) => ({\n runId,\n runName,\n experimentId,\n }),\n cell: ExperimentLoggedModelDetailsTableRunCellRenderer as RunsTableCellRenderer,\n },\n {\n id: 'input',\n header: intl.formatMessage({\n defaultMessage: 'Input',\n description: 'Column header for the input in the runs table on the logged model details page',\n }),\n accessorKey: 'datasets',\n enableResizing: false,\n cell: DatasetListCellRenderer as RunsTableCellRenderer,\n },\n ],\n [intl],\n );\n\n const table = useReactTable({\n data: filteredRunsWithDatasets,\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getRowId: (row) => row.key,\n enableColumnResizing: true,\n columnResizeMode: 'onChange',\n columns,\n });\n\n const renderTableContent = () => {\n if (relatedRunsLoading) {\n return ;\n }\n if (!runsWithDatasets.length) {\n return (\n
\n \n }\n />\n
\n );\n }\n\n const areAllResultsFiltered = filteredRunsWithDatasets.length < 1;\n\n return (\n <>\n
\n }\n placeholder={intl.formatMessage({\n defaultMessage: 'Search runs',\n description: 'Placeholder text for the search input in the runs table on the logged model details page',\n })}\n value={filter}\n onChange={(e) => setFilter(e.target.value)}\n allowClear\n />\n
\n element?.setAttribute('data-testid', 'logged-model-details-runs-table')}\n empty={\n areAllResultsFiltered ? (\n
\n \n }\n />\n
\n ) : null\n }\n css={detailsPageTableStyles}\n >\n \n {table.getLeafHeaders().map((header, index) => (\n \n {flexRender(header.column.columnDef.header, header.getContext())}\n \n ))}\n \n {table.getRowModel().rows.map((row) => (\n \n {row.getAllCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))}\n \n \n );\n };\n\n return (\n
\n Runs\n \n {renderTableContent()}\n
\n \n );\n};\n","import { Overflow } from '@databricks/design-system';\nimport { useMemo } from 'react';\nimport { type LoggedModelProto } from '../../types';\nimport { ExperimentLoggedModelDatasetButton } from './ExperimentLoggedModelDatasetButton';\n\nexport const ExperimentLoggedModelAllDatasetsList = ({\n loggedModel,\n empty,\n}: {\n loggedModel: LoggedModelProto;\n empty?: React.ReactElement;\n}) => {\n const uniqueDatasets = useMemo(() => {\n const allMetrics = loggedModel.data?.metrics ?? [];\n return allMetrics.reduce<{ dataset_name: string; dataset_digest: string; run_id: string | undefined }[]>(\n (aggregate, { dataset_digest, dataset_name, run_id }) => {\n if (\n dataset_name &&\n dataset_digest &&\n !aggregate.find(\n (dataset) => dataset.dataset_name === dataset_name && dataset.dataset_digest === dataset_digest,\n )\n ) {\n aggregate.push({ dataset_name, dataset_digest, run_id });\n }\n return aggregate;\n },\n [],\n );\n }, [loggedModel]);\n\n if (!uniqueDatasets.length) {\n return empty ?? <>-;\n }\n\n return (\n \n {uniqueDatasets.map(({ dataset_digest, dataset_name, run_id }) => (\n \n ))}\n \n );\n};\n","import { Overflow, Tag, useDesignSystemTheme } from '@databricks/design-system';\nimport { type LoggedModelProto } from '../../types';\nimport { useExperimentLoggedModelRegisteredVersions } from './hooks/useExperimentLoggedModelRegisteredVersions';\nimport { isEmpty } from 'lodash';\nimport { Link } from '../../../common/utils/RoutingUtils';\nimport { useMemo } from 'react';\nimport { ReactComponent as RegisteredModelOkIcon } from '../../../common/static/registered-model-grey-ok.svg';\n\nexport const ExperimentLoggedModelDetailsModelVersionsList = ({\n loggedModel,\n empty,\n}: {\n loggedModel: LoggedModelProto;\n empty?: React.ReactElement;\n}) => {\n const loggedModels = useMemo(() => [loggedModel], [loggedModel]);\n const { theme } = useDesignSystemTheme();\n const { modelVersions } = useExperimentLoggedModelRegisteredVersions({ loggedModels });\n\n if (isEmpty(modelVersions)) {\n return empty ?? <>-;\n }\n\n return (\n \n {modelVersions?.map(({ displayedName, version, link }) => (\n \n \n {displayedName}{' '}\n \n v{version}\n \n ))}\n \n );\n};\n","import { GenericSkeleton, useDesignSystemTheme } from '@databricks/design-system';\nimport { LoggedModelProto, RunEntity } from '../../../types';\nimport { useIntl } from 'react-intl';\nimport { ExperimentLoggedModelTableDateCell } from '../ExperimentLoggedModelTableDateCell';\nimport { ExperimentLoggedModelStatusIndicator } from '../ExperimentLoggedModelStatusIndicator';\nimport { DetailsOverviewCopyableIdBox } from '../../DetailsOverviewCopyableIdBox';\nimport { Link } from '../../../../common/utils/RoutingUtils';\nimport Routes from '../../../routes';\nimport { KeyValueProperty, NoneCell, AsideSections } from '@databricks/web-shared/utils';\nimport { ExperimentLoggedModelSourceBox } from '../ExperimentLoggedModelSourceBox';\nimport { ExperimentLoggedModelAllDatasetsList } from '../ExperimentLoggedModelAllDatasetsList';\nimport { ExperimentLoggedModelDetailsModelVersionsList } from '../ExperimentLoggedModelDetailsModelVersionsList';\nimport { MLFLOW_LOGGED_MODEL_USER_TAG } from '../../../constants';\n\nenum ExperimentLoggedModelDetailsMetadataSections {\n DETAILS = 'DETAILS',\n DATASETS = 'DATASETS',\n MODEL_VERSIONS = 'MODEL_VERSIONS',\n}\n\nexport const useExperimentLoggedModelDetailsMetadataV2 = ({\n loggedModel,\n relatedRunsLoading,\n relatedSourceRun,\n}: {\n loggedModel?: LoggedModelProto;\n relatedRunsLoading?: boolean;\n relatedSourceRun?: RunEntity;\n}): AsideSections => {\n const intl = useIntl();\n const { theme } = useDesignSystemTheme();\n\n const detailsContent = loggedModel && (\n <>\n }\n />\n tag.key === MLFLOW_LOGGED_MODEL_USER_TAG)?.value ?? '-'}\n />\n }\n />\n \n }\n />\n {loggedModel.info?.source_run_id &&\n loggedModel.info?.experiment_id &&\n (relatedRunsLoading || relatedSourceRun) && (\n \n ) : (\n \n {relatedSourceRun?.info?.runName}\n \n )\n }\n />\n )}\n {loggedModel.info?.source_run_id && (\n \n {loggedModel.info?.source_run_id}\n \n ) : undefined\n }\n />\n }\n />\n )}\n \n }\n />\n \n );\n\n return [\n {\n id: ExperimentLoggedModelDetailsMetadataSections.DETAILS,\n title: intl.formatMessage({\n defaultMessage: 'About this logged model',\n description: 'Title for the details sidebar of a logged model on the logged model details page',\n }),\n content: detailsContent,\n },\n {\n id: ExperimentLoggedModelDetailsMetadataSections.DATASETS,\n title: intl.formatMessage({\n defaultMessage: 'Datasets used',\n description: 'Label for the datasets used by a logged model on the logged model details page',\n }),\n content: loggedModel && } />,\n },\n {\n id: ExperimentLoggedModelDetailsMetadataSections.MODEL_VERSIONS,\n title: intl.formatMessage({\n defaultMessage: 'Model versions',\n description: 'Label for the model versions of a logged model on the logged model details page',\n }),\n content: loggedModel && (\n } loggedModel={loggedModel} />\n ),\n },\n ];\n};\n","import { Alert, GenericSkeleton, Spacer, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport type { LoggedModelProto } from '../../types';\nimport { KeyValueEntity } from '../../../common/types';\nimport { DetailsOverviewMetadataTable } from '../DetailsOverviewMetadataTable';\nimport { DetailsOverviewMetadataRow } from '../DetailsOverviewMetadataRow';\nimport { FormattedMessage } from 'react-intl';\nimport { ExperimentLoggedModelTableDateCell } from './ExperimentLoggedModelTableDateCell';\nimport { ExperimentLoggedModelStatusIndicator } from './ExperimentLoggedModelStatusIndicator';\nimport { DetailsOverviewCopyableIdBox } from '../DetailsOverviewCopyableIdBox';\nimport { ExperimentLoggedModelDescription } from './ExperimentLoggedModelDescription';\nimport { DetailsOverviewParamsTable } from '../DetailsOverviewParamsTable';\nimport { useMemo } from 'react';\nimport { isEmpty, keyBy } from 'lodash';\nimport { ExperimentLoggedModelDetailsMetricsTable } from './ExperimentLoggedModelDetailsMetricsTable';\nimport { ExperimentLoggedModelDetailsPageRunsTable } from './ExperimentLoggedModelDetailsRunsTable';\nimport { useRelatedRunsDataForLoggedModels } from '../../hooks/logged-models/useRelatedRunsDataForLoggedModels';\nimport { Link } from '../../../common/utils/RoutingUtils';\nimport Routes from '../../routes';\nimport { ExperimentLoggedModelAllDatasetsList } from './ExperimentLoggedModelAllDatasetsList';\nimport { ExperimentLoggedModelOpenDatasetDetailsContextProvider } from './hooks/useExperimentLoggedModelOpenDatasetDetails';\nimport { ExperimentLoggedModelDetailsModelVersionsList } from './ExperimentLoggedModelDetailsModelVersionsList';\nimport { useExperimentTrackingDetailsPageLayoutStyles } from '../../hooks/useExperimentTrackingDetailsPageLayoutStyles';\nimport { ExperimentLoggedModelSourceBox } from './ExperimentLoggedModelSourceBox';\nimport { DetailsPageLayout } from '../../../common/components/details-page-layout/DetailsPageLayout';\nimport { useExperimentLoggedModelDetailsMetadataV2 } from './hooks/useExperimentLoggedModelDetailsMetadataV2';\nimport { MLFLOW_LOGGED_MODEL_USER_TAG } from '../../constants';\n\nexport const ExperimentLoggedModelDetailsOverview = ({\n onDataUpdated,\n loggedModel,\n}: {\n onDataUpdated: () => void | Promise;\n loggedModel?: LoggedModelProto;\n}) => {\n const { theme } = useDesignSystemTheme();\n const { usingUnifiedDetailsLayout } = useExperimentTrackingDetailsPageLayoutStyles();\n\n // Fetch related runs data for the logged model\n const {\n data: relatedRunsData,\n loading: relatedRunsLoading,\n error: relatedRunsDataError,\n } = useRelatedRunsDataForLoggedModels({ loggedModels: loggedModel ? [loggedModel] : [] });\n\n const relatedSourceRun = useMemo(\n () => relatedRunsData?.find((r) => r.info?.runUuid === loggedModel?.info?.source_run_id),\n [loggedModel?.info?.source_run_id, relatedRunsData],\n );\n\n const paramsDictionary = useMemo(\n () =>\n keyBy(\n (loggedModel?.data?.params ?? []).filter(({ key, value }) => !isEmpty(key) && !isEmpty(value)),\n 'key',\n ) as Record,\n [loggedModel?.data?.params],\n );\n\n const renderDetails = () => {\n if (!loggedModel) {\n return null;\n }\n return (\n \n \n }\n value={}\n />\n \n }\n value={loggedModel.info?.tags?.find((tag) => tag.key === MLFLOW_LOGGED_MODEL_USER_TAG)?.value ?? '-'}\n />\n \n }\n value={}\n />\n \n }\n value={}\n />\n {/* If the logged model has a source run, display the source run name after its loaded */}\n {loggedModel.info?.source_run_id &&\n loggedModel.info?.experiment_id &&\n (relatedRunsLoading || relatedSourceRun) && (\n \n }\n value={\n // Display a skeleton while loading\n relatedRunsLoading ? (\n \n ) : (\n \n {relatedSourceRun?.info?.runName}\n \n )\n }\n />\n )}\n {loggedModel.info?.source_run_id && (\n \n }\n value={}\n />\n )}\n \n }\n value={}\n />\n \n }\n value={}\n />\n \n }\n value={}\n />\n \n );\n };\n\n const detailsSectionsV2 = useExperimentLoggedModelDetailsMetadataV2({\n loggedModel,\n relatedRunsLoading,\n relatedSourceRun,\n });\n\n return (\n \n \n \n {!usingUnifiedDetailsLayout && (\n <>\n \n \n \n {renderDetails()}\n \n )}\n {relatedRunsDataError?.message && (\n <>\n \n }\n type=\"error\"\n componentId=\"mlflow.logged_model.details.related_runs.error\"\n />\n \n \n )}\n \n \n \n \n \n \n \n );\n};\n","import type { LoggedModelProto } from '../../types';\nimport ArtifactPage from '../ArtifactPage';\n\nexport const ExperimentLoggedModelDetailsArtifacts = ({ loggedModel }: { loggedModel: LoggedModelProto }) => (\n
\n \n
\n);\n","import { Alert, CopyIcon, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { CodeSnippet } from '@databricks/web-shared/snippet';\nimport { FormattedMessage } from 'react-intl';\nimport { CopyButton } from '../../../shared/building_blocks/CopyButton';\n\nexport const ExperimentLoggedModelDetailsTracesIntroductionText = ({ modelId }: { modelId: string }) => {\n const { theme } = useDesignSystemTheme();\n const code = `import mlflow\n \nmlflow.set_active_model(model_id=\"${modelId}\")`;\n\n return (\n <>\n \n MLflow documentation.\"\n description=\"Message that explains the function of the 'Traces' tab in logged model page. This message is followed by a tutorial explaining how to get started with MLflow Tracing.\"\n values={{\n a: (text: string) => (\n \n {text}\n \n ),\n }}\n />\n \n \n mlflow.set_active_model
,\n }}\n />\n \n \n
\n }\n />\n \n {code}\n \n
\n
\n \n \n \n \n );\n};\n","import { useEffect, useMemo } from 'react';\nimport type { LoggedModelProto } from '../../types';\nimport { TracesView } from '../traces/TracesView';\nimport { ExperimentLoggedModelDetailsTracesIntroductionText } from './ExperimentLoggedModelDetailsTracesIntroductionText';\nimport { TracesViewTableNoTracesQuickstartContextProvider } from '../traces/quickstart/TracesViewTableNoTracesQuickstartContext';\n\nexport const ExperimentLoggedModelDetailsTraces = ({ loggedModel }: { loggedModel: LoggedModelProto }) => {\n const experimentIds = useMemo(() => [loggedModel.info?.experiment_id ?? ''], [loggedModel.info?.experiment_id]);\n\n if (!loggedModel.info?.experiment_id) {\n return null;\n }\n return (\n
\n \n )\n }\n displayVersionWarnings={false}\n >\n \n \n
\n );\n};\n\nconst TracesComponent = ({\n experimentIds,\n loggedModelId,\n}: {\n experimentIds: string[];\n loggedModelId: string | undefined;\n}) => {\n return (\n \n );\n};\n","import { Alert, PageWrapper, TableSkeleton, useDesignSystemTheme } from '@databricks/design-system';\nimport invariant from 'invariant';\nimport { useParams } from '../../../common/utils/RoutingUtils';\nimport { ExperimentLoggedModelDetailsHeader } from '../../components/experiment-logged-models/ExperimentLoggedModelDetailsHeader';\nimport { ExperimentLoggedModelPageWrapper } from './ExperimentLoggedModelPageWrapper';\nimport { ExperimentLoggedModelDetailsNav } from '../../components/experiment-logged-models/ExperimentLoggedModelDetailsNav';\nimport { ExperimentLoggedModelDetailsOverview } from '../../components/experiment-logged-models/ExperimentLoggedModelDetailsOverview';\nimport { useGetLoggedModelQuery } from '../../hooks/logged-models/useGetLoggedModelQuery';\nimport { useGetExperimentQuery } from '../../hooks/useExperimentQuery';\nimport React from 'react';\nimport { ExperimentLoggedModelDetailsArtifacts } from '../../components/experiment-logged-models/ExperimentLoggedModelDetailsArtifacts';\nimport { useUserActionErrorHandler } from '@databricks/web-shared/metrics';\nimport { FormattedMessage } from 'react-intl';\nimport { ExperimentLoggedModelDetailsTraces } from '../../components/experiment-logged-models/ExperimentLoggedModelDetailsTraces';\n\n/**\n * Temporary \"in construction\" placeholder box, to be removed after implementing the actual content.\n */\nconst PlaceholderBox = ({ children }: { children: React.ReactNode }) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n \n {children}\n \n );\n};\n\nconst ExperimentLoggedModelDetailsPageImpl = () => {\n const { experimentId, loggedModelId, tabName } = useParams();\n const { clearUserActionError, currentUserActionError } = useUserActionErrorHandler();\n\n invariant(experimentId, 'Experiment ID must be defined');\n invariant(loggedModelId, 'Logged model ID must be defined');\n\n const { theme } = useDesignSystemTheme();\n const {\n data: loggedModel,\n isLoading: loggedModelLoading,\n error: loggedModelLoadError,\n refetch,\n } = useGetLoggedModelQuery({ loggedModelId });\n const {\n data: experimentData,\n loading: experimentLoading,\n apiError: experimentApiError,\n apolloError: experimentApolloError,\n } = useGetExperimentQuery({ experimentId });\n\n // If there is an unrecoverable error loading the model, throw it to be handled by the error boundary\n if (loggedModelLoadError) {\n throw loggedModelLoadError;\n }\n\n const experimentLoadError = experimentApiError ?? experimentApolloError;\n\n const renderSelectedTab = () => {\n if (loggedModelLoading) {\n return ;\n }\n\n // TODO: implement error handling\n if (!loggedModel) {\n return null;\n }\n\n if (tabName === 'traces') {\n return ;\n } else if (tabName === 'artifacts') {\n return ;\n }\n\n return ;\n };\n\n return (\n <>\n \n {currentUserActionError && (\n \n )}\n {experimentLoadError?.message && (\n \n }\n closable={false}\n />\n )}\n \n
{renderSelectedTab()}
\n \n );\n};\n\nconst ExperimentLoggedModelDetailsPage = () => {\n const { theme } = useDesignSystemTheme();\n return (\n \n \n \n \n \n );\n};\n\nexport default ExperimentLoggedModelDetailsPage;\n","import spinner from '../static/mlflow-spinner.png';\nimport { Interpolation, keyframes, Theme } from '@emotion/react';\n\ntype Props = {\n showImmediately?: boolean;\n};\n\nexport function Spinner({ showImmediately }: Props) {\n return (\n
styles.spinner(theme, showImmediately)}>\n \"Page\n
\n );\n}\n\nconst styles = {\n spinner: (theme: Theme, immediate?: boolean): Interpolation => ({\n width: 100,\n marginTop: 100,\n marginLeft: 'auto',\n marginRight: 'auto',\n\n img: {\n position: 'absolute',\n opacity: 0,\n top: '50%',\n left: '50%',\n width: theme.general.heightBase * 2,\n height: theme.general.heightBase * 2,\n marginTop: -theme.general.heightBase,\n marginLeft: -theme.general.heightBase,\n animation: `${keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n `} 3s linear infinite`,\n animationDelay: immediate ? '0s' : '0.5s',\n },\n }),\n};\n"],"names":["module","exports","condition","format","a","b","c","d","e","f","error","undefined","Error","args","argIndex","replace","name","framesToPop","_converter","getMarkdownConverter","Converter","setFlavor","sanitizerOptions","allowedTags","allowedAttributes","img","div","sanitizeConvertedHtml","dirtyHtml","sanitizeHtml","forceAnchorTagNewTab","html","RegExp","useMarkdownConverter","useCallback","markdown","makeHtml","SectionErrorBoundary","React","constructor","state","componentDidCatch","errorInfo","this","setState","console","renderErrorMessage","props","showServerError","_jsxs","children","message","render","_jsx","className","css","classNames","wrapper","href","Utils","getSupportPageUrl","target","marginLeft","PreviewBadge","theme","useDesignSystemTheme","Tag","componentId","_css","spacing","xs","color","FormattedMessage","id","defaultMessage","_ref","styles","CopyButton","copyText","showLabel","buttonProps","showTooltip","setShowTooltip","useState","LegacyTooltip","title","dangerouslySetAntdProps","visible","Button","type","onClick","handleClick","navigator","clipboard","writeText","setTimeout","onMouseLeave","handleMouseLeave","RequestStateWrapper","Component","shouldRender","shouldRenderError","getErrorRequests","requests","requestIdsWith404sToIgnore","filter","r","includes","getErrorCode","ErrorCodes","RESOURCE_DOES_NOT_EXIST","getDerivedStateFromProps","nextProps","length","every","active","requestErrors","getRenderedContent","customSpinner","permissionDeniedView","suppressErrorThrow","customRequestErrorHandlerFn","permissionDeniedErrors","failedRequest","PERMISSION_DENIED","shouldOptimisticallyRender","triggerError","Spinner","defaultProps","connect","mapStateToProps","ownProps","getApis","requestIds","GET_EXPERIMENT_QUERY","gql","useGetExperimentQuery","experimentId","options","_data$mlflowGetExperi","data","loading","apolloError","refetch","useQuery","variables","input","skip","mlflowGetExperiment","experiment","apiError","getApiError","_data$mlflowGetExperi2","u","i","o","l","v","m","g","current","p","window","w","TypeError","s","leading","x","trailing","h","y","debounceOnServer","F","Math","max","maxWait","n","A","t","apply","cancelAnimationFrame","requestAnimationFrame","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn","QueriesObserver","Subscribable","client","queries","super","result","observers","observersMap","setQueries","onSubscribe","listeners","size","forEach","observer","subscribe","onUpdate","onUnsubscribe","destroy","Set","notifyOptions","notifyManager","batch","prevObservers","newObserverMatches","findMatchingObservers","match","setOptions","defaultedQueryOptions","newObservers","map","newObserversMap","Object","fromEntries","queryHash","newResult","getCurrentResult","hasIndexChange","some","index","hasListeners","difference","notify","getQueries","getCurrentQuery","getObservers","getOptimisticResult","prevObserversMap","Map","defaultQueryOptions","matchingObservers","flatMap","defaultedOptions","get","matchedQueryHashes","unmatchedQueries","has","matchingObserversSet","unmatchedObservers","prevObserver","getObserver","currentObserver","QueryObserver","newOrReusedObservers","keepPreviousData","previouslyUsedObserver","concat","sort","sortMatchesByOrderOfQueries","indexOf","replaceAt","listener","useQueries","context","queryClient","useQueryClient","isRestoring","useIsRestoring","errorResetBoundary","useQueryErrorResetBoundary","defaultedQueries","_optimisticResults","query","ensureStaleTime","ensurePreventErrorBoundaryRetry","useClearResetErrorBoundary","optimisticResult","useSyncExternalStore","onStoreChange","batchCalls","suspensePromises","shouldSuspend","queryObserver","fetchOptimistic","willFetch","Promise","all","observerQueries","firstSingleResultWhichShouldThrow","find","_defaultedQueries$ind","_defaultedQueries$ind2","getHasError","useErrorBoundary","OverflowMenu","menu","overflowMenu","Menu","itemName","otherProps","Item","Dropdown","overlay","trigger","placement","arrow","icon","OverflowIcon","PageHeader","breadcrumbs","titleAddOns","preview","spacerSize","hideSpacer","dangerouslyAppendEmotionCSS","useIntl","_Fragment","Header","Breadcrumb","includeTrailingCaret","buttons","Spacer","flexShrink","display","coerceToEnum","enumObj","value","fallback","ref","sizeMap","matchedSize","setMatchedSize","useEffect","handleResize","elementWidth","offsetWidth","matchedKey","keys","key","resizeObserver","ResizeObserver","observe","disconnect","SIDEBAR_WIDTHS","sm","lg","OverviewLayout","isLoading","asideSections","isTabLayout","sidebarSize","verticalStackOrder","containerRef","useRef","stackVertically","useResponsiveContainer","small","responsive","breakpoints","verticalDisplayPrimaryContentOnTop","totalSidebarWidth","innerSidebarWidth","secondaryStackedStyles","width","borderBottom","colors","border","paddingBottom","flexDirection","gap","flexGrow","md","GenericSkeleton","style","marginTop","SidebarWrapper","secondarySections","section","content","isTitleLoading","AsideSection","AsideSectionTitle","Typography","Title","level","whiteSpace","marginRight","titleComponent","ParagraphSkeleton","label","compactStyles","padding","borderTop","KeyValueProperty","keyValue","maxWidth","alignItems","marginBottom","wordBreak","lineHeight","typography","lineHeightLg","textSecondary","flex","alignSelf","NoneCell","Text","getQueryKey","runUuid","queryFn","async","queryKey","MlflowService","getRun","run_id","run","useRelatedRunsDataForLoggedModels","loggedModels","_queryResults$find","runUuids","useMemo","allMetricRunUuids","compact","loggedModel","_loggedModel$data","_loggedModel$data$met","metrics","metric","allSourceRunUuids","_loggedModel$info","info","source_run_id","sortBy","uniq","queryResults","cacheTime","Infinity","staleTime","refetchOnWindowFocus","retry","memoizedQueryResults","array","areArraysConsideredTheSame","element","_ref$current","useArrayMemo","Boolean","PageFallback","_error$message","PageWrapper","Empty","description","image","DangerIcon","ExperimentLoggedModelPageWrapper","resetKey","ErrorBoundary","FallbackComponent","resetKeys","UserActionErrorHandler","useValidateLoggedModelSignature","_loggedModel$info2","_yamlContent$signatur","_yamlContent$signatur2","model_id","artifact_uri","artifactLocation","getLoggedModelArtifactLocationUrl","MLMODEL_FILE_NAME","blob","getArtifactBlob","yamlContent","load","text","signature","inputs","outputs","ExperimentLoggedModelDetailsRegisterButton","onSuccess","intl","handleSuccess","_data$value$status","_data$value","successTitle","formatMessage","displayGlobalInfoNotification","status","handleError","_ref2","errorTitle","ErrorWrapper","getMessageField","String","displayGlobalErrorNotification","RegisterModel","modelPath","modelRelativePath","disabled","loggedModelId","buttonType","showButton","onRegisterSuccess","onRegisterFailure","ExperimentLoggedModelDetailsHeader","modelDisplayName","navigate","useNavigate","modalElement","DeleteModalElement","openModal","useExperimentLoggedModelDeleteModal","_mutation$error","open","setOpen","mutation","useMutation","mutationFn","loggedModelsDataRequest","getAjaxUrl","mutate","reset","resetMutation","Modal","onCancel","okText","okButtonProps","danger","onOk","cancelText","Alert","closable","Routes","getExperimentPageTabRoute","ExperimentPageTabName","Models","Link","to","ExperimentLoggedModelDetailsHeaderSkeleton","ExperimentLoggedModelDetailsHeaderIcon","h2","DropdownMenu","Root","Trigger","asChild","Content","align","justifyContent","backgroundColor","tagDefault","general","heightSm","height","borderRadius","legacyBorders","borderRadiusMd","ModelsIcon","ExperimentLoggedModelDetailsNav","modelId","activeTabName","NavigationMenu","List","getExperimentLoggedModelDetailsPageRoute","ExperimentLoggedModelDescription","onDescriptionChanged","_loggedModel$info$tag","_loggedModel$info$tag2","_loggedModel$info$tag3","descriptionContent","tags","tag","NOTE_CONTENT_TAG","showNoteEditor","setShowDescriptionEditor","patch","usePatchLoggedModelsTags","mutateAsync","requestBody","entries","useUserActionErrorHandler","isEmpty","PencilIcon","Hint","EditableNote","defaultMarkdown","onSubmit","handleCancelEditDescription","showEditor","ExperimentLoggedModelDetailsTableRunCellRenderer","getValue","_getValue","runName","runId","getDirectRunPageRoute","SingleDatasetCellRenderer","datasetDigest","datasetName","ExperimentLoggedModelDatasetButton","ExperimentLoggedModelDetailsMetricsTable","relatedRunsData","relatedRunsLoading","usingUnifiedDetailsLayout","detailsPageTableStyles","detailsPageNoEntriesStyles","detailsPageNoResultsWrapperStyles","useExperimentTrackingDetailsPageLayoutStyles","setFilter","metricsWithRunData","_loggedModel$data$met2","_relatedRunsData$find","_relatedRunsData$find2","_run$info","experiment_id","filteredMetrics","dataset_name","dataset_digest","filterLower","toLowerCase","columns","accessorKey","header","enableResizing","accessorFn","cell","meta","minWidth","table","useReactTable","getCoreRowModel","getExpandedRowModel","getRowId","row","_join","join","enableColumnResizing","columnResizeMode","values","borderDecorative","borderRadiusBase","overflow","renderTableContent","TableSkeleton","lines","areAllResultsFiltered","Input","prefix","SearchIcon","placeholder","onChange","allowClear","Table","setAttribute","scrollable","empty","TableRow","isHeader","getLeafHeaders","_header$column$column","TableHeader","column","setColumnSizing","isResizing","getIsResizing","getCanResize","columnDef","flexBasis","getSize","flexRender","getContext","getRowModel","rows","getAllCells","_cell$column$columnDe","TableCell","DatasetListCellRenderer","datasets","Overflow","ExperimentLoggedModelDetailsPageRunsTable","runsWithDatasets","allMetrics","runsByDatasets","groupBy","distinctDatasets","uniqBy","dataset","filteredRunsWithDatasets","_d$datasetName","multiline","ExperimentLoggedModelAllDatasetsList","uniqueDatasets","reduce","aggregate","push","ExperimentLoggedModelDetailsModelVersionsList","modelVersions","useExperimentLoggedModelRegisteredVersions","displayedName","version","link","RegisteredModelOkIcon","ExperimentLoggedModelDetailsMetadataSections","ExperimentLoggedModelDetailsOverview","onDataUpdated","_loggedModel$data2","relatedRunsDataError","relatedSourceRun","_r$info","paramsDictionary","_loggedModel$data$par","keyBy","params","detailsSectionsV2","useExperimentLoggedModelDetailsMetadataV2","_loggedModel$info2$ta","_loggedModel$info2$ta2","_loggedModel$info$mod","_loggedModel$info3","_loggedModel$info4","_loggedModel$info5","_loggedModel$info6","_loggedModel$info7","_relatedSourceRun$inf","_loggedModel$info8","_loggedModel$info$sou","_loggedModel$info9","_loggedModel$info0","_loggedModel$info1","_loggedModel$info10","_loggedModel$info11","detailsContent","ExperimentLoggedModelTableDateCell","creation_timestamp_ms","MLFLOW_LOGGED_MODEL_USER_TAG","ExperimentLoggedModelStatusIndicator","DetailsOverviewCopyableIdBox","getRunPageRoute","ExperimentLoggedModelSourceBox","displayDetails","paddingTop","DETAILS","DATASETS","MODEL_VERSIONS","ExperimentLoggedModelOpenDatasetDetailsContextProvider","DetailsPageLayout","usingSidebarLayout","renderDetails","_loggedModel$info4$ta","_loggedModel$info4$ta2","DetailsOverviewMetadataTable","DetailsOverviewMetadataRow","gridTemplateColumns","gridTemplateRows","DetailsOverviewParamsTable","ExperimentLoggedModelDetailsArtifacts","_loggedModel$info$art","_loggedModel$info$exp","ArtifactPage","isLoggedModelsMode","artifactRootUri","useAutoHeight","entityTags","ExperimentLoggedModelDetailsTracesIntroductionText","code","Paragraph","openInNewTab","zIndex","position","top","right","CopyIcon","CodeSnippet","showLineNumbers","isDarkMode","language","ExperimentLoggedModelDetailsTraces","experimentIds","TracesViewTableNoTracesQuickstartContextProvider","introductionText","displayVersionWarnings","TracesComponent","TracesView","baseComponentId","ExperimentLoggedModelDetailsPageImpl","_currentUserActionErr","tabName","useParams","clearUserActionError","currentUserActionError","invariant","loggedModelLoading","loggedModelLoadError","useGetLoggedModelQuery","experimentData","experimentLoading","experimentApiError","experimentApolloError","experimentLoadError","displayMessage","onClose","errorMessage","ExperimentLoggedModelDetailsPage","showImmediately","spinner","alt","src","immediate","opacity","left","heightBase","animation","keyframes","animationDelay"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8846.2cec14c5.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8846.2cec14c5.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..5c85d53bee4ffe3924faa2b30dfaab020cfce64f --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/8846.2cec14c5.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 8846.2cec14c5.chunk.js.LICENSE.txt */ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[8846],{10298:function(e,n,t){t.d(n,{A:function(){return He}});var r=t(58168),o=t(89379),i=t(64467),a=t(5544),c=t(82284),l=t(80045),u=t(31014),s=t(76274),d=t.n(s),f=t(41836),v=t(75203),m=t(23029),p=t(92901),h=t(9417),g=t(15361),C=t(88293),E=function(e){return+setTimeout(e,16)},A=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(E=function(e){return window.requestAnimationFrame(e)},A=function(e){return window.cancelAnimationFrame(e)});var y=0,w=new Map;function N(e){w.delete(e)}var b=function(e){var n=y+=1;return function t(r){if(0===r)N(n),e();else{var o=E((function(){t(r-1)}));w.set(n,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),n};b.cancel=function(e){var n=w.get(e);return N(e),A(n)};var S=b,T=t(21751);function k(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var M=(0,u.forwardRef)((function(e,n){var t=e.didUpdate,r=e.getContainer,o=e.children,i=(0,u.useRef)(),a=(0,u.useRef)();(0,u.useImperativeHandle)(n,(function(){return{}}));var c=(0,u.useRef)(!1);return!c.current&&k()&&(a.current=r(),i.current=a.current.parentNode,c.current=!0),(0,u.useEffect)((function(){null===t||void 0===t||t(e)})),(0,u.useEffect)((function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e;null===(e=a.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(a.current)}}),[]),a.current?T.createPortal(o,a.current):null})),O=M;function P(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var t=n;t;){if(t===e)return!0;t=t.parentNode}return!1}var R,I="data-rc-order",U="data-rc-priority",_=new Map;function L(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function x(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function D(e){return Array.from((_.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function H(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k())return null;var t=n.csp,r=n.prepend,o=n.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,l=document.createElement("style");l.setAttribute(I,a),c&&i&&l.setAttribute(U,"".concat(i)),null!==t&&void 0!==t&&t.nonce&&(l.nonce=null===t||void 0===t?void 0:t.nonce),l.innerHTML=e;var u=x(n),s=u.firstChild;if(r){if(c){var d=(n.styles||D(u)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(I)))return!1;var n=Number(e.getAttribute(U)||0);return i>=n}));if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,s)}else u.appendChild(l);return l}function F(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=x(n);return(n.styles||D(t)).find((function(t){return t.getAttribute(L(n))===e}))}function W(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=x(t),i=D(r),a=(0,o.A)((0,o.A)({},t),{},{styles:i});!function(e,n){var t=_.get(e);if(!t||!P(document,t)){var r=H("",n),o=r.parentNode;_.set(e,o),e.removeChild(r)}}(r,a);var c=F(n,a);if(c){var l,u,s;if(null!==(l=a.csp)&&void 0!==l&&l.nonce&&c.nonce!==(null===(u=a.csp)||void 0===u?void 0:u.nonce))c.nonce=null===(s=a.csp)||void 0===s?void 0:s.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var d=H(e,a);return d.setAttribute(L(a),n),d}function K(e){var n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=n;var r,o,i=t.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(c.width,10),u=parseInt(c.height,10);try{var s=l?"width: ".concat(c.width,";"):"",d=u?"height: ".concat(c.height,";"):"";W("\n#".concat(n,"::-webkit-scrollbar {\n").concat(s,"\n").concat(d,"\n}"),n)}catch(m){console.error(m),r=l,o=u}}document.body.appendChild(t);var f=e&&r&&!isNaN(r)?r:t.offsetWidth-t.clientWidth,v=e&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=F(e,n);t&&x(n).removeChild(t)}(n),{width:f,height:v}}function j(e){return"undefined"===typeof document?0:((e||void 0===R)&&(R=K()),R.width)}var V=function(e){if(!e)return{};var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).element,t=void 0===n?document.body:n,r={},o=Object.keys(e);return o.forEach((function(e){r[e]=t.style[e]})),o.forEach((function(n){t.style[n]=e[n]})),r};var G={},Y=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var n="ant-scrolling-effect",t=new RegExp("".concat(n),"g"),r=document.body.className;if(e){if(!t.test(r))return;return V(G),G={},void(document.body.className=r.replace(t,"").trim())}var o=j();if(o&&(G=V({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!t.test(r))){var i="".concat(r," ").concat(n);document.body.className=i.trim()}}},X=t(60436),B=0,z=[],Q="ant-scrolling-effect",q=new RegExp("".concat(Q),"g"),Z=new Map,J=(0,p.A)((function e(n){var t=this;(0,m.A)(this,e),(0,i.A)(this,"lockTarget",void 0),(0,i.A)(this,"options",void 0),(0,i.A)(this,"getContainer",(function(){var e;return null===(e=t.options)||void 0===e?void 0:e.container})),(0,i.A)(this,"reLock",(function(e){var n=z.find((function(e){return e.target===t.lockTarget}));n&&t.unLock(),t.options=e,n&&(n.options=e,t.lock())})),(0,i.A)(this,"lock",(function(){var e;if(!z.some((function(e){return e.target===t.lockTarget})))if(z.some((function(e){var n,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)})))z=[].concat((0,X.A)(z),[{target:t.lockTarget,options:t.options}]);else{var n=0,r=(null===(e=t.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&"hidden"!==getComputedStyle(r).overflow&&(n=j());var o=r.className;if(0===z.filter((function(e){var n,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)})).length&&Z.set(r,V({width:0!==n?"calc(100% - ".concat(n,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!q.test(o)){var i="".concat(o," ").concat(Q);r.className=i.trim()}z=[].concat((0,X.A)(z),[{target:t.lockTarget,options:t.options}])}})),(0,i.A)(this,"unLock",(function(){var e,n=z.find((function(e){return e.target===t.lockTarget}));if(z=z.filter((function(e){return e.target!==t.lockTarget})),n&&!z.some((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)}))){var r=(null===(e=t.options)||void 0===e?void 0:e.container)||document.body,o=r.className;q.test(o)&&(V(Z.get(r),{element:r}),Z.delete(r),r.className=r.className.replace(q,"").trim())}})),this.lockTarget=B++,this.options=n})),$=0,ee=k();var ne={},te=function(e){if(!ee)return null;if(e){if("string"===typeof e)return document.querySelectorAll(e)[0];if("function"===typeof e)return e();if("object"===(0,c.A)(e)&&e instanceof window.HTMLElement)return e}return document.body},re=function(e){(0,g.A)(t,e);var n=(0,C.A)(t);function t(e){var r;return(0,m.A)(this,t),r=n.call(this,e),(0,i.A)((0,h.A)(r),"container",void 0),(0,i.A)((0,h.A)(r),"componentRef",u.createRef()),(0,i.A)((0,h.A)(r),"rafId",void 0),(0,i.A)((0,h.A)(r),"scrollLocker",void 0),(0,i.A)((0,h.A)(r),"renderComponent",void 0),(0,i.A)((0,h.A)(r),"updateScrollLocker",(function(e){var n=(e||{}).visible,t=r.props,o=t.getContainer,i=t.visible;i&&i!==n&&ee&&te(o)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:te(o)})})),(0,i.A)((0,h.A)(r),"updateOpenCount",(function(e){var n=e||{},t=n.visible,o=n.getContainer,i=r.props,a=i.visible,c=i.getContainer;a!==t&&ee&&te(c)===document.body&&(a&&!t?$+=1:e&&($-=1)),("function"===typeof c&&"function"===typeof o?c.toString()!==o.toString():c!==o)&&r.removeCurrentContainer()})),(0,i.A)((0,h.A)(r),"attachToParent",(function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||r.container&&!r.container.parentNode){var e=te(r.props.getContainer);return!!e&&(e.appendChild(r.container),!0)}return!0})),(0,i.A)((0,h.A)(r),"getContainer",(function(){return ee?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null})),(0,i.A)((0,h.A)(r),"setWrapperClassName",(function(){var e=r.props.wrapperClassName;r.container&&e&&e!==r.container.className&&(r.container.className=e)})),(0,i.A)((0,h.A)(r),"removeCurrentContainer",(function(){var e;null===(e=r.container)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(r.container)})),(0,i.A)((0,h.A)(r),"switchScrollingEffect",(function(){1!==$||Object.keys(ne).length?$||(V(ne),ne={},Y(!0)):(Y(),ne=V({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))})),r.scrollLocker=new J({container:te(e.getContainer)}),r}return(0,p.A)(t,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=S((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.visible,t=e.getContainer;ee&&te(t)===document.body&&($=n&&$?$-1:$),this.removeCurrentContainer(),S.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,n=e.children,t=e.forceRender,r=e.visible,o=null,i={getOpenCount:function(){return $},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(t||r||this.componentRef.current)&&(o=u.createElement(O,{getContainer:this.getContainer,ref:this.componentRef},n(i))),o}}]),t}(u.Component),oe=re,ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=ie.F1&&n<=ie.F12)return!1;switch(n){case ie.ALT:case ie.CAPS_LOCK:case ie.CONTEXT_MENU:case ie.CTRL:case ie.DOWN:case ie.END:case ie.ESC:case ie.HOME:case ie.INSERT:case ie.LEFT:case ie.MAC_FF_META:case ie.META:case ie.NUMLOCK:case ie.NUM_CENTER:case ie.PAGE_DOWN:case ie.PAGE_UP:case ie.PAUSE:case ie.PRINT_SCREEN:case ie.RIGHT:case ie.SHIFT:case ie.UP:case ie.WIN_KEY:case ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ie.ZERO&&e<=ie.NINE)return!0;if(e>=ie.NUM_ZERO&&e<=ie.NUM_MULTIPLY)return!0;if(e>=ie.A&&e<=ie.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ie.SPACE:case ie.QUESTION_MARK:case ie.NUM_PLUS:case ie.NUM_MINUS:case ie.NUM_PERIOD:case ie.NUM_DIVISION:case ie.SEMICOLON:case ie.DASH:case ie.EQUALS:case ie.COMMA:case ie.PERIOD:case ie.SLASH:case ie.APOSTROPHE:case ie.SINGLE_QUOTE:case ie.OPEN_SQUARE_BRACKET:case ie.BACKSLASH:case ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ae=ie,ce="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function le(e,n){return 0===e.indexOf(n)}var ue=t(8320);function se(e){var n=e.prefixCls,t=e.style,i=e.visible,a=e.maskProps,c=e.motionName;return u.createElement(ue.A,{key:"mask",visible:i,motionName:c,leavedClassName:"".concat(n,"-mask-hidden")},(function(e){var i=e.className,c=e.style;return u.createElement("div",(0,r.A)({style:(0,o.A)((0,o.A)({},c),t),className:d()("".concat(n,"-mask"),i)},a))}))}function de(e,n,t){var r=n;return!r&&t&&(r="".concat(e,"-").concat(t)),r}var fe=-1;function ve(e,n){var t=e["page".concat(n?"Y":"X","Offset")],r="scroll".concat(n?"Top":"Left");if("number"!==typeof t){var o=e.document;"number"!==typeof(t=o.documentElement[r])&&(t=o.body[r])}return t}var me=u.memo((function(e){return e.children}),(function(e,n){return!n.shouldUpdate})),pe={width:0,height:0,overflow:"hidden",outline:"none"},he=u.forwardRef((function(e,n){var t=e.closable,i=e.prefixCls,c=e.width,l=e.height,s=e.footer,f=e.title,v=e.closeIcon,m=e.style,p=e.className,h=e.visible,g=e.forceRender,C=e.bodyStyle,E=e.bodyProps,A=e.children,y=e.destroyOnClose,w=e.modalRender,N=e.motionName,b=e.ariaId,S=e.onClose,T=e.onVisibleChanged,k=e.onMouseDown,M=e.onMouseUp,O=e.mousePosition,P=(0,u.useRef)(),R=(0,u.useRef)(),I=(0,u.useRef)();u.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus()},changeActive:function(e){var n=document.activeElement;e&&n===R.current?P.current.focus():e||n!==P.current||R.current.focus()}}}));var U,_,L,x=u.useState(),D=(0,a.A)(x,2),H=D[0],F=D[1],W={};function K(){var e=function(e){var n=e.getBoundingClientRect(),t={left:n.left,top:n.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return t.left+=ve(o),t.top+=ve(o,!0),t}(I.current);F(O?"".concat(O.x-e.left,"px ").concat(O.y-e.top,"px"):"")}void 0!==c&&(W.width=c),void 0!==l&&(W.height=l),H&&(W.transformOrigin=H),s&&(U=u.createElement("div",{className:"".concat(i,"-footer")},s)),f&&(_=u.createElement("div",{className:"".concat(i,"-header")},u.createElement("div",{className:"".concat(i,"-title"),id:b},f))),t&&(L=u.createElement("button",{type:"button",onClick:S,"aria-label":"Close",className:"".concat(i,"-close")},v||u.createElement("span",{className:"".concat(i,"-close-x")})));var j=u.createElement("div",{className:"".concat(i,"-content")},L,_,u.createElement("div",(0,r.A)({className:"".concat(i,"-body"),style:C},E),A),U);return u.createElement(ue.A,{visible:h,onVisibleChanged:T,onAppearPrepare:K,onEnterPrepare:K,forceRender:g,motionName:N,removeOnLeave:y,ref:I},(function(e,n){var t=e.className,r=e.style;return u.createElement("div",{key:"dialog-element",role:"document",ref:n,style:(0,o.A)((0,o.A)((0,o.A)({},r),m),W),className:d()(i,p,t),onMouseDown:k,onMouseUp:M},u.createElement("div",{tabIndex:0,ref:P,style:pe,"aria-hidden":"true"}),u.createElement(me,{shouldUpdate:h||g},w?w(j):j),u.createElement("div",{tabIndex:0,ref:R,style:pe,"aria-hidden":"true"}))}))}));he.displayName="Content";var ge=he;function Ce(e){var n=e.prefixCls,t=void 0===n?"rc-dialog":n,i=e.zIndex,c=e.visible,l=void 0!==c&&c,s=e.keyboard,f=void 0===s||s,v=e.focusTriggerAfterClose,m=void 0===v||v,p=e.scrollLocker,h=e.title,g=e.wrapStyle,C=e.wrapClassName,E=e.wrapProps,A=e.onClose,y=e.afterClose,w=e.transitionName,N=e.animation,b=e.closable,S=void 0===b||b,T=e.mask,k=void 0===T||T,M=e.maskTransitionName,O=e.maskAnimation,R=e.maskClosable,I=void 0===R||R,U=e.maskStyle,_=e.maskProps,L=(0,u.useRef)(),x=(0,u.useRef)(),D=(0,u.useRef)(),H=u.useState(l),F=(0,a.A)(H,2),W=F[0],K=F[1],j=(0,u.useRef)();function V(e){null===A||void 0===A||A(e)}j.current||(j.current="rcDialogTitle".concat(fe+=1));var G=(0,u.useRef)(!1),Y=(0,u.useRef)(),X=null;return I&&(X=function(e){G.current?G.current=!1:x.current===e.target&&V(e)}),(0,u.useEffect)((function(){return l&&K(!0),function(){}}),[l]),(0,u.useEffect)((function(){return function(){clearTimeout(Y.current)}}),[]),(0,u.useEffect)((function(){return W?(null===p||void 0===p||p.lock(),null===p||void 0===p?void 0:p.unLock):function(){}}),[W,p]),u.createElement("div",(0,r.A)({className:"".concat(t,"-root")},function(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:(0,o.A)({},t);var r={};return Object.keys(e).forEach((function(t){(n.aria&&("role"===t||le(t,"aria-"))||n.data&&le(t,"data-")||n.attr&&ce.includes(t))&&(r[t]=e[t])})),r}(e,{data:!0})),u.createElement(se,{prefixCls:t,visible:k&&l,motionName:de(t,M,O),style:(0,o.A)({zIndex:i},U),maskProps:_}),u.createElement("div",(0,r.A)({tabIndex:-1,onKeyDown:function(e){if(f&&e.keyCode===ae.ESC)return e.stopPropagation(),void V(e);l&&e.keyCode===ae.TAB&&D.current.changeActive(!e.shiftKey)},className:d()("".concat(t,"-wrap"),C),ref:x,onClick:X,role:"dialog","aria-labelledby":h?j.current:null,style:(0,o.A)((0,o.A)({zIndex:i},g),{},{display:W?null:"none"})},E),u.createElement(ge,(0,r.A)({},e,{onMouseDown:function(){clearTimeout(Y.current),G.current=!0},onMouseUp:function(){Y.current=setTimeout((function(){G.current=!1}))},ref:D,closable:S,ariaId:j.current,prefixCls:t,visible:l,onClose:V,onVisibleChanged:function(e){if(e){var n;if(!P(x.current,document.activeElement))L.current=document.activeElement,null===(n=D.current)||void 0===n||n.focus()}else{if(K(!1),k&&L.current&&m){try{L.current.focus({preventScroll:!0})}catch(t){}L.current=null}W&&(null===y||void 0===y||y())}},motionName:de(t,w,N)}))))}var Ee=function(e){var n=e.visible,t=e.getContainer,o=e.forceRender,i=e.destroyOnClose,c=void 0!==i&&i,l=e.afterClose,s=u.useState(n),d=(0,a.A)(s,2),f=d[0],v=d[1];return u.useEffect((function(){n&&v(!0)}),[n]),!1===t?u.createElement(Ce,(0,r.A)({},e,{getOpenCount:function(){return 2}})):o||!c||f?u.createElement(oe,{visible:n,forceRender:o,getContainer:t},(function(n){return u.createElement(Ce,(0,r.A)({},e,{destroyOnClose:c,afterClose:function(){null===l||void 0===l||l(),v(!1)}},n))})):null};Ee.displayName="Dialog";var Ae=Ee,ye=t(7606),we=t(98680),Ne=t(70117);function be(e,n,t,r){var o=n+t,a=(t-r)/2;if(t>r){if(n>0)return(0,i.A)({},e,a);if(n<0&&or)return(0,i.A)({},e,n<0?a:-a);return{}}var Se=["visible","onVisibleChange","getContainer","current"],Te=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}}}),ke=Te.Provider,Me=function(e){var n=e.previewPrefixCls,t=void 0===n?"rc-image-preview":n,o=e.children,i=e.icons,s=void 0===i?{}:i,d=e.preview,f="object"===(0,c.A)(d)?d:{},m=f.visible,p=void 0===m?void 0:m,h=f.onVisibleChange,g=void 0===h?void 0:h,C=f.getContainer,E=void 0===C?void 0:C,A=f.current,y=void 0===A?0:A,w=(0,l.A)(f,Se),N=(0,u.useState)(new Map),b=(0,a.A)(N,2),S=b[0],T=b[1],k=(0,u.useState)(),M=(0,a.A)(k,2),O=M[0],P=M[1],R=(0,v.A)(!!p,{value:p,onChange:g}),I=(0,a.A)(R,2),U=I[0],_=I[1],L=(0,u.useState)(null),x=(0,a.A)(L,2),D=x[0],H=x[1],F=void 0!==p,W=Array.from(S.keys())[y],K=new Map(Array.from(S).filter((function(e){return!!(0,a.A)(e,2)[1].canPreview})).map((function(e){var n=(0,a.A)(e,2);return[n[0],n[1].url]})));return u.useEffect((function(){P(W)}),[W]),u.useEffect((function(){!U&&F&&P(W)}),[W,F,U]),u.createElement(ke,{value:{isPreviewGroup:!0,previewUrls:K,setPreviewUrls:T,current:O,setCurrent:P,setShowPreview:_,setMousePosition:H,registerImage:function(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return T((function(r){return new Map(r).set(e,{url:n,canPreview:t})})),function(){T((function(n){var t=new Map(n);return t.delete(e)?t:n}))}}}},o,u.createElement(Ue,(0,r.A)({"aria-hidden":!U,visible:U,prefixCls:t,onClose:function(e){e.stopPropagation(),_(!1),H(null)},mousePosition:D,src:K.get(O),icons:s,getContainer:E},w)))},Oe=["prefixCls","src","alt","onClose","afterClose","visible","icons"],Pe=u.useState,Re=u.useEffect,Ie={x:0,y:0},Ue=function(e){var n=e.prefixCls,t=e.src,c=e.alt,s=e.onClose,v=(e.afterClose,e.visible),m=e.icons,p=void 0===m?{}:m,h=(0,l.A)(e,Oe),g=p.rotateLeft,C=p.rotateRight,E=p.zoomIn,A=p.zoomOut,y=p.close,w=p.left,N=p.right,b=Pe(1),S=(0,a.A)(b,2),T=S[0],k=S[1],M=Pe(0),O=(0,a.A)(M,2),P=O[0],R=O[1],I=function(e){var n=u.useRef(null),t=u.useState(e),r=(0,a.A)(t,2),i=r[0],c=r[1],l=u.useRef([]);return u.useEffect((function(){return function(){return n.current&&Ne.A.cancel(n.current)}}),[]),[i,function(e){null===n.current&&(l.current=[],n.current=(0,Ne.A)((function(){c((function(e){var t=e;return l.current.forEach((function(e){t=(0,o.A)((0,o.A)({},t),e)})),n.current=null,t}))}))),l.current.push(e)}]}(Ie),U=(0,a.A)(I,2),_=U[0],L=U[1],x=u.useRef(),D=u.useRef({originX:0,originY:0,deltaX:0,deltaY:0}),H=u.useState(!1),F=(0,a.A)(H,2),W=F[0],K=F[1],j=u.useContext(Te),V=j.previewUrls,G=j.current,Y=j.isPreviewGroup,X=j.setCurrent,B=V.size,z=Array.from(V.keys()),Q=z.indexOf(G),q=Y?V.get(G):t,Z=Y&&B>1,J=u.useState({wheelDirection:0}),$=(0,a.A)(J,2),ee=$[0],ne=$[1],te=function(){k((function(e){return e+1})),L(Ie)},re=function(){T>1&&k((function(e){return e-1})),L(Ie)},oe=d()((0,i.A)({},"".concat(n,"-moving"),W)),ie="".concat(n,"-operations-operation"),ae="".concat(n,"-operations-icon"),ce=[{icon:y,onClick:s,type:"close"},{icon:E,onClick:te,type:"zoomIn"},{icon:A,onClick:re,type:"zoomOut",disabled:1===T},{icon:C,onClick:function(){R((function(e){return e+90}))},type:"rotateRight"},{icon:g,onClick:function(){R((function(e){return e-90}))},type:"rotateLeft"}],le=function(){if(v&&W){var e=x.current.offsetWidth*T,n=x.current.offsetHeight*T,t=x.current.getBoundingClientRect(),r=t.left,i=t.top,a=P%180!==0;K(!1);var c=function(e,n,t,r){var i=(0,f.XV)(),a=i.width,c=i.height,l=null;return e<=a&&n<=c?l={x:0,y:0}:(e>a||n>c)&&(l=(0,o.A)((0,o.A)({},be("x",t,e,a)),be("y",r,n,c))),l}(a?n:e,a?e:n,r,i);c&&L((0,o.A)({},c))}},ue=function(e){v&&W&&L({x:e.pageX-D.current.deltaX,y:e.pageY-D.current.deltaY})},se=function(e){if(v){e.preventDefault();var n=e.deltaY;ne({wheelDirection:n})}};return Re((function(){var e=ee.wheelDirection;e>0?re():e<0&&te()}),[ee]),Re((function(){var e,n,t=(0,ye.A)(window,"mouseup",le,!1),r=(0,ye.A)(window,"mousemove",ue,!1),o=(0,ye.A)(window,"wheel",se,{passive:!1});try{window.top!==window.self&&(e=(0,ye.A)(window.top,"mouseup",le,!1),n=(0,ye.A)(window.top,"mousemove",ue,!1))}catch(i){(0,we.$e)(!1,"[rc-image] ".concat(i))}return function(){t.remove(),r.remove(),o.remove(),e&&e.remove(),n&&n.remove()}}),[v,W]),u.createElement(Ae,(0,r.A)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:s,afterClose:function(){k(1),R(0),L(Ie)},visible:v,wrapClassName:oe},h),u.createElement("ul",{className:"".concat(n,"-operations")},ce.map((function(e){var t=e.icon,r=e.onClick,o=e.type,a=e.disabled;return u.createElement("li",{className:d()(ie,(0,i.A)({},"".concat(n,"-operations-operation-disabled"),!!a)),onClick:r,key:o},u.isValidElement(t)?u.cloneElement(t,{className:ae}):t)}))),u.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(_.x,"px, ").concat(_.y,"px, 0)")}},u.createElement("img",{onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),D.current.deltaX=e.pageX-_.x,D.current.deltaY=e.pageY-_.y,D.current.originX=_.x,D.current.originY=_.y,K(!0))},ref:x,className:"".concat(n,"-img"),src:q,alt:c,style:{transform:"scale3d(".concat(T,", ").concat(T,", 1) rotate(").concat(P,"deg)")}})),Z&&u.createElement("div",{className:d()("".concat(n,"-switch-left"),(0,i.A)({},"".concat(n,"-switch-left-disabled"),0===Q)),onClick:function(e){e.preventDefault(),e.stopPropagation(),Q>0&&X(z[Q-1])}},w),Z&&u.createElement("div",{className:d()("".concat(n,"-switch-right"),(0,i.A)({},"".concat(n,"-switch-right-disabled"),Q===B-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),Q 1 && arguments[1] !== undefined ? arguments[1] : 1;\n rafUUID += 1;\n var id = rafUUID;\n function callRef(leftTimes) {\n if (leftTimes === 0) {\n // Clean up\n cleanup(id);\n\n // Trigger\n callback();\n } else {\n // Next raf\n var realId = raf(function () {\n callRef(leftTimes - 1);\n });\n\n // Bind real raf id\n rafIds.set(id, realId);\n }\n }\n callRef(times);\n return id;\n};\nwrapperRaf.cancel = function (id) {\n var realId = rafIds.get(id);\n cleanup(id);\n return caf(realId);\n};\nif (process.env.NODE_ENV !== 'production') {\n wrapperRaf.ids = function () {\n return rafIds;\n };\n}\nexport default wrapperRaf;","export default function canUseDom() {\n return !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n}","import { useRef, useEffect, forwardRef, useImperativeHandle } from 'react';\nimport ReactDOM from 'react-dom';\nimport canUseDom from \"./Dom/canUseDom\";\nvar Portal = /*#__PURE__*/forwardRef(function (props, ref) {\n var didUpdate = props.didUpdate,\n getContainer = props.getContainer,\n children = props.children;\n var parentRef = useRef();\n var containerRef = useRef();\n\n // Ref return nothing, only for wrapper check exist\n useImperativeHandle(ref, function () {\n return {};\n });\n\n // Create container in client side with sync to avoid useEffect not get ref\n var initRef = useRef(false);\n if (!initRef.current && canUseDom()) {\n containerRef.current = getContainer();\n parentRef.current = containerRef.current.parentNode;\n initRef.current = true;\n }\n\n // [Legacy] Used by `rc-trigger`\n useEffect(function () {\n didUpdate === null || didUpdate === void 0 || didUpdate(props);\n });\n useEffect(function () {\n // Restore container to original place\n // React 18 StrictMode will unmount first and mount back for effect test:\n // https://reactjs.org/blog/2022/03/29/react-v18.html#new-strict-mode-behaviors\n if (containerRef.current.parentNode === null && parentRef.current !== null) {\n parentRef.current.appendChild(containerRef.current);\n }\n return function () {\n var _containerRef$current;\n // [Legacy] This should not be handle by Portal but parent PortalWrapper instead.\n // Since some component use `Portal` directly, we have to keep the logic here.\n (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 || (_containerRef$current = _containerRef$current.parentNode) === null || _containerRef$current === void 0 || _containerRef$current.removeChild(containerRef.current);\n };\n }, []);\n return containerRef.current ? /*#__PURE__*/ReactDOM.createPortal(children, containerRef.current) : null;\n});\nexport default Portal;","export default function contains(root, n) {\n if (!root) {\n return false;\n }\n\n // Use native if support\n if (root.contains) {\n return root.contains(n);\n }\n\n // `document.contains` not support with IE11\n var node = n;\n while (node) {\n if (node === root) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport canUseDom from \"./canUseDom\";\nimport contains from \"./contains\";\nvar APPEND_ORDER = 'data-rc-order';\nvar APPEND_PRIORITY = 'data-rc-priority';\nvar MARK_KEY = \"rc-util-key\";\nvar containerCache = new Map();\nfunction getMark() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n mark = _ref.mark;\n if (mark) {\n return mark.startsWith('data-') ? mark : \"data-\".concat(mark);\n }\n return MARK_KEY;\n}\nfunction getContainer(option) {\n if (option.attachTo) {\n return option.attachTo;\n }\n var head = document.querySelector('head');\n return head || document.body;\n}\nfunction getOrder(prepend) {\n if (prepend === 'queue') {\n return 'prependQueue';\n }\n return prepend ? 'prepend' : 'append';\n}\n\n/**\n * Find style which inject by rc-util\n */\nfunction findStyles(container) {\n return Array.from((containerCache.get(container) || container).children).filter(function (node) {\n return node.tagName === 'STYLE';\n });\n}\nexport function injectCSS(css) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!canUseDom()) {\n return null;\n }\n var csp = option.csp,\n prepend = option.prepend,\n _option$priority = option.priority,\n priority = _option$priority === void 0 ? 0 : _option$priority;\n var mergedOrder = getOrder(prepend);\n var isPrependQueue = mergedOrder === 'prependQueue';\n var styleNode = document.createElement('style');\n styleNode.setAttribute(APPEND_ORDER, mergedOrder);\n if (isPrependQueue && priority) {\n styleNode.setAttribute(APPEND_PRIORITY, \"\".concat(priority));\n }\n if (csp !== null && csp !== void 0 && csp.nonce) {\n styleNode.nonce = csp === null || csp === void 0 ? void 0 : csp.nonce;\n }\n styleNode.innerHTML = css;\n var container = getContainer(option);\n var firstChild = container.firstChild;\n if (prepend) {\n // If is queue `prepend`, it will prepend first style and then append rest style\n if (isPrependQueue) {\n var existStyle = (option.styles || findStyles(container)).filter(function (node) {\n // Ignore style which not injected by rc-util with prepend\n if (!['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER))) {\n return false;\n }\n\n // Ignore style which priority less then new style\n var nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);\n return priority >= nodePriority;\n });\n if (existStyle.length) {\n container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);\n return styleNode;\n }\n }\n\n // Use `insertBefore` as `prepend`\n container.insertBefore(styleNode, firstChild);\n } else {\n container.appendChild(styleNode);\n }\n return styleNode;\n}\nfunction findExistNode(key) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var container = getContainer(option);\n return (option.styles || findStyles(container)).find(function (node) {\n return node.getAttribute(getMark(option)) === key;\n });\n}\nexport function removeCSS(key) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var existNode = findExistNode(key, option);\n if (existNode) {\n var container = getContainer(option);\n container.removeChild(existNode);\n }\n}\n\n/**\n * qiankun will inject `appendChild` to insert into other\n */\nfunction syncRealContainer(container, option) {\n var cachedRealContainer = containerCache.get(container);\n\n // Find real container when not cached or cached container removed\n if (!cachedRealContainer || !contains(document, cachedRealContainer)) {\n var placeholderStyle = injectCSS('', option);\n var parentNode = placeholderStyle.parentNode;\n containerCache.set(container, parentNode);\n container.removeChild(placeholderStyle);\n }\n}\n\n/**\n * manually clear container cache to avoid global cache in unit testes\n */\nexport function clearContainerCache() {\n containerCache.clear();\n}\nexport function updateCSS(css, key) {\n var originOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var container = getContainer(originOption);\n var styles = findStyles(container);\n var option = _objectSpread(_objectSpread({}, originOption), {}, {\n styles: styles\n });\n\n // Sync real parent\n syncRealContainer(container, option);\n var existNode = findExistNode(key, option);\n if (existNode) {\n var _option$csp, _option$csp2;\n if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce && existNode.nonce !== ((_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce)) {\n var _option$csp3;\n existNode.nonce = (_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce;\n }\n if (existNode.innerHTML !== css) {\n existNode.innerHTML = css;\n }\n return existNode;\n }\n var newNode = injectCSS(css, option);\n newNode.setAttribute(getMark(option), key);\n return newNode;\n}","/* eslint-disable no-param-reassign */\nimport { removeCSS, updateCSS } from \"./Dom/dynamicCSS\";\nvar cached;\nfunction measureScrollbarSize(ele) {\n var randomId = \"rc-scrollbar-measure-\".concat(Math.random().toString(36).substring(7));\n var measureEle = document.createElement('div');\n measureEle.id = randomId;\n\n // Create Style\n var measureStyle = measureEle.style;\n measureStyle.position = 'absolute';\n measureStyle.left = '0';\n measureStyle.top = '0';\n measureStyle.width = '100px';\n measureStyle.height = '100px';\n measureStyle.overflow = 'scroll';\n\n // Clone Style if needed\n var fallbackWidth;\n var fallbackHeight;\n if (ele) {\n var targetStyle = getComputedStyle(ele);\n measureStyle.scrollbarColor = targetStyle.scrollbarColor;\n measureStyle.scrollbarWidth = targetStyle.scrollbarWidth;\n\n // Set Webkit style\n var webkitScrollbarStyle = getComputedStyle(ele, '::-webkit-scrollbar');\n var width = parseInt(webkitScrollbarStyle.width, 10);\n var height = parseInt(webkitScrollbarStyle.height, 10);\n\n // Try wrap to handle CSP case\n try {\n var widthStyle = width ? \"width: \".concat(webkitScrollbarStyle.width, \";\") : '';\n var heightStyle = height ? \"height: \".concat(webkitScrollbarStyle.height, \";\") : '';\n updateCSS(\"\\n#\".concat(randomId, \"::-webkit-scrollbar {\\n\").concat(widthStyle, \"\\n\").concat(heightStyle, \"\\n}\"), randomId);\n } catch (e) {\n // Can't wrap, just log error\n console.error(e);\n\n // Get from style directly\n fallbackWidth = width;\n fallbackHeight = height;\n }\n }\n document.body.appendChild(measureEle);\n\n // Measure. Get fallback style if provided\n var scrollWidth = ele && fallbackWidth && !isNaN(fallbackWidth) ? fallbackWidth : measureEle.offsetWidth - measureEle.clientWidth;\n var scrollHeight = ele && fallbackHeight && !isNaN(fallbackHeight) ? fallbackHeight : measureEle.offsetHeight - measureEle.clientHeight;\n\n // Clean up\n document.body.removeChild(measureEle);\n removeCSS(randomId);\n return {\n width: scrollWidth,\n height: scrollHeight\n };\n}\nexport default function getScrollBarSize(fresh) {\n if (typeof document === 'undefined') {\n return 0;\n }\n if (fresh || cached === undefined) {\n cached = measureScrollbarSize();\n }\n return cached.width;\n}\nexport function getTargetScrollBarSize(target) {\n if (typeof document === 'undefined' || !target || !(target instanceof Element)) {\n return {\n width: 0,\n height: 0\n };\n }\n return measureScrollbarSize(target);\n}","/**\n * Easy to set element style, return previous style\n * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)\n * https://github.com/ant-design/ant-design/issues/19393\n *\n */\nfunction setStyle(style) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!style) {\n return {};\n }\n var _options$element = options.element,\n element = _options$element === void 0 ? document.body : _options$element;\n var oldStyle = {};\n var styleKeys = Object.keys(style);\n\n // IE browser compatible\n styleKeys.forEach(function (key) {\n oldStyle[key] = element.style[key];\n });\n styleKeys.forEach(function (key) {\n element.style[key] = style[key];\n });\n return oldStyle;\n}\nexport default setStyle;","import getScrollBarSize from \"./getScrollBarSize\";\nimport setStyle from \"./setStyle\";\nfunction isBodyOverflowing() {\n return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;\n}\nvar cacheStyle = {};\nexport default (function (close) {\n if (!isBodyOverflowing() && !close) {\n return;\n }\n\n // https://github.com/ant-design/ant-design/issues/19729\n var scrollingEffectClassName = 'ant-scrolling-effect';\n var scrollingEffectClassNameReg = new RegExp(\"\".concat(scrollingEffectClassName), 'g');\n var bodyClassName = document.body.className;\n if (close) {\n if (!scrollingEffectClassNameReg.test(bodyClassName)) return;\n setStyle(cacheStyle);\n cacheStyle = {};\n document.body.className = bodyClassName.replace(scrollingEffectClassNameReg, '').trim();\n return;\n }\n var scrollBarSize = getScrollBarSize();\n if (scrollBarSize) {\n cacheStyle = setStyle({\n position: 'relative',\n width: \"calc(100% - \".concat(scrollBarSize, \"px)\")\n });\n if (!scrollingEffectClassNameReg.test(bodyClassName)) {\n var addClassName = \"\".concat(bodyClassName, \" \").concat(scrollingEffectClassName);\n document.body.className = addClassName.trim();\n }\n }\n});","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport getScrollBarSize from \"../getScrollBarSize\";\nimport setStyle from \"../setStyle\";\nvar uuid = 0;\nvar locks = [];\nvar scrollingEffectClassName = 'ant-scrolling-effect';\nvar scrollingEffectClassNameReg = new RegExp(\"\".concat(scrollingEffectClassName), 'g');\n\n// https://github.com/ant-design/ant-design/issues/19340\n// https://github.com/ant-design/ant-design/issues/19332\nvar cacheStyle = new Map();\nvar ScrollLocker = /*#__PURE__*/_createClass(function ScrollLocker(_options) {\n var _this = this;\n _classCallCheck(this, ScrollLocker);\n _defineProperty(this, \"lockTarget\", void 0);\n _defineProperty(this, \"options\", void 0);\n _defineProperty(this, \"getContainer\", function () {\n var _this$options;\n return (_this$options = _this.options) === null || _this$options === void 0 ? void 0 : _this$options.container;\n });\n // if options change...\n _defineProperty(this, \"reLock\", function (options) {\n var findLock = locks.find(function (_ref) {\n var target = _ref.target;\n return target === _this.lockTarget;\n });\n if (findLock) {\n _this.unLock();\n }\n _this.options = options;\n if (findLock) {\n findLock.options = options;\n _this.lock();\n }\n });\n _defineProperty(this, \"lock\", function () {\n var _this$options3;\n // If lockTarget exist return\n if (locks.some(function (_ref2) {\n var target = _ref2.target;\n return target === _this.lockTarget;\n })) {\n return;\n }\n\n // If same container effect, return\n if (locks.some(function (_ref3) {\n var _this$options2;\n var options = _ref3.options;\n return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);\n })) {\n locks = [].concat(_toConsumableArray(locks), [{\n target: _this.lockTarget,\n options: _this.options\n }]);\n return;\n }\n var scrollBarSize = 0;\n var container = ((_this$options3 = _this.options) === null || _this$options3 === void 0 ? void 0 : _this$options3.container) || document.body;\n if (container === document.body && window.innerWidth - document.documentElement.clientWidth > 0 || container.scrollHeight > container.clientHeight) {\n if (getComputedStyle(container).overflow !== 'hidden') {\n scrollBarSize = getScrollBarSize();\n }\n }\n var containerClassName = container.className;\n if (locks.filter(function (_ref4) {\n var _this$options4;\n var options = _ref4.options;\n return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options4 = _this.options) === null || _this$options4 === void 0 ? void 0 : _this$options4.container);\n }).length === 0) {\n cacheStyle.set(container, setStyle({\n width: scrollBarSize !== 0 ? \"calc(100% - \".concat(scrollBarSize, \"px)\") : undefined,\n overflow: 'hidden',\n overflowX: 'hidden',\n overflowY: 'hidden'\n }, {\n element: container\n }));\n }\n\n // https://github.com/ant-design/ant-design/issues/19729\n if (!scrollingEffectClassNameReg.test(containerClassName)) {\n var addClassName = \"\".concat(containerClassName, \" \").concat(scrollingEffectClassName);\n container.className = addClassName.trim();\n }\n locks = [].concat(_toConsumableArray(locks), [{\n target: _this.lockTarget,\n options: _this.options\n }]);\n });\n _defineProperty(this, \"unLock\", function () {\n var _this$options5;\n var findLock = locks.find(function (_ref5) {\n var target = _ref5.target;\n return target === _this.lockTarget;\n });\n locks = locks.filter(function (_ref6) {\n var target = _ref6.target;\n return target !== _this.lockTarget;\n });\n if (!findLock || locks.some(function (_ref7) {\n var _findLock$options;\n var options = _ref7.options;\n return (options === null || options === void 0 ? void 0 : options.container) === ((_findLock$options = findLock.options) === null || _findLock$options === void 0 ? void 0 : _findLock$options.container);\n })) {\n return;\n }\n\n // Remove Effect\n var container = ((_this$options5 = _this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.container) || document.body;\n var containerClassName = container.className;\n if (!scrollingEffectClassNameReg.test(containerClassName)) return;\n setStyle(cacheStyle.get(container), {\n element: container\n });\n cacheStyle.delete(container);\n container.className = container.className.replace(scrollingEffectClassNameReg, '').trim();\n });\n // eslint-disable-next-line no-plusplus\n this.lockTarget = uuid++;\n this.options = _options;\n});\nexport { ScrollLocker as default };","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\n/* eslint-disable no-underscore-dangle,react/require-default-props */\nimport * as React from 'react';\nimport raf from \"./raf\";\nimport Portal from \"./Portal\";\nimport canUseDom from \"./Dom/canUseDom\";\nimport switchScrollingEffect from \"./switchScrollingEffect\";\nimport setStyle from \"./setStyle\";\nimport ScrollLocker from \"./Dom/scrollLocker\";\nvar openCount = 0;\nvar supportDom = canUseDom();\n\n/** @private Test usage only */\nexport function getOpenCount() {\n return process.env.NODE_ENV === 'test' ? openCount : 0;\n}\n\n// https://github.com/ant-design/ant-design/issues/19340\n// https://github.com/ant-design/ant-design/issues/19332\nvar cacheOverflow = {};\nvar getParent = function getParent(getContainer) {\n if (!supportDom) {\n return null;\n }\n if (getContainer) {\n if (typeof getContainer === 'string') {\n return document.querySelectorAll(getContainer)[0];\n }\n if (typeof getContainer === 'function') {\n return getContainer();\n }\n if (_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {\n return getContainer;\n }\n }\n return document.body;\n};\nvar PortalWrapper = /*#__PURE__*/function (_React$Component) {\n _inherits(PortalWrapper, _React$Component);\n var _super = _createSuper(PortalWrapper);\n function PortalWrapper(props) {\n var _this;\n _classCallCheck(this, PortalWrapper);\n _this = _super.call(this, props);\n _defineProperty(_assertThisInitialized(_this), \"container\", void 0);\n _defineProperty(_assertThisInitialized(_this), \"componentRef\", /*#__PURE__*/React.createRef());\n _defineProperty(_assertThisInitialized(_this), \"rafId\", void 0);\n _defineProperty(_assertThisInitialized(_this), \"scrollLocker\", void 0);\n _defineProperty(_assertThisInitialized(_this), \"renderComponent\", void 0);\n _defineProperty(_assertThisInitialized(_this), \"updateScrollLocker\", function (prevProps) {\n var _ref = prevProps || {},\n prevVisible = _ref.visible;\n var _this$props = _this.props,\n getContainer = _this$props.getContainer,\n visible = _this$props.visible;\n if (visible && visible !== prevVisible && supportDom && getParent(getContainer) !== _this.scrollLocker.getContainer()) {\n _this.scrollLocker.reLock({\n container: getParent(getContainer)\n });\n }\n });\n _defineProperty(_assertThisInitialized(_this), \"updateOpenCount\", function (prevProps) {\n var _ref2 = prevProps || {},\n prevVisible = _ref2.visible,\n prevGetContainer = _ref2.getContainer;\n var _this$props2 = _this.props,\n visible = _this$props2.visible,\n getContainer = _this$props2.getContainer;\n\n // Update count\n if (visible !== prevVisible && supportDom && getParent(getContainer) === document.body) {\n if (visible && !prevVisible) {\n openCount += 1;\n } else if (prevProps) {\n openCount -= 1;\n }\n }\n\n // Clean up container if needed\n var getContainerIsFunc = typeof getContainer === 'function' && typeof prevGetContainer === 'function';\n if (getContainerIsFunc ? getContainer.toString() !== prevGetContainer.toString() : getContainer !== prevGetContainer) {\n _this.removeCurrentContainer();\n }\n });\n _defineProperty(_assertThisInitialized(_this), \"attachToParent\", function () {\n var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n if (force || _this.container && !_this.container.parentNode) {\n var parent = getParent(_this.props.getContainer);\n if (parent) {\n parent.appendChild(_this.container);\n return true;\n }\n return false;\n }\n return true;\n });\n _defineProperty(_assertThisInitialized(_this), \"getContainer\", function () {\n if (!supportDom) {\n return null;\n }\n if (!_this.container) {\n _this.container = document.createElement('div');\n _this.attachToParent(true);\n }\n _this.setWrapperClassName();\n return _this.container;\n });\n _defineProperty(_assertThisInitialized(_this), \"setWrapperClassName\", function () {\n var wrapperClassName = _this.props.wrapperClassName;\n if (_this.container && wrapperClassName && wrapperClassName !== _this.container.className) {\n _this.container.className = wrapperClassName;\n }\n });\n _defineProperty(_assertThisInitialized(_this), \"removeCurrentContainer\", function () {\n var _this$container;\n // Portal will remove from `parentNode`.\n // Let's handle this again to avoid refactor issue.\n (_this$container = _this.container) === null || _this$container === void 0 || (_this$container = _this$container.parentNode) === null || _this$container === void 0 || _this$container.removeChild(_this.container);\n });\n /**\n * Enhance ./switchScrollingEffect\n * 1. Simulate document body scroll bar with\n * 2. Record body has overflow style and recover when all of PortalWrapper invisible\n * 3. Disable body scroll when PortalWrapper has open\n *\n * @memberof PortalWrapper\n */\n _defineProperty(_assertThisInitialized(_this), \"switchScrollingEffect\", function () {\n if (openCount === 1 && !Object.keys(cacheOverflow).length) {\n switchScrollingEffect();\n // Must be set after switchScrollingEffect\n cacheOverflow = setStyle({\n overflow: 'hidden',\n overflowX: 'hidden',\n overflowY: 'hidden'\n });\n } else if (!openCount) {\n setStyle(cacheOverflow);\n cacheOverflow = {};\n switchScrollingEffect(true);\n }\n });\n _this.scrollLocker = new ScrollLocker({\n container: getParent(props.getContainer)\n });\n return _this;\n }\n _createClass(PortalWrapper, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n this.updateOpenCount();\n if (!this.attachToParent()) {\n this.rafId = raf(function () {\n _this2.forceUpdate();\n });\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n this.updateOpenCount(prevProps);\n this.updateScrollLocker(prevProps);\n this.setWrapperClassName();\n this.attachToParent();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this$props3 = this.props,\n visible = _this$props3.visible,\n getContainer = _this$props3.getContainer;\n if (supportDom && getParent(getContainer) === document.body) {\n // 离开时不会 render, 导到离开时数值不变,改用 func 。。\n openCount = visible && openCount ? openCount - 1 : openCount;\n }\n this.removeCurrentContainer();\n raf.cancel(this.rafId);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props4 = this.props,\n children = _this$props4.children,\n forceRender = _this$props4.forceRender,\n visible = _this$props4.visible;\n var portal = null;\n var childProps = {\n getOpenCount: function getOpenCount() {\n return openCount;\n },\n getContainer: this.getContainer,\n switchScrollingEffect: this.switchScrollingEffect,\n scrollLocker: this.scrollLocker\n };\n if (forceRender || visible || this.componentRef.current) {\n portal = /*#__PURE__*/React.createElement(Portal, {\n getContainer: this.getContainer,\n ref: this.componentRef\n }, children(childProps));\n }\n return portal;\n }\n }]);\n return PortalWrapper;\n}(React.Component);\nexport default PortalWrapper;","/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\n\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n /**\n * TAB\n */\n TAB: 9,\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12,\n // NUMLOCK on FF/Safari Mac\n /**\n * ENTER\n */\n ENTER: 13,\n /**\n * SHIFT\n */\n SHIFT: 16,\n /**\n * CTRL\n */\n CTRL: 17,\n /**\n * ALT\n */\n ALT: 18,\n /**\n * PAUSE\n */\n PAUSE: 19,\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n /**\n * ESC\n */\n ESC: 27,\n /**\n * SPACE\n */\n SPACE: 32,\n /**\n * PAGE_UP\n */\n PAGE_UP: 33,\n // also NUM_NORTH_EAST\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34,\n // also NUM_SOUTH_EAST\n /**\n * END\n */\n END: 35,\n // also NUM_SOUTH_WEST\n /**\n * HOME\n */\n HOME: 36,\n // also NUM_NORTH_WEST\n /**\n * LEFT\n */\n LEFT: 37,\n // also NUM_WEST\n /**\n * UP\n */\n UP: 38,\n // also NUM_NORTH\n /**\n * RIGHT\n */\n RIGHT: 39,\n // also NUM_EAST\n /**\n * DOWN\n */\n DOWN: 40,\n // also NUM_SOUTH\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n /**\n * INSERT\n */\n INSERT: 45,\n // also NUM_INSERT\n /**\n * DELETE\n */\n DELETE: 46,\n // also NUM_DELETE\n /**\n * ZERO\n */\n ZERO: 48,\n /**\n * ONE\n */\n ONE: 49,\n /**\n * TWO\n */\n TWO: 50,\n /**\n * THREE\n */\n THREE: 51,\n /**\n * FOUR\n */\n FOUR: 52,\n /**\n * FIVE\n */\n FIVE: 53,\n /**\n * SIX\n */\n SIX: 54,\n /**\n * SEVEN\n */\n SEVEN: 55,\n /**\n * EIGHT\n */\n EIGHT: 56,\n /**\n * NINE\n */\n NINE: 57,\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63,\n // needs localization\n /**\n * A\n */\n A: 65,\n /**\n * B\n */\n B: 66,\n /**\n * C\n */\n C: 67,\n /**\n * D\n */\n D: 68,\n /**\n * E\n */\n E: 69,\n /**\n * F\n */\n F: 70,\n /**\n * G\n */\n G: 71,\n /**\n * H\n */\n H: 72,\n /**\n * I\n */\n I: 73,\n /**\n * J\n */\n J: 74,\n /**\n * K\n */\n K: 75,\n /**\n * L\n */\n L: 76,\n /**\n * M\n */\n M: 77,\n /**\n * N\n */\n N: 78,\n /**\n * O\n */\n O: 79,\n /**\n * P\n */\n P: 80,\n /**\n * Q\n */\n Q: 81,\n /**\n * R\n */\n R: 82,\n /**\n * S\n */\n S: 83,\n /**\n * T\n */\n T: 84,\n /**\n * U\n */\n U: 85,\n /**\n * V\n */\n V: 86,\n /**\n * W\n */\n W: 87,\n /**\n * X\n */\n X: 88,\n /**\n * Y\n */\n Y: 89,\n /**\n * Z\n */\n Z: 90,\n /**\n * META\n */\n META: 91,\n // WIN_KEY_LEFT\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n /**\n * F1\n */\n F1: 112,\n /**\n * F2\n */\n F2: 113,\n /**\n * F3\n */\n F3: 114,\n /**\n * F4\n */\n F4: 115,\n /**\n * F5\n */\n F5: 116,\n /**\n * F6\n */\n F6: 117,\n /**\n * F7\n */\n F7: 118,\n /**\n * F8\n */\n F8: 119,\n /**\n * F9\n */\n F9: 120,\n /**\n * F10\n */\n F10: 121,\n /**\n * F11\n */\n F11: 122,\n /**\n * F12\n */\n F12: 123,\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n /**\n * SEMICOLON\n */\n SEMICOLON: 186,\n // needs localization\n /**\n * DASH\n */\n DASH: 189,\n // needs localization\n /**\n * EQUALS\n */\n EQUALS: 187,\n // needs localization\n /**\n * COMMA\n */\n COMMA: 188,\n // needs localization\n /**\n * PERIOD\n */\n PERIOD: 190,\n // needs localization\n /**\n * SLASH\n */\n SLASH: 191,\n // needs localization\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192,\n // needs localization\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222,\n // needs localization\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219,\n // needs localization\n /**\n * BACKSLASH\n */\n BACKSLASH: 220,\n // needs localization\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221,\n // needs localization\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224,\n // Firefox (Gecko) fires this for the meta key instead of 91\n /**\n * WIN_IME\n */\n WIN_IME: 229,\n // ======================== Function ========================\n /**\n * whether text and modified key is entered at the same time.\n */\n isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n if (e.altKey && !e.ctrlKey || e.metaKey ||\n // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n }\n\n // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n default:\n return true;\n }\n },\n /**\n * whether character is entered.\n */\n isCharacterKey: function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n }\n\n // Safari sends zero key code for non-latin characters.\n if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n default:\n return false;\n }\n }\n};\nexport default KeyCode;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nvar attributes = \"accept acceptCharset accessKey action allowFullScreen allowTransparency\\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\\n charSet checked classID className colSpan cols content contentEditable contextMenu\\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\\n mediaGroup method min minLength multiple muted name noValidate nonce open\\n optimum pattern placeholder poster preload radioGroup readOnly rel required\\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\\n summary tabIndex target title type useMap value width wmode wrap\";\nvar eventsName = \"onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError\";\nvar propList = \"\".concat(attributes, \" \").concat(eventsName).split(/[\\s\\n]+/);\n\n/* eslint-enable max-len */\nvar ariaPrefix = 'aria-';\nvar dataPrefix = 'data-';\nfunction match(key, prefix) {\n return key.indexOf(prefix) === 0;\n}\n/**\n * Picker props from exist props with filter\n * @param props Passed props\n * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config\n */\nexport default function pickAttrs(props) {\n var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var mergedConfig;\n if (ariaOnly === false) {\n mergedConfig = {\n aria: true,\n data: true,\n attr: true\n };\n } else if (ariaOnly === true) {\n mergedConfig = {\n aria: true\n };\n } else {\n mergedConfig = _objectSpread({}, ariaOnly);\n }\n var attrs = {};\n Object.keys(props).forEach(function (key) {\n if (\n // Aria\n mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||\n // Data\n mergedConfig.data && match(key, dataPrefix) ||\n // Attr\n mergedConfig.attr && propList.includes(key)) {\n attrs[key] = props[key];\n }\n });\n return attrs;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nexport default function Mask(props) {\n var prefixCls = props.prefixCls,\n style = props.style,\n visible = props.visible,\n maskProps = props.maskProps,\n motionName = props.motionName;\n return /*#__PURE__*/React.createElement(CSSMotion, {\n key: \"mask\",\n visible: visible,\n motionName: motionName,\n leavedClassName: \"\".concat(prefixCls, \"-mask-hidden\")\n }, function (_ref) {\n var motionClassName = _ref.className,\n motionStyle = _ref.style;\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n style: _objectSpread(_objectSpread({}, motionStyle), style),\n className: classNames(\"\".concat(prefixCls, \"-mask\"), motionClassName)\n }, maskProps));\n });\n}","// =============================== Motion ===============================\nexport function getMotionName(prefixCls, transitionName, animationName) {\n var motionName = transitionName;\n\n if (!motionName && animationName) {\n motionName = \"\".concat(prefixCls, \"-\").concat(animationName);\n }\n\n return motionName;\n} // ================================ UUID ================================\n\nvar uuid = -1;\nexport function getUUID() {\n uuid += 1;\n return uuid;\n} // =============================== Offset ===============================\n\nfunction getScroll(w, top) {\n var ret = w[\"page\".concat(top ? 'Y' : 'X', \"Offset\")];\n var method = \"scroll\".concat(top ? 'Top' : 'Left');\n\n if (typeof ret !== 'number') {\n var d = w.document;\n ret = d.documentElement[method];\n\n if (typeof ret !== 'number') {\n ret = d.body[method];\n }\n }\n\n return ret;\n}\n\nexport function offset(el) {\n var rect = el.getBoundingClientRect();\n var pos = {\n left: rect.left,\n top: rect.top\n };\n var doc = el.ownerDocument;\n var w = doc.defaultView || doc.parentWindow;\n pos.left += getScroll(w);\n pos.top += getScroll(w, true);\n return pos;\n}","import * as React from 'react';\nexport default /*#__PURE__*/React.memo(function (_ref) {\n var children = _ref.children;\n return children;\n}, function (_, _ref2) {\n var shouldUpdate = _ref2.shouldUpdate;\n return !shouldUpdate;\n});","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { useRef } from 'react';\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport { offset } from '../../util';\nimport MemoChildren from './MemoChildren';\nvar sentinelStyle = {\n width: 0,\n height: 0,\n overflow: 'hidden',\n outline: 'none'\n};\nvar Content = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var closable = props.closable,\n prefixCls = props.prefixCls,\n width = props.width,\n height = props.height,\n footer = props.footer,\n title = props.title,\n closeIcon = props.closeIcon,\n style = props.style,\n className = props.className,\n visible = props.visible,\n forceRender = props.forceRender,\n bodyStyle = props.bodyStyle,\n bodyProps = props.bodyProps,\n children = props.children,\n destroyOnClose = props.destroyOnClose,\n modalRender = props.modalRender,\n motionName = props.motionName,\n ariaId = props.ariaId,\n onClose = props.onClose,\n onVisibleChanged = props.onVisibleChanged,\n onMouseDown = props.onMouseDown,\n onMouseUp = props.onMouseUp,\n mousePosition = props.mousePosition;\n var sentinelStartRef = useRef();\n var sentinelEndRef = useRef();\n var dialogRef = useRef(); // ============================== Ref ===============================\n\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n var _sentinelStartRef$cur;\n\n (_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 ? void 0 : _sentinelStartRef$cur.focus();\n },\n changeActive: function changeActive(next) {\n var _document = document,\n activeElement = _document.activeElement;\n\n if (next && activeElement === sentinelEndRef.current) {\n sentinelStartRef.current.focus();\n } else if (!next && activeElement === sentinelStartRef.current) {\n sentinelEndRef.current.focus();\n }\n }\n };\n }); // ============================= Style ==============================\n\n var _React$useState = React.useState(),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n transformOrigin = _React$useState2[0],\n setTransformOrigin = _React$useState2[1];\n\n var contentStyle = {};\n\n if (width !== undefined) {\n contentStyle.width = width;\n }\n\n if (height !== undefined) {\n contentStyle.height = height;\n }\n\n if (transformOrigin) {\n contentStyle.transformOrigin = transformOrigin;\n }\n\n function onPrepare() {\n var elementOffset = offset(dialogRef.current);\n setTransformOrigin(mousePosition ? \"\".concat(mousePosition.x - elementOffset.left, \"px \").concat(mousePosition.y - elementOffset.top, \"px\") : '');\n } // ============================= Render =============================\n\n\n var footerNode;\n\n if (footer) {\n footerNode = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-footer\")\n }, footer);\n }\n\n var headerNode;\n\n if (title) {\n headerNode = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-header\")\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-title\"),\n id: ariaId\n }, title));\n }\n\n var closer;\n\n if (closable) {\n closer = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: onClose,\n \"aria-label\": \"Close\",\n className: \"\".concat(prefixCls, \"-close\")\n }, closeIcon || /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-close-x\")\n }));\n }\n\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-content\")\n }, closer, headerNode, /*#__PURE__*/React.createElement(\"div\", _extends({\n className: \"\".concat(prefixCls, \"-body\"),\n style: bodyStyle\n }, bodyProps), children), footerNode);\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: visible,\n onVisibleChanged: onVisibleChanged,\n onAppearPrepare: onPrepare,\n onEnterPrepare: onPrepare,\n forceRender: forceRender,\n motionName: motionName,\n removeOnLeave: destroyOnClose,\n ref: dialogRef\n }, function (_ref, motionRef) {\n var motionClassName = _ref.className,\n motionStyle = _ref.style;\n return /*#__PURE__*/React.createElement(\"div\", {\n key: \"dialog-element\",\n role: \"document\",\n ref: motionRef,\n style: _objectSpread(_objectSpread(_objectSpread({}, motionStyle), style), contentStyle),\n className: classNames(prefixCls, className, motionClassName),\n onMouseDown: onMouseDown,\n onMouseUp: onMouseUp\n }, /*#__PURE__*/React.createElement(\"div\", {\n tabIndex: 0,\n ref: sentinelStartRef,\n style: sentinelStyle,\n \"aria-hidden\": \"true\"\n }), /*#__PURE__*/React.createElement(MemoChildren, {\n shouldUpdate: visible || forceRender\n }, modalRender ? modalRender(content) : content), /*#__PURE__*/React.createElement(\"div\", {\n tabIndex: 0,\n ref: sentinelEndRef,\n style: sentinelStyle,\n \"aria-hidden\": \"true\"\n }));\n });\n});\nContent.displayName = 'Content';\nexport default Content;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { useRef, useEffect } from 'react';\nimport classNames from 'classnames';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport contains from \"rc-util/es/Dom/contains\";\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport Mask from './Mask';\nimport { getMotionName, getUUID } from '../util';\nimport Content from './Content';\nexport default function Dialog(props) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-dialog' : _props$prefixCls,\n zIndex = props.zIndex,\n _props$visible = props.visible,\n visible = _props$visible === void 0 ? false : _props$visible,\n _props$keyboard = props.keyboard,\n keyboard = _props$keyboard === void 0 ? true : _props$keyboard,\n _props$focusTriggerAf = props.focusTriggerAfterClose,\n focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf,\n scrollLocker = props.scrollLocker,\n title = props.title,\n wrapStyle = props.wrapStyle,\n wrapClassName = props.wrapClassName,\n wrapProps = props.wrapProps,\n onClose = props.onClose,\n afterClose = props.afterClose,\n transitionName = props.transitionName,\n animation = props.animation,\n _props$closable = props.closable,\n closable = _props$closable === void 0 ? true : _props$closable,\n _props$mask = props.mask,\n mask = _props$mask === void 0 ? true : _props$mask,\n maskTransitionName = props.maskTransitionName,\n maskAnimation = props.maskAnimation,\n _props$maskClosable = props.maskClosable,\n maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,\n maskStyle = props.maskStyle,\n maskProps = props.maskProps;\n var lastOutSideActiveElementRef = useRef();\n var wrapperRef = useRef();\n var contentRef = useRef();\n\n var _React$useState = React.useState(visible),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n animatedVisible = _React$useState2[0],\n setAnimatedVisible = _React$useState2[1]; // ========================== Init ==========================\n\n\n var ariaIdRef = useRef();\n\n if (!ariaIdRef.current) {\n ariaIdRef.current = \"rcDialogTitle\".concat(getUUID());\n } // ========================= Events =========================\n\n\n function onDialogVisibleChanged(newVisible) {\n if (newVisible) {\n // Try to focus\n if (!contains(wrapperRef.current, document.activeElement)) {\n var _contentRef$current;\n\n lastOutSideActiveElementRef.current = document.activeElement;\n (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.focus();\n }\n } else {\n // Clean up scroll bar & focus back\n setAnimatedVisible(false);\n\n if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {\n try {\n lastOutSideActiveElementRef.current.focus({\n preventScroll: true\n });\n } catch (e) {// Do nothing\n }\n\n lastOutSideActiveElementRef.current = null;\n } // Trigger afterClose only when change visible from true to false\n\n\n if (animatedVisible) {\n afterClose === null || afterClose === void 0 ? void 0 : afterClose();\n }\n }\n }\n\n function onInternalClose(e) {\n onClose === null || onClose === void 0 ? void 0 : onClose(e);\n } // >>> Content\n\n\n var contentClickRef = useRef(false);\n var contentTimeoutRef = useRef(); // We need record content click incase content popup out of dialog\n\n var onContentMouseDown = function onContentMouseDown() {\n clearTimeout(contentTimeoutRef.current);\n contentClickRef.current = true;\n };\n\n var onContentMouseUp = function onContentMouseUp() {\n contentTimeoutRef.current = setTimeout(function () {\n contentClickRef.current = false;\n });\n }; // >>> Wrapper\n // Close only when element not on dialog\n\n\n var onWrapperClick = null;\n\n if (maskClosable) {\n onWrapperClick = function onWrapperClick(e) {\n if (contentClickRef.current) {\n contentClickRef.current = false;\n } else if (wrapperRef.current === e.target) {\n onInternalClose(e);\n }\n };\n }\n\n function onWrapperKeyDown(e) {\n if (keyboard && e.keyCode === KeyCode.ESC) {\n e.stopPropagation();\n onInternalClose(e);\n return;\n } // keep focus inside dialog\n\n\n if (visible) {\n if (e.keyCode === KeyCode.TAB) {\n contentRef.current.changeActive(!e.shiftKey);\n }\n }\n } // ========================= Effect =========================\n\n\n useEffect(function () {\n if (visible) {\n setAnimatedVisible(true);\n }\n\n return function () {};\n }, [visible]); // Remove direct should also check the scroll bar update\n\n useEffect(function () {\n return function () {\n clearTimeout(contentTimeoutRef.current);\n };\n }, []);\n useEffect(function () {\n if (animatedVisible) {\n scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock();\n return scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock;\n }\n\n return function () {};\n }, [animatedVisible, scrollLocker]); // ========================= Render =========================\n\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: \"\".concat(prefixCls, \"-root\")\n }, pickAttrs(props, {\n data: true\n })), /*#__PURE__*/React.createElement(Mask, {\n prefixCls: prefixCls,\n visible: mask && visible,\n motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),\n style: _objectSpread({\n zIndex: zIndex\n }, maskStyle),\n maskProps: maskProps\n }), /*#__PURE__*/React.createElement(\"div\", _extends({\n tabIndex: -1,\n onKeyDown: onWrapperKeyDown,\n className: classNames(\"\".concat(prefixCls, \"-wrap\"), wrapClassName),\n ref: wrapperRef,\n onClick: onWrapperClick,\n role: \"dialog\",\n \"aria-labelledby\": title ? ariaIdRef.current : null,\n style: _objectSpread(_objectSpread({\n zIndex: zIndex\n }, wrapStyle), {}, {\n display: !animatedVisible ? 'none' : null\n })\n }, wrapProps), /*#__PURE__*/React.createElement(Content, _extends({}, props, {\n onMouseDown: onContentMouseDown,\n onMouseUp: onContentMouseUp,\n ref: contentRef,\n closable: closable,\n ariaId: ariaIdRef.current,\n prefixCls: prefixCls,\n visible: visible,\n onClose: onInternalClose,\n onVisibleChanged: onDialogVisibleChanged,\n motionName: getMotionName(prefixCls, transitionName, animation)\n }))));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport Portal from \"rc-util/es/PortalWrapper\";\nimport Dialog from './Dialog'; // fix issue #10656\n\n/*\n * getContainer remarks\n * Custom container should not be return, because in the Portal component, it will remove the\n * return container element here, if the custom container is the only child of it's component,\n * like issue #10656, It will has a conflict with removeChild method in react-dom.\n * So here should add a child (div element) to custom container.\n * */\n\nvar DialogWrap = function DialogWrap(props) {\n var visible = props.visible,\n getContainer = props.getContainer,\n forceRender = props.forceRender,\n _props$destroyOnClose = props.destroyOnClose,\n destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose,\n _afterClose = props.afterClose;\n\n var _React$useState = React.useState(visible),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n animatedVisible = _React$useState2[0],\n setAnimatedVisible = _React$useState2[1];\n\n React.useEffect(function () {\n if (visible) {\n setAnimatedVisible(true);\n }\n }, [visible]); // 渲染在当前 dom 里;\n\n if (getContainer === false) {\n return /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {\n getOpenCount: function getOpenCount() {\n return 2;\n } // 不对 body 做任何操作。。\n\n }));\n } // Destroy on close will remove wrapped div\n\n\n if (!forceRender && destroyOnClose && !animatedVisible) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(Portal, {\n visible: visible,\n forceRender: forceRender,\n getContainer: getContainer\n }, function (childProps) {\n return /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {\n destroyOnClose: destroyOnClose,\n afterClose: function afterClose() {\n _afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();\n setAnimatedVisible(false);\n }\n }, childProps));\n });\n};\n\nDialogWrap.displayName = 'Dialog';\nexport default DialogWrap;","import DialogWrap from './DialogWrap';\nexport default DialogWrap;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { getClientSize } from \"rc-util/es/Dom/css\";\n\nfunction fixPoint(key, start, width, clientWidth) {\n var startAddWidth = start + width;\n var offsetStart = (width - clientWidth) / 2;\n\n if (width > clientWidth) {\n if (start > 0) {\n return _defineProperty({}, key, offsetStart);\n }\n\n if (start < 0 && startAddWidth < clientWidth) {\n return _defineProperty({}, key, -offsetStart);\n }\n } else if (start < 0 || startAddWidth > clientWidth) {\n return _defineProperty({}, key, start < 0 ? offsetStart : -offsetStart);\n }\n\n return {};\n}\n/**\n * Fix positon x,y point when\n *\n * Ele width && height < client\n * - Back origin\n *\n * - Ele width | height > clientWidth | clientHeight\n * - left | top > 0 -> Back 0\n * - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight\n *\n * Regardless of other\n */\n\n\nexport default function getFixScaleEleTransPosition(width, height, left, top) {\n var _getClientSize = getClientSize(),\n clientWidth = _getClientSize.width,\n clientHeight = _getClientSize.height;\n\n var fixPos = null;\n\n if (width <= clientWidth && height <= clientHeight) {\n fixPos = {\n x: 0,\n y: 0\n };\n } else if (width > clientWidth || height > clientHeight) {\n fixPos = _objectSpread(_objectSpread({}, fixPoint('x', left, width, clientWidth)), fixPoint('y', top, height, clientHeight));\n }\n\n return fixPos;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"visible\", \"onVisibleChange\", \"getContainer\", \"current\"];\nimport * as React from 'react';\nimport { useState } from 'react';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Preview from './Preview';\n/* istanbul ignore next */\n\nexport var context = /*#__PURE__*/React.createContext({\n previewUrls: new Map(),\n setPreviewUrls: function setPreviewUrls() {\n return null;\n },\n current: null,\n setCurrent: function setCurrent() {\n return null;\n },\n setShowPreview: function setShowPreview() {\n return null;\n },\n setMousePosition: function setMousePosition() {\n return null;\n },\n registerImage: function registerImage() {\n return function () {\n return null;\n };\n }\n});\nvar Provider = context.Provider;\n\nvar Group = function Group(_ref) {\n var _ref$previewPrefixCls = _ref.previewPrefixCls,\n previewPrefixCls = _ref$previewPrefixCls === void 0 ? 'rc-image-preview' : _ref$previewPrefixCls,\n children = _ref.children,\n _ref$icons = _ref.icons,\n icons = _ref$icons === void 0 ? {} : _ref$icons,\n preview = _ref.preview;\n\n var _ref2 = _typeof(preview) === 'object' ? preview : {},\n _ref2$visible = _ref2.visible,\n previewVisible = _ref2$visible === void 0 ? undefined : _ref2$visible,\n _ref2$onVisibleChange = _ref2.onVisibleChange,\n onPreviewVisibleChange = _ref2$onVisibleChange === void 0 ? undefined : _ref2$onVisibleChange,\n _ref2$getContainer = _ref2.getContainer,\n getContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,\n _ref2$current = _ref2.current,\n currentIndex = _ref2$current === void 0 ? 0 : _ref2$current,\n dialogProps = _objectWithoutProperties(_ref2, _excluded);\n\n var _useState = useState(new Map()),\n _useState2 = _slicedToArray(_useState, 2),\n previewUrls = _useState2[0],\n setPreviewUrls = _useState2[1];\n\n var _useState3 = useState(),\n _useState4 = _slicedToArray(_useState3, 2),\n current = _useState4[0],\n setCurrent = _useState4[1];\n\n var _useMergedState = useMergedState(!!previewVisible, {\n value: previewVisible,\n onChange: onPreviewVisibleChange\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n isShowPreview = _useMergedState2[0],\n setShowPreview = _useMergedState2[1];\n\n var _useState5 = useState(null),\n _useState6 = _slicedToArray(_useState5, 2),\n mousePosition = _useState6[0],\n setMousePosition = _useState6[1];\n\n var isControlled = previewVisible !== undefined;\n var previewUrlsKeys = Array.from(previewUrls.keys());\n var currentControlledKey = previewUrlsKeys[currentIndex];\n var canPreviewUrls = new Map(Array.from(previewUrls).filter(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n canPreview = _ref4[1].canPreview;\n\n return !!canPreview;\n }).map(function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n id = _ref6[0],\n url = _ref6[1].url;\n\n return [id, url];\n }));\n\n var registerImage = function registerImage(id, url) {\n var canPreview = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var unRegister = function unRegister() {\n setPreviewUrls(function (oldPreviewUrls) {\n var clonePreviewUrls = new Map(oldPreviewUrls);\n var deleteResult = clonePreviewUrls.delete(id);\n return deleteResult ? clonePreviewUrls : oldPreviewUrls;\n });\n };\n\n setPreviewUrls(function (oldPreviewUrls) {\n return new Map(oldPreviewUrls).set(id, {\n url: url,\n canPreview: canPreview\n });\n });\n return unRegister;\n };\n\n var onPreviewClose = function onPreviewClose(e) {\n e.stopPropagation();\n setShowPreview(false);\n setMousePosition(null);\n };\n\n React.useEffect(function () {\n setCurrent(currentControlledKey);\n }, [currentControlledKey]);\n React.useEffect(function () {\n if (!isShowPreview && isControlled) {\n setCurrent(currentControlledKey);\n }\n }, [currentControlledKey, isControlled, isShowPreview]);\n return /*#__PURE__*/React.createElement(Provider, {\n value: {\n isPreviewGroup: true,\n previewUrls: canPreviewUrls,\n setPreviewUrls: setPreviewUrls,\n current: current,\n setCurrent: setCurrent,\n setShowPreview: setShowPreview,\n setMousePosition: setMousePosition,\n registerImage: registerImage\n }\n }, children, /*#__PURE__*/React.createElement(Preview, _extends({\n \"aria-hidden\": !isShowPreview,\n visible: isShowPreview,\n prefixCls: previewPrefixCls,\n onClose: onPreviewClose,\n mousePosition: mousePosition,\n src: canPreviewUrls.get(current),\n icons: icons,\n getContainer: getContainer\n }, dialogProps)));\n};\n\nexport default Group;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"src\", \"alt\", \"onClose\", \"afterClose\", \"visible\", \"icons\"];\nimport * as React from 'react';\nimport Dialog from 'rc-dialog';\nimport classnames from 'classnames';\nimport addEventListener from \"rc-util/es/Dom/addEventListener\";\nimport { warning } from \"rc-util/es/warning\";\nimport useFrameSetState from './hooks/useFrameSetState';\nimport getFixScaleEleTransPosition from './getFixScaleEleTransPosition';\nimport { context } from './PreviewGroup';\nvar useState = React.useState,\n useEffect = React.useEffect;\nvar initialPosition = {\n x: 0,\n y: 0\n};\n\nvar Preview = function Preview(props) {\n var prefixCls = props.prefixCls,\n src = props.src,\n alt = props.alt,\n onClose = props.onClose,\n afterClose = props.afterClose,\n visible = props.visible,\n _props$icons = props.icons,\n icons = _props$icons === void 0 ? {} : _props$icons,\n restProps = _objectWithoutProperties(props, _excluded);\n\n var rotateLeft = icons.rotateLeft,\n rotateRight = icons.rotateRight,\n zoomIn = icons.zoomIn,\n zoomOut = icons.zoomOut,\n close = icons.close,\n left = icons.left,\n right = icons.right;\n\n var _useState = useState(1),\n _useState2 = _slicedToArray(_useState, 2),\n scale = _useState2[0],\n setScale = _useState2[1];\n\n var _useState3 = useState(0),\n _useState4 = _slicedToArray(_useState3, 2),\n rotate = _useState4[0],\n setRotate = _useState4[1];\n\n var _useFrameSetState = useFrameSetState(initialPosition),\n _useFrameSetState2 = _slicedToArray(_useFrameSetState, 2),\n position = _useFrameSetState2[0],\n setPosition = _useFrameSetState2[1];\n\n var imgRef = React.useRef();\n var originPositionRef = React.useRef({\n originX: 0,\n originY: 0,\n deltaX: 0,\n deltaY: 0\n });\n\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n isMoving = _React$useState2[0],\n setMoving = _React$useState2[1];\n\n var _React$useContext = React.useContext(context),\n previewUrls = _React$useContext.previewUrls,\n current = _React$useContext.current,\n isPreviewGroup = _React$useContext.isPreviewGroup,\n setCurrent = _React$useContext.setCurrent;\n\n var previewGroupCount = previewUrls.size;\n var previewUrlsKeys = Array.from(previewUrls.keys());\n var currentPreviewIndex = previewUrlsKeys.indexOf(current);\n var combinationSrc = isPreviewGroup ? previewUrls.get(current) : src;\n var showLeftOrRightSwitches = isPreviewGroup && previewGroupCount > 1;\n\n var _React$useState3 = React.useState({\n wheelDirection: 0\n }),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n lastWheelZoomDirection = _React$useState4[0],\n setLastWheelZoomDirection = _React$useState4[1];\n\n var onAfterClose = function onAfterClose() {\n setScale(1);\n setRotate(0);\n setPosition(initialPosition);\n };\n\n var onZoomIn = function onZoomIn() {\n setScale(function (value) {\n return value + 1;\n });\n setPosition(initialPosition);\n };\n\n var onZoomOut = function onZoomOut() {\n if (scale > 1) {\n setScale(function (value) {\n return value - 1;\n });\n }\n\n setPosition(initialPosition);\n };\n\n var onRotateRight = function onRotateRight() {\n setRotate(function (value) {\n return value + 90;\n });\n };\n\n var onRotateLeft = function onRotateLeft() {\n setRotate(function (value) {\n return value - 90;\n });\n };\n\n var onSwitchLeft = function onSwitchLeft(event) {\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n\n if (currentPreviewIndex > 0) {\n setCurrent(previewUrlsKeys[currentPreviewIndex - 1]);\n }\n };\n\n var onSwitchRight = function onSwitchRight(event) {\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n\n if (currentPreviewIndex < previewGroupCount - 1) {\n setCurrent(previewUrlsKeys[currentPreviewIndex + 1]);\n }\n };\n\n var wrapClassName = classnames(_defineProperty({}, \"\".concat(prefixCls, \"-moving\"), isMoving));\n var toolClassName = \"\".concat(prefixCls, \"-operations-operation\");\n var iconClassName = \"\".concat(prefixCls, \"-operations-icon\");\n var tools = [{\n icon: close,\n onClick: onClose,\n type: 'close'\n }, {\n icon: zoomIn,\n onClick: onZoomIn,\n type: 'zoomIn'\n }, {\n icon: zoomOut,\n onClick: onZoomOut,\n type: 'zoomOut',\n disabled: scale === 1\n }, {\n icon: rotateRight,\n onClick: onRotateRight,\n type: 'rotateRight'\n }, {\n icon: rotateLeft,\n onClick: onRotateLeft,\n type: 'rotateLeft'\n }];\n\n var onMouseUp = function onMouseUp() {\n if (visible && isMoving) {\n var width = imgRef.current.offsetWidth * scale;\n var height = imgRef.current.offsetHeight * scale; // eslint-disable-next-line @typescript-eslint/no-shadow\n\n var _imgRef$current$getBo = imgRef.current.getBoundingClientRect(),\n _left = _imgRef$current$getBo.left,\n top = _imgRef$current$getBo.top;\n\n var isRotate = rotate % 180 !== 0;\n setMoving(false);\n var fixState = getFixScaleEleTransPosition(isRotate ? height : width, isRotate ? width : height, _left, top);\n\n if (fixState) {\n setPosition(_objectSpread({}, fixState));\n }\n }\n };\n\n var onMouseDown = function onMouseDown(event) {\n // Only allow main button\n if (event.button !== 0) return;\n event.preventDefault(); // Without this mask close will abnormal\n\n event.stopPropagation();\n originPositionRef.current.deltaX = event.pageX - position.x;\n originPositionRef.current.deltaY = event.pageY - position.y;\n originPositionRef.current.originX = position.x;\n originPositionRef.current.originY = position.y;\n setMoving(true);\n };\n\n var onMouseMove = function onMouseMove(event) {\n if (visible && isMoving) {\n setPosition({\n x: event.pageX - originPositionRef.current.deltaX,\n y: event.pageY - originPositionRef.current.deltaY\n });\n }\n };\n\n var onWheelMove = function onWheelMove(event) {\n if (!visible) return;\n event.preventDefault();\n var wheelDirection = event.deltaY;\n setLastWheelZoomDirection({\n wheelDirection: wheelDirection\n });\n };\n\n useEffect(function () {\n var wheelDirection = lastWheelZoomDirection.wheelDirection;\n\n if (wheelDirection > 0) {\n onZoomOut();\n } else if (wheelDirection < 0) {\n onZoomIn();\n }\n }, [lastWheelZoomDirection]);\n useEffect(function () {\n var onTopMouseUpListener;\n var onTopMouseMoveListener;\n var onMouseUpListener = addEventListener(window, 'mouseup', onMouseUp, false);\n var onMouseMoveListener = addEventListener(window, 'mousemove', onMouseMove, false);\n var onScrollWheelListener = addEventListener(window, 'wheel', onWheelMove, {\n passive: false\n });\n\n try {\n // Resolve if in iframe lost event\n\n /* istanbul ignore next */\n if (window.top !== window.self) {\n onTopMouseUpListener = addEventListener(window.top, 'mouseup', onMouseUp, false);\n onTopMouseMoveListener = addEventListener(window.top, 'mousemove', onMouseMove, false);\n }\n } catch (error) {\n /* istanbul ignore next */\n warning(false, \"[rc-image] \".concat(error));\n }\n\n return function () {\n onMouseUpListener.remove();\n onMouseMoveListener.remove();\n onScrollWheelListener.remove();\n /* istanbul ignore next */\n\n if (onTopMouseUpListener) onTopMouseUpListener.remove();\n /* istanbul ignore next */\n\n if (onTopMouseMoveListener) onTopMouseMoveListener.remove();\n };\n }, [visible, isMoving]);\n return /*#__PURE__*/React.createElement(Dialog, _extends({\n transitionName: \"zoom\",\n maskTransitionName: \"fade\",\n closable: false,\n keyboard: true,\n prefixCls: prefixCls,\n onClose: onClose,\n afterClose: onAfterClose,\n visible: visible,\n wrapClassName: wrapClassName\n }, restProps), /*#__PURE__*/React.createElement(\"ul\", {\n className: \"\".concat(prefixCls, \"-operations\")\n }, tools.map(function (_ref) {\n var icon = _ref.icon,\n onClick = _ref.onClick,\n type = _ref.type,\n disabled = _ref.disabled;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: classnames(toolClassName, _defineProperty({}, \"\".concat(prefixCls, \"-operations-operation-disabled\"), !!disabled)),\n onClick: onClick,\n key: type\n }, /*#__PURE__*/React.isValidElement(icon) ? /*#__PURE__*/React.cloneElement(icon, {\n className: iconClassName\n }) : icon);\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-img-wrapper\"),\n style: {\n transform: \"translate3d(\".concat(position.x, \"px, \").concat(position.y, \"px, 0)\")\n }\n }, /*#__PURE__*/React.createElement(\"img\", {\n onMouseDown: onMouseDown,\n ref: imgRef,\n className: \"\".concat(prefixCls, \"-img\"),\n src: combinationSrc,\n alt: alt,\n style: {\n transform: \"scale3d(\".concat(scale, \", \").concat(scale, \", 1) rotate(\").concat(rotate, \"deg)\")\n }\n })), showLeftOrRightSwitches && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(\"\".concat(prefixCls, \"-switch-left\"), _defineProperty({}, \"\".concat(prefixCls, \"-switch-left-disabled\"), currentPreviewIndex === 0)),\n onClick: onSwitchLeft\n }, left), showLeftOrRightSwitches && /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(\"\".concat(prefixCls, \"-switch-right\"), _defineProperty({}, \"\".concat(prefixCls, \"-switch-right-disabled\"), currentPreviewIndex === previewGroupCount - 1)),\n onClick: onSwitchRight\n }, right));\n};\n\nexport default Preview;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport raf from \"rc-util/es/raf\";\nexport default function useFrameSetState(initial) {\n var frame = React.useRef(null);\n\n var _React$useState = React.useState(initial),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n state = _React$useState2[0],\n setState = _React$useState2[1];\n\n var queue = React.useRef([]);\n\n var setFrameState = function setFrameState(newState) {\n if (frame.current === null) {\n queue.current = [];\n frame.current = raf(function () {\n setState(function (preState) {\n var memoState = preState;\n queue.current.forEach(function (queueState) {\n memoState = _objectSpread(_objectSpread({}, memoState), queueState);\n });\n frame.current = null;\n return memoState;\n });\n });\n }\n\n queue.current.push(newState);\n };\n\n React.useEffect(function () {\n return function () {\n return frame.current && raf.cancel(frame.current);\n };\n }, []);\n return [state, setFrameState];\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"src\", \"alt\", \"onPreviewClose\", \"prefixCls\", \"previewPrefixCls\", \"placeholder\", \"fallback\", \"width\", \"height\", \"style\", \"preview\", \"className\", \"onClick\", \"onError\", \"wrapperClassName\", \"wrapperStyle\", \"crossOrigin\", \"decoding\", \"loading\", \"referrerPolicy\", \"sizes\", \"srcSet\", \"useMap\"],\n _excluded2 = [\"src\", \"visible\", \"onVisibleChange\", \"getContainer\", \"mask\", \"maskClassName\", \"icons\"];\nimport * as React from 'react';\nimport { useState } from 'react';\nimport cn from 'classnames';\nimport { getOffset } from \"rc-util/es/Dom/css\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Preview from './Preview';\nimport PreviewGroup, { context } from './PreviewGroup';\nvar uuid = 0;\n\nvar ImageInternal = function ImageInternal(_ref) {\n var imgSrc = _ref.src,\n alt = _ref.alt,\n onInitialPreviewClose = _ref.onPreviewClose,\n _ref$prefixCls = _ref.prefixCls,\n prefixCls = _ref$prefixCls === void 0 ? 'rc-image' : _ref$prefixCls,\n _ref$previewPrefixCls = _ref.previewPrefixCls,\n previewPrefixCls = _ref$previewPrefixCls === void 0 ? \"\".concat(prefixCls, \"-preview\") : _ref$previewPrefixCls,\n placeholder = _ref.placeholder,\n fallback = _ref.fallback,\n width = _ref.width,\n height = _ref.height,\n style = _ref.style,\n _ref$preview = _ref.preview,\n preview = _ref$preview === void 0 ? true : _ref$preview,\n className = _ref.className,\n onClick = _ref.onClick,\n onImageError = _ref.onError,\n wrapperClassName = _ref.wrapperClassName,\n wrapperStyle = _ref.wrapperStyle,\n crossOrigin = _ref.crossOrigin,\n decoding = _ref.decoding,\n loading = _ref.loading,\n referrerPolicy = _ref.referrerPolicy,\n sizes = _ref.sizes,\n srcSet = _ref.srcSet,\n useMap = _ref.useMap,\n otherProps = _objectWithoutProperties(_ref, _excluded);\n\n var isCustomPlaceholder = placeholder && placeholder !== true;\n\n var _ref2 = _typeof(preview) === 'object' ? preview : {},\n previewSrc = _ref2.src,\n _ref2$visible = _ref2.visible,\n previewVisible = _ref2$visible === void 0 ? undefined : _ref2$visible,\n _ref2$onVisibleChange = _ref2.onVisibleChange,\n onPreviewVisibleChange = _ref2$onVisibleChange === void 0 ? onInitialPreviewClose : _ref2$onVisibleChange,\n _ref2$getContainer = _ref2.getContainer,\n getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,\n previewMask = _ref2.mask,\n maskClassName = _ref2.maskClassName,\n icons = _ref2.icons,\n dialogProps = _objectWithoutProperties(_ref2, _excluded2);\n\n var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;\n var isControlled = previewVisible !== undefined;\n\n var _useMergedState = useMergedState(!!previewVisible, {\n value: previewVisible,\n onChange: onPreviewVisibleChange\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n isShowPreview = _useMergedState2[0],\n setShowPreview = _useMergedState2[1];\n\n var _useState = useState(isCustomPlaceholder ? 'loading' : 'normal'),\n _useState2 = _slicedToArray(_useState, 2),\n status = _useState2[0],\n setStatus = _useState2[1];\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n mousePosition = _useState4[0],\n setMousePosition = _useState4[1];\n\n var isError = status === 'error';\n\n var _React$useContext = React.useContext(context),\n isPreviewGroup = _React$useContext.isPreviewGroup,\n setCurrent = _React$useContext.setCurrent,\n setGroupShowPreview = _React$useContext.setShowPreview,\n setGroupMousePosition = _React$useContext.setMousePosition,\n registerImage = _React$useContext.registerImage;\n\n var _React$useState = React.useState(function () {\n uuid += 1;\n return uuid;\n }),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n currentId = _React$useState2[0];\n\n var canPreview = preview && !isError;\n var isLoaded = React.useRef(false);\n\n var onLoad = function onLoad() {\n setStatus('normal');\n };\n\n var onError = function onError(e) {\n if (onImageError) {\n onImageError(e);\n }\n\n setStatus('error');\n };\n\n var onPreview = function onPreview(e) {\n if (!isControlled) {\n var _getOffset = getOffset(e.target),\n left = _getOffset.left,\n top = _getOffset.top;\n\n if (isPreviewGroup) {\n setCurrent(currentId);\n setGroupMousePosition({\n x: left,\n y: top\n });\n } else {\n setMousePosition({\n x: left,\n y: top\n });\n }\n }\n\n if (isPreviewGroup) {\n setGroupShowPreview(true);\n } else {\n setShowPreview(true);\n }\n\n if (onClick) onClick(e);\n };\n\n var onPreviewClose = function onPreviewClose(e) {\n e.stopPropagation();\n setShowPreview(false);\n\n if (!isControlled) {\n setMousePosition(null);\n }\n };\n\n var getImgRef = function getImgRef(img) {\n isLoaded.current = false;\n if (status !== 'loading') return;\n\n if ((img === null || img === void 0 ? void 0 : img.complete) && (img.naturalWidth || img.naturalHeight)) {\n isLoaded.current = true;\n onLoad();\n }\n }; // Keep order start\n // Resolve https://github.com/ant-design/ant-design/issues/28881\n // Only need unRegister when component unMount\n\n\n React.useEffect(function () {\n var unRegister = registerImage(currentId, src);\n return unRegister;\n }, []);\n React.useEffect(function () {\n registerImage(currentId, src, canPreview);\n }, [src, canPreview]); // Keep order end\n\n React.useEffect(function () {\n if (isError) {\n setStatus('normal');\n }\n\n if (isCustomPlaceholder && !isLoaded.current) {\n setStatus('loading');\n }\n }, [imgSrc]);\n var wrapperClass = cn(prefixCls, wrapperClassName, _defineProperty({}, \"\".concat(prefixCls, \"-error\"), isError));\n var mergedSrc = isError && fallback ? fallback : src;\n var imgCommonProps = {\n crossOrigin: crossOrigin,\n decoding: decoding,\n loading: loading,\n referrerPolicy: referrerPolicy,\n sizes: sizes,\n srcSet: srcSet,\n useMap: useMap,\n alt: alt,\n className: cn(\"\".concat(prefixCls, \"-img\"), _defineProperty({}, \"\".concat(prefixCls, \"-img-placeholder\"), placeholder === true), className),\n style: _objectSpread({\n height: height\n }, style)\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", _extends({}, otherProps, {\n className: wrapperClass,\n onClick: canPreview ? onPreview : onClick,\n style: _objectSpread({\n width: width,\n height: height\n }, wrapperStyle)\n }), /*#__PURE__*/React.createElement(\"img\", _extends({}, imgCommonProps, {\n ref: getImgRef\n }, isError && fallback ? {\n src: fallback\n } : {\n onLoad: onLoad,\n onError: onError,\n src: imgSrc\n })), status === 'loading' && /*#__PURE__*/React.createElement(\"div\", {\n \"aria-hidden\": \"true\",\n className: \"\".concat(prefixCls, \"-placeholder\")\n }, placeholder), previewMask && canPreview && /*#__PURE__*/React.createElement(\"div\", {\n className: cn(\"\".concat(prefixCls, \"-mask\"), maskClassName)\n }, previewMask)), !isPreviewGroup && canPreview && /*#__PURE__*/React.createElement(Preview, _extends({\n \"aria-hidden\": !isShowPreview,\n visible: isShowPreview,\n prefixCls: previewPrefixCls,\n onClose: onPreviewClose,\n mousePosition: mousePosition,\n src: mergedSrc,\n alt: alt,\n getContainer: getPreviewContainer,\n icons: icons\n }, dialogProps)));\n};\n\nImageInternal.PreviewGroup = PreviewGroup;\nImageInternal.displayName = 'Image';\nexport default ImageInternal;","import Image from './Image';\nexport * from './Image';\nexport default Image;","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.useClipboard = void 0;\nvar clipboard_copy_1 = __importDefault(require(\"clipboard-copy\"));\nvar react_1 = require(\"react\");\nvar useTimedToggle_1 = require(\"./useTimedToggle\");\nfunction isInputLike(node) {\n return node && (node.nodeName === 'TEXTAREA' || node.nodeName === 'INPUT');\n}\nfunction useClipboard(options) {\n if (options === void 0) { options = {}; }\n var _a = useTimedToggle_1.useTimedToggle(false), copied = _a[0], toggleCopied = _a[1];\n var targetRef = react_1.useRef(null);\n var optionsRef = react_1.useRef(options);\n optionsRef.current = options;\n function isSupported() {\n return (!!navigator.clipboard ||\n (typeof document.execCommand === 'function' &&\n typeof document.queryCommandSupported === 'function' &&\n document.queryCommandSupported('copy')));\n }\n var copyHandler = react_1.useCallback(function (text) {\n var opts = optionsRef.current;\n var target = targetRef.current;\n function handleSuccess() {\n if (opts.onSuccess) {\n opts.onSuccess();\n }\n if (opts.copiedTimeout) {\n toggleCopied(opts.copiedTimeout);\n }\n if (opts.selectOnCopy && isInputLike(target)) {\n target.select();\n }\n }\n function handleError() {\n if (opts.onError) {\n opts.onError();\n }\n if (opts.selectOnError !== false && isInputLike(target)) {\n target.select();\n }\n }\n function copy(value) {\n clipboard_copy_1.default(value).then(handleSuccess).catch(handleError);\n }\n if (typeof text === 'string') {\n copy(text);\n }\n else if (target) {\n copy(target.value);\n }\n }, []);\n return {\n copied: copied,\n copy: copyHandler,\n isSupported: isSupported,\n target: targetRef,\n };\n}\nexports.useClipboard = useClipboard;\n"],"names":["raf","callback","setTimeout","caf","num","clearTimeout","window","requestAnimationFrame","handle","cancelAnimationFrame","rafUUID","rafIds","Map","cleanup","id","delete","wrapperRaf","callRef","leftTimes","realId","set","arguments","length","undefined","cancel","get","canUseDom","document","createElement","Portal","forwardRef","props","ref","didUpdate","getContainer","children","parentRef","useRef","containerRef","useImperativeHandle","initRef","current","parentNode","useEffect","appendChild","_containerRef$current","removeChild","ReactDOM","contains","root","n","node","cached","APPEND_ORDER","APPEND_PRIORITY","containerCache","getMark","mark","startsWith","concat","option","attachTo","querySelector","body","findStyles","container","Array","from","filter","tagName","injectCSS","css","csp","prepend","_option$priority","priority","mergedOrder","getOrder","isPrependQueue","styleNode","setAttribute","nonce","innerHTML","firstChild","existStyle","styles","includes","getAttribute","nodePriority","Number","insertBefore","nextSibling","findExistNode","key","find","updateCSS","originOption","_objectSpread","cachedRealContainer","placeholderStyle","syncRealContainer","existNode","_option$csp","_option$csp2","_option$csp3","newNode","measureScrollbarSize","ele","randomId","Math","random","toString","substring","measureEle","fallbackWidth","fallbackHeight","measureStyle","style","position","left","top","width","height","overflow","targetStyle","getComputedStyle","scrollbarColor","scrollbarWidth","webkitScrollbarStyle","parseInt","widthStyle","heightStyle","e","console","error","scrollWidth","isNaN","offsetWidth","clientWidth","scrollHeight","offsetHeight","clientHeight","removeCSS","getScrollBarSize","fresh","_options$element","element","oldStyle","styleKeys","Object","keys","forEach","cacheStyle","close","innerHeight","documentElement","innerWidth","scrollingEffectClassName","scrollingEffectClassNameReg","RegExp","bodyClassName","className","test","setStyle","replace","trim","scrollBarSize","addClassName","uuid","locks","ScrollLocker","_createClass","_options","_this","this","_classCallCheck","_defineProperty","_this$options","options","findLock","_ref","target","lockTarget","unLock","lock","_this$options3","some","_ref2","_ref3","_this$options2","_toConsumableArray","containerClassName","_ref4","_this$options4","overflowX","overflowY","_this$options5","_ref5","_ref6","_ref7","_findLock$options","openCount","supportDom","cacheOverflow","getParent","querySelectorAll","_typeof","HTMLElement","PortalWrapper","_React$Component","_inherits","_super","_createSuper","call","_assertThisInitialized","React","prevProps","prevVisible","visible","_this$props","scrollLocker","reLock","prevGetContainer","_this$props2","removeCurrentContainer","parent","attachToParent","setWrapperClassName","wrapperClassName","_this$container","switchScrollingEffect","value","_this2","updateOpenCount","rafId","forceUpdate","updateScrollLocker","_this$props3","_this$props4","forceRender","portal","childProps","getOpenCount","componentRef","KeyCode","MAC_ENTER","BACKSPACE","TAB","NUM_CENTER","ENTER","SHIFT","CTRL","ALT","PAUSE","CAPS_LOCK","ESC","SPACE","PAGE_UP","PAGE_DOWN","END","HOME","LEFT","UP","RIGHT","DOWN","PRINT_SCREEN","INSERT","DELETE","ZERO","ONE","TWO","THREE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE","QUESTION_MARK","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","META","WIN_KEY_RIGHT","CONTEXT_MENU","NUM_ZERO","NUM_ONE","NUM_TWO","NUM_THREE","NUM_FOUR","NUM_FIVE","NUM_SIX","NUM_SEVEN","NUM_EIGHT","NUM_NINE","NUM_MULTIPLY","NUM_PLUS","NUM_MINUS","NUM_PERIOD","NUM_DIVISION","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","NUMLOCK","SEMICOLON","DASH","EQUALS","COMMA","PERIOD","SLASH","APOSTROPHE","SINGLE_QUOTE","OPEN_SQUARE_BRACKET","BACKSLASH","CLOSE_SQUARE_BRACKET","WIN_KEY","MAC_FF_META","WIN_IME","isTextModifyingKeyEvent","keyCode","altKey","ctrlKey","metaKey","isCharacterKey","navigator","userAgent","indexOf","propList","split","match","prefix","Mask","prefixCls","maskProps","motionName","CSSMotion","leavedClassName","motionClassName","motionStyle","_extends","classNames","getMotionName","transitionName","animationName","getScroll","w","ret","method","d","_","shouldUpdate","sentinelStyle","outline","Content","closable","footer","title","closeIcon","bodyStyle","bodyProps","destroyOnClose","modalRender","ariaId","onClose","onVisibleChanged","onMouseDown","onMouseUp","mousePosition","sentinelStartRef","sentinelEndRef","dialogRef","focus","_sentinelStartRef$cur","changeActive","next","activeElement","footerNode","headerNode","closer","_React$useState","_React$useState2","_slicedToArray","transformOrigin","setTransformOrigin","contentStyle","onPrepare","elementOffset","el","rect","getBoundingClientRect","pos","doc","ownerDocument","defaultView","parentWindow","offset","x","y","type","onClick","content","onAppearPrepare","onEnterPrepare","removeOnLeave","motionRef","role","tabIndex","MemoChildren","displayName","Dialog","_props$prefixCls","zIndex","_props$visible","_props$keyboard","keyboard","_props$focusTriggerAf","focusTriggerAfterClose","wrapStyle","wrapClassName","wrapProps","afterClose","animation","_props$closable","_props$mask","mask","maskTransitionName","maskAnimation","_props$maskClosable","maskClosable","maskStyle","lastOutSideActiveElementRef","wrapperRef","contentRef","animatedVisible","setAnimatedVisible","ariaIdRef","onInternalClose","contentClickRef","contentTimeoutRef","onWrapperClick","mergedConfig","ariaOnly","aria","data","attr","attrs","pickAttrs","onKeyDown","stopPropagation","shiftKey","display","newVisible","_contentRef$current","preventScroll","DialogWrap","_props$destroyOnClose","_afterClose","fixPoint","start","startAddWidth","offsetStart","_excluded","context","previewUrls","setPreviewUrls","setCurrent","setShowPreview","setMousePosition","registerImage","Provider","_ref$previewPrefixCls","previewPrefixCls","_ref$icons","icons","preview","_ref2$visible","previewVisible","_ref2$onVisibleChange","onVisibleChange","onPreviewVisibleChange","_ref2$getContainer","_ref2$current","currentIndex","dialogProps","_objectWithoutProperties","_useState","useState","_useState2","_useState3","_useState4","_useMergedState","useMergedState","onChange","_useMergedState2","isShowPreview","_useState5","_useState6","isControlled","currentControlledKey","canPreviewUrls","canPreview","map","url","isPreviewGroup","oldPreviewUrls","clonePreviewUrls","Preview","src","initialPosition","alt","_props$icons","restProps","rotateLeft","rotateRight","zoomIn","zoomOut","right","scale","setScale","rotate","setRotate","_useFrameSetState","initial","frame","state","setState","queue","newState","preState","memoState","queueState","push","useFrameSetState","_useFrameSetState2","setPosition","imgRef","originPositionRef","originX","originY","deltaX","deltaY","isMoving","setMoving","_React$useContext","previewGroupCount","size","previewUrlsKeys","currentPreviewIndex","combinationSrc","showLeftOrRightSwitches","_React$useState3","wheelDirection","_React$useState4","lastWheelZoomDirection","setLastWheelZoomDirection","onZoomIn","onZoomOut","classnames","toolClassName","iconClassName","tools","icon","disabled","_imgRef$current$getBo","_left","isRotate","fixState","_getClientSize","getClientSize","fixPos","getFixScaleEleTransPosition","onMouseMove","event","pageX","pageY","onWheelMove","preventDefault","onTopMouseUpListener","onTopMouseMoveListener","onMouseUpListener","addEventListener","onMouseMoveListener","onScrollWheelListener","passive","self","warning","remove","transform","button","_excluded2","ImageInternal","imgSrc","onInitialPreviewClose","onPreviewClose","_ref$prefixCls","placeholder","fallback","_ref$preview","onImageError","onError","wrapperStyle","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","otherProps","isCustomPlaceholder","previewSrc","getPreviewContainer","previewMask","maskClassName","status","setStatus","isError","setGroupShowPreview","setGroupMousePosition","currentId","isLoaded","onLoad","wrapperClass","cn","mergedSrc","imgCommonProps","_getOffset","getOffset","img","complete","naturalWidth","naturalHeight","PreviewGroup","getOwnPropertySymbols","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","module","exports","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","join","test3","letter","err","shouldUseNative","source","symbols","to","val","TypeError","toObject","s","__importDefault","mod","__esModule","defineProperty","useClipboard","clipboard_copy_1","require","react_1","useTimedToggle_1","isInputLike","nodeName","_a","useTimedToggle","copied","toggleCopied","targetRef","optionsRef","copy","useCallback","text","opts","handleSuccess","onSuccess","copiedTimeout","selectOnCopy","select","handleError","selectOnError","default","then","catch","isSupported","clipboard","execCommand","queryCommandSupported"],"sourceRoot":""} \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/939.e6c5459d.chunk.js b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/939.e6c5459d.chunk.js new file mode 100644 index 0000000000000000000000000000000000000000..cf25873b18d40b370e5096ca3d1a444e348e4f46 --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/939.e6c5459d.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[939],{10939:function(e,s,t){t.d(s,{C:function(){return l}});var n=t(27288),o=t(77020),a=t(63528),i=t(24759);const l=()=>{const e=(0,n.jE)();return(0,o.n)({mutationFn:async({experimentId:e,traceRequestIds:s})=>{const t=[];for(let o=0;oa.x.deleteTracesV3(e,s)));return{traces_deleted:(await Promise.all(n)).reduce(((e,s)=>e+s.traces_deleted),0)}},onSuccess:()=>(0,i.BL)({queryClient:e})})}},24759:function(e,s,t){t.d(s,{WB:function(){return ga},tj:function(){return _e},_p:function(){return xi},sG:function(){return ye},w_:function(){return bi},o8:function(){return o},tU:function(){return $t},js:function(){return La},Te:function(){return Ye},Rl:function(){return Re},$W:function(){return Me},Pn:function(){return De},YO:function(){return He},$6:function(){return xe},pR:function(){return be},d9:function(){return Xe},BL:function(){return Pa},R7:function(){return wi},Xz:function(){return Ha},Ie:function(){return ja},KW:function(){return Ka},Zn:function(){return Ga},K0:function(){return Yi},GY:function(){return ge}});var n=t(9133);let o=function(e){return e.Evaluations="_evaluations.json",e.Assessments="_assessments.json",e.Metrics="_metrics.json",e}({}),a=function(e){return e.IS_OVERALL_ASSESSMENT="is_overall_assessment",e.CHUNK_INDEX="chunk_index",e.IS_COPIED_FROM_AI="is_copied_from_ai",e}({}),i=function(e){return e.OVERALL_ASSESSMENT="overall_assessment",e.SAFETY="safety",e.GROUNDEDNESS="groundedness",e.CORRECTNESS="correctness",e.RELEVANCE_TO_QUERY="relevance_to_query",e.CHUNK_RELEVANCE="chunk_relevance",e.CONTEXT_SUFFICIENCY="context_sufficiency",e.GUIDELINE_ADHERENCE="guideline_adherence",e.GLOBAL_GUIDELINE_ADHERENCE="global_guideline_adherence",e.TOTAL_TOKEN_COUNT="agent/total_token_count",e.TOTAL_INPUT_TOKEN_COUNT="agent/total_input_token_count",e.TOTAL_OUTPUT_TOKEN_COUNT="agent/total_output_token_count",e.DOCUMENT_RECALL="retrieval/ground_truth/document_recall",e.DOCUMENT_RATINGS="retrieval/ground_truth/document_ratings",e}({});const l=e=>{var s;return!0===(null===(s=e.metadata)||void 0===s?void 0:s[a.IS_OVERALL_ASSESSMENT])},r=e=>{var s;return(0,n.isNumber)(null===(s=e.metadata)||void 0===s?void 0:s[a.CHUNK_INDEX])},d=e=>Array.isArray(e)&&e.every((e=>(0,n.isPlainObject)(e)&&"doc_uri"in e&&"content"in e)),c=e=>Object.values(e||{}).find(d),u=(e,s,t)=>{const o=c(e)||[],i=c(s);return o.map(((e,s)=>{const o=null===i||void 0===i?void 0:i[s],l=(t||[]).filter((e=>(e.metadata||{})[a.CHUNK_INDEX]===s)),r=(0,n.groupBy)(l,"name");return Object.keys(r).forEach((e=>{r[e]=(0,n.orderBy)(r[e],"timestamp","desc")})),{docUrl:e.doc_uri,content:e.content,retrievalAssessmentsByName:r,target:null===o||void 0===o?void 0:o.content}}))};function m(e){if(!e)return;const{columns:s,data:t,filename:o}=e;if(!s||!Array.isArray(s))throw new SyntaxError(`Artifact ${o} is malformed, it does not contain "columns" array`);if(!t||!Array.isArray(t))throw new SyntaxError(`Artifact ${o} is malformed, it does not contain "data" array`);const a=s.map(((e,s)=>null!==e&&void 0!==e?e:`column_${s}`));return t.map((e=>(0,n.zipObject)(a,e)))}var p=t(89555),g=t(68048),v=t(59403),f=t(7450),h=t(26955),y=t(50111);const S="messages";let b=function(e){return e.OVERALL_ASSESSMENT="overall_assessment",e.SAFETY="safety",e.GROUNDEDNESS="groundedness",e.RETRIEVAL_GROUNDEDNESS="retrieval_groundedness",e.CORRECTNESS="correctness",e.RELEVANCE_TO_QUERY="relevance_to_query",e.CHUNK_RELEVANCE="chunk_relevance",e.RETRIEVAL_RELEVANCE="retrieval_relevance",e.CONTEXT_SUFFICIENCY="context_sufficiency",e.RETRIEVAL_SUFFICIENCY="retrieval_sufficiency",e.GUIDELINE_ADHERENCE="guideline_adherence",e.GUIDELINES="guidelines",e.GLOBAL_GUIDELINE_ADHERENCE="global_guideline_adherence",e}({});const I=[b.OVERALL_ASSESSMENT,b.CORRECTNESS,b.GLOBAL_GUIDELINE_ADHERENCE,b.GUIDELINE_ADHERENCE,b.GUIDELINES,b.RELEVANCE_TO_QUERY,b.CONTEXT_SUFFICIENCY,b.RETRIEVAL_SUFFICIENCY,b.CHUNK_RELEVANCE,b.RETRIEVAL_RELEVANCE,b.GROUNDEDNESS,b.RETRIEVAL_GROUNDEDNESS,b.SAFETY];b.OVERALL_ASSESSMENT,b.CORRECTNESS,b.GROUNDEDNESS,b.RETRIEVAL_GROUNDEDNESS,b.RELEVANCE_TO_QUERY,b.SAFETY,b.CHUNK_RELEVANCE,b.RETRIEVAL_RELEVANCE,b.CONTEXT_SUFFICIENCY,b.RETRIEVAL_SUFFICIENCY,b.GUIDELINE_ADHERENCE,b.GUIDELINES;let E=function(e){return e.YES="yes",e.NO="no",e.UNKNOWN="unknown",e}({});function x(e,s,t,n){return"pass-fail"===t.dtype?n===E.YES?{content:e.formatMessage({id:"pm1RNL",defaultMessage:"Pass"}),icon:(0,y.Y)("span",{css:(0,p.AH)({color:`${ne(s,t,{stringValue:E.YES})} !important`,svg:{width:"12px",height:"12px"}},""),children:(0,y.Y)(g.CheckCircleIcon,{css:(0,p.AH)({backgroundColor:oe(s,t,{stringValue:E.YES}),borderRadius:"50%"},"")})})}:n===E.NO?{content:e.formatMessage({id:"9cTaBs",defaultMessage:"Fail"}),icon:(0,y.Y)("span",{css:(0,p.AH)({color:`${ne(s,t,{stringValue:E.NO})} !important`,svg:{width:"12px",height:"12px"}},""),children:(0,y.Y)(g.XCircleIcon,{css:(0,p.AH)({backgroundColor:oe(s,t,{stringValue:E.NO}),borderRadius:"50%"},"")})})}:{content:e.formatMessage({id:"27XMby",defaultMessage:"Missing"}),icon:(0,y.Y)("span",{css:(0,p.AH)({color:`${ne(s,t,{stringValue:E.UNKNOWN})} !important`,svg:{width:"12px",height:"12px"}},""),children:(0,y.Y)(v.W,{css:(0,p.AH)({backgroundColor:oe(s,t,{stringValue:E.UNKNOWN}),borderRadius:"50%"},"")})})}:"boolean"===t.dtype?!0===n?{content:e.formatMessage({id:"1Ujhc3",defaultMessage:"True"})}:!1===n?{content:e.formatMessage({id:"nvjkTA",defaultMessage:"False"})}:{content:e.formatMessage({id:"keSIQ4",defaultMessage:"null"})}:{content:`${n}`}}let A=function(e){return e.IS_OVERALL_ASSESSMENT="is_overall_assessment",e.CHUNK_INDEX="chunk_index",e.IS_COPIED_FROM_AI="is_copied_from_ai",e}({});const w={response:(0,f.zR)({id:"WiaEQ3",defaultMessage:"Model output"})},N="expected_facts",C={expected_response:(0,f.zR)({id:"CX8ytv",defaultMessage:"Expected output"}),[N]:(0,f.zR)({id:"N1G2a5",defaultMessage:"Expected facts"})},R={[b.OVERALL_ASSESSMENT]:(0,f.zR)({id:"uoJWOm",defaultMessage:"Overall"}),[b.CORRECTNESS]:(0,f.zR)({id:"7+XQ3q",defaultMessage:"Correctness"}),[b.GROUNDEDNESS]:(0,f.zR)({id:"Ws58cc",defaultMessage:"Groundedness"}),[b.RETRIEVAL_GROUNDEDNESS]:(0,f.zR)({id:"wY58OE",defaultMessage:"Retrieval groundedness"}),[b.CONTEXT_SUFFICIENCY]:(0,f.zR)({id:"GRaplV",defaultMessage:"Context sufficiency"}),[b.RETRIEVAL_SUFFICIENCY]:(0,f.zR)({id:"mdzFsD",defaultMessage:"Retrieval sufficiency"}),[b.RELEVANCE_TO_QUERY]:(0,f.zR)({id:"Yhydp3",defaultMessage:"Relevance"}),[b.SAFETY]:(0,f.zR)({id:"jMUqD1",defaultMessage:"Safety"}),[b.CHUNK_RELEVANCE]:(0,f.zR)({id:"qnMgLj",defaultMessage:"Chunk relevance"}),[b.RETRIEVAL_RELEVANCE]:(0,f.zR)({id:"opUoF8",defaultMessage:"Retrieval relevance"}),[b.GUIDELINE_ADHERENCE]:(0,f.zR)({id:"xV6NWF",defaultMessage:"Guideline adherence"}),[b.GUIDELINES]:(0,f.zR)({id:"ls3868",defaultMessage:"Guidelines"}),[b.GLOBAL_GUIDELINE_ADHERENCE]:(0,f.zR)({id:"tUAhDM",defaultMessage:"Global guideline adherence"})},T={[b.CORRECTNESS]:(0,f.zR)({id:"i7UTwK",defaultMessage:"Correctness assessment is missing. This is likely because you have not provided an expected response (ground truth) or grading notes."}),[b.GROUNDEDNESS]:(0,f.zR)({id:"jPW0Lj",defaultMessage:"Groundedness assessment is missing. This is likely because your agent is not returning retrieved_context."}),[b.RETRIEVAL_GROUNDEDNESS]:(0,f.zR)({id:"TXPJuE",defaultMessage:"Retrieval Groundedness assessment is missing. This is likely because your agent is not returning retrieved_context."}),[b.CONTEXT_SUFFICIENCY]:(0,f.zR)({id:"g0tloS",defaultMessage:"Context sufficiency assessment is missing. This is likely because your agent is not returning retrieved_context."}),[b.RETRIEVAL_SUFFICIENCY]:(0,f.zR)({id:"ffIouW",defaultMessage:"Retrieval sufficiency assessment is missing. This is likely because your agent is not returning retrieved_context."})},Y={[b.OVERALL_ASSESSMENT]:(0,f.zR)({id:"hW5ehW",defaultMessage:"The overall assessment passes when all of the judges pass."}),[b.CORRECTNESS]:(0,f.zR)({id:"Y6gWro",defaultMessage:"The correctness LLM judge gives a binary evaluation and written rationale on whether the agent's generated response is factually accurate and semantically similar to the provided ground-truth response or grading notes."}),[b.GROUNDEDNESS]:(0,f.zR)({id:"+Wd9fs",defaultMessage:"The groundedness LLM judge returns a binary evaluation and written rationale on whether the generated response is factually consistent with the agent's retrieved context."}),[b.RETRIEVAL_GROUNDEDNESS]:(0,f.zR)({id:"6Q/0BO",defaultMessage:"The retrieval groundedness LLM judge returns a binary evaluation and written rationale on whether the generated response is factually consistent with the agent's retrieved context."}),[b.RELEVANCE_TO_QUERY]:(0,f.zR)({id:"oDwj2g",defaultMessage:"The relevance_to_query LLM judge determines whether the response is relevant to the input request."}),[b.SAFETY]:(0,f.zR)({id:"/gqx4n",defaultMessage:"The safety LLM judge returns a binary rating and a written rationale on whether the generated response has harmful or toxic content."}),[b.CHUNK_RELEVANCE]:(0,f.zR)({id:"aUOkOC",defaultMessage:"The chunk-relevance-precision LLM judge determines whether the chunks returned by the retriever are relevant to the input request. Precision is calculated as the number of relevant chunks returned divided by the total number of chunks returned. For example, if the retriever returns four chunks, and the LLM judge determines that three of the four returned documents are relevant to the request, then llm_judged/chunk_relevance/precision is 0.75."}),[b.RETRIEVAL_RELEVANCE]:(0,f.zR)({id:"rBydei",defaultMessage:"The retrieval-relevance LLM judge determines whether the chunks returned by the retriever are relevant to the input request. Precision is calculated as the number of relevant chunks returned divided by the total number of chunks returned. For example, if the retriever returns four chunks, and the LLM judge determines that three of the four returned documents are relevant to the request, then llm_judged/chunk_relevance/precision is 0.75."}),[b.CONTEXT_SUFFICIENCY]:(0,f.zR)({id:"bkWot5",defaultMessage:"The context sufficiency LLM judge determines whether the retrieved context is sufficient to generate the expected response."}),[b.RETRIEVAL_SUFFICIENCY]:(0,f.zR)({id:"fwxkdN",defaultMessage:"The retrieval sufficiency LLM judge determines whether the retrieved context is sufficient to generate the expected response."}),[b.GUIDELINE_ADHERENCE]:(0,f.zR)({id:"4Tg5Vr",defaultMessage:"The guideline adherence LLM judge determines whether the response adheres to the guidelines provided."}),[b.GUIDELINES]:(0,f.zR)({id:"98v9a0",defaultMessage:"The guidelines LLM judge determines whether the response adheres to the guidelines provided. All responses must adhere to guidelines."}),[b.GLOBAL_GUIDELINE_ADHERENCE]:(0,f.zR)({id:"zZ9sIi",defaultMessage:"The global guideline adherence LLM judge determines whether the response adheres to the global guidelines provided. All responses must adhere to global guidelines."})},_={[b.OVERALL_ASSESSMENT]:{[E.YES]:(0,f.zR)({id:"Za9+Cg",defaultMessage:"Pass"}),[E.NO]:(0,f.zR)({id:"j77+aP",defaultMessage:"Fail"})},[b.CHUNK_RELEVANCE]:{[E.YES]:(0,f.zR)({id:"B1Upnc",defaultMessage:"Relevant"}),[E.NO]:(0,f.zR)({id:"M+HfWb",defaultMessage:"Irrelevant"})},[b.RETRIEVAL_RELEVANCE]:{[E.YES]:(0,f.zR)({id:"++039K",defaultMessage:"Relevant"}),[E.NO]:(0,f.zR)({id:"akmaST",defaultMessage:"Irrelevant"})},[b.CONTEXT_SUFFICIENCY]:{[E.YES]:(0,f.zR)({id:"7S/ozs",defaultMessage:"Context sufficient"}),[E.NO]:(0,f.zR)({id:"aAAHaS",defaultMessage:"Context insufficient"})},[b.RETRIEVAL_SUFFICIENCY]:{[E.YES]:(0,f.zR)({id:"rBIGDf",defaultMessage:"Sufficient"}),[E.NO]:(0,f.zR)({id:"lhFnAG",defaultMessage:"Insufficient"})},[b.RELEVANCE_TO_QUERY]:{[E.YES]:(0,f.zR)({id:"rNkAcB",defaultMessage:"Relevant"}),[E.NO]:(0,f.zR)({id:"0M7VVC",defaultMessage:"Irrelevant"})},[b.GROUNDEDNESS]:{[E.YES]:(0,f.zR)({id:"/2InJv",defaultMessage:"Grounded"}),[E.NO]:(0,f.zR)({id:"ZfsnMj",defaultMessage:"Not grounded"})},[b.RETRIEVAL_GROUNDEDNESS]:{[E.YES]:(0,f.zR)({id:"e515YD",defaultMessage:"Grounded"}),[E.NO]:(0,f.zR)({id:"uSVfB9",defaultMessage:"Not grounded"})},[b.CORRECTNESS]:{[E.YES]:(0,f.zR)({id:"eSxQmg",defaultMessage:"Correct"}),[E.NO]:(0,f.zR)({id:"LhxSrc",defaultMessage:"Incorrect"})},[b.SAFETY]:{[E.YES]:(0,f.zR)({id:"DMOaoR",defaultMessage:"Safe"}),[E.NO]:(0,f.zR)({id:"CX/MSu",defaultMessage:"Unsafe"})},[b.GUIDELINE_ADHERENCE]:{[E.YES]:(0,f.zR)({id:"ZNYFUr",defaultMessage:"Adheres to guidelines"}),[E.NO]:(0,f.zR)({id:"hIBLi9",defaultMessage:"Violates guidelines"})},[b.GUIDELINES]:{[E.YES]:(0,f.zR)({id:"luV/3W",defaultMessage:"Adheres to guidelines"}),[E.NO]:(0,f.zR)({id:"WmgIQ+",defaultMessage:"Violates guidelines"})},[b.GLOBAL_GUIDELINE_ADHERENCE]:{[E.YES]:(0,f.zR)({id:"mtYPI8",defaultMessage:"Adheres to global guidelines"}),[E.NO]:(0,f.zR)({id:"rZyNgx",defaultMessage:"Violates global guidelines"})}},M=e=>{var s;return"AI_JUDGE"===(null===e||void 0===e||null===(s=e.source)||void 0===s?void 0:s.sourceType)},k=e=>{var s;let t=D(e,"request");return(0,n.isNil)(t)&&(t=D(e,S)),(0,n.isNil)(t)&&!(0,n.isNil)(e.inputs)&&Object.keys(e.inputs).length>0&&(t=K(e.inputs)),null!==(s=t)&&void 0!==s?s:e.evaluationId},D=(e,s)=>{var t,o;if(!(0,n.isNil)(e.inputsTitle))return"string"===typeof e.inputsTitle?e.inputsTitle:JSON.stringify(e.inputsTitle);let a;const i=e.inputs[s];var l;if((0,n.isPlainObject)(i)&&!(0,n.isNil)(i[S])&&Array.isArray(i[S])&&!(0,n.isNil)(null===(t=i[S][0])||void 0===t?void 0:t.content))a=null===(l=i[S][i[S].length-1])||void 0===l?void 0:l.content;else if((0,n.isNil)(i)||!Array.isArray(i)||(0,n.isNil)(null===(o=i[0])||void 0===o?void 0:o.content))a=i?K(i):void 0;else{var r;a=null===(r=i[i.length-1])||void 0===r?void 0:r.content}return a},F=e=>{var s;return!0===(null===(s=e.metadata)||void 0===s?void 0:s[A.IS_OVERALL_ASSESSMENT])},O=e=>{var s;return(0,n.isNumber)(null===(s=e.metadata)||void 0===s?void 0:s[A.CHUNK_INDEX])},L=e=>{var s,t;const o=null!==(s=null!==(t=e.stringValue)&&void 0!==t?t:e.numericValue)&&void 0!==s?s:e.booleanValue;if(!(0,n.isNil)(o))return o};function V(e,s){let t=e;const n=t.startsWith("#");n&&(t=e.slice(1));return`${n?"#":""}${t}${Math.round(255*Math.min(Math.max(s,0),1)).toString(16).toUpperCase()}`}const H=[b.GUIDELINE_ADHERENCE,b.GUIDELINES,b.GLOBAL_GUIDELINE_ADHERENCE,b.RELEVANCE_TO_QUERY,b.CONTEXT_SUFFICIENCY,b.RETRIEVAL_SUFFICIENCY,b.CORRECTNESS,b.GROUNDEDNESS,b.RETRIEVAL_GROUNDEDNESS,b.SAFETY],U=[b.CHUNK_RELEVANCE],B=({name:e,isOverallAssessment:s,value:t,rationale:n,metadata:o={}})=>{var a;const i=null!==(a=(0,h.w)())&&void 0!==a?a:"";return{booleanValue:"boolean"===typeof t?t:null,numericValue:null,stringValue:"boolean"!==typeof t?t:null,name:e,metadata:s?{...o,[A.IS_OVERALL_ASSESSMENT]:!0}:o,rationale:null!==n&&void 0!==n?n:null,source:{sourceId:i,sourceType:"HUMAN",metadata:{}},timestamp:Date.now(),isDraft:!0}},z=e=>"isDraft"in e&&e.isDraft,$=e=>(0,n.orderBy)(Object.entries(e),(([e,s],t)=>{const n=I.indexOf(e);return-1!==n?n:null!==(o=null===(a=s[s.length-1])||void 0===a?void 0:a.timestamp)&&void 0!==o?o:t;var o,a})),j=e=>{var s,t;return null!==(s=null===(t=e.overallAssessments)||void 0===t?void 0:t.filter((e=>!z(e))).some((e=>!M(e))))&&void 0!==s&&s},q=e=>{var s,t;return"HUMAN"===(null===(s=e.source)||void 0===s?void 0:s.sourceType)&&!(null!==(t=e.metadata)&&void 0!==t&&t[A.IS_COPIED_FROM_AI])},P=e=>{var s;return null===(s=e.metadata)||void 0===s?void 0:s[A.CHUNK_INDEX]},K=e=>(0,n.isPlainObject)(e)||Array.isArray(e)?JSON.stringify(e,void 0,2):e,G=e=>{if(e){const s=Boolean(e.rationale),t=!(0,n.isNil)(L(e)),o=Boolean(e.errorMessage);return!(s||t||o)}return!1},W=e=>Array.isArray(e)&&e.every((e=>(0,n.isPlainObject)(e)&&"doc_uri"in e&&"content"in e)),Q="#02B30214",J="#F000400F",X="#077A9D",Z="#FFAB00",ee="#99DDB4",se="#FCA4A1",te="#02B30214",ne=(e,s,t)=>{if("pass-fail"===s.dtype){if((null===t||void 0===t?void 0:t.stringValue)===E.YES)return e.isDarkMode?e.colors.green400:e.colors.green600;if((null===t||void 0===t?void 0:t.stringValue)===E.NO)return e.isDarkMode?e.colors.red400:e.colors.red600}return null!==t&&void 0!==t&&t.errorMessage?e.colors.textValidationWarning:e.colors.grey400},oe=(e,s,t,o=!1)=>{if("pass-fail"===s.dtype){if((null===t||void 0===t?void 0:t.stringValue)===E.YES)return te;if((null===t||void 0===t?void 0:t.stringValue)===E.NO)return e.isDarkMode?V(e.colors.red800,.6):e.colors.red200;if(!o&&null!==t&&void 0!==t&&t.errorMessage)return""}else if("boolean"===s.dtype)return(0,n.isNil)(null===t||void 0===t?void 0:t.booleanValue)?"":t.booleanValue?te:e.isDarkMode?e.colors.red800:e.colors.red200;return""},ae=(e,s,t,o)=>o?"#f09065":"pass-fail"===s.dtype?t===E.YES?ee:t===E.NO?se:e.isDarkMode?e.colors.grey800:e.colors.grey200:"boolean"===s.dtype?(0,n.isNil)(t)?e.isDarkMode?e.colors.grey800:e.colors.grey200:t?ee:se:e.isDarkMode?e.colors.grey800:e.colors.grey200;var ie=t(31014),le=t(45810);const re=le.ok,de=le.N_,ce="assessmentFilter";function ue(e){if("undefined"!==e)return"true"===e||"false"!==e&&e}function me(e,s){if("pass-fail"===e.dtype){if("undefined"===s)return;return s}return"boolean"===e.dtype?"true"===s||"false"!==s&&void 0:s}function pe(e){return void 0===e||null===e?"undefined":`${e}`}const ge=(e,s)=>{const[t,n]=(0,ie.useState)(s&&e.find((e=>e.id===s.key))?s:void 0);return[(0,ie.useMemo)((()=>{if(t&&e.find((e=>e.id===t.key)))return t}),[t,e]),n]};var ve=t(70169),fe=t(23823);const he=(0,ie.createContext)({table:void 0,setTable:()=>{},selectedRowIds:[],setSelectedRowIds:()=>{}}),ye=({children:e})=>{const[s,t]=(0,ie.useState)(),[n,o]=(0,ie.useState)([]),a=(0,ie.useMemo)((()=>({table:s,setTable:t,selectedRowIds:n,setSelectedRowIds:o})),[s,n]);return(0,y.Y)(he.Provider,{value:a,children:e})},Se=({experimentIds:e,visible:s,selectedTraces:t,handleClose:n,deleteTraces:o})=>{const a=(0,f.tz)(),[i,l]=(0,ie.useState)(""),[r,d]=(0,ie.useState)(!1),c=t.map((e=>e.evaluationId));return(0,y.FD)(fe.d,{componentId:"eval-tab.delete_traces-modal",title:(0,y.Y)(f.sA,{id:"gRz1nB",defaultMessage:"{count, plural, one {Delete Trace} other {Delete Traces}}",values:{count:c.length}}),visible:s,onCancel:n,okText:(0,y.Y)(f.sA,{id:"g56Cuk",defaultMessage:"Delete {count, plural, one { # trace } other { # traces }}",values:{count:c.length}}),onOk:()=>{(async()=>{try{var s;await o(null!==(s=e[0])&&void 0!==s?s:"",c),n()}catch(t){l(a.formatMessage({id:"zhzZUu",defaultMessage:"An error occured while attempting to delete traces. Please refresh the page and try again."}))}d(!1)})(),d(!0)},okButtonProps:{loading:r,danger:!0},children:[i&&(0,y.Y)(v.T.Paragraph,{color:"error",children:i}),(0,y.Y)(v.T.Paragraph,{children:(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"kmtWGf",defaultMessage:"{count, plural, one { # trace } other { # traces }} will be deleted.",values:{count:c.length}})})}),(0,y.Y)(v.T.Paragraph,{children:(0,y.Y)(f.sA,{id:"VfGJFc",defaultMessage:"Deleted traces cannot be restored. Are you sure you want to proceed?"})})]})},be=()=>1e4;var Ie=t(80870);let Ee=function(e){return e.EQUALS="=",e.GREATER_THAN=">",e.LESS_THAN="<",e.GREATER_THAN_OR_EQUALS=">=",e.LESS_THAN_OR_EQUALS="<=",e}({}),xe=function(e){return e.ASSESSMENT="ASSESSMENT",e.TRACE_INFO="TRACE_INFO",e.INPUT="INPUT",e.INTERNAL_MONITOR_REQUEST_TIME="INTERNAL_MONITOR_REQUEST_TIME",e}({}),Ae=function(e){return e.ASSESSMENT="ASSESSMENT",e.TAG="TAG",e.INFO="INFO",e}({});const we={[Ae.ASSESSMENT]:"Assessments",[Ae.TAG]:"Tags",[Ae.INFO]:"\xa0"},Ne="user",Ce="session",Re="response",Te="trace_id",Ye="request_time",_e="execution_duration",Me="state",ke="source",De="tags",Fe="trace_name",Oe="request",Le="run_name",Ve="logged_model",He="tokens",Ue="custom_metadata",Be=[_e,Ye,Ce],ze=[_e,Ye],$e=[i.CHUNK_RELEVANCE,i.TOTAL_INPUT_TOKEN_COUNT,i.TOTAL_OUTPUT_TOKEN_COUNT,i.TOTAL_TOKEN_COUNT,i.DOCUMENT_RECALL,i.DOCUMENT_RATINGS];function je(e){return e+"_assessment_column"}const qe=(e,s,t,o,a,i)=>(0,ie.useMemo)((()=>{const l=null!==i&&void 0!==i?i:es(s);let r=[];if(l)r=[{id:Oe,label:e.formatMessage({id:"Ey+oLI",defaultMessage:"Request"}),type:xe.INPUT,group:Ae.INFO}];else{let e=new Set,t=new Set;s.forEach((s=>{const{inputs:n}=s;e=new Set([...e,...Object.keys(n||{})]),t=new Set([...t,...Object.keys(s.traceInfo||{})])})),r=[...e].map((e=>({id:e,label:e,type:xe.INPUT})))}const d=t.map((e=>({id:je(e.name),label:e.displayName,type:xe.ASSESSMENT,assessmentInfo:e,group:Ae.ASSESSMENT}))).filter((e=>!e.assessmentInfo.isRetrievalAssessment&&!$e.includes(e.assessmentInfo.name)));let c;if(l){c=[{id:Te,label:e.formatMessage({id:"cv/bGM",defaultMessage:"Trace ID"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Fe,label:e.formatMessage({id:"fq8v6G",defaultMessage:"Trace name"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Re,label:e.formatMessage({id:"BU8Jni",defaultMessage:"Response"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Ne,label:e.formatMessage({id:"JcRo6a",defaultMessage:"User"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Ce,label:e.formatMessage({id:"womPSY",defaultMessage:"Session"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:_e,label:e.formatMessage({id:"FnG9dP",defaultMessage:"Execution time"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Ye,label:e.formatMessage({id:"/Aup8Q",defaultMessage:"Request time"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Me,label:e.formatMessage({id:"ySuIn+",defaultMessage:"State"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:ke,label:e.formatMessage({id:"vM/qUz",defaultMessage:"Source"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:Ve,label:e.formatMessage({id:"ofr72S",defaultMessage:"Version"}),type:xe.TRACE_INFO,group:Ae.INFO},{id:He,label:e.formatMessage({id:"q/zoT3",defaultMessage:"Tokens"}),type:xe.TRACE_INFO,group:Ae.INFO},(0,n.isNil)(o)&&{id:Le,label:e.formatMessage({id:"dVh69l",defaultMessage:"Run name"}),type:xe.TRACE_INFO,group:Ae.INFO},!1];const t=[...s,...a||[]],i={};t.forEach((e=>{var s;const t=null===(s=e.traceInfo)||void 0===s?void 0:s.trace_metadata;t&&Object.keys(t).forEach((e=>{e.startsWith(Ke)||i[e]||(i[e]={id:Je(e),label:e,type:xe.TRACE_INFO,group:Ae.INFO})}))})),c=[...c,...Object.values(i)];{const e={};t.map((e=>{var s;return null===(s=e.traceInfo)||void 0===s?void 0:s.tags})).forEach((s=>{Object.keys(s||{}).forEach((s=>{s.startsWith(Ke)||e[s]||(e[s]={id:Qe(s),label:s,type:xe.TRACE_INFO,group:Ae.TAG})}))}));const s=Object.values(e);c=[...c,...s]}}else c=s.some((e=>!(0,n.isNil)(e.requestTime)))?[{id:Ye,label:e.formatMessage({id:"/Aup8Q",defaultMessage:"Request time"}),type:xe.INTERNAL_MONITOR_REQUEST_TIME}]:[];return[...r,...c,...d].filter((e=>Boolean(e)))}),[s,e,t,o,a,i]),Pe="mlflow.sourceRun",Ke="mlflow.",Ge=e=>(null===e||void 0===e?void 0:e.trace_id)||"",We=e=>e.split(":").pop(),Qe=e=>`${De}:${e}`,Je=e=>`${Ue}:${e}`,Xe=e=>(0,n.uniq)(e.map((e=>Object.keys(e.tags||{}).filter((e=>e&&!e.startsWith(Ke))))).flat()),Ze=e=>{var s;var t;return{request_id:null!==(s=e.client_request_id)&&void 0!==s?s:e.trace_id,tags:(t=e.tags,t?Object.entries(t).map((([e,s])=>({key:e,value:s}))):void 0)}},es=e=>e.length>0&&Boolean(e[0].traceInfo),ss=e=>{try{return JSON.parse(e)}catch{return e}},ts=e=>{var s;return e.request_preview||e.request||(null===(s=e.trace_metadata)||void 0===s?void 0:s["mlflow.traceInputs"])||""},ns=e=>{var s;return e.response_preview||e.response||(null===(s=e.trace_metadata)||void 0===s?void 0:s["mlflow.traceOutputs"])||""},os=["agent/latency_seconds"];const as=e=>{var s,t,n,o,a;const l=null===(s=e.feedback)||void 0===s?void 0:s.value,r=e.assessment_name===i.OVERALL_ASSESSMENT,d=(e=>{var s,t,n;if(null===(s=e.source)||void 0===s||!s.source_type)return;const o=null===(t=e.source)||void 0===t?void 0:t.source_type;let a;return a="LLM_JUDGE"===o?"AI_JUDGE":o,{sourceType:a,sourceId:(null===(n=e.source)||void 0===n?void 0:n.source_id)||"",metadata:{}}})(e),c=(null===(t=e.feedback)||void 0===t?void 0:t.error)||e.error;return{name:e.assessment_name,stringValue:"string"===typeof l?l:void 0,booleanValue:"boolean"===typeof l?l:void 0,numericValue:"number"===typeof l?l:void 0,errorCode:null===c||void 0===c?void 0:c.error_code,errorMessage:null===c||void 0===c?void 0:c.error_message,rationale:(null===(n=e.metadata)||void 0===n?void 0:n.root_cause_rationale)||e.rationale,source:d,rootCauseAssessment:r?{assessmentName:(null===(o=e.metadata)||void 0===o?void 0:o.root_cause_assessment)||"",suggestedActions:null===(a=e.metadata)||void 0===a?void 0:a.suggested_action}:void 0,metadata:e.metadata}},is=e=>{var s;const t=Ge(e),o=[],a={},l={};null===(s=e.assessments)||void 0===s||s.forEach((e=>{const s=e.assessment_name;os.includes(s)||((e=>Boolean(e.expectation))(e)?function(e,s){var t,n,o;const a=e.assessment_name,i=(null===(t=e.expectation)||void 0===t?void 0:t.value)||(null===(n=e.expectation)||void 0===n||null===(o=n.serialized_value)||void 0===o?void 0:o.value);Array.isArray(i)&&i.length>0?s[a]=i.map((e=>ss(e))):s[a]="string"===typeof i?ss(i):[]}(e,l):function(e,s,t){const n=e.assessment_name,o=as(e);n===i.OVERALL_ASSESSMENT&&s.push(o),t[n]||(t[n]=[]),t[n].push(o)}(e,o,a))}));const r=ts(e),d=ns(e);let c=r,u={},m={};try{var p;u=JSON.parse(r);const e=u.messages;var g;if(Array.isArray(e)&&!(0,n.isNil)(null===(p=e[0])||void 0===p?void 0:p.content))c=null===(g=e[e.length-1])||void 0===g?void 0:g.content;else c=K(u)}catch{u={request:r}}try{m={response:JSON.parse(d)}}catch{m={response:d}}return{evaluationId:t,requestId:e.client_request_id||t,inputsId:t,inputsTitle:c,inputs:u,outputs:m,targets:l,overallAssessments:o,responseAssessmentsByName:a,metrics:{},traceInfo:e}},ls=e=>es(e)?e.map((e=>{if(!e.traceInfo)return e;const s=is(e.traceInfo);return{...e,...s}})):e;const rs=(e,s)=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t.filter((e=>{var t;return Number(null===e||void 0===e||null===(t=e.metadata)||void 0===t?void 0:t.span_output_key)===s}))])).filter((([e,s])=>s.length>0))),ds=e=>{const{traceActions:s,experimentId:t,selectedTraces:o,traceInfos:a,setRowSelection:i}=e,{table:l,selectedRowIds:r}=(0,ie.useContext)(he),d=(0,ie.useMemo)((()=>ls(r.map((e=>{const s=null===a||void 0===a?void 0:a.find((s=>Ge(s)===e));if(s)return{evaluationId:s.trace_id,requestId:s.client_request_id||s.trace_id,inputsId:s.trace_id,inputs:{},outputs:{},targets:{},overallAssessments:[],responseAssessmentsByName:{},metrics:{},traceInfo:s}})).filter((e=>!(0,n.isNil)(e))))),[r,a]),c=o||d;return(0,y.Y)(cs,{experimentId:t,selectedTraces:c,traceActions:s,setRowSelection:null!==i&&void 0!==i?i:null===l||void 0===l?void 0:l.setRowSelection})},cs=e=>{var s,t;const{experimentId:n,selectedTraces:o,traceActions:a,setRowSelection:i}=e,l=(0,f.tz)(),[r,d]=(0,ie.useState)(!1),[c,u]=(0,ie.useState)(!1),[m,p]=(0,ie.useState)(!1),h=((0,ie.useCallback)((()=>{d(!0)}),[]),(0,ie.useCallback)((()=>{u(!0)}),[]),(0,ie.useCallback)((()=>{if(1===o.length&&o[0].traceInfo&&null!==a&&void 0!==a&&a.editTags){const e=Ze(o[0].traceInfo);a.editTags.showEditTagsModalForTrace(e)}}),[o,a])),S=(0,ie.useCallback)((()=>{p(!0)}),[]),b=(0,ie.useCallback)((async(e,s)=>{var t;await(null===a||void 0===a||null===(t=a.deleteTracesAction)||void 0===t?void 0:t.deleteTraces(e,s)),null===i||void 0===i||i({})}),[i,a]),I=Boolean(null===a||void 0===a||null===(s=a.exportToEvals)||void 0===s?void 0:s.getTrace),E=Boolean(null===a||void 0===a?void 0:a.editTags),x=Boolean(null===a||void 0===a?void 0:a.deleteTracesAction),A=1!==o.length,w=0===o.length;if(!I&&!E&&!x)return null;const N=(0,y.Y)(v.B,{componentId:"mlflow.genai-traces-table.actions-dropdown",disabled:w,type:"primary",endIcon:(0,y.Y)(g.ChevronDownIcon,{}),children:l.formatMessage({id:"PwQiIn",defaultMessage:"Actions{count}"},{count:w?"":` (${o.length})`})});return(0,y.FD)(y.FK,{children:[(0,y.FD)(g.DropdownMenu.Root,{open:!w&&void 0,children:[w?(0,y.Y)(fe.T,{componentId:"mlflow.genai-traces-table.actions-disabled-tooltip",content:l.formatMessage({id:"HbgpOU",defaultMessage:"Select one or more traces to add to an evaluation or edit the traces."}),children:(0,y.Y)("div",{children:(0,y.Y)(g.DropdownMenu.Trigger,{asChild:!0,children:N})})}):(0,y.Y)(g.DropdownMenu.Trigger,{asChild:!0,children:N}),(0,y.Y)(g.DropdownMenu.Content,{children:(E||x)&&(0,y.Y)(y.FK,{children:(0,y.FD)(g.DropdownMenu.Group,{children:[E&&(0,y.Y)(g.DropdownMenu.Item,{componentId:"mlflow.genai-traces-table.edit-tags",onClick:h,disabled:A,children:l.formatMessage({id:"A7jptW",defaultMessage:"Edit tags"})}),x&&(0,y.Y)(g.DropdownMenu.Item,{componentId:"mlflow.genai-traces-table.delete-traces",onClick:S,disabled:w,children:l.formatMessage({id:"G6CJOv",defaultMessage:"Delete traces"})})]})})})]}),null===a||void 0===a||null===(t=a.editTags)||void 0===t?void 0:t.EditTagsModal,m&&(null===a||void 0===a?void 0:a.deleteTracesAction)&&(0,y.Y)(Se,{experimentIds:[n],visible:m,selectedTraces:o,handleClose:()=>p(!1),deleteTraces:b})]})},us=[Ae.INFO,Ae.ASSESSMENT,Ae.TAG],ms=[Te,Oe,Re,Ce,Ne,Fe,Ve,He],ps=[i.OVERALL_ASSESSMENT],gs=Object.fromEntries(us.map(((e,s)=>[e,s]))),vs=Object.fromEntries(ms.map(((e,s)=>[e,s]))),fs=Object.fromEntries(ps.map(((e,s)=>[e,s])));function hs(e,s){return[...e].sort(((e,t)=>{var n,o;if(s){if(e.id===Oe)return-1;if(t.id===Oe)return 1}const a=null!==(n=e.group)&&void 0!==n?n:Ae.INFO,i=null!==(o=t.group)&&void 0!==o?o:Ae.INFO,l=gs[a]-gs[i];if(0!==l)return l;if(a===Ae.INFO){var r,d;const s=null!==(r=vs[e.id])&&void 0!==r?r:1/0,n=null!==(d=vs[t.id])&&void 0!==d?d:1/0;return s!==n?s-n:e.label.localeCompare(t.label)}if(a===Ae.ASSESSMENT){var c,u;const s=null!==(c=fs[e.id])&&void 0!==c?c:1/0,n=null!==(u=fs[t.id])&&void 0!==u?u:1/0;return s!==n?s-n:e.label.localeCompare(t.label)}return e.label.localeCompare(t.label)}))}const ys=(e,s)=>e.sort(((e,t)=>{const n=e=>{var t;const n=null===(t=s.find((s=>s.id===e.id)))||void 0===t?void 0:t.type;return n===xe.INPUT?1:e.id===Fe?2:n===xe.TRACE_INFO?3:n===xe.INTERNAL_MONITOR_REQUEST_TIME?4:n===xe.ASSESSMENT?5:999},o=n(e)-n(t);if(0!==o)return o;const a=s.find((s=>s.id===e.id)),l=s.find((e=>e.id===t.id));return(null===a||void 0===a?void 0:a.type)===xe.ASSESSMENT&&(null===l||void 0===l?void 0:l.type)===xe.ASSESSMENT?a.id===i.OVERALL_ASSESSMENT?-1:l.id===i.OVERALL_ASSESSMENT?1:(a.label||"").localeCompare(l.label||""):0})),Ss=(e,s)=>{var t;switch(s){case Ye:case _e:case De:case Me:return e[s];case ke:return e.tags;case Te:return e.trace_id;case Ce:return null===(t=e.tags)||void 0===t?void 0:t["mlflow.trace.session"];default:throw new Error(`Unknown column id: ${s}`)}};function bs(e){const s=new Map,t=new Map;return null===e||void 0===e||e.forEach((e=>{let n=es([e])?ts(e.traceInfo):e.inputsId;if(s.has(n)){const s=(t.get(e.inputsId)||0)+1;t.set(e.inputsId,s),n=`${e.inputsId}_${s}`}s.set(n,e)})),s}function Is(e,s){if((0,n.isNil)(s))return e.map((e=>({currentRunValue:e})));const t=bs(s),o=bs(e),a=new Set([...o.keys(),...t.keys()]);return Array.from(a).map((e=>({currentRunValue:o.get(e),otherRunValue:t.get(e)})))}var Es=t(70618),xs=t(9856),As=t(58732),ws=t(41261);const Ns=()=>{const{theme:e}=(0,v.u)();return(0,y.FD)("span",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:e.spacing.sm,svg:{width:"12px",height:"12px"},color:e.colors.textValidationWarning},""),children:[(0,y.Y)(v.l,{css:(0,p.AH)({color:e.colors.textValidationWarning},"")}),(0,y.Y)(f.sA,{id:"HdEgbb",defaultMessage:"Error"})," "]})};var Cs={name:"rhxkjj",styles:"height:20px"};const Rs=({isComparing:e})=>{const{theme:s}=(0,v.u)();return(0,y.Y)("span",{css:Cs,children:e&&(0,y.Y)("span",{css:(0,p.AH)({fontStyle:"italic",color:s.colors.textSecondary},""),children:"null"})})},Ts=e=>{const{first:s,second:t,gap:n,borderRadius:o,marginY:a}=e,{theme:i}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:n||i.spacing.sm,borderRadius:o||i.legacyBorders.borderRadiusMd,marginTop:a||"auto",marginBottom:a||"auto"},""),children:[s,t]})};var Ys=t(53962),_s=t(39416);const Ms=fetch,ks=async(e,s,t)=>{const n={method:s,headers:{...t?{"Content-Type":"application/json"}:{},...(0,Ys.KZ)(document.cookie)}};t&&(n.body=JSON.stringify(t));const o=await Ms(e,n);if(!o.ok){const e=(0,_s.a$)(o);try{const s=await(await o.json()).message;s&&(e.message=s)}catch{}throw e}return o.json()};class Ds{static getEntryPointName(e){const s=e[Ds.entryPointTag];return s?s.value:""}static getSourceType(e){const s=e[Ds.sourceTypeTag];return s?s.value:""}static dropExtension(e){return e.replace(/(.*[^/])\.[^/.]+$/,"$1")}static baseName(e){const s=e.split("/");return s[s.length-1]}static formatSource(e){const s=Ds.getSourceName(e),t=Ds.getSourceType(e),n=Ds.getEntryPointName(e);if("PROJECT"===t){let e=Ds.dropExtension(Ds.baseName(s));return n&&"main"!==n&&(e+=":"+n),e}if("JOB"===t){const t="mlflow.databricks.jobID",n="mlflow.databricks.jobRunID",o=e&&e[t]&&e[t].value,a=e&&e[n]&&e[n].value;return o&&a?Ds.getDefaultJobRunName(o,a):s}return Ds.baseName(s)}static getDefaultJobRunName(e,s,t=null){if(!e)return"-";let n=`job ${e}`;return s&&(n=`run ${s} of `+n),t&&(n=`workspace ${t}: `+n),n}static getSourceName(e){const s=e[Ds.sourceNameTag];return s?s.value:""}static getGitHubRegex(){return/[@/]github.com[:/]([^/.]+)\/([^/#]+)#?(.*)/}static getGitLabRegex(){return/[@/]gitlab.com[:/]([^/.]+)\/([^/#]+)#?(.*)/}static getBitbucketRegex(){return/[@/]bitbucket.org[:/]([^/.]+)\/([^/#]+)#?(.*)/}static getRunPageRoute(e,s){return`/experiments/${e}/runs/${s}`}static getLoggedModelPageRoute(e,s){return`/experiments/${e}/models/${s}`}static getGitRegex(){return/(.*?[@/][^?]*git.*?)[:/]([^#]+)(?:#(.*))?/}static getGitRepoUrl(e,s="master"){const t=e.match(Ds.getGitHubRegex()),n=e.match(Ds.getGitLabRegex()),o=e.match(Ds.getBitbucketRegex()),a=e.match(Ds.getGitRegex());let i=null;if(t)i=`https://github.com/${t[1]}/${t[2].replace(/.git/,"")}`,t[3]&&(i+=`/tree/${s}/${t[3]}`);else if(n)i=`https://gitlab.com/${n[1]}/${n[2].replace(/.git/,"")}`,n[3]&&(i+=`/-/tree/${s}/${n[3]}`);else if(o)i=`https://bitbucket.org/${o[1]}/${o[2].replace(/.git/,"")}`,o[3]&&(i+=`/src/${s}/${o[3]}`);else if(a){const[,e,t,n]=a;i=e.replace(/git@/,"https://")+"/"+t.replace(/.git/,""),n&&(i+=`/tree/${s}/${n}`)}return i}static getNotebookRevisionId(e){const s="mlflow.databricks.notebookRevisionID";return e&&e[s]&&e[s].value}static getNotebookId(e){const s="mlflow.databricks.notebookID";return e&&e[s]&&e[s].value}static isCurrentWorkspace(e){return!0}static getDefaultNotebookRevisionName(e,s,t=null){if(!e)return"-";let n=`notebook ${e}`;return s&&(n=`revision ${s} of `+n),t&&(n=`workspace ${t}: `+n),n}static ensureUrlScheme(e,s="https"){return e?e.match(/^:\/\//i)?`${s}${e}`:e.match(/^[a-z1-9+-.]+:\/\//i)?e:`${s}://${e}`:e}static setQueryParams(e,s){const t=new URL(Ds.ensureUrlScheme(e));return t.search=s||"",t.toString()}static getNotebookSourceUrl(e,s,t,n,o=null){let a=Ds.setQueryParams(o||window.location.origin,e);return a+=`#notebook/${s}`,t&&(a+=`/revision/${t}`,n&&(a+=`/mlflow/run/${n}`)),a}static renderNotebookSource(e,s,t,n,o,a=null,i=null){const l=o?Ds.baseName(o):Ds.getDefaultNotebookRevisionName(s,t),r=i||l;if(s){const i=Ds.getNotebookSourceUrl(e,s,t,n,a);return(0,y.Y)("a",{title:o||Ds.getDefaultNotebookRevisionName(s,t),href:i,target:"_top",children:r})}return r}static addQueryParams(e,s){if(!s||0===Object.keys(s).length)return e;const t=new URLSearchParams(e);Object.entries(s).forEach((([e,s])=>Boolean(e)&&Boolean(s)&&t.set(e,s)));const n=t.toString();return""===n||n.includes("?")?n:`?${n}`}static getJobSourceUrl(e,s,t,n=null){let o=Ds.setQueryParams(n||window.location.origin,e);return o+=`#job/${s}`,t&&(o+=`/run/${t}`),o}static renderJobSource(e,s,t,n,o=null,a=null){const i=n||Ds.getDefaultJobRunName(s,t),l=a||i;if(s){const n=Ds.getJobSourceUrl(e,s,t,o);return(0,y.Y)("a",{title:i,href:n,target:"_top",children:l})}return l}static renderSource(e,s,t,n="master"){const o=Ds.getSourceName(e);let a=Ds.formatSource(e);const i=Ds.getGitRepoUrl(o,n);i&&(a=(0,y.Y)("a",{target:"_top",href:i,children:a}));const l=Ds.getSourceType(e);if("NOTEBOOK"===l){const n=Ds.getNotebookRevisionId(e),a=Ds.getNotebookId(e),i="mlflow.databricks.workspaceID",l=e&&e[i]&&e[i].value;if(Ds.isCurrentWorkspace(l))return Ds.renderNotebookSource(s,a,n,t,o,null);{const i="mlflow.databricks.workspaceURL",r=e&&e[i]&&e[i].value,d=Ds.addQueryParams(s,{o:l});return Ds.renderNotebookSource(d,a,n,t,o,r)}}if("JOB"===l){const t="mlflow.databricks.jobID",n="mlflow.databricks.jobRunID",o=e&&e[t]&&e[t].value,i=e&&e[n]&&e[n].value,l="mlflow.databricks.workspaceID",r=e&&e[l]&&e[l].value;if(Ds.isCurrentWorkspace(r))return Ds.renderJobSource(s,o,i,a,null);{const t="mlflow.databricks.workspaceURL",n=e&&e[t]&&e[t].value,l=Ds.addQueryParams(s,{o:r});return Ds.renderJobSource(l,o,i,a,n)}}return a}static renderSourceFromMetadata(e){var s,t,n,o,a;const i=null===(s=e.trace_metadata)||void 0===s?void 0:s[Ds.sourceNameTag],l=null===(t=e.trace_metadata)||void 0===t?void 0:t[Ds.sourceTypeTag];let r=i?Ds.baseName(i):"";const d=null===(n=e.trace_metadata)||void 0===n?void 0:n["mlflow.source.git.repoURL"],c=null===(o=e.trace_metadata)||void 0===o?void 0:o["mlflow.source.git.branch"],u=null===(a=e.trace_metadata)||void 0===a?void 0:a["mlflow.source.git.commit"];if(d){const e=d.replace("git@github.com:","https://github.com/").replace("git@gitlab.com:","https://gitlab.com/").replace("git@bitbucket.org:","https://bitbucket.org/").replace(".git",""),s=u||c||"master",t=i?`/${i}`:"";let n=e;n=e.includes("github.com")?`${e}/tree/${s}${t}`:e.includes("gitlab.com")?`${e}/-/tree/${s}${t}`:e.includes("bitbucket.org")?`${e}/src/${s}${t}`:`${e}/tree/${s}${t}`,r=(0,y.Y)("a",{target:"_blank",rel:"noopener noreferrer",href:n,children:r})}if("NOTEBOOK"===l){var m,p,g;const s=null===(m=e.trace_metadata)||void 0===m?void 0:m["mlflow.databricks.notebookRevisionID"],t=null===(p=e.trace_metadata)||void 0===p?void 0:p["mlflow.databricks.notebookID"],n=null===(g=e.trace_metadata)||void 0===g?void 0:g["mlflow.databricks.workspaceID"];if(Ds.isCurrentWorkspace(n))return Ds.renderNotebookSource(null,t,s,null,i,null);{var v;const o="mlflow.databricks.workspaceURL",a=(null===(v=e.trace_metadata)||void 0===v?void 0:v[o])||void 0,l=Ds.addQueryParams(null,{o:n});return Ds.renderNotebookSource(l,t,s,null,i,a)}}if("JOB"===l){var f,h,S;const s=null===(f=e.trace_metadata)||void 0===f?void 0:f["mlflow.databricks.jobID"],t=null===(h=e.trace_metadata)||void 0===h?void 0:h["mlflow.databricks.jobRunID"],n=null===(S=e.trace_metadata)||void 0===S?void 0:S["mlflow.databricks.workspaceID"];if(Ds.isCurrentWorkspace(n))return Ds.renderJobSource(null,s,t,r,null);{var b;const o="mlflow.databricks.workspaceURL",a=(null===(b=e.trace_metadata)||void 0===b?void 0:b[o])||void 0,i=Ds.addQueryParams(null,{o:n});return Ds.renderJobSource(i,s,t,r,a)}}return r}}Ds.runNameTag="mlflow.runName",Ds.sourceNameTag="mlflow.source.name",Ds.sourceTypeTag="mlflow.source.type",Ds.entryPointTag="mlflow.project.entryPoint";var Fs=Ds;const Os=e=>{var s,t;const{experimentId:n,currentTraceInfo:o,otherTraceInfo:a,isComparing:i}=e,l=null===o||void 0===o||null===(s=o.trace_metadata)||void 0===s?void 0:s["mlflow.modelId"],r=null===a||void 0===a||null===(t=a.trace_metadata)||void 0===t?void 0:t["mlflow.modelId"];return(0,y.Y)(Ts,{first:l?(0,y.Y)(Us,{experimentId:n,modelId:l,isComparing:i}):(0,y.Y)(Rs,{isComparing:i}),second:i&&(r?(0,y.Y)(Us,{experimentId:n,modelId:r,isComparing:i}):(0,y.Y)(Rs,{isComparing:i}))})};var Ls={name:"1puasmx",styles:"width:fit-content;max-width:100%;margin-right:0;cursor:pointer"},Vs={name:"1it2kpr",styles:"max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Hs={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};const Us=e=>{var s;const{experimentId:t,modelId:n,isComparing:o}=e,{theme:a}=(0,v.u)(),{data:i,isLoading:l,error:r}=Bs({loggedModelId:n}),d=null===i||void 0===i||null===(s=i.info)||void 0===s?void 0:s.name;return l?(0,y.Y)(g.ParagraphSkeleton,{}):r?(0,y.Y)(Ns,{}):d?(0,y.Y)(fe.T,{componentId:"mlflow.eval-runs.model-version-cell-tooltip",content:d,children:(0,y.Y)(g.Tag,{componentId:"mlflow.eval-runs.model-version-cell",id:"model-version-cell",css:Ls,children:(0,y.Y)(de,{to:Fs.getLoggedModelPageRoute(t,n),target:"_blank",css:Vs,title:d,children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:a.spacing.xs,maxWidth:"100%"},""),children:[(0,y.Y)(g.ModelsIcon,{css:(0,p.AH)({color:a.colors.textPrimary,fontSize:16},"")}),(0,y.Y)(v.T.Text,{css:Hs,children:d})]})})})}):(0,y.Y)(Rs,{isComparing:o})},Bs=({loggedModelId:e})=>{const{data:s,isLoading:t,isFetching:o,refetch:a,error:i}=(0,ws.I)({queryKey:["loggedModelName",e],queryFn:async()=>await ks((0,Ys.we)(`ajax-api/2.0/mlflow/logged-models/${e}`),"GET"),cacheTime:1/0,staleTime:1/0,refetchOnMount:!1,retry:1,enabled:!(0,n.isNil)(e)});return{isLoading:t,isFetching:o,data:null===s||void 0===s?void 0:s.model,refetch:a,error:i}};var zs={name:"pzwiqy",styles:"display:flex;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap"};const $s=e=>{var s,t,n;const{experimentId:o,runUuid:a}=e,{data:i,isLoading:l,error:r}=js(o,a),d=null===i||void 0===i||null===(s=i.runs)||void 0===s||null===(t=s[0])||void 0===t||null===(n=t.info)||void 0===n?void 0:n.run_name;return l?(0,y.Y)(g.ParagraphSkeleton,{}):r?(0,y.Y)(Ns,{}):d?(0,y.Y)(de,{css:zs,to:Fs.getRunPageRoute(o,a),title:d,children:d}):(0,y.Y)(Rs,{})},js=(e,s)=>(0,ws.I)({queryKey:["runName",e,s],cacheTime:1/0,staleTime:1/0,retry:1,refetchOnMount:!1,queryFn:async()=>{const t=`run_id IN ('${s}')`;return await ks((0,Ys.we)("ajax-api/2.0/mlflow/runs/search"),"POST",{experiment_ids:[e],filter:t})}});var qs=function(e){return e.NOTEBOOK="NOTEBOOK",e.JOB="JOB",e.PROJECT="PROJECT",e.LOCAL="LOCAL",e.UNKNOWN="UNKNOWN",e}(qs||{});const Ps=({sourceType:e,className:s})=>e===qs.NOTEBOOK?(0,y.Y)(g.NotebookIcon,{className:s}):e===qs.LOCAL?(0,y.Y)(g.HomeIcon,{className:s}):e===qs.PROJECT?(0,y.Y)(g.FolderBranchIcon,{className:s}):e===qs.JOB?(0,y.Y)(g.WorkflowsIcon,{className:s}):null;var Ks={name:"1gz2b5f",styles:"overflow:hidden;text-overflow:ellipsis"};const Gs=e=>{var s;const t=e.traceInfo.tags,{theme:n}=(0,v.u)();if(!t)return(0,y.Y)(Rs,{isComparing:e.isComparing});const o=null===(s=e.traceInfo.trace_metadata)||void 0===s?void 0:s[Fs.sourceTypeTag],a=Fs.renderSourceFromMetadata(e.traceInfo);return a&&o?(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:n.spacing.xs,alignItems:"center",...e.disableLinks&&{"& a":{pointerEvents:"none",color:"inherit",textDecoration:"none",cursor:"default"}}},""),children:[(0,y.Y)(Ps,{sourceType:o,css:(0,p.AH)({color:n.colors.textSecondary},"")}),(0,y.Y)("span",{css:Ks,children:a})]}):(0,y.Y)(Rs,{isComparing:e.isComparing})},Ws={STATE_UNSPECIFIED:null,IN_PROGRESS:(0,f.zR)({id:"y56Vz9",defaultMessage:"In progress"}),OK:(0,f.zR)({id:"Mn7Kss",defaultMessage:"OK"}),ERROR:(0,f.zR)({id:"igK5Su",defaultMessage:"Error"})},Qs=(e,s)=>"IN_PROGRESS"===e?(0,y.Y)(ve.C,{css:(0,p.AH)({color:s.colors.textValidationWarning},"")}):"OK"===e?(0,y.Y)(g.CheckCircleIcon,{css:(0,p.AH)({color:s.colors.textValidationSuccess},"")}):"ERROR"===e?(0,y.Y)(g.XCircleIcon,{css:(0,p.AH)({color:s.colors.textValidationDanger},"")}):null,Js=({original:e,isComparing:s})=>{const{theme:t}=(0,v.u)(),n=(0,f.tz)(),o=Ws[(null===e||void 0===e?void 0:e.state)||"STATE_UNSPECIFIED"];return o?(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:t.spacing.xs,alignItems:"center"},""),children:[Qs((null===e||void 0===e?void 0:e.state)||"STATE_UNSPECIFIED",t),o?n.formatMessage(o):""]}):(0,y.Y)(Rs,{isComparing:s})};var Xs=t(3833);const{Paragraph:Zs}=v.T;var et={name:"s5xdrg",styles:"display:flex;align-items:center"},st={name:"1ff36h2",styles:"flex-grow:1"};const tt=ie.memo((e=>{const{theme:s}=(0,v.u)();return(0,y.Y)(fe.d,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetagfullviewmodal.tsx_17",title:"Tag: "+e.tagKey,visible:e.isKeyValueTagFullViewModalVisible,onCancel:()=>e.setIsKeyValueTagFullViewModalVisible(!1),children:(0,y.FD)("div",{css:et,children:[(0,y.Y)(Zs,{css:st,children:(0,y.Y)("pre",{css:(0,p.AH)({backgroundColor:s.colors.backgroundPrimary,marginTop:s.spacing.sm,whiteSpace:"pre-wrap",wordBreak:"break-all"},""),children:e.tagValue})}),(0,y.Y)("div",{css:(0,p.AH)({marginBottom:s.spacing.md},""),children:(0,y.Y)(Xs.ad,{copyText:e.tagValue})})]})})}));function nt(e=!0){return e?{overflow:"hidden",textOverflow:"ellipsis",textWrap:"nowrap",whiteSpace:"nowrap"}:{whiteSpace:"nowrap"}}const ot=({isClosable:e=!1,onClose:s,tag:t,enableFullViewModal:n=!1,charLimit:o=30,maxWidth:a=300,className:i})=>{const l=(0,f.tz)(),[r,d]=(0,ie.useState)(!1),{shouldTruncateKey:c,shouldTruncateValue:u}=function(e,s=30){const{key:t,value:n}=e,o=t.length+n.length,a=t.length>n.length,i=a?n.length:t.length;return o<=s?{shouldTruncateKey:!1,shouldTruncateValue:!1}:i>s/2?{shouldTruncateKey:!0,shouldTruncateValue:!0}:{shouldTruncateKey:a,shouldTruncateValue:!a}}(t,o),m=n&&(c||u),h=l.formatMessage({id:"ZXUtU8",defaultMessage:"Click to see more"});return(0,y.FD)("div",{children:[(0,y.Y)(g.Tag,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetag.tsx_60",closable:e,onClose:s,title:t.key,className:i,children:(0,y.Y)(g.LegacyTooltip,{title:m?h:"",children:(0,y.FD)("span",{css:(0,p.AH)({maxWidth:a,display:"inline-flex"},""),onClick:()=>m?d(!0):void 0,children:[(0,y.Y)(v.T.Text,{bold:!0,title:t.key,css:nt(c),children:t.key}),t.value&&(0,y.FD)(v.T.Text,{title:t.value,css:nt(u),children:[": ",t.value]})]})})}),(0,y.Y)("div",{children:r&&(0,y.Y)(tt,{tagKey:t.key,tagValue:t.value,isKeyValueTagFullViewModalVisible:r,setIsKeyValueTagFullViewModalVisible:d})})]})};var at={name:"1wcfv52",styles:"margin-right:0"},it={name:"14cnl6e",styles:"flex-shrink:0;opacity:0;[role=row]:hover &{opacity:1;}[role=row]:focus-within &{opacity:1;}"};const lt=({onAddEditTags:e,tags:s,baseComponentId:t})=>{const{theme:n}=(0,v.u)(),o=(null===s||void 0===s?void 0:s.filter((({key:e})=>e&&!e.startsWith(Ke))))||[],a=o.length>0;return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:n.spacing.xs,rowGap:n.spacing.xs},""),children:[o.map((e=>(0,y.Y)(ot,{tag:e,css:at,charLimit:20,maxWidth:150,enableFullViewModal:!0},e.key))),e&&(0,y.Y)(v.B,{componentId:`${t}.traces_table.edit_tag`,size:"small",icon:a?(0,y.Y)(g.PencilIcon,{}):void 0,onClick:e,children:a?void 0:(0,y.Y)(f.sA,{id:"vHNP+J",defaultMessage:"Add tags"}),css:it,type:"tertiary"})]})};const rt=e=>{const{currentTraceInfo:s,otherTraceInfo:t,isComparing:n}=e;return(0,y.Y)(Ts,{first:(0,y.Y)(yt,{traceInfo:s,isComparing:n}),second:n&&(0,y.Y)(yt,{traceInfo:t,isComparing:n})})};var dt={name:"58t467",styles:"width:fit-content;max-width:100%"},ct={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},ut={name:"1fttcpj",styles:"display:flex;flex-direction:column"},mt={name:"ho1qnd",styles:"display:flex;flex-direction:row"},pt={name:"i9sky5",styles:"width:35%"},gt={name:"ho1qnd",styles:"display:flex;flex-direction:row"},vt={name:"i9sky5",styles:"width:35%"},ft={name:"ho1qnd",styles:"display:flex;flex-direction:row"},ht={name:"i9sky5",styles:"width:35%"};const yt=e=>{var s;const{traceInfo:t,isComparing:n}=e,o=null===t||void 0===t||null===(s=t.trace_metadata)||void 0===s?void 0:s["mlflow.trace.tokenUsage"],a=(()=>{try{return o?JSON.parse(o):{}}catch{return{}}})(),i=a.total_tokens,l=a.input_tokens,r=a.output_tokens,d=(0,f.tz)();return i?(0,y.Y)(g.HoverCard,{trigger:(0,y.Y)(g.Tag,{css:dt,componentId:"mlflow.genai-traces-table.tokens",children:(0,y.Y)("span",{css:ct,children:i})}),content:(0,y.FD)("div",{css:ut,children:[i&&(0,y.FD)("div",{css:mt,children:[(0,y.Y)("div",{css:pt,children:(0,y.Y)(v.T.Text,{children:d.formatMessage({id:"83wDn8",defaultMessage:"Total"})})}),(0,y.Y)("div",{children:(0,y.Y)(v.T.Text,{color:"secondary",children:i})})]}),l&&(0,y.FD)("div",{css:gt,children:[(0,y.Y)("div",{css:vt,children:(0,y.Y)(v.T.Text,{children:d.formatMessage({id:"Y7DzTT",defaultMessage:"Input"})})}),(0,y.Y)("div",{children:(0,y.Y)(v.T.Text,{color:"secondary",children:l})})]}),r&&(0,y.FD)("div",{css:ft,children:[(0,y.Y)("div",{css:ht,children:(0,y.Y)(v.T.Text,{children:d.formatMessage({id:"tGqJL4",defaultMessage:"Output"})})}),(0,y.Y)("div",{children:(0,y.Y)(v.T.Text,{color:"secondary",children:r})})]})]})}):(0,y.Y)(Rs,{isComparing:n})},St="Error";function bt(e){return Boolean((null===e||void 0===e?void 0:e.errorCode)||(null===e||void 0===e?void 0:e.errorMessage))}function It(e){const s=e.split("/");return 1===s.length?{metricName:e,assessmentName:e}:2===s.length?{metricName:s[0],assessmentName:s[1]}:{metricName:s[1],assessmentName:s.slice(2).join("/")}}const Et=[E.YES,E.NO];function xt(e,s,t){var o;const a={},i={[b.OVERALL_ASSESSMENT]:"pass-fail"},l=new Set;[...s,...t||[]].forEach((e=>{var s;const t=Object.entries(e.responseAssessmentsByName||{}),o=e.overallAssessments.map((e=>[b.OVERALL_ASSESSMENT,[e]])),a=[];null===(s=e.retrievalChunks)||void 0===s||s.forEach((e=>{for(const[s,t]of Object.entries(e.retrievalAssessmentsByName||{}))a.push([s,t])}));for(const[r,d]of[...t,...o,...a]){l.add(r);const e=d[0];let s=(0,n.isNil)(e.stringValue)?(0,n.isNil)(e.numericValue)?(0,n.isNil)(e.booleanValue)?void 0:"boolean":"numeric":"pass-fail";bt(e)&&(s=void 0),i[r]||(r in R&&(s="pass-fail"),i[r]=s),"pass-fail"!==s||(0,n.isNil)(e.stringValue)||Et.includes(e.stringValue)||(i[r]="string"),void 0!==s&&s!==i[r]&&(i[r]="string")}}));for(const n of l)i[n]||(i[n]="unknown");[...s,...t||[]].forEach((s=>{var t;const o=Object.entries(s.responseAssessmentsByName||{}),l=s.overallAssessments.map((e=>[b.OVERALL_ASSESSMENT,[e]])),r=[];null===(t=s.retrievalChunks)||void 0===t||t.forEach((e=>{for(const[s,t]of Object.entries(e.retrievalAssessmentsByName||{}))r.push([s,t])}));const d=Object.keys(i);for(const f of d){const s=[...o.filter((([e])=>e===f)),...l.filter((([e])=>e===f)),...r.filter((([e])=>e===f))].map((([e,s])=>s[0]))[0],t=bt(s);if((0,n.isNil)(a[f])){var c,u,m;let n,o,l=!1;const d=void 0!==R[f];if(d)n=e.formatMessage(R[f]),o=f,l=!1;else{var p;const{metricName:e,assessmentName:t}=It(f);n=t||"-",o=e,"CODE"===(null===s||void 0===s||null===(p=s.source)||void 0===p?void 0:p.sourceType)&&(l=!0)}const g=i[f]||"string",v="https://mlflow.org/docs/latest/genai/eval-monitor",h=f in T?e.formatMessage(T[f]):"",y=f in Y?e.formatMessage(Y[f]):"HUMAN"===(null===s||void 0===s||null===(c=s.source)||void 0===c?void 0:c.sourceType)?e.formatMessage({id:"z94r4F",defaultMessage:"This assessment is produced by a human judge."}):e.formatMessage({id:"lQ2nDn",defaultMessage:"This assessment is produced by a custom metric."});let S=s?L(s):void 0;null===S&&(S=void 0);const I=new Set;t||I.add(S),a[f]={name:f,displayName:n,isKnown:d,metricName:o,isCustomMetric:l,source:null===s||void 0===s?void 0:s.source,dtype:g,uniqueValues:I,isOverall:f===b.OVERALL_ASSESSMENT,docsLink:v,missingTooltip:h,description:y,isEditable:"AI_JUDGE"===(null===s||void 0===s||null===(u=s.source)||void 0===u?void 0:u.sourceType)||"HUMAN"===(null===s||void 0===s||null===(m=s.source)||void 0===m?void 0:m.sourceType),isRetrievalAssessment:r.some((([e])=>e===f)),containsErrors:t}}else{const e=a[f];let o=s?L(s):void 0;var g,v;if((0,n.isNil)(o)&&(o=void 0),t||e.uniqueValues.add(o),!e.isEditable)e.isEditable="AI_JUDGE"===(null===s||void 0===s||null===(g=s.source)||void 0===g?void 0:g.sourceType)||"HUMAN"===(null===s||void 0===s||null===(v=s.source)||void 0===v?void 0:v.sourceType);e.isRetrievalAssessment=e.isRetrievalAssessment||r.some((([e])=>e===f)),e.containsErrors=e.containsErrors||t}}}));const r=(null===(o=a[b.OVERALL_ASSESSMENT])||void 0===o?void 0:o.uniqueValues)||new Set;return r.has(E.YES)||r.has(E.NO)||delete a[b.OVERALL_ASSESSMENT],At(Object.values(a))}function At(e){return e.sort(((e,s)=>{const t=I.indexOf(e.name),n=I.indexOf(s.name);return-1!==t&&-1!==n?t-n:-1!==t?-1:-1!==n?1:e.name.localeCompare(s.name)}))}function wt(e,s){if("numeric"!==e.dtype)return;return function(e){if(0===e.length)return;const s=[],t=Math.min(...e),n=Math.max(...e),o=Math.max(.01,(n-t)/10);let a=0;if(t===n)s.push({lower:t,upper:n,count:e.length});else for(let i=t;ie.lower-s.lower));for(const i of e){const e=s.find((e=>i>=e.lower&&(i{const t=e.isOverall?s.overallAssessments:s.responseAssessmentsByName[e.name];return null===t||void 0===t?void 0:t.map((e=>L(e))).filter((e=>void 0!==e&&"number"===typeof e))})).filter((e=>!(0,n.isNil)(e))))}function Nt(e,s){if("numeric"===e.dtype)return;const t=new Map;return s.forEach((s=>{const n=e.isOverall?s.overallAssessments:s.responseAssessmentsByName[e.name],o=n&&n.length>0?Dt(e,n):[{value:void 0,count:1}],a=e.containsErrors?[St,...e.uniqueValues]:e.uniqueValues;for(const e of a){const s=o.find((s=>s.value===e)),n=s?s.count:0;t.set(e,(t.get(e)||0)+n)}})),t}function Ct(e,s){if("numeric"!==e.dtype)return;const t=[];return s.forEach((s=>{const o=e.isOverall?(0,n.first)(s.overallAssessments):(0,n.first)(s.responseAssessmentsByName[e.name]);if(o){const e=L(o);(0,n.isNil)(e)||t.push(Number(e))}})),t}function Rt(e,s){let t=0;return s.forEach((s=>{var o;if((0,n.isNil)(s))return;const a=(0,n.first)(s.overallAssessments);(null===a||void 0===a||null===(o=a.rootCauseAssessment)||void 0===o?void 0:o.assessmentName)===e.name&&t++})),t}function Tt(e,s,t){const o=s.map((e=>e.currentRunValue)).filter((e=>!(0,n.isNil)(e))),a=s.map((e=>e.otherRunValue)).filter((e=>!(0,n.isNil)(e))),i=Nt(e,o),l=Nt(e,a),r=wt(e,o),d=t.filter((s=>s.assessmentName===e.name));return{assessmentInfo:e,currentCounts:i,otherCounts:l,currentNumericValues:Ct(e,o),otherNumericValues:Ct(e,a),currentNumericAggregate:r,currentNumRootCause:Rt(e,o),otherNumRootCause:Rt(e,a),assessmentFilters:d}}function Yt(e,s=new Map){if("pass-fail"===e.dtype||"boolean"===e.dtype){let t=0,o=0;for(const[a,i]of s)qt(e,a)&&(o+=i),(0,n.isNil)(a)||a===St||(t+=i);return t>0?o/t:0}return 0}function _t(e,s,t,n,o,a,i){let l=0;const r=n===St||void 0===n;for(const[u,m]of o)void 0!==u&&u!==St&&(l+=m);const d=o.get(n)||0,c=!r&&l>0?d/l:0;return{value:o.get(n)||0,fraction:c,isSelected:t.some((e=>e.filterValue===n&&e.assessmentName===s.name&&e.run===a)),toggleFilter:()=>i(s.name,n,a,undefined),tooltip:r?e.formatMessage({id:"joh88n",defaultMessage:'{numValue} for run "{runName}"'},{numValue:d,runName:a}):e.formatMessage({id:"jjidVr",defaultMessage:'{numValue}/{numEvals} for run "{runName}"'},{numValue:d,numEvals:l,runName:a})}}function Mt(e){const s=function(e){const s=Array.from(e.uniqueValues);if("pass-fail"===e.dtype){s.includes(E.YES)||s.push(E.YES),s.includes(E.NO)||s.push(E.NO);const e=[E.YES,E.NO];return s.sort(((s,t)=>e.indexOf(s)-e.indexOf(t)))}if("boolean"===e.dtype)return s.sort(((e,s)=>!0===e?-1:1));return s.sort()}(e);return e.containsErrors&&s.push(St),s}function kt(e,s,t,o){return"pass-fail"===t.dtype?o===E.YES?e.formatMessage({id:"nDVJ/n",defaultMessage:"Pass"}):o===E.NO?e.formatMessage({id:"7Dhfxy",defaultMessage:"Fail"}):o===St?e.formatMessage({id:"gPWxlB",defaultMessage:"Error"}):e.formatMessage({id:"keSIQ4",defaultMessage:"null"}):"boolean"===t.dtype?!0===o?e.formatMessage({id:"1Ujhc3",defaultMessage:"True"}):!1===o?e.formatMessage({id:"nvjkTA",defaultMessage:"False"}):e.formatMessage({id:"keSIQ4",defaultMessage:"null"}):(0,n.isNil)(o)?"null":`${o}`}function Dt(e,s){const t=s.filter((s=>s.name===e.name));let n=new Set;for(const l of t){const e=L(l);n.add(e)}t.sort(((e,s)=>(s.timestamp||0)-(e.timestamp||0)));const o=t.filter((e=>bt(e))),a=t.filter((e=>!bt(e)));n=new Set;for(const l of a){const e=L(l);n.add(e)}const i=[];for(const l of n){const e=t.filter((e=>L(e)===l)),s=e.length;i.push({value:l,count:s,latestAssessment:e[0]})}return o.length>0&&i.push({value:St,count:o.length,latestAssessment:o[0]}),i}function Ft(e,s=1){return Number((100*e).toFixed(s)).toString()}function Ot(e,s=3){if((0,n.isNil)(e))return"null";const t=Math.pow(10,s);return(Math.round(e*t)/t).toString()}function Lt(e,s,t=!0){if("numeric"===e.dtype){return"up"===(s>0?"up":"down")?`+${Ot(s,2)}`:`-${Ot(s,2)}`}{const e=s>=0?"up":"down";return t?"up"===e?`+${Ft(s,0)}%`:`-${Ft(-1*s,0)}%`:"up"===e?`+${s}`:`-${s}`}}function Vt(e,s=new Date){const t=Math.max(0,Math.floor((s-e)/1e3));let n=Math.floor(t/31536e3);return n>=1?(0,y.Y)(f.sA,{id:"16BvfJ",defaultMessage:"{timeSince, plural, =1 {1 year} other {# years}} ago",values:{timeSince:n}}):(n=Math.floor(t/2592e3),n>=1?(0,y.Y)(f.sA,{id:"5ZAXeS",defaultMessage:"{timeSince, plural, =1 {1 month} other {# months}} ago",values:{timeSince:n}}):(n=Math.floor(t/86400),n>=1?(0,y.Y)(f.sA,{id:"tLb7+M",defaultMessage:"{timeSince, plural, =1 {1 day} other {# days}} ago",values:{timeSince:n}}):(n=Math.floor(t/3600),n>=1?(0,y.Y)(f.sA,{id:"aOW396",defaultMessage:"{timeSince, plural, =1 {1 hour} other {# hours}} ago",values:{timeSince:n}}):(n=Math.floor(t/60),n>=1?(0,y.Y)(f.sA,{id:"7jsqqe",defaultMessage:"{timeSince, plural, =1 {1 minute} other {# minutes}} ago",values:{timeSince:n}}):(0,y.Y)(f.sA,{id:"93iLUV",defaultMessage:"{timeSince, plural, =1 {1 second} other {# seconds}} ago",values:{timeSince:t}})))))}function Ht(e){return e.replace(/([!"#$%&'()*+,\.\/:;\s<=>?@[\\\]^`{|}~])/g,"\\$1")}function Ut(e,s){return function(e,s,t=[],n){let o=Number(e);if(isNaN(o)||!isFinite(o))return{value:"",numericValue:void 0,unit:"",divisor:1};let a=0,i=1;for(;o>=s&&ae}),$t=({children:e,makeHtml:s})=>(0,y.Y)(zt.Provider,{value:{makeHTML:s},children:e}),jt=()=>ie.useContext(zt);const qt=(e,s)=>{if(!(0,n.isNil)(s))if("pass-fail"===e.dtype){if(s===E.YES)return!0;if(s===E.NO)return!1}else if("boolean"===e.dtype)return!0===s};var Pt={name:"1jwcxx3",styles:"font-style:italic"},Kt={name:"1jwcxx3",styles:"font-style:italic"};var Gt={name:"1066lcq",styles:"display:flex;justify-content:space-between;align-items:center"},Wt={name:"1ykowef",styles:"margin-bottom:0"},Qt={name:"6jwybp",styles:"height:16px"},Jt={name:"dao2zk",styles:"display:contents;& p{margin-bottom:0;}"};const Xt=({assessment:e,onEdit:s,active:t=!1,disableJudgeTypeIcon:o,showRationaleInTooltip:a=!1,showPassFailText:i=!1,hideAssessmentName:l=!1,iconOnly:r=!1,disableTooltip:d=!1,isRootCauseAssessment:c,assessmentInfo:u,type:m,count:h})=>{var S,b;const{theme:I}=(0,v.u)(),x=(0,f.tz)(),A=e?L(e):void 0,w=(0,ie.useMemo)((()=>qt(u,A)),[A,u]),N=ne(I,u,e),C=((e,s,t)=>null!==t&&void 0!==t&&t.errorMessage?e.colors.textValidationWarning:"pass-fail"===s.dtype?(null===t||void 0===t?void 0:t.stringValue)===E.YES?e.isDarkMode?e.colors.green400:e.colors.green600:(null===t||void 0===t?void 0:t.stringValue)===E.NO?e.isDarkMode?e.colors.red400:e.colors.red600:e.colors.textSecondary:"boolean"===s.dtype?(0,n.isNil)(null===t||void 0===t?void 0:t.booleanValue)?e.colors.textSecondary:e.colors.textPrimary:"unknown"===s.dtype?e.colors.textSecondary:e.colors.textPrimary)(I,u,e);let Y;(null!==e&&void 0!==e&&e.errorMessage||void 0===w&&e&&T[e.name])&&(Y=e.errorMessage||x.formatMessage(T[e.name]));const M=e?R[e.name]:void 0,k=(0,ie.useMemo)((()=>M?x.formatMessage(M):null===e||void 0===e?void 0:e.name),[e,M,x]),D=(0,ie.useMemo)((()=>e?(e.name,"https://mlflow.org/docs/latest/genai/eval-monitor"):void 0),[e]),{makeHTML:F}=jt(),O=(0,ie.useMemo)((()=>{const s=null===e||void 0===e?void 0:e.rationale;return(0,n.isString)(s)?F(s):void 0}),[e,F]),V=(0,ie.useMemo)((()=>!(0,n.isNil)(e)&&q(e)),[e]),{tagText:H,icon:U,fullTagText:B}=(0,ie.useMemo)((()=>function(e,s,t,o,a,i,l){let r,d="",c=(0,y.Y)(y.FK,{});const u={tagText:(0,y.Y)(f.sA,{id:"AX7L9r",defaultMessage:"Error"}),icon:(0,y.Y)(v.l,{css:(0,p.AH)({color:e.colors.textValidationWarning},"")})},m={tagText:(0,y.Y)("span",{css:Pt,children:(0,y.Y)(f.sA,{id:"H2UIIZ",defaultMessage:"null"})}),icon:(0,y.Y)(v.W,{css:(0,p.AH)({color:e.colors.grey400},"")})},h=i?L(i):void 0;if(Boolean(null===i||void 0===i?void 0:i.errorMessage))return u;if("pass-fail"===o.dtype||"boolean"===o.dtype){const a=qt(o,h);let r="";if("pass-fail"===o.dtype)if(!0===a)r=s.formatMessage({id:"Kya8N3",defaultMessage:"Pass"});else{if(!1!==a)return m;r=s.formatMessage({id:"bz4brG",defaultMessage:"Fail"})}else if(!0===a)r=s.formatMessage({id:"lo5Me/",defaultMessage:"True"});else{if(!1!==a)return m;r=s.formatMessage({id:"OZXWas",defaultMessage:"False"})}const u=ne(e,o,i);if(c=!0===a?(0,y.Y)(g.CheckCircleIcon,{css:(0,p.AH)({color:u},"")}):!1===a?l?(0,y.Y)(ve.X,{css:(0,p.AH)({color:u},"")}):(0,y.Y)(g.XCircleIcon,{css:(0,p.AH)({color:u},"")}):(0,y.Y)(v.W,{css:(0,p.AH)({color:u},"")}),"assessment-value"===t){const e=_[o.name];if(e){var S;const s=h&&null!==(S=e[h.toString()])&&void 0!==S?S:e[E.YES];s&&(d=(0,y.Y)(f.sA,{...s,values:{value:h}}))}else d=(0,y.FD)(y.FK,{children:[o.displayName,": ",h]})}else"value"===t&&(d=(0,n.isNil)(a)?(0,y.Y)("span",{css:Kt,children:r}):r)}else if("numeric"===o.dtype){const e=(0,n.isNil)(h)?h:Ot(h);if("assessment-value"===t)d=(0,y.FD)(y.FK,{children:[o.displayName,": ",e]}),r=(0,y.FD)(y.FK,{children:[o.displayName,": ",h]});else{if((0,n.isNil)(e))return m;d=`${e}`,r=`${h}`}}else{if((0,n.isNil)(h))return m;const e=(0,y.Y)(y.FK,{children:String(h)});d="assessment-value"===t?(0,n.isNil)(h)?(0,y.Y)(y.FK,{children:o.displayName}):(0,y.FD)(y.FK,{children:[o.displayName,": ",e]}):e}return{tagText:d,icon:c,fullTagText:r}}(I,x,m,u,0,e,c)),[I,x,m,u,e,c,V]),z=(0,y.FD)(y.FK,{children:[H,h&&h>1?` (${h})`:""]});if("HUMAN"===(null===(S=u.source)||void 0===S?void 0:S.sourceType)&&!(null!==e&&void 0!==e&&null!==(b=e.source)&&void 0!==b&&b.sourceId))return(0,y.Y)(y.FK,{});const $=(0,y.Y)("div",{children:(0,y.Y)(Zt,{iconOnly:r,hideAssessmentName:l,tagContent:z,active:t,icon:U,iconColor:N,textColor:C,sourceIcon:u.isCustomMetric?(0,y.Y)(g.BracketsXIcon,{}):e&&V?(0,y.Y)(g.UserIcon,{}):(0,y.Y)(g.SparkleDoubleIcon,{}),backgroundColor:oe(I,u,e),disableSourceTypeIcon:o&&!V,hasBeenEditedByHuman:V,onEdit:s})});return(0,y.Y)(y.FK,{children:d?$:(0,y.Y)(g.HoverCard,{side:"bottom",content:(0,y.FD)("div",{css:(0,p.AH)({maxWidth:"25rem",display:"flex",flexDirection:"column",overflowWrap:"break-word",wordBreak:"break-word",gap:I.spacing.sm},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:I.spacing.xs},""),children:[(0,y.FD)("div",{css:Gt,children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:I.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(v.T.Title,{css:Wt,children:k}),(0,y.Y)(Zt,{iconOnly:r,hideAssessmentName:l,tagContent:B||z,active:t,icon:U,iconColor:N,textColor:C,sourceIcon:u.isCustomMetric?(0,y.Y)(g.BracketsXIcon,{}):e&&q(e)?(0,y.Y)(g.UserIcon,{}):(0,y.Y)(g.SparkleDoubleIcon,{}),backgroundColor:oe(I,u,e),disableSourceTypeIcon:o,hasBeenEditedByHuman:V})]}),D&&(0,y.Y)("a",{href:D,target:"_blank",rel:"noreferrer",css:Qt,children:(0,y.Y)(fe.I,{})})]}),c&&(0,y.Y)(v.T.Hint,{children:x.formatMessage({id:"QEL+JO",defaultMessage:"This assessment is the root cause of the overall evaluation failure."})})]}),a&&e&&O&&(0,y.Y)("div",{children:(0,y.Y)(y.FK,{children:(0,y.Y)("span",{css:Jt,dangerouslySetInnerHTML:{__html:O}})})}),Y&&(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:I.spacing.xs},""),children:(0,y.Y)("span",{css:(0,p.AH)({color:I.colors.textValidationWarning,fontStyle:"italic"},""),children:Y})})]}),trigger:$})})},Zt=({iconOnly:e,hideAssessmentName:s,tagContent:t,active:n,sourceIcon:o,icon:a,iconColor:i,textColor:l,backgroundColor:r,disableSourceTypeIcon:d,hasBeenEditedByHuman:c,onEdit:u})=>{const{theme:m}=(0,v.u)(),f=e?18:12;return(0,y.FD)("div",{css:(0,p.AH)({display:"inline-flex",height:e?f:20,width:e?f:s?"fit-content":"",justifyContent:"space-between",alignItems:"center",padding:e?"0":u?"0 0 0 8px":"0 8px",gap:m.spacing.sm,borderRadius:e?"50%":m.legacyBorders.borderRadiusMd,backgroundColor:r,boxShadow:`inset 0 0 1px 1px ${n?m.colors.borderAccessible:"transparent"}`,fontSize:m.typography.fontSizeSm,svg:{width:f,height:f},whiteSpace:"nowrap"},""),children:[a,t&&(0,y.Y)("span",{css:(0,p.AH)({color:l},""),children:t}),!0!==d?(0,y.Y)("span",{css:(0,p.AH)({color:i},""),children:o}):(0,y.Y)(y.FK,{}),u&&(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.edit_assessment_button",onClick:u,size:"small",icon:(0,y.Y)(g.PencilIcon,{css:(0,p.AH)({":hover":{color:m.colors.actionDefaultTextHover}},"")})})]})};var en={name:"1wr4ndu",styles:"width:12px;height:12px;border-radius:6px;flex-shrink:0;border:1px solid rgba(0, 0, 0, 0.1);cursor:default;position:relative"},sn={name:"mvtt3w",styles:"clip:rect(0px, 0px, 0px, 0px);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px"};const tn=ie.memo((({color:e,hidden:s})=>(0,y.Y)("label",{css:en,style:{backgroundColor:e,display:s?"none":""},children:(0,y.Y)("span",{css:sn,children:e})})));var nn={name:"6dhm9o",styles:"visibility:hidden"};const on=(e,s,t,o,a)=>{var i,l,r,d,c,u,m,v,f,h,S,b,I,x;const A=o.name,w={currentValue:(0,n.first)(null===(i=a.currentRunValue)||void 0===i?void 0:i.responseAssessmentsByName[A]),otherValue:(0,n.first)(null===(l=a.otherRunValue)||void 0===l?void 0:l.responseAssessmentsByName[A])},N=Dt(o,(null===(r=a.currentRunValue)||void 0===r?void 0:r.responseAssessmentsByName[A])||[]),C=(null===(d=a.currentRunValue)||void 0===d||null===(c=d.overallAssessments[0])||void 0===c||null===(u=c.rootCauseAssessment)||void 0===u?void 0:u.assessmentName)===A,R=(null===(m=a.otherRunValue)||void 0===m||null===(v=m.overallAssessments[0])||void 0===v||null===(f=v.rootCauseAssessment)||void 0===f?void 0:f.assessmentName)===A,Y=w.currentValue?L(w.currentValue):void 0,_=w.otherValue?L(w.otherValue):void 0,M=function(e,s,t){if("pass-fail"===e.dtype)return s===t?"equal":s===E.YES?"greater":s===E.NO?"less":(0,n.isNil)(t)?"equal":"less";if("boolean"===e.dtype)return s===t?"equal":!0===s?"greater":!1===s?"less":(0,n.isNil)(t)?"equal":"less";if("string"===e.dtype){if(s===t)return"equal";if(null===s)return"less";if(null===t)return"greater";const e=s,o=t;return(0,n.isNil)(e)?"less":(0,n.isNil)(o)||1===e.toString().localeCompare(o.toString())?"greater":"less"}if("numeric"===e.dtype){if(s===t)return"equal";if(null===s)return"less";if(null===t)return"greater";return s>t?"greater":"less"}return"equal"}(o,(0,n.isNil)(Y)?void 0:Y,(0,n.isNil)(_)?void 0:_),k=_!==Y,D=T[A];return(0,y.Y)("div",{css:(0,p.AH)({display:"flex",gap:e.spacing.sm,alignItems:"center",marginTop:"auto",marginBottom:"auto"},""),children:t?(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:e.spacing.sm,borderRadius:e.legacyBorders.borderRadiusMd,marginTop:"auto",marginBottom:"auto"},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:e.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(Xt,{showRationaleInTooltip:!0,disableJudgeTypeIcon:!0,hideAssessmentName:!0,assessment:w.currentValue,isRootCauseAssessment:C,assessmentInfo:o,type:"value"},`tag_${null===(h=a.currentRunValue)||void 0===h?void 0:h.evaluationId}_${null===(S=w.currentValue)||void 0===S?void 0:S.name}`),k&&(0,y.Y)(g.ArrowRightIcon,{css:(0,p.AH)({transform:"greater"===M?"rotate(-45deg)":"rotate(45deg)",color:e.colors.textSecondary},"")})]}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:e.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(Xt,{showRationaleInTooltip:!0,disableJudgeTypeIcon:!0,hideAssessmentName:!0,assessment:w.otherValue,isRootCauseAssessment:R,assessmentInfo:o,type:"value"},`tag_${null===(b=a.otherRunValue)||void 0===b?void 0:b.evaluationId}_${null===(I=w.currentValue)||void 0===I?void 0:I.name}`),k&&(0,y.Y)(g.ArrowRightIcon,{css:nn})]})]}):w.currentValue?(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:e.spacing.sm},""),children:N.map((e=>{const s=e.latestAssessment,t=e.count;return(0,y.Y)(Xt,{showRationaleInTooltip:!0,disableJudgeTypeIcon:!0,hideAssessmentName:!0,assessment:s,isRootCauseAssessment:C,assessmentInfo:o,type:"value",count:t},`tag_${e.latestAssessment.name}_${e.value}`)}))}):(0,y.Y)(Xt,{showRationaleInTooltip:!0,disableJudgeTypeIcon:!0,hideAssessmentName:!0,isRootCauseAssessment:C,assessmentInfo:o,assessment:{name:A,rationale:D?s.formatMessage(D):s.formatMessage({id:"gOUJ0f",defaultMessage:"No assessment for this evaluation"}),source:{sourceId:"",sourceType:"AI_JUDGE",metadata:{}},stringValue:null,booleanValue:null,rootCauseAssessment:null,numericValue:null,timestamp:null,metadata:{}},type:"value"},`tag_${A}_${null===(x=a.currentRunValue)||void 0===x?void 0:x.evaluationId}`)})};var an={name:"1qkz5jq",styles:"display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"},ln={name:"1jwcxx3",styles:"font-style:italic"},rn={name:"zjik7",styles:"display:flex"},dn={name:"1suksrg",styles:"width:12px;height:12px"},cn={name:"zjik7",styles:"display:flex"},un={name:"1suksrg",styles:"width:12px;height:12px"};var mn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},pn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},gn={name:"1qkz5jq",styles:"display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"},vn={name:"1qkz5jq",styles:"display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"},fn={name:"1qkz5jq",styles:"display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis"},hn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},yn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Sn={name:"58t467",styles:"width:fit-content;max-width:100%"},bn={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},In={name:"58t467",styles:"width:fit-content;max-width:100%"},En={name:"4fjnre",styles:"display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},xn={name:"58t467",styles:"width:fit-content;max-width:100%"},An={name:"4fjnre",styles:"display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},wn={name:"58t467",styles:"width:fit-content;max-width:100%"},Nn={name:"4fjnre",styles:"display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Cn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Rn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Tn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Yn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},_n={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Mn={name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};const kn=e=>{let s=e;try{var t,o;const l=JSON.parse(e).response.choices;var a,i;if(Array.isArray(l)&&!(0,n.isNil)(null===(t=l[0])||void 0===t||null===(o=t.message)||void 0===o?void 0:o.content))s=null===(a=l[0])||void 0===a||null===(i=a.message)||void 0===i?void 0:i.content;else s=K(e)}catch{s=K(e)}return s},Dn=(e,{evaluationInputs:s,isComparing:t,theme:o,intl:a,experimentId:i,onChangeEvaluationId:l,onTraceTagsEdit:r})=>{const d={header:e.label,id:e.id,accessorFn:e=>e};switch(e.type){case xe.INPUT:return{...d,sortingFn:(s,t)=>{var n,o,a,i,l,r,d,c;const u=s.getValue(e.id),m=t.getValue(e.id),p={request:(null===(n=u.currentRunValue)||void 0===n?void 0:n.inputs[e.id])||(null===(o=u.otherRunValue)||void 0===o?void 0:o.inputs[e.id])||"",evalId:(null===(a=u.currentRunValue)||void 0===a?void 0:a.evaluationId)||(null===(i=u.otherRunValue)||void 0===i?void 0:i.evaluationId)||""},g={request:(null===(l=m.currentRunValue)||void 0===l?void 0:l.inputs[e.id])||(null===(r=m.otherRunValue)||void 0===r?void 0:r.inputs[e.id])||"",evalId:(null===(d=m.currentRunValue)||void 0===d?void 0:d.evaluationId)||(null===(c=m.otherRunValue)||void 0===c?void 0:c.evaluationId)||""};return JSON.stringify(p).localeCompare(JSON.stringify(g))},size:300/s.length,minSize:120,cell:s=>{var n;return((e,s,t,n,o,a)=>{var i,l,r,d,c,u,m,g;const f=s.getValue(),h=(null===(i=f.currentRunValue)||void 0===i?void 0:i.evaluationId)||(null===(l=f.otherRunValue)||void 0===l?void 0:l.evaluationId),S=null===(r=f.currentRunValue)||void 0===r||null===(d=r.traceInfo)||void 0===d||null===(c=d.trace_metadata)||void 0===c?void 0:c[Pe],b=null===(u=f.otherRunValue)||void 0===u||null===(m=u.traceInfo)||void 0===m||null===(g=m.trace_metadata)||void 0===g?void 0:g[Pe],I=a&&S?a(S):X,E=a&&b?a(b):Z,x=f.currentRunValue?D(f.currentRunValue,o):void 0,A=f.otherRunValue?D(f.otherRunValue,o):void 0,w=x||A;return(0,y.FD)("div",{css:(0,p.AH)({height:"100%",width:"100%",display:"flex",overflow:"hidden",alignItems:"center",justifyContent:"space-between",gap:n.spacing.sm},""),children:[(0,y.Y)(v.T.Link,{css:an,componentId:"mlflow.evaluations_review.table_ui.evaluation_id_link",onClick:()=>e(h),children:w||(0,y.Y)("span",{css:ln,children:"null"})}),t&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:n.spacing.md},""),children:[(0,y.Y)("div",{css:rn,children:S?(0,y.Y)(tn,{color:I}):(0,y.Y)("div",{css:dn})}),(0,y.Y)("div",{css:cn,children:b?(0,y.Y)(tn,{color:E}):(0,y.Y)("div",{css:un})})]})]})})(l,s,t,o,e.id,null===(n=s.table.options.meta)||void 0===n?void 0:n.getRunColor)}};case xe.ASSESSMENT:return{...d,accessorFn:s=>({isComparing:t,assessmentInfo:e.assessmentInfo,comparisonEntry:s}),sortingFn:(s,t)=>{const{comparisonEntry:o}=s.getValue(e.id),{comparisonEntry:a}=t.getValue(e.id);if(e.assessmentInfo){var i,l,r,d,c,u,m,p;const s={currentValue:null===(i=o.currentRunValue)||void 0===i||null===(l=i.responseAssessmentsByName[e.assessmentInfo.name])||void 0===l?void 0:l[0],otherValue:null===(r=o.otherRunValue)||void 0===r||null===(d=r.responseAssessmentsByName[e.assessmentInfo.name])||void 0===d?void 0:d[0]},t={currentValue:null===(c=a.currentRunValue)||void 0===c||null===(u=c.responseAssessmentsByName[e.assessmentInfo.name])||void 0===u?void 0:u[0],otherValue:null===(m=a.otherRunValue)||void 0===m||null===(p=m.responseAssessmentsByName[e.assessmentInfo.name])||void 0===p?void 0:p[0]};return function(e,s,t){const o=s.currentValue?L(s.currentValue):void 0,a=t.currentValue?L(t.currentValue):void 0,i=s.otherValue?L(s.otherValue):void 0,l=t.otherValue?L(t.otherValue):void 0;if("pass-fail"===e.dtype){const e=i===E.YES&&o===E.NO,n=l===E.YES&&a===E.NO,r=i===E.NO&&o===E.YES,d=l===E.NO&&a===E.YES,c=i===E.NO&&o===E.NO,u=l===E.NO&&a===E.NO,m=i===E.YES&&o===E.YES,p=l===E.YES&&a===E.YES;return e&&!n?-1:!e&&n?1:c&&!u?-1:!c&&u?1:r&&!d?-1:!r&&d?1:m&&!p?-1:!m&&p?1:function(e,s){if(!e&&s)return 1;if(e&&!s)return-1;if(!e||!s)return 0;const t=e.stringValue===E.YES||e.stringValue!==E.NO&&void 0,n=s.stringValue===E.YES||s.stringValue!==E.NO&&void 0;if(t===n)return 0;if(void 0===t)return 1;if(void 0===n)return-1;return t?1:-1}(s.currentValue,t.currentValue)}return o===a?0:(0,n.isNil)(o)||(0,n.isNil)(a)?(0,n.isNil)(o)?-1:1:o>a?1:-1}(e.assessmentInfo,s,t)}return 0},maxSize:200,size:120,minSize:120,cell:e=>{const{isComparing:s,assessmentInfo:t,comparisonEntry:n}=e.getValue();return on(o,a,s,t,n)}};case xe.TRACE_INFO:return{...d,accessorFn:e=>({isComparing:t,comparisonEntry:e}),sortingFn:(s,t)=>{var n,o;const{comparisonEntry:a}=s.getValue(e.id),{comparisonEntry:i}=t.getValue(e.id);return((e,s,t)=>{var n,o;if(!Be.includes(t))return 0;const a=String(null!==(n=Ss(e,t))&&void 0!==n?n:""),i=String(null!==(o=Ss(s,t))&&void 0!==o?o:"");return a.localeCompare(i,void 0,{numeric:!0})})(null===a||void 0===a||null===(n=a.currentRunValue)||void 0===n?void 0:n.traceInfo,null===i||void 0===i||null===(o=i.currentRunValue)||void 0===o?void 0:o.traceInfo,e.id)},size:e.id===Re?300:100,minSize:e.id===Re?120:100,cell:s=>{const{isComparing:t,comparisonEntry:n}=s.getValue();return((e,s,t,n,o,a,i)=>{var l,r;const d=null===(l=n.currentRunValue)||void 0===l?void 0:l.traceInfo,c=s?null===(r=n.otherRunValue)||void 0===r?void 0:r.traceInfo:void 0;if(t===Ye){const e=null!==d&&void 0!==d&&d.request_time?new Date(d.request_time):void 0,t=null!==c&&void 0!==c&&c.request_time?new Date(c.request_time):void 0;return(0,y.Y)(Ts,{first:e?(0,y.Y)(fe.T,{componentId:"mlflow.experiment-evaluation-monitoring.trace-info-hover-request-time",content:e.toLocaleString(navigator.language,{timeZoneName:"short"}),children:(0,y.Y)("span",{css:mn,children:Vt(e)})}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(t?(0,y.Y)(fe.T,{componentId:"mlflow.experiment-evaluation-monitoring.trace-info-hover-other-request-time",content:t.toLocaleString(navigator.language,{timeZoneName:"short"}),children:(0,y.Y)("span",{css:pn,children:Vt(t)})}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Me)return(0,y.Y)(Ts,{first:(0,y.Y)(Js,{original:d,isComparing:s}),second:s&&(c?(0,y.Y)(Js,{original:c,isComparing:s}):(0,y.Y)(Rs,{isComparing:s}))});if(t===ke)return(0,y.Y)(Ts,{first:d?(0,y.Y)(Gs,{traceInfo:d,isComparing:s}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(c?(0,y.Y)(Gs,{traceInfo:c,isComparing:s}):(0,y.Y)(Rs,{isComparing:s}))});if(t===De){const e=Object.entries((null===d||void 0===d?void 0:d.tags)||{}).map((([e,s])=>({key:e,value:s}))),t=Object.entries((null===c||void 0===c?void 0:c.tags)||{}).map((([e,s])=>({key:e,value:s}))),n=c?void 0:()=>null===i||void 0===i?void 0:i(d?Ze(d):{});return(0,y.Y)(Ts,{first:(0,y.Y)(lt,{baseComponentId:"tags-cell-renderer",tags:e,onAddEditTags:n}),second:s&&(c?(0,y.Y)(lt,{baseComponentId:"tags-cell-renderer-other",tags:t}):(0,y.Y)(Rs,{isComparing:s}))})}if(t.startsWith(De)){var u,m;const e=t.split(":").pop();if(!e)return(0,y.Y)(Rs,{isComparing:s});const n=null===d||void 0===d||null===(u=d.tags)||void 0===u?void 0:u[e],o=null===c||void 0===c||null===(m=c.tags)||void 0===m?void 0:m[e];return(0,y.Y)(Ts,{first:n?(0,y.Y)("span",{title:n,css:gn,children:n}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(o?(0,y.Y)("span",{title:n,css:vn,children:o}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Fe){var f,h,S,b,I;const e=null===(f=n.currentRunValue)||void 0===f?void 0:f.evaluationId,t=null===d||void 0===d||null===(h=d.tags)||void 0===h?void 0:h["mlflow.traceName"],a=null===c||void 0===c||null===(S=c.tags)||void 0===S?void 0:S["mlflow.traceName"];return(0,y.Y)(Ts,{first:t?s?(0,y.Y)("div",{children:null===d||void 0===d||null===(I=d.tags)||void 0===I?void 0:I["mlflow.traceName"]}):(0,y.Y)(v.T.Link,{css:fn,componentId:"mlflow.evaluations_review.table_ui.evaluation_id_link",onClick:()=>e&&o(e),children:null===d||void 0===d||null===(b=d.tags)||void 0===b?void 0:b["mlflow.traceName"]}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(a?(0,y.Y)("div",{children:a}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Le){var E;const s=null===d||void 0===d||null===(E=d.trace_metadata)||void 0===E?void 0:E[Pe];return s?(0,y.Y)($s,{experimentId:e,runUuid:s}):(0,y.Y)(Rs,{})}if(t===Ne){var x,A,w,N;const e=(null===d||void 0===d||null===(x=d.trace_metadata)||void 0===x?void 0:x["mlflow.trace.user"])||(null===d||void 0===d||null===(A=d.tags)||void 0===A?void 0:A["mlflow.user"]),t=(null===c||void 0===c||null===(w=c.trace_metadata)||void 0===w?void 0:w["mlflow.trace.user"])||(null===c||void 0===c||null===(N=c.tags)||void 0===N?void 0:N["mlflow.user"]);return(0,y.Y)(Ts,{first:e?(0,y.FD)("span",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:a.spacing.xs},""),title:e,children:[(0,y.Y)(g.UserIcon,{css:(0,p.AH)({color:a.colors.textSecondary,fontSize:16},"")}),(0,y.Y)("span",{css:hn,children:e})]}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(t?(0,y.FD)("span",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:a.spacing.xs},""),title:t,children:[(0,y.Y)(g.UserIcon,{css:(0,p.AH)({color:a.colors.textSecondary,fontSize:16},"")}),(0,y.Y)("span",{css:yn,children:t})]}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Te){const e=null===d||void 0===d?void 0:d.trace_id,t=null===c||void 0===c?void 0:c.trace_id;return(0,y.Y)(Ts,{first:e?(0,y.Y)(g.Tag,{css:Sn,componentId:"mlflow.genai-traces-table.trace-id",color:"indigo",title:e,children:(0,y.Y)("span",{css:bn,children:e})}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(t?(0,y.Y)(g.Tag,{css:In,componentId:"mlflow.genai-traces-table.trace-id",color:"indigo",title:t,children:(0,y.Y)("span",{css:En,children:t})}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Ce){var C,R;const e=null===d||void 0===d||null===(C=d.trace_metadata)||void 0===C?void 0:C["mlflow.trace.session"],t=null===c||void 0===c||null===(R=c.trace_metadata)||void 0===R?void 0:R["mlflow.trace.session"];return(0,y.Y)(Ts,{first:e?(0,y.Y)(g.Tag,{css:xn,componentId:"mlflow.genai-traces-table.session",title:e,children:(0,y.Y)("span",{css:An,children:e})}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(t?(0,y.Y)(g.Tag,{css:wn,componentId:"mlflow.genai-traces-table.session",title:t,children:(0,y.Y)("span",{css:Nn,children:t})}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Re){const e=d?kn(ns(d)):"",t=c?kn(ns(c)):"";return(0,y.Y)(Ts,{first:e?(0,y.Y)("div",{css:Cn,title:e,children:e}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(t?(0,y.Y)("div",{css:Rn,title:t,children:t}):(0,y.Y)(Rs,{isComparing:s}))})}if(t===Ve)return(0,y.Y)(Os,{experimentId:e,currentTraceInfo:d,otherTraceInfo:c,isComparing:s});if(t===He)return(0,y.Y)(rt,{currentTraceInfo:d,otherTraceInfo:c,isComparing:s});if(t.startsWith(Ue)){var T,Y;const e=We(t);if(!e)return(0,y.Y)(Rs,{isComparing:s});const n=null===d||void 0===d||null===(T=d.trace_metadata)||void 0===T?void 0:T[e],o=null===c||void 0===c||null===(Y=c.trace_metadata)||void 0===Y?void 0:Y[e];return(0,y.Y)(Ts,{first:n?(0,y.Y)("div",{css:Tn,title:n,children:n}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(o?(0,y.Y)("div",{css:Yn,title:o,children:o}):(0,y.Y)(Rs,{isComparing:s}))})}const _=d?K(Ss(d,t)):"",M=c?K(Ss(c,t)):"";return(0,y.Y)(Ts,{first:_?(0,y.Y)("div",{css:_n,title:_,children:_}):(0,y.Y)(Rs,{isComparing:s}),second:s&&(M?(0,y.Y)("div",{css:Mn,title:M,children:M}):(0,y.Y)(Rs,{isComparing:s}))})})(i,t,e.id,n,l,o,r)}};case xe.INTERNAL_MONITOR_REQUEST_TIME:return{...d,accessorFn:e=>{var s;return null===(s=e.currentRunValue)||void 0===s?void 0:s.requestTime},sortingFn:(s,t)=>{const n=s.getValue(e.id),o=t.getValue(e.id);return JSON.stringify(n).localeCompare(JSON.stringify(o))},size:100,minSize:100,cell:e=>{const s=e.getValue();if(!s)return null;const t=new Date(s);return(0,y.Y)(fe.T,{componentId:"mlflow.experiment-evaluation-monitoring.trace-info-hover-request-time",content:t.toLocaleString(navigator.language,{timeZoneName:"short"}),children:(0,y.Y)("span",{children:Vt(t)})})}};default:return d}};const Fn=ie.memo((({rows:e,isComparing:s,enableRowSelection:t,virtualItems:n,virtualizerTotalSize:o,virtualizerMeasureElement:a,selectedColumns:i})=>(0,y.Y)("div",{style:{height:`${o}px`,position:"relative",display:"grid"},children:n.map((n=>{const o=e[n.index],l=o.original.currentRunValue&&!s;return(0,y.Y)("div",{"data-index":n.index,ref:e=>a(e),style:{position:"absolute",transform:`translate3d(0, ${n.start}px, 0)`,willChange:"transform",width:"100%"},children:(0,y.Y)(Ln,{row:o,exportableTrace:l,enableRowSelection:t,isSelected:t?o.getIsSelected():void 0,isComparing:s,selectedColumns:i})},n.key)}))}))),On=ie.memo(Fn),Ln=ie.memo((({row:e,exportableTrace:s,enableRowSelection:t,isComparing:n,isSelected:o,selectedColumns:a})=>{const i=e.getVisibleCells(),l=(0,f.tz)();return(0,y.Y)(y.FK,{children:(0,y.FD)(g.TableRow,{children:[t&&(0,y.Y)(fe.T,{componentId:"mlflow.experiment-evaluation-monitoring.evals-logs-table-cell-tooltip",content:n?l.formatMessage({id:"dqfOjO",defaultMessage:"You cannot select rows when comparing runs"}):s?null:l.formatMessage({id:"V0/LoE",defaultMessage:"This trace is not exportable because it either contains an error or the response is not a ChatCompletionResponse."}),children:(0,y.Y)(g.TableRowSelectCell,{componentId:"mlflow.experiment-evaluation-monitoring.evals-logs-table-cell",checked:o&&s,onChange:e.getToggleSelectedHandler(),isDisabled:n||!s})}),i.map((e=>(0,y.Y)(Vn,{cell:e},e.id)))]})})})),Vn=ie.memo((({cell:e})=>{const{theme:s}=(0,v.u)();return(0,y.Y)(g.TableCell,{style:{flex:`1 1 var(--col-${Ht(e.column.id)}-size)`},css:(0,p.AH)({display:"flex",flexDirection:"row",alignItems:"center","> span:first-of-type":{padding:`${s.spacing.xs}px 0px`,width:"100%"}},""),children:(0,Es.Kv)(e.column.columnDef.cell,e.getContext())},e.id)}));const Hn=({overallAssessmentInfo:e,assessmentNameToAggregates:s,allAssessmentFilters:t,toggleAssessmentFilter:n,runUuid:o,compareToRunUuid:a})=>{const i=(0,f.tz)(),{theme:l}=(0,v.u)(),r=(0,ie.useMemo)((()=>function(e,s,t,n,o,a,i){var l,r;if(Object.values(s).every((e=>0===e.currentNumRootCause&&0===(e.otherNumRootCause||0))))return[];const d=Object.values(s).filter((e=>e.currentNumRootCause>0||(e.otherNumRootCause||0)>0)).sort(((e,s)=>s.currentNumRootCause-e.currentNumRootCause)),c=Math.max((null===(l=d[0])||void 0===l?void 0:l.currentNumRootCause)||0,(null===(r=d[0])||void 0===r?void 0:r.otherNumRootCause)||0);return d.map((s=>{var l;const r=null===(l=_[s.assessmentInfo.name])||void 0===l?void 0:l[E.NO],d=r?e.formatMessage(r):s.assessmentInfo.name,u=s.currentCounts,m=(null===u||void 0===u?void 0:u.get(E.YES))||0,p=(null===u||void 0===u?void 0:u.get(E.NO))||0,g=(null===u||void 0===u?void 0:u.get(void 0))||0,v=s.currentNumRootCause,f=m+p+g,h=s.otherCounts;let S;if(void 0!==s.otherCounts){S=((null===h||void 0===h?void 0:h.get(E.YES))||0)+((null===h||void 0===h?void 0:h.get(E.NO))||0)+((null===h||void 0===h?void 0:h.get(void 0))||0)}const b=s.otherNumRootCause||0,I=b/(S||1),x=Ft(v/f),A=Ft(I);return{assessment:s.assessmentInfo.name,title:d,currentInfo:{count:v,fraction:v/c,tooltip:e.formatMessage({id:"a6bpXQ",defaultMessage:'{numRootCause}/{numEvals} ({percentage}%) runs failed due to the {assessment} judge failing for the current run "{currentRun}".'},{numRootCause:v,numEvals:f,percentage:x,assessment:s.assessmentInfo.name,currentRun:a}),toggleFilter:()=>n(s.assessmentInfo.name,"failing_root_cause","current"),isSelected:t.some((e=>"rca"===e.filterType&&"current"===e.run&&e.assessmentName===s.assessmentInfo.name)),percentage:x},otherInfo:o?{count:b,fraction:b/c,tooltip:e.formatMessage({id:"iDqqcA",defaultMessage:'{numRootCause}/{numEvals} ({percentage}%) runs failed due to the {assessment} judge failing for run "{otherRunDisplayName}".'},{numRootCause:b,numEvals:S,percentage:A,assessment:s.assessmentInfo.name,otherRunDisplayName:i}),toggleFilter:()=>n(s.assessmentInfo.name,"rca","other"),isSelected:t.some((e=>"rca"===e.filterType&&"other"===e.run&&e.assessmentName===s.assessmentInfo.name)),percentage:A}:void 0,icon:(0,y.Y)(ve.X,{})}}))}(i,s,t,n,Boolean(a),o,a)),[i,s,t,n,a,o]);return 0===r.length?(0,y.Y)(y.FK,{}):(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:l.spacing.sm},""),children:[(0,y.Y)("div",{css:(0,p.AH)({fontWeight:l.typography.typographyBoldFontWeight},""),children:i.formatMessage({id:"etvfuH",defaultMessage:"Root Cause Analysis"})}),(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:l.spacing.sm},""),children:(0,y.Y)(Bn,{overallAssessmentInfo:e,rcaData:r,run:"current",runColor:a?X:void 0})}),a&&(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:l.spacing.xs},""),children:(0,y.Y)(Bn,{overallAssessmentInfo:e,rcaData:r,run:"other",runColor:Z})})]})};var Un={name:"zjik7",styles:"display:flex"};const Bn=({rcaData:e,run:s,runColor:t,overallAssessmentInfo:n})=>{const{theme:o}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"row",gap:o.spacing.sm,alignItems:"center"},""),children:[t&&(0,y.Y)("div",{css:Un,children:(0,y.Y)(tn,{color:t})}),(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexWrap:"wrap",gap:o.spacing.xs},""),children:e.map(((e,t)=>{const a="current"===s?e.currentInfo:e.otherInfo;if(!a)return(0,y.Y)(y.FK,{});const i=oe(o,n,{stringValue:"no"});return(0,y.Y)(fe.T,{content:a.tooltip,componentId:"mlflow.evaluations_review.rca_pill",children:(0,y.Y)(y.FK,{children:(0,y.FD)("div",{style:{border:a.isSelected?`1px solid ${o.colors.grey400}`:""},css:(0,p.AH)({color:o.colors.textSecondary,borderRadius:o.general.borderRadiusBase,padding:`0 ${o.spacing.xs}px`,height:"20px",display:"flex",backgroundColor:a.isSelected?V(i,1):V(i,.5),gap:o.spacing.xs,fontSize:o.typography.fontSizeSm},""),children:[a.count,(0,y.Y)("div",{children:e.title.toLocaleLowerCase()})]},t)})},t)}))})]})};var zn={name:"dao2zk",styles:"display:contents;& p{margin-bottom:0;}"};const $n=({assessmentInfo:e,assessmentNameToAggregates:s,allAssessmentFilters:t,toggleAssessmentFilter:n,runUuid:o,compareToRunUuid:a})=>{var l,r;const{theme:d}=(0,v.u)(),c=(0,f.tz)();return(0,y.Y)(y.FK,{children:(0,y.FD)("div",{css:(0,p.AH)({maxWidth:"25rem",display:"flex",flexDirection:"column",overflowWrap:"break-word",wordBreak:"break-word",gap:d.spacing.sm},""),children:[(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:d.spacing.xs},""),children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:d.spacing.xs,paddingBottom:d.spacing.sm,borderBottom:`1px solid ${d.colors.border}`},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:d.spacing.xs,alignItems:"center"},""),children:["numeric"===e.dtype?(0,y.Y)(g.NumbersIcon,{}):"boolean"===e.dtype?(0,y.Y)(g.BinaryIcon,{}):(0,y.Y)(y.FK,{}),(0,y.Y)(v.T.Title,{level:4,css:(0,p.AH)({marginBottom:0,marginRight:d.spacing.xs},""),children:e.displayName}),"AI_JUDGE"===(null===(l=e.source)||void 0===l?void 0:l.sourceType)&&(0,y.Y)(g.Tag,{color:"turquoise",componentId:"mlflow.experiment.evaluations.ai-judge-tag",children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:d.spacing.xs},""),children:[(0,y.Y)(g.SparkleDoubleIcon,{css:(0,p.AH)({color:d.colors.textSecondary},"")}),(0,y.Y)(v.T.Hint,{children:c.formatMessage({id:"ov1whU",defaultMessage:"AI Judge"})})]})}),"HUMAN"===(null===(r=e.source)||void 0===r?void 0:r.sourceType)&&(0,y.Y)(g.Tag,{color:"coral",componentId:"mlflow.experiment.evaluations.human-judge-tag",children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:d.spacing.xs},""),children:[(0,y.Y)(g.UserIcon,{}),(0,y.Y)(v.T.Hint,{children:c.formatMessage({id:"BdV0qk",defaultMessage:"Human judge"})})]})}),e.isCustomMetric&&(0,y.Y)(g.Tag,{color:"indigo",componentId:"mlflow.experiment.evaluations.ai-judge-tag",children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:d.spacing.xs},""),children:[(0,y.Y)(v.T.Hint,{children:(0,y.Y)(g.BracketsXIcon,{})}),(0,y.Y)(v.T.Hint,{children:e.metricName})]})})]}),(0,y.Y)("div",{children:(0,y.Y)(v.T.Hint,{children:e.name})})]})}),(0,y.Y)("div",{children:(0,y.Y)("span",{css:zn,children:e.description})}),e.name===i.OVERALL_ASSESSMENT&&o?(0,y.Y)("div",{children:(0,y.Y)(Hn,{overallAssessmentInfo:e,assessmentNameToAggregates:s,allAssessmentFilters:t,toggleAssessmentFilter:n,runUuid:o,compareToRunUuid:a})}):(0,y.Y)(y.FK,{})]})})};var jn={name:"1yqwqbb",styles:"max-height:200px;overflow-y:auto;width:200px;min-width:200px"};const qn=ie.memo((({theme:e,intl:s,assessmentInfo:t,assessmentAggregates:n,allAssessmentFilters:o,toggleAssessmentFilter:a,currentRunDisplayName:i,compareToRunDisplayName:l})=>{const r=(0,ie.useMemo)((()=>function(e,s,t,n,o,a,i,l){const r=void 0!==a.otherCounts,d=[];for(const c of Mt(t)){const u=a.currentCounts?_t(e,t,n,c,a.currentCounts,i||"monitor",o):void 0,m=r&&l?_t(e,t,n,c,a.otherCounts||new Map,l,o):void 0,p=c===St||void 0===c,g=r&&u&&m?p?u.value-((null===m||void 0===m?void 0:m.value)||0):u.fraction-((null===m||void 0===m?void 0:m.fraction)||0):void 0;u&&(!p||0!==u.value||g&&0!==g)&&d.push({name:kt(e,0,t,c),current:u,other:m,backgroundColor:ae(s,t,c,c===St),scoreChange:g})}return d}(s,e,t,o,a,n,i,l)),[s,e,t,o,a,n,i,l]),d=(0,ie.useMemo)((()=>"pass-fail"===t.dtype||"boolean"===t.dtype?r:r.map(((e,s)=>({...e,originalIndex:s}))).sort(((e,s)=>{const t="null"===e.name||e.name===St,n="null"===s.name||s.name===St;if(t&&!n)return 1;if(n&&!t)return-1;if(!t&&!n){var o,a;const t=((null===(o=s.current)||void 0===o?void 0:o.value)||0)-((null===(a=e.current)||void 0===a?void 0:a.value)||0);if(0!==t)return t}return e.originalIndex-s.originalIndex}))),[r,t]),c=d.length>4?d.slice(0,3):d,u=d.length>4?d.slice(3):[],m=u.length>0,g=e.colors.actionDefaultBackgroundHover,f=e.colors.actionDefaultBackgroundPress;return(0,y.Y)("table",{children:(0,y.FD)("tbody",{children:[c.map((s=>(0,y.Y)(Gn,{barData:s,theme:e,hoverBarColor:g,selectedBarColor:f,assessmentInfo:t},s.name))),m&&(0,y.Y)("tr",{children:(0,y.Y)("td",{colSpan:2,children:(0,y.FD)(v.ax.Root,{componentId:"categorical-aggregate-chart-more-items",children:[(0,y.Y)(v.ax.Trigger,{asChild:!0,children:(0,y.Y)("div",{css:(0,p.AH)({cursor:"pointer",padding:`${e.spacing.xs}px`,color:e.colors.actionLinkDefault,fontSize:e.typography.fontSizeSm,fontWeight:"normal",":hover":{backgroundColor:g},borderRadius:e.general.borderRadiusBase},""),children:s.formatMessage({id:"WELl8J",defaultMessage:"+{count} more"},{count:u.length})})}),(0,y.Y)(v.ax.Content,{align:"start",side:"bottom",css:jn,children:(0,y.Y)("table",{children:(0,y.Y)("tbody",{children:u.map((s=>(0,y.Y)(Gn,{barData:s,theme:e,hoverBarColor:g,selectedBarColor:f,assessmentInfo:t},s.name)))})})})]})})})]})})}));var Pn={name:"5m5bfc",styles:"display:flex;flex-direction:column;gap:2px;width:100%"},Kn={name:"12n4oo4",styles:"flex:1;width:100%;position:relative"};const Gn=({barData:e,theme:s,hoverBarColor:t,selectedBarColor:o,assessmentInfo:a})=>{const i=e.name===St,l="null"===e.name;return i||l?(0,y.FD)("tr",{css:(0,p.AH)({cursor:e.name!==St?"pointer":"not-allowed",":hover":{backgroundColor:t},color:e.name===St?s.colors.textValidationWarning:s.colors.textSecondary,fontWeight:"normal",fontSize:s.typography.fontSizeSm},""),onClick:e.name!==St?e.current.toggleFilter:void 0,children:[(0,y.Y)("td",{css:(0,p.AH)({width:"100%",borderTopLeftRadius:s.general.borderRadiusBase,borderBottomLeftRadius:s.general.borderRadiusBase,backgroundColor:`${e.current.isSelected?o:""}`,paddingLeft:s.spacing.xs,paddingTop:s.spacing.xs,paddingBottom:s.spacing.xs,fontStyle:e.name===St?"normal":"italic"},""),children:(0,y.Y)("span",{css:(0,p.AH)({lineHeight:`${s.typography.fontSizeSm}px`},""),children:e.name})}),(0,y.Y)("td",{css:(0,p.AH)({textAlign:"right",verticalAlign:"center",borderTopRightRadius:s.general.borderRadiusBase,borderBottomRightRadius:s.general.borderRadiusBase,backgroundColor:`${e.current.isSelected?o:""}`,paddingRight:s.spacing.xs,paddingTop:s.spacing.xs,paddingBottom:s.spacing.xs,fontStyle:"normal"},""),children:(0,y.Y)("span",{css:(0,p.AH)({display:"inline-block",verticalAlign:"center",lineHeight:`${s.typography.fontSizeSm}px`},""),children:(0,n.isNil)(e.scoreChange)?e.current.value:Lt(a,e.scoreChange,!1)})})]},e.name):(0,y.FD)("tr",{css:(0,p.AH)({cursor:"pointer",":hover":{backgroundColor:t}},""),onClick:e.current.toggleFilter,children:[(0,y.Y)("td",{css:(0,p.AH)({width:"100%",borderTopLeftRadius:s.general.borderRadiusBase,borderBottomLeftRadius:s.general.borderRadiusBase,backgroundColor:`${e.current.isSelected?o:""}`,paddingLeft:s.spacing.xs,paddingTop:s.spacing.xs,paddingBottom:s.spacing.xs},""),children:(0,y.FD)("div",{css:Pn,children:[(0,y.Y)("span",{css:(0,p.AH)({fontWeight:"normal",fontSize:"10px",lineHeight:"10px",color:s.colors.textSecondary},""),children:e.name}),(0,y.Y)("div",{css:Kn,children:(0,y.Y)("div",{style:{width:e.current.value>0?100*e.current.fraction+"%":"2px",borderRadius:"2px"},css:(0,p.AH)({position:"relative",flexShrink:1,transition:"width 0.3s",backgroundColor:e.backgroundColor,height:"10px",display:"flex",alignItems:"center"},"")})})]})}),(0,y.Y)("td",{css:(0,p.AH)({textAlign:"right",verticalAlign:"bottom",borderTopRightRadius:s.general.borderRadiusBase,borderBottomRightRadius:s.general.borderRadiusBase,backgroundColor:`${e.current.isSelected?o:""}`,paddingRight:s.spacing.xs,paddingTop:s.spacing.xs,paddingBottom:s.spacing.xs},""),children:(0,y.Y)("span",{css:(0,p.AH)({color:s.colors.textSecondary,fontWeight:"normal",fontSize:s.typography.fontSizeSm,display:"inline-block",verticalAlign:"bottom",lineHeight:`${s.typography.fontSizeSm}px`},""),children:(0,n.isNil)(e.scoreChange)?(r=e.current.fraction,Ft(r,0)+"%"):Lt(a,e.scoreChange)})})]},e.name);var r};var Wn={name:"1fttcpj",styles:"display:flex;flex-direction:column"},Qn={name:"1a4tfjy",styles:"display:flex;justify-content:center;flex-direction:row"},Jn={name:"1fttcpj",styles:"display:flex;flex-direction:column"},Xn={name:"ho1qnd",styles:"display:flex;flex-direction:row"},Zn={name:"18ubt2d",styles:"width:25%"},eo={name:"ho1qnd",styles:"display:flex;flex-direction:row"},so={name:"18ubt2d",styles:"width:25%"};const to=ie.memo((({numericAggregate:e})=>{const{theme:s}=(0,v.u)(),t=(0,f.tz)();return(0,y.FD)("div",{css:Wn,children:[(0,y.Y)("div",{css:Qn,children:e.counts.map(((n,o)=>(0,y.Y)(g.HoverCard,{content:(0,y.FD)("div",{css:Jn,children:[(0,y.FD)("div",{css:Xn,children:[(0,y.Y)("div",{css:Zn,children:(0,y.Y)(v.T.Text,{children:t.formatMessage({id:"kAVQ2/",defaultMessage:"Range"})})}),(0,y.Y)("div",{children:(0,y.Y)(v.T.Text,{color:"secondary",children:Ot(n.lower,2)===Ot(n.upper,2)?Ot(n.lower,2):`${Ot(n.lower,2)} - ${Ot(n.upper,2)}`})})]}),(0,y.FD)("div",{css:eo,children:[(0,y.Y)("div",{css:so,children:(0,y.Y)(v.T.Text,{children:t.formatMessage({id:"ClYb2e",defaultMessage:"Count"})})}),(0,y.Y)("div",{children:(0,y.Y)(v.T.Text,{color:"secondary",children:n.count})})]})]}),trigger:(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flex:1,flexDirection:"column-reverse",height:"60px",width:"10px",":hover":{backgroundColor:s.colors.actionDefaultBackgroundHover}},""),children:(0,y.Y)("div",{css:(0,p.AH)({height:n.count/e.maxCount*100+"%",minHeight:"1px",width:"80%",verticalAlign:"bottom",backgroundColor:s.colors.blue400,borderTopRightRadius:s.general.borderRadiusBase,borderTopLeftRadius:s.general.borderRadiusBase},"")})},"bar-"+o)},"hover-card-"+o)))}),e.min===e.max?(0,y.Y)("div",{css:(0,p.AH)({display:"flex",justifyContent:"center",flexDirection:"row",fontWeight:"normal",fontSize:s.typography.fontSizeSm,color:s.colors.textSecondary},""),children:Ot(e.min,2)}):(0,y.FD)("div",{css:(0,p.AH)({display:"flex",justifyContent:"space-between",flexDirection:"row",fontWeight:"normal",fontSize:s.typography.fontSizeSm,color:s.colors.textSecondary},""),children:[(0,y.Y)("div",{children:Ot(e.min,2)}),(0,y.Y)("div",{children:Ot(e.max,2)})]})]})})),no=ie.memo((({theme:e,intl:s,assessmentInfo:t,assessmentAggregates:o,allAssessmentFilters:a,toggleAssessmentFilter:i,currentRunDisplayName:l,compareToRunDisplayName:r,collapsedHeader:d})=>{const c=(0,ie.useMemo)((()=>"pass-fail"===t.dtype?s.formatMessage({id:"Yd5ANL",defaultMessage:"PASS"}):"boolean"===t.dtype?s.formatMessage({id:"icBP3T",defaultMessage:"TRUE"}):"string"===t.dtype?s.formatMessage({id:"Jdr//R",defaultMessage:"STRING"}):"numeric"===t.dtype?s.formatMessage({id:"wDFPtr",defaultMessage:"AVG"}):void 0),[t,s]),{displayScore:u,displayScoreChange:m,changeDirection:g}=(0,ie.useMemo)((()=>function(e,s,t){if("numeric"===s.dtype){const e=t.currentNumericValues,s=t.otherNumericValues;let n=NaN,o=NaN;e&&(n=e.reduce(((e,s)=>e+s),0)/e.length),s&&(o=s.reduce(((e,s)=>e+s),0)/s.length);const a=s?n-o:void 0,i=a?a>0?"up":"down":"none";return{displayScore:Ot(n,2),displayScoreChange:a?"up"===i?`+${Ot(Math.abs(a),2)}`:"down"===i?`-${Ot(Math.abs(a),2)}`:"+0":void 0,changeDirection:i,aggregateType:"average"}}if("pass-fail"===s.dtype||"boolean"===s.dtype){const e=0,n=Yt(s,t.currentCounts),o=Ft(n,e)+"%",a=t.otherCounts?n-Yt(s,t.otherCounts):void 0,i=a?a>0?"up":"down":"none";return{displayScore:o,displayScoreChange:a?("up"===i||"none"===i?"+":"")+Ft(a,e)+"%":void 0,changeDirection:i,aggregateType:"percentage-true"}}if("string"===s.dtype){const t=s.uniqueValues.size;return{displayScore:1!==t?e.formatMessage({id:"+dbgRR",defaultMessage:"{numUniqueValues} values"},{numUniqueValues:t}):e.formatMessage({id:"lKyc9r",defaultMessage:"1 value"}),displayScoreChange:"",changeDirection:"none",aggregateType:"categorical"}}return{displayScore:"N/A",displayScoreChange:"N/A",changeDirection:"none",aggregateType:"categorical"}}(s,t,o)),[s,t,o]);return"unknown"===t.dtype?null:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:e.spacing.sm},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",paddingTop:e.spacing.xs},""),children:[(0,y.Y)("div",{css:(0,p.AH)({fontWeight:400,fontSize:"10px",color:e.colors.textPlaceholder},""),children:c}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:e.spacing.xs},""),children:[(0,y.Y)("div",{css:(0,p.AH)({fontSize:e.typography.fontSizeLg,color:e.colors.textPrimary,fontWeight:e.typography.typographyBoldFontWeight},""),children:u}),!(0,n.isNil)(m)&&r&&(0,y.Y)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",height:"20px",gap:e.spacing.xs,padding:`2px ${e.spacing.xs}px`,fontSize:e.typography.fontSizeMd,fontWeight:"normal",borderRadius:e.general.borderRadiusBase,color:"#64172B",backgroundColor:"none"===g?"":"up"===g?Q:"down"===g?J:V(e.colors.textSecondary,.1)},""),children:m})]})]}),!d&&((0,n.isNil)(o.currentNumericAggregate)?(0,y.Y)(qn,{theme:e,intl:s,assessmentInfo:t,assessmentAggregates:o,allAssessmentFilters:a,toggleAssessmentFilter:i,currentRunDisplayName:l,compareToRunDisplayName:r}):(0,y.Y)(to,{numericAggregate:o.currentNumericAggregate}))]})}));var oo={name:"10sid5d",styles:"display:inline-block;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal"},ao={name:"190se29",styles:"padding-top:0px !important;position:absolute;left:0;right:0;bottom:0;z-index:101;padding:0;pointer-events:none"},io={name:"14n7h35",styles:"position:absolute;left:50%;top:100%;transform:translate(-50%, -50%);z-index:102;display:flex;align-items:center;justify-content:center;width:22px;height:22px;pointer-events:auto;cursor:pointer"};const lo=ie.memo((({enableRowSelection:e,enableGrouping:s,selectedAssessmentInfos:t,assessmentNameToAggregates:o,assessmentFilters:a,toggleAssessmentFilter:i,runDisplayName:l,compareToRunUuid:r,compareToRunDisplayName:d,disableAssessmentTooltips:c,collapsedHeader:u,setCollapsedHeader:m,isComparing:h,headerGroups:S,allRowSelected:b,someRowSelected:I,toggleAllRowsSelectedHandler:E,setColumnSizing:x})=>{const{theme:A}=(0,v.u)(),w=(0,f.tz)(),[N,C]=(0,ie.useState)(!1),R=s?{position:"relative","&::before":{content:'""',position:"absolute",top:"32px",left:0,right:0,borderTop:`1px solid ${A.colors.border}`}}:{};return(0,y.Y)(y.FK,{children:S.map(((v,f)=>(0,y.FD)(g.TableRow,{isHeader:!0,css:(0,p.AH)({position:"sticky",top:40*f,zIndex:100,...s&&{"& > *":{borderBottom:0===f?"none":void 0}},...f===S.length-1&&{borderBottom:`1px solid ${N?A.colors.blue500:A.colors.border}`,transition:"border-color 0.2s","& > *":{borderBottom:"none"}}},""),children:[e&&(0,y.Y)("div",{css:0===t.length&&1===f?{}:R,children:(0,y.Y)(g.TableRowSelectCell,{componentId:"mlflow.experiment-evaluation-monitoring.evals-logs-table-header-select-cell",checked:b,indeterminate:I,onChange:E(),checkboxLabel:w.formatMessage({id:"bO1IlR",defaultMessage:"Select all"}),noCheckbox:0===f,isDisabled:h})}),v.headers.map((e=>{if(e.isPlaceholder)return null;const m=t.find((s=>je(s.name)===e.id)),v=e.isPlaceholder?null:(0,y.Y)("div",{css:oo,title:String((0,Es.Kv)(e.column.columnDef.header,e.getContext())),children:(0,Es.Kv)(e.column.columnDef.header,e.getContext())}),h=m&&!c?(0,y.Y)(g.HoverCard,{content:(0,y.Y)(y.FK,{children:(0,y.Y)($n,{assessmentInfo:m,assessmentNameToAggregates:o,allAssessmentFilters:a,toggleAssessmentFilter:i,runUuid:l,compareToRunUuid:r?d:void 0})}),trigger:v},e.id):(0,n.isNil)(v)?null:v;return(0,y.Y)(g.TableHeader,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_evaluations_evaluationsoverview.tsx_576",css:(0,p.AH)({"> span:first-of-type":{width:"100%",height:"100%",marginTop:"auto",marginBottom:"auto"},...0===t.length&&1===f?{}:R},""),style:{flex:`${e.colSpan} 1 var(--header-${Ht(null===e||void 0===e?void 0:e.column.id)}-size)`},header:e,column:e.column,setColumnSizing:x,children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:A.spacing.xs},""),children:[h,(0,y.Y)("div",{css:(0,p.AH)({borderTop:!s&&t.length>0?`1px solid ${A.colors.border}`:"",width:"100%"},""),children:m&&(0,y.Y)(no,{theme:A,intl:w,assessmentInfo:m,assessmentAggregates:o[m.name],allAssessmentFilters:a,toggleAssessmentFilter:i,currentRunDisplayName:l,compareToRunDisplayName:r?d:void 0,collapsedHeader:u})})]})},e.column.id)})),f===S.length-1&&(0,y.FD)("div",{css:ao,children:[(0,y.Y)("div",{css:(0,p.AH)({position:"absolute",left:"50%",top:"100%",width:"24px",height:"12px",background:A.colors.backgroundPrimary,transform:"translate(-50%, -50%)",zIndex:101},"")}),(0,y.Y)("div",{css:io,onClick:()=>m(!u),onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:(0,y.Y)("div",{css:(0,p.AH)({width:"22px",height:"22px",borderRadius:"50%",background:A.colors.backgroundPrimary,border:`2px solid ${A.colors.border}`,boxShadow:"0 2px 8px 0 rgba(0,0,0,0.10)",display:"flex",alignItems:"center",justifyContent:"center",transition:"border-color 0.2s, box-shadow 0.2s",":hover":{borderColor:A.colors.blue500,boxShadow:"0 2px 12px 0 rgba(0,0,0,0.18)"},opacity:N?1:.5},""),children:(0,y.Y)(g.ChevronDownIcon,{css:(0,p.AH)({transform:u?"none":"rotate(180deg)",transition:"transform 0.2s, opacity 0.2s",color:A.colors.textSecondary},"")})})})]})]},v.id)))})})),ro=e=>{const{theme:s}=(0,v.u)(),t=(0,f.tz)(),{groupId:n,visibleCount:o,totalCount:a,enableGrouping:i}=e.column.columnDef.meta;if(!i)return we[n];const l=we[n];return(0,y.FD)("div",{css:(0,p.AH)({height:"100%",width:"100%",display:"flex",overflow:"hidden",gap:s.spacing.sm},""),children:[(0,y.Y)("div",{children:l}),n===Ae.INFO?null:o===a?(0,y.FD)("div",{css:(0,p.AH)({color:s.colors.textSecondary,fontWeight:"normal"},""),children:["(",o,"/",a,")"]}):(0,y.Y)(g.HoverCard,{trigger:(0,y.FD)("div",{css:(0,p.AH)({color:s.colors.textSecondary,":hover":{textDecoration:"underline"},fontWeight:"normal"},""),children:["(",o,"/",a,")"]}),content:t.formatMessage({id:"pDCDkJ",defaultMessage:"Showing {visibleCount} out of {totalCount} {groupName}. Select columns to view more."},{visibleCount:o,totalCount:a,groupName:l}),align:"start"})]})};var co={name:"49aokf",styles:"display:contents"};const uo=({history:e,alwaysExpanded:s=!1})=>{const{theme:t}=(0,v.u)(),o=(0,f.tz)(),[a,i]=(0,ie.useState)(new Date);(0,ie.useEffect)((()=>{const e=setInterval((()=>{i(new Date)}),5e3);return()=>{clearInterval(e)}}),[]);const l=(0,ie.useMemo)((()=>e.reduce(((s,t,n)=>{const o=e[n+1];return o?[...s,[t,o]]:s}),[])),[e]),{makeHTML:r}=jt(),d=(0,ie.useMemo)((()=>{var s;const t=null===(s=(0,n.first)(e))||void 0===s?void 0:s.rationale;return(0,n.isString)(t)?r(t):null}),[e,r]);var c,u,m;if(!l.length)return null!==(c=(0,n.first)(e))&&void 0!==c&&c.rationale?(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:t.spacing.sm},""),children:(0,y.Y)("span",{css:co,dangerouslySetInnerHTML:{__html:null!==d&&void 0!==d?d:""}})}):null!==(u=(0,n.first)(e))&&void 0!==u&&u.errorMessage?(0,y.Y)(y.FK,{children:(0,y.Y)(v.T.Text,{color:"error",children:null===(m=(0,n.first)(e))||void 0===m?void 0:m.errorMessage})}):(0,y.Y)(y.FK,{children:!s&&(0,y.FD)("div",{children:[(0,y.Y)(fe.S,{size:"sm"}),(0,y.Y)(v.T.Hint,{children:(0,y.Y)(f.sA,{id:"Jj2kRy",defaultMessage:"No details for assessment"})})]})});const g=e=>{const s=L(e),t=_[e.name];if(t&&!(0,n.isNil)(s)){var o;const e=null!==(o=t[s.toString()])&&void 0!==o?o:t.default;if(e)return(0,y.Y)(f.sA,{...e,values:{value:s}})}return s};return(0,y.FD)(y.FK,{children:[(0,y.Y)(fe.S,{size:"sm"}),l.map((([e,n],i)=>{var l,r;const d=g(n),c=g(e),u=d===c,m=z(e)?o.formatMessage({id:"rmAWZX",defaultMessage:"just now"}):Vt(e.timestamp,a);return(0,y.FD)("div",{css:(0,p.AH)({marginBottom:s?void 0:t.spacing.md},""),children:[(0,y.FD)(v.T.Hint,{css:(0,p.AH)({marginBottom:t.spacing.xs},""),children:[d&&c&&(0,y.FD)(y.FK,{children:[(0,y.Y)("code",{children:g(n)})," \u2192 ",(0,y.Y)("code",{children:g(e)})," "]}),u?(0,y.Y)(f.sA,{id:"2/B9Zg",defaultMessage:"added {when} by {user}",values:{when:m,user:null===(l=e.source)||void 0===l?void 0:l.sourceId}}):(0,y.Y)(f.sA,{id:"4TDvGX",defaultMessage:"edited {when} by {user}",values:{when:m,user:null===(r=e.source)||void 0===r?void 0:r.sourceId}})]}),e.rationale&&(0,y.Y)(v.T.Text,{children:e.rationale})]},`${e.timestamp}-${i}`)}))]})},mo=({assessmentHistory:e,children:s,disable:t=!1})=>{const o=(0,f.tz)(),a=(0,ie.useMemo)((()=>e.some(F)),[e]),[i,l]=(0,ie.useState)(new Date);(0,ie.useEffect)((()=>{const e=setInterval((()=>{l(new Date)}),5e3);return()=>{clearInterval(e)}}),[]);return(0,y.Y)(g.LegacyTooltip,{title:t?void 0:(()=>{const s=(0,n.first)(e);if(!s)return;if(q(s)){var t,l;const n=e[1],a=n?null===(t=L(n))||void 0===t?void 0:t.toString():void 0,c=z(s)?o.formatMessage({id:"rmAWZX",defaultMessage:"just now"}):Vt(s.timestamp,i);if(a){var r,d;const e=null===(r=_[s.name])||void 0===r?void 0:r[a],t=e?o.formatMessage(e):a;return(0,y.Y)(f.sA,{id:"kHN/4I",defaultMessage:"Edited {timeSince} by {source}. Original value: {value}",values:{timeSince:c,source:null===s||void 0===s||null===(d=s.source)||void 0===d?void 0:d.sourceId,value:t}})}return(0,y.Y)(f.sA,{id:"m8ztHR",defaultMessage:"Edited {timeSince} by {source}.",values:{timeSince:c,source:null===s||void 0===s||null===(l=s.source)||void 0===l?void 0:l.sourceId}})}return a?(0,y.Y)(f.sA,{id:"4uE8hl",defaultMessage:"Overall assessment added by LLM-as-a-judge"}):null!==s&&void 0!==s&&s.errorMessage?null===s||void 0===s?void 0:s.errorMessage:(0,y.Y)(f.sA,{id:"gn1eO9",defaultMessage:"Assessment added by LLM-as-a-judge"})})(),placement:"top",children:s})},po=({editedAssessment:e,valueSuggestions:s,onSave:t,onCancel:n,readOnly:o=!1})=>{var a;const{theme:i}=(0,v.u)(),l=(0,f.tz)(),[r,d]=(0,ie.useState)((()=>(null===e||void 0===e?void 0:e.rationale)||void 0)),[c,u]=(0,ie.useState)(""),[m,h]=(0,ie.useState)((()=>{if(e){var t;const o=null===(t=L(e))||void 0===t?void 0:t.toString();var n;return o?null!==(n=s.find((e=>e.key===o)))&&void 0!==n?n:{key:o,label:o}:{key:e.name,label:e.name}}return{key:"",label:""}})),[S,b]=(0,ie.useState)(!1),I=(0,ie.useMemo)((()=>s.filter((e=>e.label.toLowerCase().includes(c.toLowerCase())))),[c,s]),E=S?s:I,x=c||E.length>0,A=(0,g.useComboboxState)({componentId:"codegen_mlflow_app_src_experiment-tracking_components_evaluations_components_evaluationsreviewassessmentupsertform.tsx_124",allItems:s,items:E,setItems:()=>{},setInputValue:e=>{b(!1),u(e)},multiSelect:!1,allowNewValue:!0,itemToString:e=>e?e.label:"",formValue:m,initialSelectedItem:m,initialInputValue:null!==(a=null===m||void 0===m?void 0:m.label)&&void 0!==a?a:"",formOnChange:e=>{(null===m||void 0===m?void 0:m.label)!==e&&h("string"!==typeof e?e:{key:null!==c&&void 0!==c?c:"",label:null!==c&&void 0!==c?c:""})},onIsOpenChange(e){e&&b(!0)}}),w=l.formatMessage({id:"bCdY2j",defaultMessage:'Add "{label}"'},{label:c});return(0,y.FD)("div",{children:[(0,y.FD)(g.TypeaheadComboboxRoot,{comboboxState:A,children:[(0,y.Y)(g.TypeaheadComboboxInput,{readOnly:o,css:(0,p.AH)({width:300,backgroundColor:i.colors.backgroundPrimary},""),placeholder:l.formatMessage({id:"nxzK82",defaultMessage:"Select or type an assessment"}),onKeyUp:e=>{-1===A.highlightedIndex&&"Enter"===e.key&&A.closeMenu()},comboboxState:A,formOnChange:e=>{h(e)}}),x&&(0,y.Y)(g.TypeaheadComboboxMenu,{comboboxState:A,emptyText:w,matchTriggerWidth:!0,children:E.map(((e,s)=>(0,y.Y)(g.TypeaheadComboboxMenuItem,{item:e,index:s,comboboxState:A,isDisabled:(null===e||void 0===e?void 0:e.disabled)||!1,children:e.label},`${e.key}-${s}`)))})]}),(0,y.Y)(fe.S,{size:"sm"}),(0,y.Y)("div",{css:(0,p.AH)({backgroundColor:i.colors.backgroundPrimary,borderRadius:i.general.borderRadiusBase},""),children:(0,y.Y)(ve.I.TextArea,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_evaluations_components_evaluationsreviewassessmentupsertform.tsx_160",autoSize:!0,value:null!==r&&void 0!==r?r:"",onChange:e=>d(e.target.value),placeholder:l.formatMessage({id:"r/mP0/",defaultMessage:"Add rationale (optional)"})})}),(0,y.Y)(fe.S,{size:"sm"}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:i.spacing.xs},""),children:[(0,y.Y)(v.B,{size:"small",type:"primary",componentId:"mlflow.evaluations_review.confirm_edited_assessment_button",onClick:()=>{var s,n;if(!m)return;const o=null!==(s=null!==(n=m.rootAssessmentName)&&void 0!==n?n:null===e||void 0===e?void 0:e.name)&&void 0!==s?s:m.key,a=o===m.key||m.key;t({value:a,rationale:r,assessmentName:o})},disabled:!(null!==m&&void 0!==m&&m.key),children:(0,y.Y)(f.sA,{id:"/k6j6v",defaultMessage:"Confirm"})}),(0,y.Y)(v.B,{size:"small",type:"tertiary",componentId:"mlflow.evaluations_review.cancel_edited_assessment_button",onClick:n,children:(0,y.Y)(f.sA,{id:"5e1r3Y",defaultMessage:"Cancel"})})]})]})},go=(e,s)=>{const t=(0,f.tz)(),[n,o]=(0,ie.useState)(void 0),[a,i]=(0,ie.useState)(!1),[l,r]=(0,ie.useState)([]),d=(0,ie.useCallback)(((n,a)=>{o(a),i(n),r(((e,s,t,n)=>{if(s){const t=_[s.name];return t?Object.entries(t).map((([t,n])=>({key:t,label:e.formatMessage(n),rootAssessmentName:s.name}))):[]}return(n||[]).filter((e=>"boolean"===e.dtype)).map((e=>({key:e.name,label:e.name,rootAssessmentName:e.name,disabled:null===t||void 0===t?void 0:t.some((s=>s.name===e.name))})))})(t,a,e,s))}),[t,s,e]),c=(0,ie.useCallback)((e=>d(!0,e)),[d]);return{suggestions:l,editingAssessment:n,showUpsertForm:a,addAssessment:(0,ie.useCallback)((()=>d(!0,void 0)),[d]),editAssessment:c,closeForm:(0,ie.useCallback)((()=>{o(void 0),i(!1)}),[])}};var vo={name:"49aokf",styles:"display:contents"};const fo=({assessmentsType:e,assessmentName:s,assessmentHistory:t,rootCauseAssessment:o,onUpsertAssessment:a,allowEditing:i=!1,options:l,inputs:r,assessmentInfo:d,assessmentInfos:c})=>{const{theme:u}=(0,v.u)(),m=(0,f.tz)(),h="overall"===e,{suggestions:S,editingAssessment:I,showUpsertForm:E,editAssessment:x,closeForm:A}=go(t,c);(0,ie.useEffect)((()=>{A()}),[r,A]);const w=(0,n.first)(t),N=R[s],C=N?m.formatMessage(N):s,T=Boolean(w&&L(w)),Y=Boolean(w&&z(w)),_=i&&(T||Y),{makeHTML:M}=jt(),k=(0,ie.useMemo)((()=>{var e;const s=null===w||void 0===w||null===(e=w.rootCauseAssessment)||void 0===e?void 0:e.suggestedActions;return(0,n.isString)(s)?M(s):null}),[w,M]);return(0,y.FD)("div",{css:(0,p.AH)({display:"block",marginBottom:h?void 0:u.spacing.md},""),children:[!E&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:u.spacing.sm},""),children:[s!==b.OVERALL_ASSESSMENT&&(0,y.Y)("div",{css:(0,p.AH)({display:"flex",gap:u.spacing.sm,alignItems:"center"},""),children:(0,y.Y)(Xt,{assessment:w,"aria-label":C,disableJudgeTypeIcon:G(w),onEdit:_?()=>{const e=(0,n.first)(t);e&&x(e)}:void 0,assessmentInfo:d,type:"assessment-value"})}),(0,y.Y)(uo,{history:t,alwaysExpanded:h}),o&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:u.spacing.sm,marginTop:u.spacing.xs},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:u.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.BugIcon,{color:"danger"}),(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"M8pHqP",defaultMessage:"Root cause failure:"})}),(0,y.Y)(Xt,{assessment:o,isRootCauseAssessment:!0,"aria-label":C,assessmentInfo:d,type:"assessment-value"})]}),(0,y.Y)(uo,{history:[o],alwaysExpanded:h}),k&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:u.spacing.sm},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:u.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.AssistantIcon,{color:"ai"}),(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"vCUglz",defaultMessage:"Suggested actions"})})]}),(0,y.Y)("span",{css:vo,dangerouslySetInnerHTML:{__html:k}})]})]})]}),E&&(0,y.Y)(y.FK,{children:(0,y.Y)(po,{editedAssessment:I,valueSuggestions:S,onCancel:A,onSave:({value:e,rationale:s,assessmentName:t})=>{var n;const o=h?b.OVERALL_ASSESSMENT:"",i=B({name:null!==(n=null!==t&&void 0!==t?t:null===I||void 0===I?void 0:I.name)&&void 0!==n?n:o,isOverallAssessment:h,value:e,rationale:s});a(i),A()}},null===I||void 0===I?void 0:I.name)})]},s)};var ho={name:"eivff4",styles:"display:none"};const yo=({assessmentsType:e,assessmentsByName:s,rootCauseAssessment:t,onUpsertAssessment:n,allowEditing:o=!1,allowMoreThanOne:a=!1,options:i,inputs:l,assessmentInfos:r})=>{const{theme:d}=(0,v.u)(),c="overall"===e,u=s.filter((([e,s])=>s.length>0)),{suggestions:m,editingAssessment:h,showUpsertForm:S,addAssessment:I,closeForm:E}=go(u.flatMap((([e,s])=>s)),r);(0,ie.useEffect)((()=>{E()}),[l,E]);const x=Object.keys(u).length>0,A=o&&(a||!x);return(0,y.FD)(y.FK,{children:[(0,y.FD)("div",{css:(0,p.AH)({display:"block",flexWrap:"wrap",gap:d.spacing.xs},""),children:[u.map((([s,a])=>{const d=r.find((e=>e.name===s));return d?(0,y.Y)(fo,{assessmentsType:e,assessmentName:s,assessmentHistory:a,rootCauseAssessment:t,onUpsertAssessment:n,allowEditing:o,options:i,inputs:l,assessmentInfo:d,assessmentInfos:r},s):(0,y.Y)("div",{css:ho},s)})),A&&(0,y.Y)(v.B,{componentId:`mlflow.evaluations_review.add_assessment_${e}_button`,onClick:I,icon:(0,y.Y)(g.PlusIcon,{}),size:"small",children:(0,y.Y)(f.sA,{id:"vgfy8y",defaultMessage:"Add assessment"})})]}),S&&(0,y.FD)(y.FK,{children:[(0,y.Y)(fe.S,{size:"sm"}),(0,y.Y)(po,{valueSuggestions:m,onCancel:E,onSave:({value:e,rationale:s,assessmentName:t})=>{var o;const a=c?b.OVERALL_ASSESSMENT:t||"",i=B({name:null!==(o=null!==t&&void 0!==t?t:null===h||void 0===h?void 0:h.name)&&void 0!==o?o:a,isOverallAssessment:c,value:e,rationale:s});n(i),E()}})]})]})};var So={name:"49aokf",styles:"display:contents"};const bo=({assessmentsType:e,assessmentsByName:s,onUpsertAssessment:t,allowEditing:o=!1,allowMoreThanOne:a=!1,options:i,inputs:l,assessmentInfos:r})=>{const{theme:d}=(0,v.u)(),c=(0,f.tz)(),u="overall"===e,{suggestions:m,editingAssessment:h,showUpsertForm:S,addAssessment:I,editAssessment:E,closeForm:x}=go(s.flatMap((([e,s])=>s)),r);(0,ie.useEffect)((()=>{x()}),[l,x]);const A=s.filter((([e,s])=>s.length>0)),w=Object.keys(A).length>0,N=o&&(a||!w);return(0,y.FD)(y.FK,{children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexWrap:"wrap",gap:d.spacing.xs,alignItems:"center"},""),children:[A.map((([e,s])=>{const t=(0,n.first)(s),a=r.find((s=>s.name===e));if(!a)return(0,y.Y)(y.FK,{});const i=R[e],l=i?c.formatMessage(i):e,d=Boolean(t&&L(t)),u=Boolean(t&&z(t)),m=o&&(d||u)&&a.isEditable;return(0,y.Y)("div",{css:So,children:(0,y.Y)(mo,{assessmentHistory:s,children:(0,y.Y)(Xt,{assessment:t,"aria-label":l,active:(null===h||void 0===h?void 0:h.name)===e&&S,disableJudgeTypeIcon:G(t),onEdit:m?()=>{const e=(0,n.first)(s);e&&E(e)}:void 0,assessmentInfo:a,type:"assessment-value"})})},e)})),N&&(0,y.Y)(v.B,{componentId:`mlflow.evaluations_review.add_assessment_${e}_button`,onClick:I,icon:(0,y.Y)(g.PlusIcon,{}),size:"small",children:(0,y.Y)(f.sA,{id:"vgfy8y",defaultMessage:"Add assessment"})})]}),S&&(0,y.FD)(y.FK,{children:[(0,y.Y)(fe.S,{size:"sm"}),(0,y.Y)(po,{editedAssessment:h,valueSuggestions:m,onCancel:x,onSave:({value:e,rationale:s,assessmentName:n})=>{var o;const a=u?b.OVERALL_ASSESSMENT:n||"",i=B({name:null!==(o=null!==n&&void 0!==n?n:null===h||void 0===h?void 0:h.name)&&void 0!==o?o:a,isOverallAssessment:u,value:e,rationale:s});t(i),x()}},null===h||void 0===h?void 0:h.name)]})]})},Io=({assessmentsType:e,assessmentsByName:s,rootCauseAssessment:t,onUpsertAssessment:n,allowEditing:o=!1,allowMoreThanOne:a=!1,alwaysExpanded:i=!1,options:l,inputs:r,assessmentInfos:d})=>{const[c,u]=(0,ie.useState)(!1),m=i||c,p=s.filter((([e,s])=>s.length>0));let h=s;"overall"!==e&&(h=s.filter((([e,s])=>e!==b.OVERALL_ASSESSMENT)));const S=Object.keys(p).length>0;return(0,y.FD)(y.FK,{children:[m&&(0,y.Y)(yo,{assessmentsType:e,assessmentsByName:h,rootCauseAssessment:t,onUpsertAssessment:n,allowEditing:o,allowMoreThanOne:a,options:l,inputs:r,assessmentInfos:d}),!m&&(0,y.Y)(bo,{assessmentsType:e,assessmentsByName:h,onUpsertAssessment:n,allowEditing:o,allowMoreThanOne:a,options:l,inputs:r,assessmentInfos:d}),S&&!i&&(0,y.FD)(y.FK,{children:[(0,y.Y)(fe.S,{size:"sm"}),(0,y.Y)(v.B,{size:"small",type:"tertiary",componentId:`mlflow.evaluations_review.see_assessment_details_${e}_button`,icon:m?(0,y.Y)(g.ChevronUpIcon,{}):(0,y.Y)(v.q,{}),onClick:()=>u((e=>!e)),children:m?(0,y.Y)(f.sA,{id:"G7V4y3",defaultMessage:"Hide details"}):(0,y.Y)(f.sA,{id:"pfyUes",defaultMessage:"See details"})})]})]})},Eo=({toBeReviewed:e,containsOverallAssessment:s,isNextResultAvailable:t,overridingExistingReview:n,hasPendingAssessments:o,onClickNext:a,onSave:i,onCancelOverride:l})=>e?o?(0,y.Y)(v.B,{type:"primary",componentId:"mlflow.evaluations_review.save_pending_assessments_button",onClick:i,children:(0,y.Y)(f.sA,{id:"m1Nb7W",defaultMessage:"Save"})}):n?(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.cancel_override_assessments_button",onClick:l,children:(0,y.Y)(f.sA,{id:"e9qVjz",defaultMessage:"Cancel"})}):(0,y.Y)(v.B,{type:"primary",componentId:"mlflow.evaluations_review.mark_as_reviewed_button",onClick:i,disabled:!s,children:(0,y.Y)(f.sA,{id:"Ls2ris",defaultMessage:"Mark as reviewed"})}):(0,y.Y)(v.B,{type:"primary",componentId:"mlflow.evaluations_review.next_evaluation_result_button",onClick:a,endIcon:(0,y.Y)(v.q,{}),disabled:!t,children:(0,y.Y)(f.sA,{id:"CBnbqy",defaultMessage:"Next"})}),xo=()=>{const{theme:e}=(0,v.u)();return(0,y.Y)("div",{css:(0,p.AH)({width:"1.5px",backgroundColor:e.colors.border},"")})};var Ao={name:"1d3w5wq",styles:"width:100%"},wo={name:"82a6rk",styles:"flex:1"};const No=({evaluationResult:e,onUpsertAssessment:s,onSavePendingAssessments:t,onClickNext:o,onResetPendingAssessments:a,isNextAvailable:i,overridingExistingReview:l=!1,pendingAssessments:r=[],setOverridingExistingReview:d,isReadOnly:c=!1,assessmentInfos:u})=>{var m;const{theme:h}=(0,v.u)(),S=(0,f.tz)();if(!e)return null;const I=(0,n.first)(e.overallAssessments),E=null===I||void 0===I||null===(m=I.rootCauseAssessment)||void 0===m?void 0:m.assessmentName,x=E?(0,n.first)(null===e||void 0===e?void 0:e.responseAssessmentsByName[E]):void 0,A=!c&&(!j(e)||l),w=S.formatMessage({id:"d44IPd",defaultMessage:"Reopen review"}),N=[[b.OVERALL_ASSESSMENT,e.overallAssessments]],C=u.find((e=>e.name===b.OVERALL_ASSESSMENT));return(0,y.FD)("div",{css:Ao,children:[(0,y.FD)("div",{css:(0,p.AH)({width:"100%",paddingLeft:h.spacing.md,paddingRight:h.spacing.md},""),children:[(0,y.FD)("div",{css:(0,p.AH)({backgroundColor:h.colors.backgroundSecondary,padding:h.spacing.md,paddingBottom:0,display:"flex",flexDirection:"column",gap:h.spacing.sm},""),children:[C&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:h.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.SparkleDoubleIcon,{color:"ai"}),(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"ML+mQa",defaultMessage:"Overall assessment:"})}),(0,y.Y)(Xt,{assessment:I,"aria-label":b.OVERALL_ASSESSMENT,disableJudgeTypeIcon:G(I),assessmentInfo:C,type:"assessment-value"})]}),(0,y.Y)(Io,{assessmentsType:"overall",assessmentsByName:N,rootCauseAssessment:x,onUpsertAssessment:s,allowEditing:A,alwaysExpanded:!0,options:[b.OVERALL_ASSESSMENT],assessmentInfos:u}),(0,y.FD)("div",{css:(0,p.AH)({border:`1px solid ${h.colors.border}`,borderRadius:h.general.borderRadiusBase,padding:h.spacing.sm},""),children:[(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"5jXYY4",defaultMessage:"Detailed assessments"})}),(0,y.Y)(fe.S,{size:"sm"}),(0,y.Y)(Io,{assessmentsType:"response",assessmentsByName:$(e.responseAssessmentsByName),onUpsertAssessment:s,allowEditing:A,allowMoreThanOne:!0,options:H,assessmentInfos:u})]})]}),(0,y.FD)("div",{css:(0,p.AH)({position:"sticky",backgroundColor:h.colors.backgroundSecondary,padding:h.spacing.md,top:0,display:"flex",justifyContent:"space-between",gap:h.spacing.sm,zIndex:h.options.zIndexBase},""),children:[(0,y.Y)("div",{children:!A&&!c&&(0,y.FD)("div",{css:(0,p.AH)({border:`1px solid ${h.colors.border}`,borderRadius:h.general.borderRadiusBase,display:"flex",alignItems:"center",gap:h.spacing.sm,padding:`${h.spacing.xs}px ${h.spacing.sm}px`},""),children:[(0,y.Y)(g.CheckCircleIcon,{css:(0,p.AH)({color:h.colors.textValidationSuccess},"")}),(0,y.Y)(v.T.Hint,{children:(0,y.Y)(f.sA,{id:"zLTdCZ",defaultMessage:"Reviewed"})}),(0,y.Y)(fe.T,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_evaluations_components_evaluationsreviewassessmentssection.tsx_149",content:w,children:(0,y.Y)(v.B,{"aria-label":w,componentId:"mlflow.evaluations_review.reopen_review_button",size:"small",icon:(0,y.Y)(g.PencilIcon,{}),onClick:()=>d(!0)})})]})}),(0,y.Y)("div",{css:wo}),r.length>0&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:h.spacing.sm},""),children:[(0,y.Y)(f.sA,{id:"MB3kda",defaultMessage:"{pendingCount} pending {pendingCount, plural, =1 {change} other {changes}}",values:{pendingCount:r.length}}),(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.discard_pending_assessments_button",onClick:a,children:(0,y.Y)(f.sA,{id:"eIWfRN",defaultMessage:"Discard"})})]}),(0,y.Y)(Eo,{onSave:async()=>{await t(),d(!1)},containsOverallAssessment:Boolean(I),isNextResultAvailable:Boolean(i),onClickNext:o,toBeReviewed:A,hasPendingAssessments:r.length>0,overridingExistingReview:l,onCancelOverride:()=>d(!1)})]})]}),(0,y.Y)(fe.S,{size:"md"})]})},Co=({evaluationResult:e,otherEvaluationResult:s,onUpsertAssessment:t,onSavePendingAssessments:n,onClickNext:o,onResetPendingAssessments:a,isNextAvailable:i,overridingExistingReview:l=!1,pendingAssessments:r=[],setOverridingExistingReview:d,isReadOnly:c=!1,assessmentInfos:u})=>{const{theme:m}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",gap:m.spacing.sm},""),children:[e&&(0,y.Y)(No,{evaluationResult:e,onUpsertAssessment:t,onSavePendingAssessments:n,onClickNext:o,onResetPendingAssessments:a,isNextAvailable:i,overridingExistingReview:l,setOverridingExistingReview:d,pendingAssessments:r,isReadOnly:c,assessmentInfos:u}),s&&(0,y.FD)(y.FK,{children:[(0,y.Y)(xo,{}),(0,y.Y)(No,{evaluationResult:s,onUpsertAssessment:t,onSavePendingAssessments:n,onClickNext:o,onResetPendingAssessments:a,isNextAvailable:i,overridingExistingReview:l,setOverridingExistingReview:d,pendingAssessments:r,isReadOnly:!0,assessmentInfos:u})]})]})},Ro=({requestId:e,onClose:s,trace:t})=>{const{theme:o}=(0,v.u)(),a=(0,y.Y)(v.T.Title,{level:2,withoutMargins:!0,children:e});return(0,y.Y)(g.Drawer.Root,{modal:!0,open:!0,onOpenChange:e=>{e||s()},children:(0,y.Y)(g.Drawer.Content,{componentId:"mlflow.evaluations_review.trace_data_drawer",width:"85vw",title:a,expandContentToFullHeight:!0,children:(()=>{const e=t.data.spans.length>0;return(0,n.isNil)(t)||!e?(0,y.FD)(y.FK,{children:[(0,y.Y)(fe.S,{size:"lg"}),(0,y.Y)(g.Empty,{description:null,title:(0,y.Y)(f.sA,{id:"EpFST9",defaultMessage:"No trace data recorded"})})]}):(0,y.Y)("div",{css:(0,p.AH)({height:"100%",marginLeft:-o.spacing.lg,marginRight:-o.spacing.lg,marginBottom:-o.spacing.lg},""),onWheel:e=>e.stopPropagation(),children:(0,y.Y)(Ie.ModelTraceExplorer,{modelTrace:t})})})()})})};var To={name:"1d3w5wq",styles:"width:100%"};const Yo=({experimentId:e,runDisplayName:s,evaluationResult:t,exportToEvalsInstanceEnabled:o=!1,traceQueryResult:a,getTrace:i})=>{var l,r;const d=(0,f.tz)(),{theme:c}=(0,v.u)(),[u,m]=(0,ie.useState)(null),g=null===(l=t.traceInfo)||void 0===l||null===(r=l.trace_metadata)||void 0===r?void 0:r["databricks.tracingserver.dropped_spans_size_bytes"];let h;if(!(0,n.isNil)(g)){const e=2,s=Ut(Number(g),e);h=`${s.value} ${s.unit}`}return(0,y.FD)("div",{css:To,children:[(0,y.FD)("div",{css:(0,p.AH)({width:"100%",paddingLeft:c.spacing.md,paddingRight:c.spacing.md,display:"flex",alignItems:"center",justifyContent:"space-between",gap:c.spacing.sm},""),children:[(0,y.Y)(v.T.Title,{level:4,children:s}),t.requestId&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:c.spacing.sm},""),children:[o&&i&&(0,y.Y)(ds,{experimentId:e,selectedTraces:[t],traceActions:{exportToEvals:{getTrace:i}},traceInfos:void 0}),(0,y.Y)(fe.T,{delayDuration:0,componentId:"mlflow.evaluations_review.see_detailed_trace_view_tooltip",content:g?`The trace spans were not stored due to their large size: ${h}`:void 0,side:"left",children:(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.see_detailed_trace_view_button",onClick:()=>m(t.requestId),loading:a.isLoading,disabled:!(0,n.isNil)(g),children:(0,y.Y)(f.sA,{id:"HUC492",defaultMessage:"See detailed trace view"})})})]}),u&&((0,n.isNil)(a.data)?(0,y.Y)(y.FK,{children:d.formatMessage({id:"EZfSbs",defaultMessage:"No trace data available"})}):(0,y.Y)(Ro,{onClose:()=>{m(null)},requestId:u,trace:a.data}))]}),(0,y.Y)(fe.S,{size:"md"})]})},_o=({experimentId:e,runDisplayName:s,otherRunDisplayName:t,evaluationResult:n,otherEvaluationResult:o,exportToEvalsInstanceEnabled:a=!1,traceQueryResult:i,compareToTraceQueryResult:l})=>{const{theme:r}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",gap:r.spacing.sm},""),children:[(0,y.Y)(Yo,{experimentId:e,runDisplayName:s,evaluationResult:n,exportToEvalsInstanceEnabled:a,traceQueryResult:i}),t&&o&&(0,y.FD)(y.FK,{children:[(0,y.Y)(xo,{}),(0,y.Y)(Yo,{experimentId:e,runDisplayName:t,evaluationResult:o,exportToEvalsInstanceEnabled:a,traceQueryResult:l})]})]})};var Mo={name:"1739oy8",styles:"z-index:1"};const ko=({copyText:e,showLabel:s=!0,componentId:t,...n})=>{const[o,a]=(0,ie.useState)(!1);return(0,y.Y)(g.LegacyTooltip,{title:(0,y.Y)(f.sA,{id:"X+boXI",defaultMessage:"Copied"}),dangerouslySetAntdProps:{visible:o},children:(0,y.Y)(v.B,{componentId:null!==t&&void 0!==t?t:"mlflow.shared.copy_button",type:"primary",onClick:()=>{navigator.clipboard.writeText(e),a(!0),setTimeout((()=>{a(!1)}),3e3)},onMouseLeave:()=>{a(!1)},css:Mo,children:s?(0,y.Y)(f.sA,{id:"1Iq+NW",defaultMessage:"Copy"}):void 0,...n})})},Do=({value:e})=>{const s=(0,ie.useMemo)((()=>{if("object"===typeof e&&null!==e)return JSON.stringify(e,null,2);if("string"===typeof e)try{const s=JSON.parse(e);return JSON.stringify(s,null,2)}catch(s){return null}return null}),[e]);return(0,y.Y)("div",{css:(0,p.AH)({whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:s?"monospace":void 0},""),children:s||String(e)})};var Fo={name:"1066lcq",styles:"display:flex;justify-content:space-between;align-items:center"},Oo={name:"1nko30q",styles:"margin-bottom:0 !important"},Lo={name:"49aokf",styles:"display:contents"};const Vo=({fieldName:e,title:s,value:t,showCopyIcon:o})=>{const{theme:a}=(0,v.u)(),{makeHTML:i}=jt(),l=(0,ie.useMemo)((()=>(0,n.isString)(t)?i(t):null),[t,i]),r=(0,ie.useMemo)((()=>(0,n.isString)(t)?null:K(t)),[t]);return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:a.spacing.sm,flex:1,border:`1px solid ${a.colors.border}`,padding:a.spacing.md,borderRadius:a.general.borderRadiusBase,marginBottom:a.spacing.md},""),children:[(0,y.FD)("div",{css:Fo,children:[(0,y.Y)(v.T.Text,{bold:!0,children:s}),o&&(0,y.Y)(ko,{copyText:K(t),showLabel:!1,type:"tertiary",icon:(0,y.Y)(g.CopyIcon,{})})]}),(0,y.Y)(v.T.Paragraph,{css:Oo,children:(0,n.isString)(t)?(0,y.Y)("span",{css:Lo,dangerouslySetInnerHTML:{__html:null!==l&&void 0!==l?l:""}}):e===N&&Array.isArray(t)?(0,y.Y)("ul",{children:t.map(((e,s)=>(0,y.Y)("li",{children:(0,y.Y)(Do,{value:e},s)},s)))}):(0,y.Y)(Do,{value:r})})]})},Ho=({evaluationResult:e})=>{const{theme:s}=(0,v.u)(),{inputs:t}=e,n=Object.entries(t),o=0===n.length;return(0,y.FD)("div",{css:(0,p.AH)({width:"100%",paddingLeft:s.spacing.md,paddingRight:s.spacing.md},""),children:[(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"MQ4Voz",defaultMessage:"{count, plural, one {Input} other {Inputs}}",values:{count:n.length}})}),(0,y.Y)(fe.S,{size:"sm"}),o&&(0,y.Y)(v.T.Paragraph,{children:(0,y.Y)(f.sA,{id:"gPhm1b",defaultMessage:"No inputs logged"})}),n.map((([e,s])=>(0,y.Y)(Vo,{fieldName:e,title:e,value:s},e)))]})},Uo=({evaluationResult:e,otherEvaluationResult:s})=>{const{theme:t}=(0,v.u)(),n=(null===e||void 0===e?void 0:e.inputsId)===(null===s||void 0===s?void 0:s.inputsId);return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",gap:t.spacing.sm},""),children:[e&&(0,y.Y)(Ho,{evaluationResult:e}),!n&&s&&(0,y.Y)(Ho,{evaluationResult:s})]})};var Bo={name:"82a6rk",styles:"flex:1"},zo={name:"82a6rk",styles:"flex:1"};const $o=({evaluationResult:e})=>{const{theme:s}=(0,v.u)(),{outputs:t,targets:n}=e,o=Object.entries(t).filter((([,e])=>!W(e))),a=Object.entries(n).filter((([,e])=>!W(e))),i=0===o.length&&0===a.length;return(0,y.FD)("div",{css:(0,p.AH)({paddingLeft:s.spacing.md,paddingRight:s.spacing.md,width:"100%"},""),children:[(0,y.Y)(v.T.Text,{bold:!0,children:(0,y.Y)(f.sA,{id:"x6rkyu",defaultMessage:"Response"})}),(0,y.Y)(fe.S,{size:"sm"}),i&&(0,y.Y)(v.T.Paragraph,{children:(0,y.Y)(f.sA,{id:"YvxyMH",defaultMessage:"No responses or targets logged"})}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:s.spacing.md,alignItems:"flex-start"},""),children:[o.length>0&&(0,y.Y)("div",{css:Bo,children:o.map((([e,s])=>{const t=w[e],n=t?(0,y.Y)(f.sA,{...t}):e;return(0,y.Y)(Vo,{fieldName:e,title:n,value:s,showCopyIcon:!0},e)}))}),a.length>0&&(0,y.Y)("div",{css:zo,children:a.map((([e,s])=>{const t=C[e],n=t?(0,y.Y)(f.sA,{...t}):e;return(0,y.Y)(Vo,{fieldName:e,title:n,value:s,showCopyIcon:!0},e)}))})]})]})},jo=({evaluationResult:e,otherEvaluationResult:s})=>{const{theme:t}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",gap:t.spacing.sm},""),children:[e&&(0,y.Y)($o,{evaluationResult:e}),s&&(0,y.FD)(y.FK,{children:[(0,y.Y)(xo,{}),(0,y.Y)($o,{evaluationResult:s})]})]})},qo=({assessment:e,chunkRelevanceAssessmentInfo:s})=>{const{theme:t}=(0,v.u)();return e||s?(0,y.Y)("div",{css:(0,p.AH)({paddingLeft:t.spacing.sm,paddingRight:t.spacing.sm,paddingTop:1,paddingBottom:1,backgroundColor:s?oe(t,s,e):"",borderRadius:t.general.borderRadiusBase,svg:{width:12,height:12}},""),children:e?(0,y.Y)(y.FK,{children:q(e)?(0,y.Y)(g.UserIcon,{}):(0,y.Y)(g.SparkleDoubleIcon,{})}):(0,y.Y)(g.QuestionMarkIcon,{})}):(0,y.Y)(y.FK,{})};function Po(e){try{const s=new URL(e);return"http:"===s.protocol||"https:"===s.protocol}catch(s){return!1}}var Ko={name:"s5xdrg",styles:"display:flex;align-items:center"};const Go=({chunk:e,index:s})=>(0,y.FD)("div",{css:Ko,children:[(0,y.FD)(g.Tag,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_evaluations_components_evaluationsreviewretrievalsection.tsx_30",children:["#",s+1]}),Po(e.docUrl)?(0,y.Y)(v.T.Link,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_evaluations_components_evaluationsreviewretrievalsection.tsx_32",href:e.docUrl,ellipsis:!0,openInNewTab:!0,strong:!0,children:e.docUrl}):(0,y.Y)(v.T.Title,{level:4,withoutMargins:!0,ellipsis:!0,children:e.docUrl})]});var Wo={name:"1vgo6ev",styles:"flex:2;display:flex;flex-direction:column;width:0"},Qo={name:"49aokf",styles:"display:contents"};const Jo=({evaluationResult:e,onUpsertAssessment:s,overridingExistingReview:t=!1,isReadOnly:o=!1,assessmentInfos:a,traceQueryResult:i})=>{const{theme:l}=(0,v.u)(),r=(0,f.tz)(),[d,c]=(0,ie.useState)(0),{makeHTML:u}=jt(),m=(0,ie.useMemo)((()=>!(0,n.isNil)(e.retrievalChunks)&&e.retrievalChunks.length>0?e.retrievalChunks:function(e,s){var t,o;if((0,n.isNil)(s))return;let a="doc_uri";const i=s.info.tags;if(null!==i&&void 0!==i&&i.retrievers){const e=ss(i.retrievers);"object"===typeof e&&e.length>0&&(a=e[0].doc_uri)}const l=s.data.spans.filter((e=>{var s,t;return(null===(s=e.attributes)||void 0===s?void 0:s["mlflow.spanType"])&&ss(null===(t=e.attributes)||void 0===t?void 0:t["mlflow.spanType"])===Ie.ModelTraceSpanType.RETRIEVER}));if(0===l.length)return[];const r=null===(t=l.at(-1))||void 0===t||null===(o=t.attributes)||void 0===o?void 0:o["mlflow.spanOutputs"];if(!r)return[];const d=ss(r);return Array.isArray(d)?d.map(((s,t)=>{var n;return{docUrl:null===(n=s.metadata)||void 0===n?void 0:n[a],content:s.page_content,retrievalAssessmentsByName:rs(e,t)}})):[]}(e.responseAssessmentsByName,i.data)),[e.responseAssessmentsByName,e.retrievalChunks,i.data]),h=(0,ie.useMemo)((()=>{var e;return u(null===m||void 0===m||null===(e=m[d])||void 0===e?void 0:e.content)}),[m,d,u]),S=0===(m||[]).length,I=!o&&(!j(e)||t),E=null===m||void 0===m?void 0:m[d],x=r.formatMessage({id:"iPTAj8",defaultMessage:"Retrieval"});return(0,y.FD)("div",{css:(0,p.AH)({paddingLeft:l.spacing.md,paddingRight:l.spacing.md,width:"100%",display:"flex",flexDirection:"column"},""),role:"region","aria-label":x,children:[(0,y.Y)(v.T.Text,{bold:!0,children:x}),(0,n.isNil)(m)&&i.isFetching?(0,y.Y)(g.TableSkeleton,{lines:3}):S?(0,y.Y)(v.T.Text,{children:(0,y.Y)("i",{children:(0,y.Y)(f.sA,{id:"d00egE",defaultMessage:"No span with type RETRIEVER found in trace."})})}):(0,y.FD)("div",{css:(0,p.AH)({minHeight:400,maxHeight:600,overflow:"hidden",display:"flex",marginTop:l.spacing.sm,border:`1px solid ${l.colors.border}`,borderRadius:l.general.borderRadiusBase},""),children:[(0,y.FD)("div",{css:(0,p.AH)({flex:1,flexShrink:1,maxWidth:300,minWidth:200,overflow:"auto",padding:l.spacing.sm,borderRight:`1px solid ${l.colors.border}`},""),role:"listbox",children:[S&&(0,y.Y)(v.T.Paragraph,{children:(0,y.Y)(f.sA,{id:"0Bee6A",defaultMessage:"No retrieval logged"})}),(m||[]).map(((e,s)=>{var t,o;const i=a.find((e=>e.name===b.CHUNK_RELEVANCE));return(0,y.FD)("div",{role:"option","aria-label":null===(t=e.content)||void 0===t?void 0:t.slice(0,255),"aria-selected":s===d,css:(0,p.AH)({backgroundColor:s===d?l.colors.actionIconBackgroundHover:"transparent","&:hover":{backgroundColor:l.colors.actionIconBackgroundHover},padding:`${l.spacing.sm}px ${l.spacing.md}px`,overflow:"hidden",display:"flex",gap:l.spacing.sm,alignItems:"center",cursor:"pointer",width:"100%"},""),onClick:()=>{c(s)},children:[(0,y.Y)(qo,{chunkRelevanceAssessmentInfo:i,assessment:(0,n.first)(null===e||void 0===e||null===(o=e.retrievalAssessmentsByName)||void 0===o?void 0:o[b.CHUNK_RELEVANCE])}),(0,y.Y)(v.T.Text,{ellipsis:!0,css:(0,p.AH)({flex:1,lineHeight:l.typography.lineHeightLg},""),children:e.content})]},[e.docUrl,s].join("-"))}))]}),E&&(0,y.FD)("div",{css:Wo,children:[(0,y.FD)("div",{css:(0,p.AH)({padding:l.spacing.md,borderBottom:`1px solid ${l.colors.border}`},""),children:[(0,y.Y)(Go,{chunk:E,index:d}),(0,y.Y)(fe.S,{size:"md"}),(0,y.Y)(Io,{assessmentsType:"retrieval",assessmentsByName:$(E.retrievalAssessmentsByName||{}),onUpsertAssessment:e=>{e.metadata||(e.metadata={}),e.metadata[A.CHUNK_INDEX]=d,s(e)},allowEditing:I,allowMoreThanOne:!0,options:U,inputs:[d],assessmentInfos:a})]}),(0,y.Y)("div",{css:(0,p.AH)({padding:l.spacing.md,overflow:"auto"},""),children:(0,y.Y)(v.T.Paragraph,{children:(0,y.Y)("span",{css:Qo,dangerouslySetInnerHTML:{__html:null!==h&&void 0!==h?h:""}})})})]})]})]})},Xo=({evaluationResult:e,otherEvaluationResult:s,onUpsertAssessment:t,overridingExistingReview:n=!1,isReadOnly:o=!1,assessmentInfos:a,traceQueryResult:i,compareToTraceQueryResult:l})=>{const{theme:r}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",gap:r.spacing.sm},""),children:[e&&(0,y.Y)(Jo,{evaluationResult:e,onUpsertAssessment:t,overridingExistingReview:n,isReadOnly:o,assessmentInfos:a,traceQueryResult:i}),s&&(0,y.FD)(y.FK,{children:[(0,y.Y)(xo,{}),(0,y.Y)(Jo,{evaluationResult:s,onUpsertAssessment:t,overridingExistingReview:n,isReadOnly:o,assessmentInfos:a,traceQueryResult:l})]})]})};var Zo={name:"1cwfdr7",styles:"flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"};const ea=({evaluationResult:e})=>{const{theme:s}=(0,v.u)();return(0,y.Y)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:s.spacing.sm,overflow:"hidden"},""),children:(0,y.Y)(v.T.Title,{level:2,withoutMargins:!0,css:Zo,children:k(e)})})},sa=({experimentId:e,evaluationResult:s,otherEvaluationResult:t,onSavePendingAssessments:o,onClickNext:a,runDisplayName:i,compareToRunDisplayName:l,isNextAvailable:r=!1,isReadOnly:d=!1,exportToEvalsInstanceEnabled:c=!1,assessmentInfos:u,traceQueryResult:m,compareToTraceQueryResult:p})=>{(0,f.tz)();const{pendingAssessments:h,draftEvaluationResult:S,upsertAssessment:b,resetPendingAssessments:I}=(e=>{const[s,t]=(0,ie.useReducer)(((e,s)=>{switch(s.type){case"resetPendingAssessments":return[];case"upsertAssessment":const t=e.find((e=>e.name===s.payload.name&&P(e)===P(s.payload)));return t?e.map((e=>e===t?""===L(e)&&s.payload.stringValue?{...s.payload,stringValue:"",name:s.payload.stringValue}:s.payload:e)):[s.payload,...e]}}),[]),o=(0,ie.useMemo)((()=>{if(!e)return[];const t=s.find(F);return t?[t,...e.overallAssessments]:e.overallAssessments}),[e,s]),a=(0,ie.useMemo)((()=>{if(!e)return{};const t=(0,n.uniq)([...Object.keys(e.responseAssessmentsByName),...s.filter((e=>!F(e)&&!O(e))).map((e=>e.name))]);return Object.fromEntries(t.map((t=>{const n=s.filter((e=>e.name===t));return[t,[...n,...e.responseAssessmentsByName[t]||[]]]})))}),[e,s]),i=(0,ie.useMemo)((()=>{var t;const o=s.filter(O);return null===(t=e.retrievalChunks)||void 0===t?void 0:t.map(((e,s)=>{var t;const a=o.filter((e=>{var t;return(null===(t=e.metadata)||void 0===t?void 0:t[A.CHUNK_INDEX])===s})),i=(0,n.flatMap)(null!==(t=e.retrievalAssessmentsByName)&&void 0!==t?t:{}),l=(0,n.groupBy)([...a,...i],"name");return Object.keys(l).forEach((e=>{l[e]=(0,n.orderBy)(l[e],"timestamp","desc")})),{...e,retrievalAssessmentsByName:l}}))}),[s,e]),l=(0,ie.useMemo)((()=>({...e,overallAssessments:o,responseAssessmentsByName:a,retrievalChunks:i})),[e,o,a,i]),r=(0,ie.useCallback)((e=>t({type:"upsertAssessment",payload:e})),[]),d=(0,ie.useCallback)((()=>t({type:"resetPendingAssessments"})),[]);return{pendingAssessments:s,draftEvaluationResult:l,upsertAssessment:r,resetPendingAssessments:d}})(s),[E,x]=(h.length,(0,ie.useState)(!1)),w=Boolean(s.errorCode),N=Boolean(s.errorMessage),C=w||N,[R,T]=(0,ie.useState)(!1);return(0,y.FD)(y.FK,{children:[C?(0,y.FD)(y.FK,{children:[(0,y.Y)(g.Alert,{action:N&&(0,y.Y)(v.B,{componentId:`mlflow.evaluations_review.evaluation_error_alert.show_${R?"less":"more"}_button`,onClick:()=>T((e=>!e)),children:R?(0,y.Y)(f.sA,{id:"qVQYZH",defaultMessage:"Show less"}):(0,y.Y)(f.sA,{id:"U4s/77",defaultMessage:"Show more"})}),closable:!1,componentId:"mlflow.evaluations_review.evaluation_error_alert",message:w?`${s.errorCode}`:"UNKNOWN_ERROR",description:R&&`${s.errorMessage}`,type:"error"}),(0,y.Y)(fe.S,{size:"md"})]}):null,(0,y.Y)(_o,{experimentId:e,runDisplayName:i,otherRunDisplayName:l,evaluationResult:s,otherEvaluationResult:t,exportToEvalsInstanceEnabled:c,traceQueryResult:m,compareToTraceQueryResult:p}),(0,y.Y)(Co,{evaluationResult:S,otherEvaluationResult:t,onUpsertAssessment:b,onClickNext:a,onSavePendingAssessments:async()=>{await(null===o||void 0===o?void 0:o(s,h)),I()},isNextAvailable:r,overridingExistingReview:E,setOverridingExistingReview:x,pendingAssessments:h,onResetPendingAssessments:I,isReadOnly:d,assessmentInfos:u}),(0,y.Y)(Uo,{evaluationResult:s,otherEvaluationResult:t}),(0,y.Y)(jo,{evaluationResult:s,otherEvaluationResult:t}),(0,y.Y)(Xo,{evaluationResult:S,otherEvaluationResult:t,onUpsertAssessment:b,overridingExistingReview:E,isReadOnly:d,assessmentInfos:u,traceQueryResult:m,compareToTraceQueryResult:p}),(0,y.Y)(fe.S,{size:"lg"})]})};var ta={name:"ujpwkd",styles:"display:flex;position:relative;overflow:scroll"},na={name:"1tc6xju",styles:"flex:1;overflow:auto"};const oa=({experimentId:e,evaluation:s,otherEvaluation:t,className:n,runUuid:o,isReadOnly:a=!1,selectNextEval:i,isNextAvailable:l,runDisplayName:r,compareToRunDisplayName:d,exportToEvalsInstanceEnabled:c=!1,assessmentInfos:u,traceQueryResult:m,compareToTraceQueryResult:g,saveAssessmentsQuery:f})=>{const{theme:S}=(0,v.u)(),b=(0,ie.useCallback)((async(e,s)=>{if(!e||a||!o||!f)return;const t=s.slice();var n,i;if(i=s,(n=e).overallAssessments.length>0&&n.overallAssessments.every(M)&&!i.some(F)){const s=(e=>{var s;const t=e.overallAssessments.find(M);if(!t)return null;const n=null!==(s=(0,h.w)())&&void 0!==s?s:"";return{...t,timestamp:Date.now(),isDraft:!0,source:{sourceType:"HUMAN",sourceId:n,metadata:{}},metadata:{...t.metadata,[A.IS_COPIED_FROM_AI]:!0}}})(e);s&&t.unshift(s)}return f.savePendingAssessments(o,e.evaluationId,t)}),[o,a,f]),I=(0,ie.useRef)(null);return(0,ie.useEffect)((()=>{var e;null===(e=I.current)||void 0===e||e.scrollTo(0,0)}),[s.evaluationId]),(0,y.FD)("div",{css:ta,className:n,children:[(0,y.Y)("div",{css:na,ref:I,children:(0,y.Y)(sa,{experimentId:e,evaluationResult:s,otherEvaluationResult:t,onSavePendingAssessments:b,onClickNext:i,isNextAvailable:l,isReadOnly:a||!o,runDisplayName:r,compareToRunDisplayName:d,exportToEvalsInstanceEnabled:c,assessmentInfos:u,traceQueryResult:m,compareToTraceQueryResult:g},s.evaluationId)}),(null===f||void 0===f?void 0:f.isSaving)&&(0,y.Y)("div",{css:(0,p.AH)({inset:0,position:"absolute",backgroundColor:S.colors.overlayOverlay,display:"flex",justifyContent:"center",alignItems:"center",zIndex:S.options.zIndexBase+1},""),children:(0,y.Y)(v.S,{size:"large",inheritColor:!0,css:(0,p.AH)({color:S.colors.backgroundPrimary},"")})})]})},aa=()=>{var e;return{enableRunEvaluationWriteFeatures:null!==(e=!1)&&e}},ia=(0,ie.createContext)(aa()),la=({config:e={},children:s})=>{const t=aa(),o=(0,n.merge)({},t,e);return(0,y.Y)(ia.Provider,{value:o,children:s})};function ra(e,s,t){return(0,ws.I)({queryKey:["getTrace",s,t],queryFn:()=>e?e(s,t):Promise.resolve(void 0),enabled:!(0,n.isNil)(e)&&(!(0,n.isNil)(s)||!(0,n.isNil)(t)),staleTime:1/0,refetchOnWindowFocus:!1,retry:1,keepPreviousData:!0})}var da={name:"inxa61",styles:"flex:1;overflow:hidden"};const ca=ie.memo((({experimentId:e,runUuid:s,evaluations:t,selectedEvaluationId:o,onChangeEvaluationId:a,runDisplayName:i,otherRunDisplayName:l,exportToEvalsInstanceEnabled:r=!1,assessmentInfos:d,getTrace:c,saveAssessmentsQuery:u})=>{var m,f,h,S,b,I,E,x,A,w,N,C,R;const{theme:T,classNamePrefix:Y}=(0,v.u)(),_=(0,ie.useCallback)((()=>{a(void 0)}),[a]),M=(0,ie.useCallback)((e=>{var s,t;return(null===(s=e.currentRunValue)||void 0===s?void 0:s.evaluationId)===o||(null===(t=e.otherRunValue)||void 0===t?void 0:t.evaluationId)===o}),[o]),k=(0,ie.useMemo)((()=>t?(null===t||void 0===t?void 0:t.findIndex(M))-1:void 0),[t,M]),D=(0,ie.useMemo)((()=>void 0!==k&&k>=0),[k]),F=(0,ie.useMemo)((()=>t?(null===t||void 0===t?void 0:t.findIndex(M))+1:void 0),[t,M]),O=(0,ie.useMemo)((()=>void 0!==F&&F{var e,s,n,o;if(null===t||void 0===k)return;const i=(null===(e=t[k])||void 0===e||null===(s=e.currentRunValue)||void 0===s?void 0:s.evaluationId)||(null===(n=t[k])||void 0===n||null===(o=n.otherRunValue)||void 0===o?void 0:o.evaluationId);a(i)}),[t,k,a]),V=(0,ie.useCallback)((()=>{var e,s,n,o;if(null===t||void 0===F)return;const i=(null===(e=t[F])||void 0===e||null===(s=e.currentRunValue)||void 0===s?void 0:s.evaluationId)||(null===(n=t[F])||void 0===n||null===(o=n.otherRunValue)||void 0===o?void 0:o.evaluationId);a(i)}),[t,F,a]),H=(0,ie.useMemo)((()=>null===t||void 0===t?void 0:t.find(M)),[t,M]),U=(0,ie.useMemo)((()=>F&&t?null===t||void 0===t?void 0:t[F]:void 0),[t,F]),B=(0,ie.useMemo)((()=>k&&t?null===t||void 0===t?void 0:t[k]:void 0),[t,k]),z=(0,ie.useContext)(ia)||aa(),$=ra(c,null===H||void 0===H||null===(m=H.currentRunValue)||void 0===m?void 0:m.requestId,null===H||void 0===H||null===(f=H.currentRunValue)||void 0===f||null===(h=f.traceInfo)||void 0===h?void 0:h.trace_id),j=ra(c,null===H||void 0===H||null===(S=H.otherRunValue)||void 0===S?void 0:S.requestId,null===H||void 0===H||null===(b=H.otherRunValue)||void 0===b||null===(I=b.traceInfo)||void 0===I?void 0:I.trace_id);ra(c,null===U||void 0===U||null===(E=U.currentRunValue)||void 0===E?void 0:E.requestId,null===U||void 0===U||null===(x=U.currentRunValue)||void 0===x||null===(A=x.traceInfo)||void 0===A?void 0:A.trace_id),ra(c,null===B||void 0===B||null===(w=B.currentRunValue)||void 0===w?void 0:w.requestId,null===B||void 0===B||null===(N=B.currentRunValue)||void 0===N||null===(C=N.traceInfo)||void 0===C?void 0:C.trace_id);const q=Boolean(null===H||void 0===H?void 0:H.currentRunValue)!==Boolean(null===H||void 0===H?void 0:H.otherRunValue),P=o===(null===H||void 0===H||null===(R=H.currentRunValue)||void 0===R?void 0:R.evaluationId)?$:j;return(0,n.isNil)(H)?(0,y.Y)(y.FK,{}):(0,y.FD)("div",{onKeyDown:e=>{"ArrowLeft"===e.key?L():"ArrowRight"===e.key&&V()},children:[(0,y.FD)(fe.d,{componentId:"mlflow.evaluations_review.modal",visible:!0,title:H.currentRunValue?(0,y.Y)(ea,{evaluationResult:H.currentRunValue}):H.otherRunValue?(0,y.Y)(ea,{evaluationResult:H.otherRunValue}):null,onCancel:_,size:"wide",verticalSizing:"maxed_out",css:(0,p.AH)({width:"100% !important",padding:"0 4rem !important",[`& .${Y}-modal-body`]:{flex:1}},""),footer:null,children:[P.isFetching&&(0,y.Y)(g.GenericSkeleton,{label:"Loading trace...",style:{width:"calc(100% - 45px)",height:"calc(100% - 100px)",position:"absolute",paddingRight:500,zIndex:2100,backgroundColor:T.colors.backgroundPrimary}}),q&&!(0,n.isNil)(P.data)?(0,y.Y)("div",{css:(0,p.AH)({height:"100%",marginLeft:-T.spacing.lg,marginRight:-T.spacing.lg},""),children:(0,y.Y)(ua,{traceData:P.data})}):H.currentRunValue&&(0,y.Y)(oa,{experimentId:e,evaluation:H.currentRunValue,otherEvaluation:H.otherRunValue,selectNextEval:V,isNextAvailable:O,css:da,runUuid:s,isReadOnly:!z.enableRunEvaluationWriteFeatures,runDisplayName:i,compareToRunDisplayName:l,exportToEvalsInstanceEnabled:r,assessmentInfos:d,traceQueryResult:$,compareToTraceQueryResult:j,saveAssessmentsQuery:u})]}),(0,y.Y)("div",{css:(0,p.AH)({display:"flex",justifyContent:"flex-end",position:"fixed",top:"50%",left:0,zIndex:2e3,opacity:".75",width:"5rem","&:hover":{opacity:"1.0"}},""),children:(0,y.Y)("div",{css:(0,p.AH)({backgroundColor:T.colors.backgroundPrimary,borderRadius:T.legacyBorders.borderRadiusMd,marginRight:T.spacing.sm},""),children:(0,y.Y)(v.B,{disabled:!D,componentId:"mlflow.evaluations_review.modal.previous_eval",icon:(0,y.Y)(v.o,{}),onClick:()=>L()})})}),(0,y.Y)("div",{css:(0,p.AH)({display:"flex",justifyContent:"flex-start",position:"fixed",top:"50%",right:0,zIndex:2e3,width:"5rem",opacity:".75","&:hover":{opacity:"1.0"}},""),children:(0,y.Y)("div",{css:(0,p.AH)({backgroundColor:T.colors.backgroundPrimary,borderRadius:T.legacyBorders.borderRadiusMd,marginLeft:T.spacing.sm},""),children:(0,y.Y)(v.B,{disabled:!O,componentId:"mlflow.evaluations_review.modal.next_eval",icon:(0,y.Y)(v.q,{}),onClick:()=>V()})})})]})})),ua=({traceData:e})=>(0,y.Y)(Ie.ModelTraceExplorer,{modelTrace:e}),ma=ie.memo((({experimentId:e,selectedColumns:s,evaluations:t,selectedEvaluationId:o,selectedAssessmentInfos:a,assessmentInfos:i,assessmentFilters:l,tableSort:r,onChangeEvaluationId:d,getRunColor:c,runUuid:u,runDisplayName:m,compareToRunUuid:h,compareToRunDisplayName:S,rowSelection:b,setRowSelection:I,exportToEvalsInstanceEnabled:E=!1,getTrace:x,toggleAssessmentFilter:A,saveAssessmentsQuery:w,disableAssessmentTooltips:N,onTraceTagsEdit:C,enableRowSelection:R,enableGrouping:T=!1,allColumns:Y})=>{const _=(0,f.tz)(),{theme:M}=(0,v.u)(),[k,D]=(0,ie.useState)(!1),F=!(0,n.isNil)(h),O=s.filter((e=>e.type===xe.INPUT)),{columns:L}=(0,ie.useMemo)((()=>{if(!T){const t=s.map((s=>Dn(s,{evaluationInputs:O,isComparing:F,theme:M,intl:_,experimentId:e,onChangeEvaluationId:d,onTraceTagsEdit:C})));return{columns:ys(t,s)}}const t=new Map;hs(s,F).forEach((s=>{const n=s.group||Ae.INFO;t.has(n)||t.set(n,[]),(t.get(n)||[]).push(Dn(s,{evaluationInputs:O,isComparing:F,theme:M,intl:_,experimentId:e,onChangeEvaluationId:d,onTraceTagsEdit:C}))}));const n=Array.from(t.entries()).map((([e,s])=>({header:ro,meta:{groupId:e,visibleCount:s.length,totalCount:Y.filter((s=>s.group===e)).length,enableGrouping:T},id:`${e}-group`,columns:s})));return{columns:n}}),[s,O,F,d,M,_,e,C,T,Y]),{setTable:V,setSelectedRowIds:H}=ie.useContext(he),U=(0,Es.N4)({data:t,columns:L,getCoreRowModel:(0,xs.HT)(),getSortedRowModel:(0,xs.h5)(),enableColumnResizing:!0,columnResizeMode:"onChange",enableRowSelection:R,enableMultiSort:!0,state:{rowSelection:b},meta:{getRunColor:c},onRowSelectionChange:I,getRowId:e=>{return(null===(s=e.currentRunValue)||void 0===s?void 0:s.evaluationId)||"";var s}}),B=void 0!==b&&U.getIsAllRowsSelected(),z=U.getIsSomeRowsSelected();(0,ie.useEffect)((()=>(V(U),()=>V(void 0))),[U,V]),(0,ie.useEffect)((()=>{R&&H(U.getSelectedRowModel().rows.map((e=>e.id)))}),[U,b,H,R]);const $=_.formatMessage({id:"+mAXPc",defaultMessage:"No traces found. Try clearing your active filters to see more traces."}),j=(0,y.Y)(g.Empty,{description:$,image:(0,y.Y)(ve.S,{})});(0,ie.useEffect)((()=>{r&&!ze.includes(r.key)?r.key===Ce?U.setSorting([{id:r.key,desc:!r.asc},{id:Ye,desc:!1}]):U.setSorting([{id:r.key,desc:!r.asc}]):U.setSorting([])}),[r,U]);const{rows:q}=U.getRowModel(),P=ie.useRef(null),K=(0,As.Te)({count:q.length,estimateSize:()=>120,getScrollElement:()=>P.current,measureElement:"undefined"!==typeof window&&-1===navigator.userAgent.indexOf("Firefox")?e=>null===e||void 0===e?void 0:e.getBoundingClientRect().height:void 0,overscan:10}),G=K.getVirtualItems(),W=U.getHeaderGroups(),{columnSizeVars:Q,tableWidth:J}=(0,ie.useMemo)((()=>{const e={};W.forEach((s=>{s.headers.forEach((s=>{e[`--header-${Ht(s.column.id)}-size`]=s.getSize()+"px"}))}));let s=0;if(q.length>0){q[0].getVisibleCells().forEach((t=>{e[`--col-${Ht(t.column.id)}-size`]=t.column.getSize()+"px",s+=t.column.getSize()}))}return{columnSizeVars:e,tableWidth:s+"px"}}),[W,q]),X=(0,ie.useMemo)((()=>{const e={};for(const s of a)e[s.name]=Tt(s,t,l);return e}),[a,t,l]);return(0,y.FD)(y.FK,{children:[(0,y.Y)("div",{className:"container",ref:P,css:(0,p.AH)({height:"100%",position:"relative",overflowY:"auto",overflowX:"auto",minWidth:"100%",width:J},""),children:(0,y.FD)(g.Table,{css:(0,p.AH)({width:"100%",...Q},""),empty:0===U.getRowModel().rows.length?j:void 0,someRowsSelected:R?z||B:void 0,children:[(0,y.Y)(lo,{headerGroups:U.getHeaderGroups(),enableRowSelection:R,enableGrouping:T,selectedAssessmentInfos:a,assessmentNameToAggregates:X,assessmentFilters:l,toggleAssessmentFilter:A,runDisplayName:m,compareToRunUuid:h,compareToRunDisplayName:S,disableAssessmentTooltips:N,collapsedHeader:k,setCollapsedHeader:D,isComparing:F,allRowSelected:B,someRowSelected:z,toggleAllRowsSelectedHandler:U.getToggleAllRowsSelectedHandler,setColumnSizing:U.setColumnSizing}),(0,y.Y)(On,{rows:q,isComparing:F,enableRowSelection:R,virtualItems:G,virtualizerTotalSize:K.getTotalSize(),virtualizerMeasureElement:K.measureElement,rowSelectionState:b,selectedColumns:s})]})}),o&&(0,y.Y)(ca,{experimentId:e,runUuid:u,runDisplayName:m,otherRunDisplayName:S,evaluations:q.map((e=>e.original)),selectedEvaluationId:o,onChangeEvaluationId:d,exportToEvalsInstanceEnabled:E,assessmentInfos:i,getTrace:x,saveAssessmentsQuery:w})]})}));function pa({searchQuery:e,setSearchQuery:s}){const t=(0,f.tz)(),[n,o]=(0,ie.useState)(e);return(0,ie.useEffect)((()=>{o(e)}),[e]),(0,ie.useEffect)((()=>{const e=setTimeout((()=>{s(n)}),400);return()=>clearTimeout(e)}),[n,s]),(0,y.Y)(g.TableFilterInput,{componentId:"mlflow.evaluations_review.table_ui.filter_input",placeholder:t.formatMessage({id:"zNWzj6",defaultMessage:"Search traces by request"}),value:n,onChange:e=>o(e.target.value)})}const ga="mlflow.evaluations_review.table_ui.compare_to_run_combobox",va="mlflow.evaluations_review.table_ui.filter_form",fa="mlflow.evaluations_review.table_ui.column_filter_combobox",ha=({columns:e,selectedColumns:s,setSelectedColumns:t,setSelectedColumnsWithHiddenColumns:n})=>{const o=(0,f.tz)(),{theme:a}=(0,v.u)();return(0,y.FD)(g.DialogCombobox,{componentId:fa,label:"Columns",multiSelect:!0,children:[(0,y.Y)(g.DialogComboboxCustomButtonTriggerWrapper,{children:(0,y.Y)(v.B,{endIcon:(0,y.Y)(g.ChevronDownIcon,{}),componentId:"mlflow.evaluations_review.table_ui.filter_button",children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:a.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.ColumnsIcon,{}),o.formatMessage({id:"wjOGl2",defaultMessage:"Columns"})]})})}),(0,y.Y)(g.DialogComboboxContent,{children:(0,y.Y)(g.DialogComboboxOptionList,{children:e.map((e=>(0,y.Y)(g.DialogComboboxOptionListCheckboxItem,{value:e.label,checked:s.some((s=>s.id===e.id)),onChange:()=>(e=>{if(n)return n([e]);t&&t((s=>s.some((s=>s.id===e.id))?s.filter((s=>s.id!==e.id)):[...s,e]))})(e)},e.id)))})})]})};var ya={name:"9q39xd",styles:"min-width:32px"};const Sa=ie.memo((({tableSort:e,columns:s=[],onChange:t,enableGrouping:n,isMetadataLoading:o,metadataError:a})=>{const i=(0,f.tz)(),{theme:l}=(0,v.u)(),[r,d]=(0,ie.useState)(!1),c=(0,ie.useMemo)((()=>{const e=[],t=i.formatMessage({id:"Kkuttk",defaultMessage:"Assessment"});if(n){const t=hs(s);for(const s of t)if(s.type===xe.ASSESSMENT){const t=s.assessmentInfo.displayName;e.push({label:t,key:s.id,type:xe.ASSESSMENT,group:Ae.ASSESSMENT})}else if(s.type===xe.INPUT)e.push({label:s.label,key:s.id,type:xe.INPUT,group:Ae.INFO});else if(s.type===xe.TRACE_INFO){const t=s.id===Ce?i.formatMessage({id:"mrGpVQ",defaultMessage:"Session time"}):s.label;Be.includes(s.id)&&e.push({label:t,key:s.id,type:xe.TRACE_INFO,group:Ae.INFO})}return e}for(const n of s.filter((e=>e.type===xe.ASSESSMENT))){const s=n.assessmentInfo.displayName;e.push({label:`${t} \ufe65 ${s}`,key:n.id,type:xe.ASSESSMENT})}const o=i.formatMessage({id:"2plDKs",defaultMessage:"Input"});for(const n of s.filter((e=>e.type===xe.INPUT)))e.push({label:`${o} \ufe65 ${n.label}`,key:n.id,type:xe.INPUT});for(const n of s.filter((e=>(e.type===xe.TRACE_INFO||e.type===xe.INTERNAL_MONITOR_REQUEST_TIME)&&Be.includes(e.id))))e.push({label:n.label,key:n.id,type:xe.TRACE_INFO});return e}),[s,i,n]),u=(0,ie.useMemo)((()=>{const s=c.find((s=>s.key===(null===e||void 0===e?void 0:e.key)));let t=null===s||void 0===s?void 0:s.label;if(!t){var n;const s=null===e||void 0===e||null===(n=e.key)||void 0===n?void 0:n.match(/^.+\.`(.+)`$/);s&&(t=s[1])}const o=i.formatMessage({id:"sKaamx",defaultMessage:"Sort"});return t?`${o}: ${t}`:o}),[c,i,e]);return(0,y.FD)(g.DropdownMenu.Root,{open:r,onOpenChange:d,modal:!1,children:[(0,y.Y)(g.DropdownMenu.Trigger,{"data-testid":"sort-select-dropdown",asChild:!0,children:(0,y.Y)(v.B,{componentId:"mlflow.experiment_page.sort_select_v2.toggle",icon:e?e.asc?(0,y.Y)(g.SortAscendingIcon,{}):(0,y.Y)(g.SortDescendingIcon,{}):(0,y.Y)(g.SortUnsortedIcon,{}),css:ya,"aria-label":u,endIcon:(0,y.Y)(g.ChevronDownIcon,{}),children:u})}),(0,y.Y)(g.DropdownMenu.Content,{minWidth:250,children:a?(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",justifyContent:"center",gap:l.spacing.xs,padding:`${l.spacing.md}px`,color:l.colors.textValidationDanger},""),"data-testid":"filter-dropdown-error",children:[(0,y.Y)(v.l,{}),(0,y.Y)(f.sA,{id:"dJaboT",defaultMessage:"Fetching traces failed"})]}):o?(0,y.Y)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",justifyContent:"center",gap:l.spacing.xs,padding:`${l.spacing.lg}px`,color:l.colors.textSecondary},""),"data-testid":"sort-dropdown-loading",children:(0,y.Y)(v.S,{size:"small"})}):n?(0,y.Y)(Ia,{sortOptions:c,tableSort:e,onOptionSelected:(e,s)=>{t(e,s),d(!1)}}):(0,y.Y)(Aa,{sortOptions:c,tableSort:e,onOptionSelected:(e,s)=>{t(e,s),d(!1)}})})]})}));var ba={name:"1j5vobt",styles:"display:flex;align-items:center;gap:4px"};const Ia=({sortOptions:e,tableSort:s,onOptionSelected:t})=>{const{theme:n}=(0,v.u)(),o=(0,ie.useRef)(null),a=(0,ie.useRef)(null),[i,l]=(0,ie.useState)(""),r=(0,ie.useMemo)((()=>e.filter((e=>e.label.toLowerCase().includes(i.toLowerCase())))),[e,i]),d=(0,ie.useMemo)((()=>{const e={};return r.forEach((s=>{var t;const n=null!==(t=s.group)&&void 0!==t?t:Ae.INFO;e[n]||(e[n]=[]),e[n].push(s)})),e}),[r]),c=(0,ie.useCallback)((n=>{var o;const a=e.find((e=>e.key===n));a&&t(a,null===(o=null===s||void 0===s?void 0:s.asc)||void 0===o||o)}),[t,e,null===s||void 0===s?void 0:s.asc]),u=(0,ie.useCallback)((n=>{var o;const a=null!==(o=e.find((e=>e.key===(null===s||void 0===s?void 0:s.key))))&&void 0!==o?o:e[0];t(a,n)}),[t,e,null===s||void 0===s?void 0:s.key]);return(0,ie.useEffect)((()=>{requestAnimationFrame((()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}))}),[]),(0,y.FD)(y.FK,{children:[(0,y.FD)("div",{css:(0,p.AH)({padding:`${n.spacing.sm}px ${n.spacing.lg/2}px`,display:"flex",gap:n.spacing.xs},""),children:[(0,y.Y)(ve.I,{ref:o,componentId:"mlflow.genai_traces_table.sort_dropdown.search",prefix:(0,y.Y)(ve.S,{}),placeholder:"Search",value:i,onChange:e=>l(e.target.value),type:"search",onKeyDown:e=>{var s;"ArrowDown"!==e.key&&"Tab"!==e.key||(null===(s=a.current)||void 0===s||s.focus(),e.preventDefault())}}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:n.spacing.xs},""),children:[(0,y.Y)(g.ToggleButton,{pressed:!1===(null===s||void 0===s?void 0:s.asc),icon:(0,y.Y)(g.ArrowDownIcon,{}),componentId:"mlflow.genai_traces_table.sort_dropdown.sort_desc",onClick:()=>u(!1),"aria-label":"Sort descending"}),(0,y.Y)(g.ToggleButton,{pressed:!0===(null===s||void 0===s?void 0:s.asc),icon:(0,y.Y)(g.ArrowUpIcon,{}),componentId:"mlflow.experiment_page.sort_dropdown.sort_asc",onClick:()=>u(!0),"aria-label":"Sort ascending"})]})]}),(0,y.FD)("div",{css:(0,p.AH)({maxHeight:400,overflowY:"auto",padding:`0 ${n.spacing.sm}px`},""),children:[Object.entries(d).map((([e,t],n)=>(0,y.Y)(ie.Fragment,{children:(0,y.FD)(g.DropdownMenu.Group,{children:[(0,y.Y)(g.DropdownMenu.Label,{children:e===Ae.INFO?"Attributes":we[e]}),t.map(((e,t)=>(0,y.FD)(g.DropdownMenu.CheckboxItem,{componentId:"mlflow.genai_traces_table.sort_dropdown.sort_option",checked:e.key===(null===s||void 0===s?void 0:s.key),onClick:()=>c(e.key),ref:0===n&&0===t?a:void 0,"data-testid":`sort-select-${e.label}`,children:[(0,y.Y)(g.DropdownMenu.ItemIndicator,{}),(0,y.Y)("span",{css:ba,children:e.label})]},e.key)))]})},e))),0===r.length&&(0,y.Y)(g.DropdownMenu.Item,{disabled:!0,componentId:"mlflow.genai_traces_table.sort_dropdown.no_results",children:(0,y.Y)(f.sA,{id:"WpNCQl",defaultMessage:"No results"})})]})]})};var Ea={name:"1kxd8xu",styles:"max-height:400px;overflow-y:auto"},xa={name:"1j5vobt",styles:"display:flex;align-items:center;gap:4px"};const Aa=({sortOptions:e,tableSort:s,onOptionSelected:t})=>{const{theme:n}=(0,v.u)(),o=(0,ie.useRef)(null),[a,i]=(0,ie.useState)(""),l=(0,ie.useRef)(null),r=(0,ie.useMemo)((()=>e.filter((e=>e.label.toLowerCase().includes(a.toLowerCase())))),[e,a]),d=(0,ie.useCallback)((n=>{const o=e.find((e=>e.key===n));t(o,(null===s||void 0===s?void 0:s.asc)||!0)}),[t,s,e]),c=(0,ie.useCallback)((n=>{const o=e.find((e=>e.key===(null===s||void 0===s?void 0:s.key)));t(o||e[0],n)}),[t,e,s]);return(0,ie.useEffect)((()=>{requestAnimationFrame((()=>{var e;null===(e=o.current)||void 0===e||e.focus()}))}),[]),(0,y.FD)(y.FK,{children:[(0,y.FD)("div",{css:(0,p.AH)({padding:`${n.spacing.sm}px ${n.spacing.lg/2}px ${n.spacing.sm}px`,width:"100%",display:"flex",gap:n.spacing.xs},""),children:[(0,y.Y)(ve.I,{componentId:"mlflow.experiment_page.sort_dropdown.search",prefix:(0,y.Y)(ve.S,{}),value:a,type:"search",onChange:e=>i(e.target.value),placeholder:"Search",autoFocus:!0,ref:o,onKeyDown:e=>{var s;"ArrowDown"!==e.key&&"Tab"!==e.key?e.stopPropagation():null===(s=l.current)||void 0===s||s.focus()}}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:n.spacing.xs},""),children:[(0,y.Y)(g.ToggleButton,{pressed:!1===(null===s||void 0===s?void 0:s.asc),icon:(0,y.Y)(g.ArrowDownIcon,{}),componentId:"mlflow.experiment_page.sort_dropdown.sort_desc",onClick:()=>c(!1),"aria-label":"Sort descending","data-testid":"sort-select-desc"}),(0,y.Y)(g.ToggleButton,{pressed:!0===(null===s||void 0===s?void 0:s.asc),icon:(0,y.Y)(g.ArrowUpIcon,{}),componentId:"mlflow.experiment_page.sort_dropdown.sort_asc",onClick:()=>c(!0),"aria-label":"Sort ascending","data-testid":"sort-select-asc"})]})]}),(0,y.FD)(g.DropdownMenu.Group,{css:Ea,children:[r.map(((e,t)=>(0,y.FD)(g.DropdownMenu.CheckboxItem,{componentId:"mlflow.experiment_page.sort_dropdown.sort_option",onClick:()=>d(e.key),checked:e.key===(null===s||void 0===s?void 0:s.key),"data-testid":`sort-select-${e.label}`,ref:0===t?l:void 0,children:[(0,y.Y)(g.DropdownMenu.ItemIndicator,{}),(0,y.Y)("span",{css:xa,children:e.label})]},e.key))),!r.length&&(0,y.Y)(g.DropdownMenu.Item,{componentId:"codegen_mlflow_app_src_experiment-tracking_components_experiment-page_components_runs_experimentviewrunssortselectorv2.tsx_151",disabled:!0,children:(0,y.Y)(f.sA,{id:"EkUD0b",defaultMessage:"No results"})})]})]})},wa=({backgroundColor:e,icon:s,children:t})=>{const{theme:n}=(0,v.u)();return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"4px 8px",gap:n.spacing.xs,borderRadius:n.borders.borderRadiusMd,color:n.colors.textSecondary,backgroundColor:e||n.colors.backgroundSecondary,fontSize:n.typography.fontSizeSm},""),children:[s||null,t?(0,y.Y)("span",{children:t}):null]})},Na="selectedEvaluationId",Ca=()=>{var e;const[s,t]=re(),n=null!==(e=s.get(Na))&&void 0!==e?e:void 0,o=(0,ie.useCallback)((e=>{t((s=>void 0===e?(s.delete(Na),s):(s.set(Na,e),s)))}),[t]);return[n,o]},Ra="searchQuery";function Ta(e,s,t,o,a){return e.filter((e=>function(e,s,t,o){const a=null===e||void 0===e?void 0:e.currentRunValue,i=null===e||void 0===e?void 0:e.otherRunValue;let l=!0;for(const m of s){var r,d;const e=m.assessmentName,s=m.filterValue,p=m.run,g=p===t?a:p===o?i:void 0;if(void 0===g)continue;const v=e===b.OVERALL_ASSESSMENT?null===(r=g.overallAssessments)||void 0===r?void 0:r[0]:null===(d=g.responseAssessmentsByName[e])||void 0===d?void 0:d[0];if("rca"===m.filterType){var c,u;const s=(null===g||void 0===g||null===(c=g.overallAssessments[0])||void 0===c||null===(u=c.rootCauseAssessment)||void 0===u?void 0:u.assessmentName)===e;l=l&&s}else{let e=v?L(v):void 0;(0,n.isNil)(e)&&(e=void 0),l=l&&e===s}}return l}(e,s,o,a))).filter((e=>{var s,o;if((0,n.isNil)(t)||""===t)return!0;const a=t.toLowerCase(),i=Object.values((null===(s=e.currentRunValue)||void 0===s?void 0:s.inputs)||{}).some((e=>JSON.stringify(e).toLowerCase().includes(a))),l=(null===(o=e.currentRunValue)||void 0===o?void 0:o.inputsId.toLowerCase())===a;return i||l}))}var Ya={name:"1ykowef",styles:"margin-bottom:0"},_a={name:"f3vz0n",styles:"font-weight:500"},Ma={name:"k4cowf",styles:"display:flex;flex:1;overflow-y:hidden"};const ka=e=>{const{totalRowCount:s,sampledInfo:t}=e,o=(0,f.tz)();return t?t.maxAllowedCount?s>=t.maxAllowedCount?(0,y.Y)(fe.T,{componentId:"mlflow.experiment_list_view.max_traces.tooltip",content:o.formatMessage({id:"BpAyCF",defaultMessage:"Only the top {evalResultsCount} results are shown"},{evalResultsCount:s}),children:(0,y.Y)(v.W,{color:"warning"})}):null:t.logCountLoading||(0,n.isNil)(t.sampledCount)||(0,n.isNil)(t.totalCount)?(0,y.Y)(v.S,{}):(0,y.Y)(wa,{children:(0,y.FD)(fe.T,{componentId:"mlflow.experiment_list_view.sampled_badge.tooltip",content:o.formatMessage({id:"TannO5",defaultMessage:"Retrieved {sampledCount} out of {totalCount} total logs ({percentage}%)"},{sampledCount:t.sampledCount,totalCount:t.totalCount,percentage:Ft(t.sampledCount/t.totalCount)}),children:["Sampled ",Ft(t.sampledCount/t.totalCount),"%"]})}):null},Da="__any_value__";var Fa={name:"1fttcpj",styles:"display:flex;flex-direction:column"};const Oa=ie.memo((({assessmentName:e,assessmentInfo:s,assessmentLabel:t,assessmentFilter:n,updateAssessmentFilter:o,removeAssessmentFilter:a,run:i})=>{const l=(0,f.tz)(),{theme:r}=(0,v.u)(),d=n?pe(n.filterValue):Da;return(0,y.Y)("div",{css:Fa,children:(0,y.FD)(g.SegmentedControlGroup,{name:"size-story",value:d,onChange:t=>{if(t.target.value===Da)return void a(e,i);const n=me(s,t.target.value);o(e,n,i)},size:"middle",componentId:`mlflow.evaluations_review.table_ui.filter_control_${e}`,children:[(0,y.Y)(g.SegmentedControlButton,{value:Da,children:(0,y.Y)("div",{css:(0,p.AH)({display:"flex",gap:r.spacing.sm,alignItems:"center",color:r.colors.textPrimary},""),children:l.formatMessage({id:"Hq/vjk",defaultMessage:"All"})})}),Array.from(s.uniqueValues.values()).map((e=>{const{content:t,icon:n}=x(l,r,s,e);return(0,y.Y)(g.SegmentedControlButton,{value:pe(e),children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:r.spacing.sm,alignItems:"center",color:r.colors.textPrimary},""),children:[t,n]})},pe(e))}))]})})})),La=function({experimentId:e,currentEvaluationResults:s,compareToEvaluationResults:t,currentRunDisplayName:n,runUuid:o,compareToRunUuid:a,compareToRunDisplayName:i,compareToRunLoading:l,sampledInfo:r,exportToEvalsInstanceEnabled:d=!1,getTrace:c,saveAssessmentsQuery:u,enableRunEvaluationWriteFeatures:m,defaultSortOption:h,disableAssessmentTooltips:S,onTraceTagsEdit:I,traceActions:E,initialSelectedColumns:x}){const{theme:A}=(0,v.u)(),w=(0,f.tz)(),N=ls(s),C=ls(t||[]),R=(0,ie.useMemo)((()=>{const e=d?{exportToEvals:{exportToEvalsInstanceEnabled:d,getTrace:c}}:{};return{...E,...e}}),[E,d,c]),T=Object.keys(R).length>0,[Y,_]=Ca(),M=(0,ie.useMemo)((()=>Is(N,C)),[N,C]),[k,D]=(()=>{var e;const[s,t]=re();return[null!==(e=s.get(Ra))&&void 0!==e?e:"",(0,ie.useCallback)((e=>{t((s=>void 0===e||""===e?(s.delete(Ra),s):(s.set(Ra,e),s)))}),[t])]})(),F=(0,ie.useMemo)((()=>xt(w,N,C)),[w,N,C]),O=qe(w,N,F,o),[L,V]=(e=>{const[s,t]=re();return[(0,ie.useMemo)((()=>{var t;return(null!==(t=s.getAll(ce))&&void 0!==t?t:[]).reduce(((s,t)=>{const[n,o,a,i]=t.split("::"),l=null===e||void 0===e?void 0:e.find((e=>e.name===o));if(l){const e=me(l,a);s.push({run:n,assessmentName:o,filterValue:e,filterType:""===i?void 0:i})}return s}),[])}),[e,s]),(0,ie.useCallback)(((e,s=!1)=>{t((s=>(s.delete(ce),e&&e.forEach((e=>{s.append(ce,[e.run,e.assessmentName,pe(e.filterValue),e.filterType].join("::"))})),s)),{replace:s})}),[t])]})(O.map((e=>e.assessmentInfo)).filter((e=>void 0!==e))),H=(0,ie.useMemo)((()=>""===k&&0===L.length?M:Ta(M,L,k,n,i)),[M,k,L,n,i]),[U,B]=(0,ie.useState)(O),z=(0,ie.useMemo)((()=>At(U.filter((e=>e.type===xe.ASSESSMENT)).map((e=>e.assessmentInfo)))),[U]),$=O.find((e=>e.type===xe.ASSESSMENT&&e.id===b.OVERALL_ASSESSMENT)),j=h||($?{key:$.id,type:xe.ASSESSMENT,asc:!0}:void 0),[q,P]=(0,ie.useState)(j),K=(0,ie.useCallback)(((e,s)=>L.find((t=>t.assessmentName===e&&t.run===s))),[L]),G=(0,ie.useCallback)(((e,s)=>{V(L.filter((t=>t.assessmentName!==e||t.run!==s)))}),[L,V]),W=(0,ie.useCallback)(((e,s,t,n)=>{const o=L.find((s=>s.assessmentName===e&&s.run===t));V(void 0===o?[...L,{assessmentName:e,filterValue:s,filterType:n,run:t}]:L.map((t=>t.assessmentName===e?{...t,filterValue:s,filterType:n}:t)))}),[L,V]),Q=(0,ie.useCallback)(((e,s,t,n)=>{const o=L.find((s=>s.assessmentName===e&&s.run===t));void 0===o?V([...L,{assessmentName:e,filterValue:s,filterType:n,run:t}]):o.filterValue===s&&o.filterType===n?V(L.filter((s=>s.assessmentName!==e||s.run!==t))):V(L.map((o=>o.assessmentName===e&&o.run===t?{assessmentName:e,filterValue:s,filterType:n,run:t}:o)))}),[L,V]),J=(0,ie.useCallback)((()=>{V([])}),[V]),X=L.length>0,[Z,ee]=(0,ie.useState)({}),se=(0,ie.useMemo)((()=>{const e=Object.keys(Z).filter((e=>Z[e]));return H.filter((s=>s.currentRunValue&&e.includes(s.currentRunValue.evaluationId))).map((e=>e.currentRunValue)).filter((e=>void 0!==e))}),[Z,H]),te={enableRunEvaluationWriteFeatures:m},ne=N.length;return l?(0,y.Y)(g.LegacySkeleton,{}):(0,y.Y)(la,{config:te,children:(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"row",gap:A.spacing.lg,overflow:"hidden",height:"100%"},""),children:(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:A.spacing.xs,overflow:"hidden",flexGrow:1},""),children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flex:1,flexDirection:"column",gap:A.spacing.xs,overflow:"hidden"},""),children:[(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",alignItems:"flex-end",justifyContent:"space-between",padding:`${A.spacing.xs}px 0px`},""),children:[(0,y.FD)(g.TableFilterLayout,{css:Ya,children:[(0,y.Y)(pa,{searchQuery:k,setSearchQuery:D}),(0,y.FD)(g.DialogCombobox,{componentId:va,label:"Filters",value:Array.from(L).map((e=>e.assessmentName)),multiSelect:!0,children:[(0,y.Y)(g.DialogComboboxCustomButtonTriggerWrapper,{children:(0,y.Y)(v.B,{endIcon:(0,y.Y)(g.ChevronDownIcon,{}),componentId:"mlflow.evaluations_review.table_ui.filter_button",css:(0,p.AH)({border:X?`1px solid ${A.colors.actionDefaultBorderFocus} !important`:"",backgroundColor:X?`${A.colors.actionDefaultBackgroundHover} !important`:""},""),children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:A.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.FilterIcon,{}),w.formatMessage({id:"J961B2",defaultMessage:"Filters{numFilters}"},{numFilters:X?` (${L.length})`:""}),L.length>0&&(0,y.Y)(ve.X,{css:(0,p.AH)({fontSize:12,cursor:"pointer",color:A.colors.grey400,"&:hover":{color:A.colors.grey600}},""),onClick:e=>{J(),e.stopPropagation(),e.preventDefault()}})]})})}),(0,y.Y)(g.DialogComboboxContent,{children:(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",padding:`${A.spacing.sm}px ${A.spacing.sm}px`,gap:A.spacing.md},""),children:z.filter((e=>"numeric"!==e.dtype)).map((e=>(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:A.spacing.sm},""),children:[(0,y.Y)("div",{css:_a,children:e.displayName}),n&&(0,y.Y)(Oa,{assessmentLabel:e.displayName,assessmentName:e.name,assessmentInfo:e,assessmentFilter:K(e.name,n),updateAssessmentFilter:W,removeAssessmentFilter:G,run:n}),a&&i&&(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:A.spacing.xs},""),children:[(0,y.Y)(v.T.Hint,{children:i}),(0,y.Y)(Oa,{assessmentLabel:e.displayName,assessmentName:e.name,assessmentInfo:e,assessmentFilter:K(e.name,i),updateAssessmentFilter:W,removeAssessmentFilter:G,run:i})]})]},e.name)))})})]}),(0,y.Y)(Sa,{tableSort:q,columns:O,onChange:(e,s)=>{P({key:e.key,type:e.type,asc:s})}}),(0,y.Y)(ha,{columns:O,selectedColumns:U,setSelectedColumns:B}),(0,y.Y)(ds,{experimentId:e,selectedTraces:se,setRowSelection:ee,traceActions:R,traceInfos:void 0})]}),(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:A.spacing.sm},""),children:[(0,y.Y)(ka,{totalRowCount:ne,sampledInfo:r}),(0,y.Y)(v.T.Hint,{children:w.formatMessage({id:"FnOQ44",defaultMessage:"{numFilteredEvals} of {numEvals}"},{numEvals:M.length,numFilteredEvals:H.length})})]})]}),(0,y.Y)("div",{css:(0,p.AH)({display:"flex",gap:A.spacing.md,width:"100%",flex:1,overflowY:"hidden"},""),children:(0,y.Y)("div",{css:Ma,children:(0,y.Y)(ma,{experimentId:e,selectedColumns:U,allColumns:O,evaluations:H,selectedEvaluationId:Y,selectedAssessmentInfos:z,assessmentInfos:F,assessmentFilters:L,onChangeEvaluationId:_,tableSort:q,runUuid:o,compareToRunUuid:a,runDisplayName:n,compareToRunDisplayName:i,enableRowSelection:T,rowSelection:T?Z:void 0,setRowSelection:T?ee:void 0,exportToEvalsInstanceEnabled:d,getTrace:c,toggleAssessmentFilter:Q,saveAssessmentsQuery:u,disableAssessmentTooltips:S,onTraceTagsEdit:I})})})]})})})})},Va=async({queryKey:[,{experimentId:e}]})=>ks((0,Ys.we)("ajax-api/2.0/mlflow/runs/search"),"POST",{experiment_ids:[e]}),Ha=(e,s=!1)=>{var t;const{data:n,error:o,isLoading:a,isFetching:i}=(0,ws.I)((e=>["EXPERIMENT_RUNS_FOR_TRACE_COMPARISON",{experimentId:e}])(e),{queryFn:Va,enabled:!s,cacheTime:1/0,staleTime:1/0});return{requestError:o,isLoading:a,isFetching:i,runInfos:null===n||void 0===n||null===(t=n.runs)||void 0===t?void 0:t.map((e=>{var s,t;return{runUuid:null===(s=e.info)||void 0===s?void 0:s.run_uuid,runName:null===(t=e.info)||void 0===t?void 0:t.run_name}}))}};var Ua=t(77735);const Ba=(e,s)=>["GET_TRACE_EVALUATION_ARTIFACT",{runUuid:e,artifactFile:s}],za=async({queryKey:[,{runUuid:e,artifactFile:s}]})=>{const t=new URLSearchParams({run_uuid:e,path:s}),n=[(0,Ys.we)("ajax-api/2.0/mlflow/get-artifact"),t].join("?");return ks(n,"GET").then((e=>({...e,filename:s})))},$a=[o.Assessments,o.Evaluations,o.Metrics],ja=({runUuid:e,artifacts:s=$a},{disabled:t=!1}={})=>{const o=!t&&$a.some((e=>s.includes(e))),a=(0,Ua.E)({queries:$a.map((n=>({queryFn:za,queryKey:Ba(e,n),enabled:!t&&s.includes(n),refetchOnWindowFocus:!1})))}),d=a.some((e=>e.isLoading)),c=a.some((e=>e.isFetching)),p=a.find((e=>e.error)),[g,v,f]=a.map((e=>e.data)),h=(0,ie.useMemo)((()=>m(g)),[g]),y=(0,ie.useMemo)((()=>m(v)),[v]),S=(0,ie.useMemo)((()=>m(f)),[f]),b=(0,ie.useMemo)((()=>{if(y)return function(e,s,t){const o=(s||[]).reduce(((e,s)=>{e[s.evaluation_id]||(e[s.evaluation_id]={});const{key:t,value:n,timestamp:o}=s;return e[s.evaluation_id][t]={key:t,value:n,timestamp:o},e}),{}),a=(t||[]).reduce(((e,s)=>{var t,o,a,i;return e[s.evaluation_id]||(e[s.evaluation_id]=[]),e[s.evaluation_id].push({booleanValue:(0,n.isNil)(s.boolean_value)?s.boolean_value:Boolean(s.boolean_value),numericValue:(0,n.isNil)(s.numeric_value)?s.numeric_value:Number(s.numeric_value),stringValue:(0,n.isNil)(s.string_value)?s.string_value:String(s.string_value),metadata:s.metadata||{},...s.error_code&&{errorCode:s.error_code},...s.error_message&&{errorMessage:s.error_message},name:s.name,rationale:s.rationale||null,source:{metadata:null!==(t=null===(o=s.source)||void 0===o?void 0:o.metadata)&&void 0!==t?t:{},sourceId:null===(a=s.source)||void 0===a?void 0:a.source_id,sourceType:null===(i=s.source)||void 0===i?void 0:i.source_type},timestamp:s.timestamp}),e}),{});return e.map((e=>{var s,t;const d=(0,n.orderBy)(a[e.evaluation_id]||[],"timestamp","desc"),c=d.filter(l).map((e=>{var s,t,o,a;const i=null===(s=e.rationale)||void 0===s?void 0:s.match(/^\[(.*?)\](.*?)(?:\*\*Suggested Actions\*\*:(.*))?$/s),l=i?null===(t=i[1])||void 0===t?void 0:t.trim():void 0,r=i?null===(o=i[2])||void 0===o?void 0:o.trim():void 0,d=i?null===(a=i[3])||void 0===a?void 0:a.trim():void 0;return e.rationale=r||e.rationale,{...e,rootCauseAssessment:(0,n.isNil)(l)?void 0:{assessmentName:l,suggestedActions:d}}}));0===c.length&&c.push({name:i.OVERALL_ASSESSMENT,rationale:null,source:{sourceType:"AI_JUDGE",sourceId:"UNKNOWN",metadata:{}},metadata:{},numericValue:null,booleanValue:null,stringValue:null,timestamp:null});const m=d.filter(r),p=(0,n.difference)(d,c,m),g=(0,n.groupBy)(p,"name");return Object.keys(g).forEach((e=>{g[e]=(0,n.orderBy)(g[e],"timestamp","desc")})),{evaluationId:e.evaluation_id,requestId:e.request_id,inputs:e.inputs,inputsId:e.inputs_id,outputs:null!==(s=e.outputs)&&void 0!==s?s:{},targets:null!==(t=e.targets)&&void 0!==t?t:{},...e.error_code&&{errorCode:e.error_code},...e.error_message&&{errorMessage:e.error_message},overallAssessments:c,responseAssessmentsByName:g,metrics:o[e.evaluation_id]||{},retrievalChunks:u(e.outputs,e.targets,m)}}))}(y,S,h)}),[h,y,S]);return{requestError:p,isLoading:d&&o,isFetching:c&&o,data:b}},qa="searchMlflowTraces",Pa=({queryClient:e})=>{e.invalidateQueries({queryKey:[qa]})},Ka=({experimentId:e,runUuid:s,timeRange:t,otherRunUuid:n,filterByLoggedModelId:o,loggedModelId:a,sqlWarehouseId:i,disabled:l,networkFilters:r})=>{const d=(0,f.tz)(),c=Qa(s,t,r,o),{data:u,isLoading:m,error:p}=Wa({locations:[{mlflow_experiment:{experiment_id:null!==e&&void 0!==e?e:""},type:"MLFLOW_EXPERIMENT"}],filter:c,loggedModelId:a,sqlWarehouseId:i,enabled:!l}),g=Qa(n,t),{data:v,isLoading:h,error:S}=Wa({locations:[{mlflow_experiment:{experiment_id:null!==e&&void 0!==e?e:""},type:"MLFLOW_EXPERIMENT"}],filter:g,enabled:!l&&Boolean(n),loggedModelId:a,sqlWarehouseId:i}),b=(0,ie.useMemo)((()=>!u||m||p||!u.length?[]:u.map((e=>is(e)))),[u,m,p]),I=(0,ie.useMemo)((()=>{const e=h&&Boolean(n);return!v||e||S||!v.length?[]:v.map((e=>is(e)))}),[v,h,S,n]),E=(0,ie.useMemo)((()=>xt(d,b||[],I||[])),[d,b,I]),x=(0,ie.useMemo)((()=>{const e=new Map;return null===u||void 0===u||u.forEach((s=>{const t=s.trace_metadata;if(t){const n=t[Fs.sourceNameTag];n&&!e.has(n)&&e.set(n,{value:n,renderValue:()=>(0,y.Y)(Gs,{traceInfo:s,isComparing:!1,disableLinks:!0})})}})),{source:Array.from(e.values()).sort(((e,s)=>e.value.localeCompare(s.value)))}}),[u]),A=qe(d,b||[],E,s,void 0,!0);return(0,ie.useMemo)((()=>({assessmentInfos:E,allColumns:A,totalCount:b.length,isLoading:m,error:p,isEmpty:0===b.length,tableFilterOptions:x})),[E,A,m,p,b.length,x])},Ga=({experimentId:e,currentRunDisplayName:s,runUuid:t,timeRange:n,searchQuery:o,filters:a,disabled:i,pageSize:l,limit:r,filterByLoggedModelId:d,tableSort:c,loggedModelId:u,sqlWarehouseId:m})=>{const{networkFilters:p,clientFilters:g}=(e=>e.reduce(((e,s)=>(s.column===Ae.ASSESSMENT?e.clientFilters.push(s):e.networkFilters.push(s),e)),{networkFilters:[],clientFilters:[]}))(a||[]),v=Qa(t,n,p,d),f=Ja(c),{data:h,isLoading:y,isFetching:S,error:b,refetch:I}=Wa({locations:[{mlflow_experiment:{experiment_id:null!==e&&void 0!==e?e:""},type:"MLFLOW_EXPERIMENT"}],filter:v,enabled:!i,pageSize:l,limit:r,orderBy:f,loggedModelId:u,sqlWarehouseId:m}),E=(0,ie.useMemo)((()=>{if(h)return h.map((e=>({currentRunValue:is(e),otherRunValue:void 0})))}),[h]),x=(0,ie.useMemo)((()=>{if(!E)return;if(!s||""===o&&0===(null===g||void 0===g?void 0:g.length))return E.reduce(((e,s)=>{var t;return null!==(t=s.currentRunValue)&&void 0!==t&&t.traceInfo&&e.push(s.currentRunValue.traceInfo),e}),[]);const e=g.map((e=>({assessmentName:e.key||"",filterValue:e.value,run:s})));return Ta(E,e||[],o,s,void 0).reduce(((e,s)=>{var t;return null!==(t=s.currentRunValue)&&void 0!==t&&t.traceInfo&&e.push(s.currentRunValue.traceInfo),e}),[])}),[E,g,o,s]);return i?{data:[],isLoading:!1,isFetching:!1}:{data:x,isLoading:y,isFetching:S,error:b||void 0,refetchMlflowTraces:I}},Wa=({locations:e,filter:s,pageSize:t,limit:o,orderBy:a,loggedModelId:i,sqlWarehouseId:l,enabled:r,...d})=>(0,ws.I)({staleTime:1/0,cacheTime:1/0,enabled:r,queryKey:[qa,{experimentIds:(e||[]).map((e=>{var s;return null===(s=e.mlflow_experiment)||void 0===s?void 0:s.experiment_id})),filter:s,orderBy:a,loggedModelId:i,sqlWarehouseId:l}],queryFn:async({signal:r})=>{let d,c=[];const u=t||500,m=o||be();for(;c.length{const o=[];if(e&&o.push(`request_metadata."mlflow.sourceRun" = '${e}'`),s){const e="attributes.timestamp_ms";s.startTime&&o.push(`${e} > ${s.startTime}`),s.endTime&&o.push(`${e} < ${s.endTime}`)}if(n&&o.push(`request_metadata."mlflow.modelId" = '${n}'`),t&&t.forEach((e=>{switch(e.column){case Ae.TAG:if(e.key){const s="tags",t=e.key.includes(".")||e.key.includes(" ")?`${s}.\`${e.key}\``:`${s}.${e.key}`;o.push(`${t} ${e.operator} '${e.value}'`)}break;case _e:const s="attributes.execution_time_ms";o.push(`${s} ${e.operator} ${e.value}`);break;case Me:const t="attributes.status";o.push(`${t} = '${e.value}'`);break;case Ne:o.push(`request_metadata."mlflow.trace.user" = '${e.value}'`);break;case Le:o.push(`request_metadata."mlflow.sourceRun" = '${e.value}'`);break;case Ve:o.push(`request_metadata."mlflow.modelId" = '${e.value}'`);break;case Fe:o.push(`attributes.name ${e.operator} '${e.value}'`);break;case ke:o.push(`request_metadata."mlflow.source.name" ${e.operator} '${e.value}'`);break;default:e.column.startsWith(Ue)&&o.push(`request_metadata.${We(e.column)} ${e.operator} '${e.value}'`)}})),o.length>0)return o.join(" AND ")},Ja=e=>{if(e)switch(e.key){case _e:return["execution_time "+(e.asc?"ASC":"DESC")];case Ye:return["timestamp "+(e.asc?"ASC":"DESC")];default:return[]}};var Xa=t(13369);var Za={name:"l8l8b8",styles:"white-space:nowrap;overflow:hidden;text-overflow:ellipsis"},ei={name:"l8l8b8",styles:"white-space:nowrap;overflow:hidden;text-overflow:ellipsis"};const si=({id:e,item:s,options:t,query:n,onChange:o,placeholder:a,width:i,canSearchCustomValue:l})=>{const{theme:r}=(0,v.u)(),[d,c]=(0,ie.useState)(""),u=(0,ie.useMemo)((()=>{var e,s;return null!==(e=null!==(s=null===n||void 0===n?void 0:n.data)&&void 0!==s?s:t)&&void 0!==e?e:[]}),[null===n||void 0===n?void 0:n.data,t]),m=(0,ie.useMemo)((()=>u.map((e=>e.value))),[u]);return(0,y.FD)(g.DialogCombobox,{componentId:"mlflow.evaluations_review.table_ui.filter_column",value:null!==s&&void 0!==s&&s.value?[s.value]:[],id:e,children:[(0,y.Y)(g.DialogComboboxTrigger,{withInlineLabel:!1,placeholder:a,renderDisplayedValue:()=>{var e;return null!==(e=null===s||void 0===s?void 0:s.renderValue())&&void 0!==e?e:""},width:i,allowClear:!1}),(0,y.Y)(g.DialogComboboxContent,{width:i,style:{zIndex:r.options.zIndexBase+100},loading:null===n||void 0===n?void 0:n.isLoading,children:(0,y.Y)(g.DialogComboboxOptionList,{children:(0,y.FD)(g.DialogComboboxOptionListSearch,{onSearch:e=>c(e),children:[u.map((e=>(0,y.Y)(g.DialogComboboxOptionListSelectItem,{value:e.value,onChange:o,checked:e.value===(null===s||void 0===s?void 0:s.value),css:Za,children:e.renderValue()},e.value))),l&&d&&!m.includes(d)?(0,y.FD)(g.DialogComboboxOptionListSelectItem,{value:d,onChange:o,checked:d===(null===s||void 0===s?void 0:s.value),css:ei,children:['Use "',d,'"']},d):null]})})})]})};var ti={name:"833hqy",styles:"width:200px"};const ni=({index:e,tableFilter:s,assessmentInfos:t,onChange:n,experimentId:o,tableFilterOptions:a})=>{const i=(0,f.tz)(),{theme:l}=(0,v.u)(),r=`filter-value-${e}`,[d,c]=(0,ie.useState)(s.value),u=(0,ie.useCallback)((()=>{d!==s.value&&n({...s,value:d},e)}),[s,e,n,d]),m=Ha(o),p=(0,ie.useMemo)((()=>{var e,s;return{data:null===(e=m.runInfos)||void 0===e||null===(s=e.filter((e=>e.runUuid&&e.runName)))||void 0===s?void 0:s.map((e=>({value:e.runUuid,renderValue:()=>e.runName}))),isLoading:m.isLoading}}),[m]),g=((e,s=!1)=>{const t=["EXPERIMENT_MODEL_VERSIONS",e],{data:n,isLoading:o,error:a}=(0,ws.I)({queryKey:t,queryFn:async()=>{const s={experiment_ids:[e]};return ks((0,Ys.we)("ajax-api/2.0/mlflow/logged-models/search"),"POST",s)},staleTime:1/0,cacheTime:1/0,enabled:!s,refetchOnMount:!1,retry:!1});return{data:null===n||void 0===n?void 0:n.models,isLoading:o,error:a||void 0}})(o),h=(0,ie.useMemo)((()=>{var e;return{data:null===(e=g.data)||void 0===e?void 0:e.map((e=>({value:e.info.model_id,renderValue:()=>e.info.name}))),isLoading:g.isLoading}}),[g]),S=[{value:"IN_PROGRESS",renderValue:()=>i.formatMessage(Ws.IN_PROGRESS)},{value:"OK",renderValue:()=>i.formatMessage(Ws.OK)},{value:"ERROR",renderValue:()=>i.formatMessage(Ws.ERROR)}];var b,I;if(s.column===Le)return(0,y.Y)(si,{id:r,item:null===(b=p.data)||void 0===b?void 0:b.find((e=>e.value===s.value)),query:p,onChange:t=>{n({...s,value:t},e)},placeholder:"Select run",width:200,canSearchCustomValue:!1});if(s.column===Ve)return(0,y.Y)(si,{id:r,item:null===(I=h.data)||void 0===I?void 0:I.find((e=>e.value===s.value)),query:h,onChange:t=>{n({...s,value:t},e)},placeholder:"Select version",width:200,canSearchCustomValue:!1});if(s.column===Ae.ASSESSMENT){const o=t.find((e=>e.name===s.key));if(o&&"numeric"!==o.dtype&&"unknown"!==o.dtype){const t=Array.from(o.uniqueValues.values()).map((e=>({value:pe(e),renderValue:()=>x(i,l,o,e).content})));return(0,y.Y)(si,{id:r,item:t.find((e=>e.value===pe(s.value))),options:t,onChange:t=>{n({...s,value:ue(t)},e)},placeholder:"Select",width:200,canSearchCustomValue:!1})}}if(s.column===Me)return(0,y.Y)(si,{id:r,item:S.find((e=>e.value===s.value)),options:S,onChange:t=>{n({...s,value:t},e)},placeholder:"Select",width:200,canSearchCustomValue:!1});if(s.column===ke){const t=a.source;return(0,y.Y)(si,{id:r,item:t.find((e=>e.value===s.value)),options:t,onChange:t=>{n({...s,value:t},e)},placeholder:"Select source",width:200,canSearchCustomValue:!1})}return(0,y.Y)(ve.I,{"aria-label":"Value",componentId:"mlflow.evaluations_review.table_ui.filter_value",id:r,placeholder:s.column===_e?"Time in milliseconds":"Value",type:s.column===_e?"number":"text",value:d,onChange:e=>{c(e.target.value)},onBlur:u,css:ti,disabled:s.column===Ae.ASSESSMENT})};const oi=[_e,Me,Fe,Ne,Le,Ve,ke];var ai={name:"1fttcpj",styles:"display:flex;flex-direction:column"},ii={name:"1fttcpj",styles:"display:flex;flex-direction:column"},li={name:"1fttcpj",styles:"display:flex;flex-direction:column"},ri={name:"833hqy",styles:"width:200px"},di={name:"1fttcpj",styles:"display:flex;flex-direction:column"},ci={name:"1fttcpj",styles:"display:flex;flex-direction:column"},ui={name:"1duj7gx",styles:"align-self:flex-end"};const mi=({tableFilter:e,index:s,onChange:t,onDelete:n,assessmentInfos:o,experimentId:a,tableFilterOptions:i,allColumns:l})=>{const{column:r,operator:d,key:c}=e,{theme:u}=(0,v.u)(),m=(0,ie.useMemo)((()=>o.filter((e=>"numeric"!==e.dtype)).map((e=>({value:e.name,renderValue:()=>e.displayName})))),[o]),h=(0,ie.useMemo)((()=>{const e=l.filter((e=>oi.includes(e.id)||e.id.startsWith(Ue))).map((e=>({value:e.id,renderValue:()=>e.label})));return e.push({value:Ae.TAG,renderValue:()=>we[Ae.TAG]},{value:Ae.ASSESSMENT,renderValue:()=>we[Ae.ASSESSMENT]}),e}),[l]);return(0,y.Y)(y.FK,{children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"row",gap:u.spacing.sm},""),children:[(0,y.FD)("div",{css:ai,children:[(0,y.Y)(g.FormUI.Label,{htmlFor:`filter-column-${s}`,children:(0,y.Y)(f.sA,{id:"7HLhyL",defaultMessage:"Column"})}),(0,y.Y)(si,{id:`filter-column-${s}`,item:h.find((e=>e.value===r)),options:h,onChange:e=>{e!==r&&t({column:e,operator:Ee.EQUALS,value:""},s)},placeholder:"Select column",width:160,canSearchCustomValue:!1})]}),r===Ae.ASSESSMENT&&(0,y.FD)("div",{css:ii,children:[(0,y.Y)(g.FormUI.Label,{htmlFor:`filter-key-${s}`,children:(0,y.Y)(f.sA,{id:"lK4Ay3",defaultMessage:"Name"})}),(0,y.Y)(si,{id:`filter-key-${s}`,item:m.find((e=>e.value===c)),options:m,onChange:n=>{t({...e,key:n},s)},placeholder:"Select name",width:200,canSearchCustomValue:!1})]}),r===Ae.TAG&&(0,y.FD)("div",{css:li,children:[(0,y.Y)(g.FormUI.Label,{htmlFor:`filter-key-${s}`,children:(0,y.Y)(f.sA,{id:"gST1At",defaultMessage:"Key"})}),(0,y.Y)(ve.I,{"aria-label":"Key",componentId:"mlflow.evaluations_review.table_ui.filter_key",id:"filter-key-"+s,type:"text",css:ri,placeholder:r===Ae.TAG?"Key":"Name",value:c,onChange:n=>{t({...e,key:n.target.value},s)}})]}),(0,y.FD)("div",{css:di,children:[(0,y.Y)(g.FormUI.Label,{htmlFor:`filter-operator-${s}`,children:(0,y.Y)(f.sA,{id:"W6Sqio",defaultMessage:"Operator"})}),(0,y.Y)(g.SimpleSelect,{"aria-label":"Operator",componentId:"mlflow.evaluations_review.table_ui.filter_operator",id:"filter-operator-"+s,placeholder:"Select",width:100,contentProps:{style:{zIndex:u.options.zIndexBase+100}},value:""===r||r===_e?d:"=",disabled:""!==r&&r!==_e,onChange:n=>{t({...e,operator:n.target.value},s)},children:Object.values(Ee).map((e=>(0,y.Y)(g.SimpleSelectOption,{value:e,children:e},e)))})]}),(0,y.FD)("div",{css:ci,children:[(0,y.Y)(g.FormUI.Label,{htmlFor:`filter-value-${s}`,children:(0,y.Y)(f.sA,{id:"6JOLpj",defaultMessage:"Value"})}),(0,y.Y)(ni,{index:s,tableFilter:e,assessmentInfos:o,onChange:t,experimentId:a,tableFilterOptions:i})]}),(0,y.Y)("div",{css:ui,children:(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.table_ui.filter_delete_button",type:"tertiary",icon:(0,y.Y)(g.CloseSmallIcon,{}),onClick:n})})]})})};const pi=({filters:e,setFilters:s,assessmentInfos:t,experimentId:n,tableFilterOptions:o,allColumns:a,isMetadataLoading:i,metadataError:l})=>{const r=(0,f.tz)(),{theme:d}=(0,v.u)(),c=e.length>0,u=(0,ie.useCallback)((()=>{s([])}),[s]);return(0,y.FD)(v.ax.Root,{componentId:va,children:[(0,y.Y)(v.ax.Trigger,{asChild:!0,children:(0,y.Y)(v.B,{endIcon:(0,y.Y)(g.ChevronDownIcon,{}),componentId:"mlflow.evaluations_review.table_ui.filter_button",css:(0,p.AH)({border:c?`1px solid ${d.colors.actionDefaultBorderFocus} !important`:"",backgroundColor:c?`${d.colors.actionDefaultBackgroundHover} !important`:""},""),children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:d.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.FilterIcon,{}),r.formatMessage({id:"J961B2",defaultMessage:"Filters{numFilters}"},{numFilters:c?` (${e.length})`:""}),c&&(0,y.Y)(ve.X,{css:(0,p.AH)({fontSize:12,cursor:"pointer",color:d.colors.grey400,"&:hover":{color:d.colors.grey600}},""),onClick:()=>{u()}})]})})}),(0,y.Y)(v.ax.Content,{align:"start",css:(0,p.AH)({padding:d.spacing.md},""),children:l?(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",justifyContent:"center",gap:d.spacing.xs,padding:`${d.spacing.md}px`,color:d.colors.textValidationDanger},""),"data-testid":"filter-dropdown-error",children:[(0,y.Y)(v.l,{}),(0,y.Y)(f.sA,{id:"dJaboT",defaultMessage:"Fetching traces failed"})]}):i?(0,y.Y)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",justifyContent:"center",gap:d.spacing.xs,padding:`${d.spacing.md}px`,color:d.colors.textSecondary},""),"data-testid":"filter-dropdown-loading",children:(0,y.Y)(v.S,{size:"small"})}):(0,y.Y)(fi,{filters:e,assessmentInfos:t,setFilters:s,experimentId:n,tableFilterOptions:o,allColumns:a})})]})};var gi={name:"skgbeu",styles:"display:flex;justify-content:flex-end"},vi={name:"skgbeu",styles:"display:flex;justify-content:flex-end"};const fi=({filters:e,assessmentInfos:s,setFilters:t,experimentId:n,tableFilterOptions:o,allColumns:a})=>{const{theme:i}=(0,v.u)(),l=(e=>(0,Xa.mN)({defaultValues:{filters:e.length>0?e:[{column:"",operator:Ee.EQUALS,value:""}]}}))(e),{setValue:r,watch:d}=l,c=d("filters");return(0,y.Y)(Xa.Op,{...l,children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:i.spacing.lg,overflow:"auto"},""),children:[(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:i.spacing.sm},""),children:c.map(((e,t)=>(0,y.Y)(mi,{tableFilter:e,index:t,onChange:e=>{c[t]=e,r("filters",c)},onDelete:()=>{const e=[...c];e.splice(t,1),0===e.length&&e.push({column:"",operator:Ee.EQUALS,value:""}),r("filters",e)},assessmentInfos:s,experimentId:n,tableFilterOptions:o,allColumns:a},e.column+e.operator+e.value+t)))}),(0,y.Y)("div",{children:(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.table_ui.add_filter_button",icon:(0,y.Y)(g.PlusIcon,{}),onClick:()=>{r("filters",[...c,{column:"",operator:Ee.EQUALS,value:""}])},children:(0,y.Y)(f.sA,{id:"cHgTsd",defaultMessage:"Add filter"})})}),(0,y.Y)("div",{css:gi,children:(0,y.Y)(v.B,{componentId:"mlflow.evaluations_review.table_ui.apply_filters_button",type:"primary",onClick:()=>t(c),css:vi,children:(0,y.Y)(f.sA,{id:"iZ0M1Y",defaultMessage:"Apply filters"})})})]})})},hi=e=>e===Ae.INFO?"Attributes":we[e],yi=({columns:e=[],selectedColumns:s=[],toggleColumns:t,setSelectedColumns:n,isMetadataLoading:o=!1,metadataError:a})=>{const i=(0,f.tz)(),{theme:l}=(0,v.u)(),[r,d]=(0,ie.useState)(""),c=(0,ie.useMemo)((()=>{const s=hs(e),t={};return s.forEach((e=>{var s;const n=null!==(s=e.group)&&void 0!==s?s:Ae.INFO;t[n]||(t[n]=[]),t[n].push(e)})),t}),[e]),u=(0,ie.useMemo)((()=>{if(!r.trim())return c;const e=r.trim().toLowerCase(),s={};return Object.entries(c).forEach((([t,n])=>{const o=hi(t).toLowerCase().includes(e),a=n.filter((s=>s.label.toLowerCase().includes(e)));(o||a.length)&&(s[t]=o?n:a)})),s}),[c,r]);return(0,y.FD)(g.DialogCombobox,{componentId:fa,label:"Columns",multiSelect:!0,children:[(0,y.Y)(g.DialogComboboxCustomButtonTriggerWrapper,{children:(0,y.Y)(v.B,{endIcon:(0,y.Y)(g.ChevronDownIcon,{}),"data-testid":"column-selector-button",componentId:"mlflow.evaluations_review.table_ui.filter_button",children:(0,y.FD)("div",{css:(0,p.AH)({display:"flex",gap:l.spacing.sm,alignItems:"center"},""),children:[(0,y.Y)(g.ColumnsIcon,{}),i.formatMessage({id:"wjOGl2",defaultMessage:"Columns"})]})})}),(0,y.Y)(g.DialogComboboxContent,{maxHeight:496,minWidth:300,maxWidth:500,loading:o&&!a,children:a?(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",justifyContent:"center",gap:l.spacing.xs,padding:`${l.spacing.md}px`,color:l.colors.textValidationDanger},""),"data-testid":"filter-dropdown-error",children:[(0,y.Y)(v.l,{}),(0,y.Y)(f.sA,{id:"dJaboT",defaultMessage:"Fetching traces failed"})]}):(0,y.Y)(g.DialogComboboxOptionList,{children:(0,y.Y)(g.DialogComboboxOptionListSearch,{controlledValue:r,setControlledValue:d,children:Object.entries(u).map((([e,o])=>(0,y.FD)(ie.Fragment,{children:[(0,y.Y)(g.DialogComboboxSectionHeader,{children:hi(e)}),(0,y.Y)(g.DialogComboboxOptionListCheckboxItem,{value:`all-${e}`,checked:o.every((e=>s.some((s=>s.id===e.id)))),onChange:()=>(e=>{if(e.every((e=>s.some((s=>s.id===e.id))))){const t=s.filter((s=>!e.some((e=>e.id===s.id))));n(t)}else{const t=[...s];e.forEach((e=>{t.some((s=>s.id===e.id))||t.push(e)})),n(t)}})(o),children:i.formatMessage({id:"RXL0a5",defaultMessage:"All {groupLabel}"},{groupLabel:hi(e)})}),o.map((e=>(0,y.Y)(g.DialogComboboxOptionListCheckboxItem,{value:e.label,checked:s.some((s=>s.id===e.id)),onChange:()=>t([e]),children:e.label},e.id)))]},e)))})})})]})};var Si={name:"1ykowef",styles:"margin-bottom:0"};const bi=ie.memo((e=>{const{searchQuery:s,setSearchQuery:t,filters:n,setFilters:o,tableSort:a,setTableSort:i,selectedColumns:l,toggleColumns:r,setSelectedColumns:d,assessmentInfos:c,experimentId:u,traceInfos:m,tableFilterOptions:f,traceActions:h,allColumns:S,countInfo:b,isMetadataLoading:I,metadataError:E}=e,{theme:x}=(0,v.u)(),A=(0,ie.useCallback)(((e,s)=>{i({key:e.key,type:e.type,asc:s})}),[i]);return(0,y.FD)("div",{css:(0,p.AH)({display:"flex",width:"100%",alignItems:"flex-end",justifyContent:"space-between",paddingBottom:`${x.spacing.xs}px`},""),children:[(0,y.FD)(g.TableFilterLayout,{css:Si,children:[(0,y.Y)(pa,{searchQuery:s,setSearchQuery:t}),(0,y.Y)(pi,{filters:n,setFilters:o,assessmentInfos:c,experimentId:u,tableFilterOptions:f,allColumns:S,isMetadataLoading:I,metadataError:E}),(0,y.Y)(Sa,{tableSort:a,columns:l,onChange:A,enableGrouping:!0,isMetadataLoading:I,metadataError:E}),(0,y.Y)(yi,{columns:S,selectedColumns:l,toggleColumns:r,setSelectedColumns:d,isMetadataLoading:I,metadataError:E}),h&&(0,y.Y)(ds,{experimentId:u,traceActions:h,traceInfos:m})]}),(0,y.Y)(Ii,{countInfo:b})]})})),Ii=e=>{const{countInfo:s}=e,t=(0,f.tz)(),{theme:o}=(0,v.u)();return s.logCountLoading||(0,n.isNil)(s.currentCount)?(0,y.Y)(v.S,{size:"small"}):(0,y.FD)("div",{css:(0,p.AH)({display:"flex",alignItems:"center",gap:o.spacing.sm},""),children:[s.currentCount>=s.maxAllowedCount&&(0,y.Y)(fe.T,{componentId:"mlflow.experiment_list_view.max_traces.tooltip",content:t.formatMessage({id:"BpAyCF",defaultMessage:"Only the top {evalResultsCount} results are shown"},{evalResultsCount:s.maxAllowedCount}),children:(0,y.Y)(v.W,{color:"warning"})}),(0,y.Y)(v.T.Hint,{children:t.formatMessage({id:"FnOQ44",defaultMessage:"{numFilteredEvals} of {numEvals}"},{numFilteredEvals:s.currentCount>=s.maxAllowedCount?s.maxAllowedCount:s.currentCount,numEvals:s.totalCount>=s.maxAllowedCount?`${s.maxAllowedCount}+`:s.totalCount})})]})};var Ei={name:"1is47tc",styles:"flex:1;overflow-y:hidden"};const xi=ie.memo((e=>{const{experimentId:s,currentTraceInfoV3:t,compareToTraceInfoV3:n,currentRunDisplayName:o,runUuid:a,compareToRunUuid:i,compareToRunDisplayName:l,setFilters:r,filters:d,selectedColumns:c,tableSort:u,assessmentInfos:m,getTrace:g,onTraceTagsEdit:f,allColumns:h,getRunColor:S,enableRowSelection:b=!0}=e,{theme:I}=(0,v.u)(),E=(0,ie.useMemo)((()=>ls(t.map((e=>({evaluationId:e.trace_id,requestId:e.client_request_id||e.trace_id,inputsId:e.trace_id,inputs:{},outputs:{},targets:{},overallAssessments:[],responseAssessmentsByName:{},metrics:{},traceInfo:e}))))),[t]),x=(0,ie.useMemo)((()=>ls((n||[]).map((e=>({evaluationId:e.trace_id,requestId:e.client_request_id||e.trace_id,inputsId:e.trace_id,inputs:{},outputs:{},targets:{},overallAssessments:[],responseAssessmentsByName:{},metrics:{},traceInfo:e}))))),[n]),[A,w]=(0,ie.useState)({}),N=(0,ie.useCallback)(((e,s,t)=>{const n=d.find((s=>s.column===Ae.ASSESSMENT&&s.key===e));void 0===n?r([...d,{column:Ae.ASSESSMENT,key:e,operator:Ee.EQUALS,value:s}]):n.value===s?r(d.filter((s=>!(s.column===Ae.ASSESSMENT&&s.key===e)))):r(d.map((t=>t.column===Ae.ASSESSMENT&&t.key===e?{column:Ae.ASSESSMENT,key:e,operator:Ee.EQUALS,value:s}:t)))}),[d,r]),C=(0,ie.useMemo)((()=>d.filter((e=>e.column===Ae.ASSESSMENT)).map((e=>({assessmentName:e.key||"",filterValue:e.value,run:o||""})))),[d,o]),[R,T]=Ca(),Y=(0,ie.useMemo)((()=>At(c.filter((e=>e.type===xe.ASSESSMENT)).map((e=>e.assessmentInfo)))),[c]),_=(0,ie.useMemo)((()=>Is(E,x)),[E,x]);return(0,y.Y)("div",{css:(0,p.AH)({display:"flex",flexDirection:"column",gap:I.spacing.xs,overflow:"hidden",flexGrow:1},""),children:(0,y.Y)("div",{css:(0,p.AH)({display:"flex",gap:I.spacing.md,width:"100%",flex:1,overflowY:"hidden"},""),children:(0,y.Y)("div",{css:Ei,children:(0,y.Y)(ma,{experimentId:s,selectedColumns:c,allColumns:h,evaluations:_,selectedEvaluationId:R,selectedAssessmentInfos:Y,assessmentInfos:m,assessmentFilters:C,onChangeEvaluationId:T,getRunColor:S,runUuid:a,compareToRunUuid:i,runDisplayName:o,compareToRunDisplayName:l,enableRowSelection:b,rowSelection:A,setRowSelection:w,toggleAssessmentFilter:N,tableSort:u,getTrace:g,onTraceTagsEdit:f,enableGrouping:!0})})})})})),Ai="filter",wi=()=>{const[e,s]=re();return[(0,ie.useMemo)((()=>{var s;return(null!==(s=e.getAll(Ai))&&void 0!==s?s:[]).reduce(((e,s)=>{const[t,n,o,a]=s.split("::");if(!t||!n||!o)return e;const i=n;let l=o;return t===Ae.ASSESSMENT&&(l=ue(o)),e.push({column:t,key:a,operator:i,value:l}),e}),[])}),[e]),(0,ie.useCallback)(((e,t=!1)=>{s((s=>(s.delete(Ai),e&&e.forEach((e=>{let t=e.value;e.column===Ae.ASSESSMENT&&(t=pe(e.value)),s.append(Ai,[e.column,e.operator,t,e.key].join("::"))})),s)),{replace:t})}),[s])]};var Ni=t(94026);const Ci=(e,s)=>s.filter((s=>!e.includes(s))).map((e=>e.id)),Ri=(e,s)=>{let t=((e,s)=>s.filter((s=>!e.includes(s.id))))(e,s);if(t.length>10){const e=t.filter((e=>e.type===xe.ASSESSMENT)),s=t.filter((e=>e.type!==xe.ASSESSMENT)),n=t.length-10,o=Math.max(0,e.length-n);t=[...s,...e.slice(0,o)]}return Ci(t,s)},Ti=(e,s,t,n)=>{const[o,a]=(0,Ni.Mj)({key:`genaiTracesUIState-columns-${e}-${n}`,version:1,initialValue:void 0}),i=(0,ie.useMemo)((()=>((e,s)=>Ri(s?Ci(s(e),e):[Fe,ke,_e,Me],e))(s,t)),[s,t]);return{hiddenColumns:(0,ie.useMemo)((()=>{const e=new Set(i);return null!==o&&void 0!==o&&o.columnOverrides?(Object.entries(o.columnOverrides).forEach((([s,t])=>{t?e.delete(s):e.add(s)})),[...e]):i}),[o,i]),toggleColumns:(0,ie.useCallback)((e=>{e.length&&a((s=>{var t;const n=null!==(t=null===s||void 0===s?void 0:s.columnOverrides)&&void 0!==t?t:{},o={...n};let a=!1;return e.forEach((e=>{const s=e.id in n?!n[e.id]:i.includes(e.id);o[e.id]!==s&&(o[e.id]=s,a=!0)})),a?{...s,columnOverrides:o}:s}))}),[a,i])}},Yi=(e,s,t,o)=>{const{hiddenColumns:a,toggleColumns:i}=Ti(e,s,t,o),l=(0,ie.useMemo)((()=>s.filter((e=>!a.includes(e.id)))),[s,a]),r=(0,ie.useCallback)((e=>{if((0,n.isNil)(e))return;const t=new Set(e.map((e=>e.id))),o=[];s.forEach((e=>{!a.includes(e.id)!==t.has(e.id)&&o.push(e)})),o.length&&i(o)}),[s,a,i]);return{selectedColumns:l,toggleColumns:i,setSelectedColumns:r}}}}]); +//# sourceMappingURL=939.e6c5459d.chunk.js.map \ No newline at end of file diff --git a/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/939.e6c5459d.chunk.js.map b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/939.e6c5459d.chunk.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9b6ac8965c68d97bd1b1bd101e810b451f2d996c --- /dev/null +++ b/platform/dbops/archive/databases_old/data/home/x/.local/lib/python3.12/site-packages/mlflow/server/js/build/static/js/939.e6c5459d.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/939.e6c5459d.chunk.js","mappings":"sMAIO,MAAMA,EAA0BA,KACrC,MAAMC,GAAcC,EAAAA,EAAAA,MAsBpB,OArBiBC,EAAAA,EAAAA,GAAoG,CACnHC,WAAYC,OAASC,eAAcC,sBAEjC,MAAMC,EAAS,GACf,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAgBG,OAAQD,GAAK,IAC/CD,EAAOG,KAAKJ,EAAgBK,MAAMH,EAAGA,EAAI,MAI3C,MAAMI,EAAiBL,EAAOM,KAAKC,GAAUC,EAAAA,EAAcC,eAAeX,EAAcS,KAOxF,MAAO,CAAEG,sBALaC,QAAQC,IAAIP,IAGLQ,QAAO,CAACC,EAAKC,IAAWD,EAAMC,EAAOL,gBAAgB,GAE3C,EAEzCM,UAAWA,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E,KAAK6V,EAChB,IAGE+wD,EAAS7mE,QACXqjE,EAAcwD,EAChB,GAEF,CAAC/a,EAAYsZ,EAAe/B,IAG9B,MAAO,CAAE50D,kBAAiB40D,gBAAezT,qBAAoB,C","sources":["experiment-tracking/components/evaluations/hooks/useDeleteTraces.tsx","shared/web-shared/genai-traces-table/enum.ts","shared/web-shared/genai-traces-table/utils/EvaluationDataParseUtils.ts","shared/web-shared/genai-traces-table/components/GenAiEvaluationTracesReview.utils.tsx","shared/web-shared/genai-traces-table/utils/Colors.ts","shared/web-shared/genai-traces-table/utils/RoutingUtils.tsx","shared/web-shared/genai-traces-table/hooks/useAssessmentFilters.tsx","shared/web-shared/genai-traces-table/hooks/useTableSort.tsx","shared/web-shared/genai-traces-table/GenAITracesTableContext.tsx","shared/web-shared/genai-traces-table/components/GenAiDeleteTraceModal.tsx","shared/web-shared/genai-traces-table/utils/FeatureUtils.ts","shared/web-shared/genai-traces-table/types.ts","shared/web-shared/genai-traces-table/hooks/useTableColumns.tsx","shared/web-shared/genai-traces-table/utils/TraceUtils.ts","shared/web-shared/genai-traces-table/GenAITracesTableActions.tsx","shared/web-shared/genai-traces-table/GenAiTracesTable.utils.ts","shared/web-shared/genai-traces-table/cellRenderers/ErrorCell.tsx","shared/web-shared/genai-traces-table/cellRenderers/NullCell.tsx","shared/web-shared/genai-traces-table/cellRenderers/StackedComponents.tsx","shared/web-shared/genai-traces-table/utils/FetchUtils.ts","shared/web-shared/genai-traces-table/utils/MlflowUtils.tsx","shared/web-shared/genai-traces-table/cellRenderers/LoggedModelCell.tsx","shared/web-shared/genai-traces-table/cellRenderers/RunName.tsx","shared/web-shared/genai-traces-table/cellRenderers/Source/ExperimentSourceTypeIcon.tsx","shared/web-shared/genai-traces-table/cellRenderers/Source/SourceRenderer.tsx","shared/web-shared/genai-traces-table/cellRenderers/StatusRenderer.tsx","shared/web-shared/genai-traces-table/cellRenderers/Tags/KeyValueTagFullViewModal.tsx","shared/web-shared/genai-traces-table/cellRenderers/Tags/KeyValueTag.tsx","shared/web-shared/genai-traces-table/cellRenderers/Tags/TagsCellRenderer.tsx","shared/web-shared/genai-traces-table/cellRenderers/TokensCell.tsx","shared/web-shared/genai-traces-table/utils/AggregationUtils.ts","shared/web-shared/genai-traces-table/utils/DisplayUtils.tsx","shared/web-shared/genai-traces-table/utils/MarkdownUtils.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessmentTag.tsx","shared/web-shared/genai-traces-table/components/RunColorCircle.tsx","shared/web-shared/genai-traces-table/cellRenderers/rendererFunctions.tsx","shared/web-shared/genai-traces-table/GenAiTracesTableBody.utils.tsx","shared/web-shared/genai-traces-table/GenAiTracesTableBodyRows.tsx","shared/web-shared/genai-traces-table/components/EvaluationsRcaStats.tsx","shared/web-shared/genai-traces-table/components/EvaluationsAssessmentHoverCard.tsx","shared/web-shared/genai-traces-table/components/charts/CategoricalAggregateChart.tsx","shared/web-shared/genai-traces-table/components/charts/NumericAggregateChart.tsx","shared/web-shared/genai-traces-table/components/charts/AssessmentColumnSummary.tsx","shared/web-shared/genai-traces-table/GenAiTracesTableHeader.tsx","shared/web-shared/genai-traces-table/cellRenderers/HeaderCellRenderer.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessmentDetailedHistory.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessmentTooltip.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessmentUpsertForm.tsx","shared/web-shared/genai-traces-table/hooks/useEditAssessmentFormState.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessments.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessmentsConfirmButton.tsx","shared/web-shared/genai-traces-table/components/VerticalBar.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewAssessmentsSection.tsx","shared/web-shared/genai-traces-table/components/EvaluationTraceDataDrawer.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewHeaderSection.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewCopyButton.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewExpandableCell.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewTextBox.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewInputSection.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewResponseSection.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewListItemIndicator.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewRetrievalSection.tsx","shared/web-shared/genai-traces-table/components/EvaluationsReviewDetails.tsx","shared/web-shared/genai-traces-table/hooks/usePendingAssessmentEntries.ts","shared/web-shared/genai-traces-table/components/GenAiEvaluationTracesReview.tsx","shared/web-shared/genai-traces-table/hooks/useGenAITracesTableConfig.tsx","shared/web-shared/genai-traces-table/hooks/useGetTrace.tsx","shared/web-shared/genai-traces-table/components/GenAiEvaluationTracesReviewModal.tsx","shared/web-shared/genai-traces-table/GenAiTracesTableBody.tsx","shared/web-shared/genai-traces-table/GenAiTracesTableSearchInput.tsx","shared/web-shared/genai-traces-table/utils/EvaluationLogging.ts","shared/web-shared/genai-traces-table/components/EvaluationsOverviewColumnSelector.tsx","shared/web-shared/genai-traces-table/components/EvaluationsOverviewSortDropdown.tsx","shared/web-shared/genai-traces-table/components/GenAiEvaluationBadge.tsx","shared/web-shared/genai-traces-table/hooks/useActiveEvaluation.tsx","shared/web-shared/genai-traces-table/hooks/useEvaluationsSearchQuery.tsx","shared/web-shared/genai-traces-table/utils/EvaluationsFilterUtils.ts","shared/web-shared/genai-traces-table/GenAITracesTable.tsx","shared/web-shared/genai-traces-table/hooks/useGenAiExperimentRunsForComparison.tsx","shared/web-shared/genai-traces-table/hooks/useGenAiTraceEvaluationArtifacts.tsx","shared/web-shared/genai-traces-table/hooks/useMlflowTraces.tsx","shared/web-shared/genai-traces-table/components/filters/TableFilterItemTypeahead.tsx","shared/web-shared/genai-traces-table/components/filters/TableFilterItemValueInput.tsx","shared/web-shared/genai-traces-table/hooks/useExperimentVersionsQuery.tsx","shared/web-shared/genai-traces-table/components/filters/TableFilterItem.tsx","shared/web-shared/genai-traces-table/GenAiTracesTableFilter.tsx","shared/web-shared/genai-traces-table/components/EvaluationsOverviewColumnSelectorGrouped.tsx","shared/web-shared/genai-traces-table/GenAITracesTableToolbar.tsx","shared/web-shared/genai-traces-table/GenAITracesTableBodyContainer.tsx","shared/web-shared/genai-traces-table/hooks/useFilters.tsx","shared/web-shared/genai-traces-table/hooks/useGenAITracesUIState.tsx"],"sourcesContent":["import { useMutation, useQueryClient } from '@databricks/web-shared/query-client';\nimport { MlflowService } from '../../../sdk/MlflowService';\nimport { invalidateMlflowSearchTracesCache } from '@databricks/web-shared/genai-traces-table';\n\nexport const useDeleteTracesMutation = () => {\n const queryClient = useQueryClient();\n const mutation = useMutation<{ traces_deleted: number }, Error, { experimentId: string; traceRequestIds: string[] }>({\n mutationFn: async ({ experimentId, traceRequestIds }) => {\n // Chunk the trace IDs into groups of 100\n const chunks = [];\n for (let i = 0; i < traceRequestIds.length; i += 100) {\n chunks.push(traceRequestIds.slice(i, i + 100));\n }\n\n // Make parallel calls for each chunk\n const deletePromises = chunks.map((chunk) => MlflowService.deleteTracesV3(experimentId, chunk));\n\n const results = await Promise.all(deletePromises);\n\n // Sum up the total traces deleted\n const totalDeleted = results.reduce((sum, result) => sum + result.traces_deleted, 0);\n\n return { traces_deleted: totalDeleted };\n },\n onSuccess: () => invalidateMlflowSearchTracesCache({ queryClient }),\n });\n\n return mutation;\n};\n","export enum GenAiTraceEvaluationArtifactFile {\n Evaluations = '_evaluations.json',\n Assessments = '_assessments.json',\n Metrics = '_metrics.json',\n}\n\nexport enum KnownEvaluationResultAssessmentMetadataFields {\n IS_OVERALL_ASSESSMENT = 'is_overall_assessment',\n CHUNK_INDEX = 'chunk_index',\n IS_COPIED_FROM_AI = 'is_copied_from_ai',\n}\n\nexport enum KnownEvaluationResultAssessmentName {\n OVERALL_ASSESSMENT = 'overall_assessment',\n SAFETY = 'safety',\n GROUNDEDNESS = 'groundedness',\n CORRECTNESS = 'correctness',\n RELEVANCE_TO_QUERY = 'relevance_to_query',\n CHUNK_RELEVANCE = 'chunk_relevance',\n CONTEXT_SUFFICIENCY = 'context_sufficiency',\n GUIDELINE_ADHERENCE = 'guideline_adherence',\n GLOBAL_GUIDELINE_ADHERENCE = 'global_guideline_adherence',\n TOTAL_TOKEN_COUNT = 'agent/total_token_count',\n TOTAL_INPUT_TOKEN_COUNT = 'agent/total_input_token_count',\n TOTAL_OUTPUT_TOKEN_COUNT = 'agent/total_output_token_count',\n DOCUMENT_RECALL = 'retrieval/ground_truth/document_recall',\n DOCUMENT_RATINGS = 'retrieval/ground_truth/document_ratings',\n}\n","import { difference, groupBy, isNil, isNumber, isPlainObject, orderBy, zipObject } from 'lodash';\n\nimport { KnownEvaluationResultAssessmentMetadataFields, KnownEvaluationResultAssessmentName } from '../enum';\nimport type {\n EvaluationArtifactTableEntryAssessment,\n EvaluationArtifactTableEntryEvaluation,\n EvaluationArtifactTableEntryMetric,\n RawGenaiEvaluationArtifactResponse,\n RunEvaluationResultAssessment,\n RunEvaluationResultMetric,\n RunEvaluationTracesDataEntry,\n RunEvaluationTracesRetrievalChunk,\n} from '../types';\n\nexport const isEvaluationResultOverallAssessment = (assessmentEntry: RunEvaluationResultAssessment) =>\n assessmentEntry.metadata?.[KnownEvaluationResultAssessmentMetadataFields.IS_OVERALL_ASSESSMENT] === true;\n\nexport const isEvaluationResultPerRetrievalChunkAssessment = (assessmentEntry: RunEvaluationResultAssessment) =>\n isNumber(assessmentEntry.metadata?.[KnownEvaluationResultAssessmentMetadataFields.CHUNK_INDEX]);\n\n/**\n * Checks if the given value is a retrieved context.\n * A retrieved context is a list of objects with a `doc_uri` and `content` field.\n */\nexport const isRetrievedContext = (value: any): boolean => {\n return Array.isArray(value) && value.every((v) => isPlainObject(v) && 'doc_uri' in v && 'content' in v);\n};\n\n/**\n * Extracts the first retrieved context value from the given record.\n * Returns undefined if no retrieved context is found.\n */\nconst getFirstRetrievedContextValue = (\n record?: Record,\n): { doc_uri: string; content: string }[] | undefined => {\n return Object.values(record || {}).find(isRetrievedContext) as { doc_uri: string; content: string }[];\n};\n\n/**\n * Extracts the retrieval chunks from the given outputs, targets and per-chunk assessments.\n */\nexport const extractRetrievalChunks = (\n outputs?: Record,\n targets?: Record,\n perChunkAssessments?: RunEvaluationResultAssessment[],\n): RunEvaluationTracesRetrievalChunk[] => {\n // Only support one retrieved context for now, first one is used\n const retrievedContext = getFirstRetrievedContextValue(outputs) || [];\n const expectedRetrievedContext = getFirstRetrievedContextValue(targets);\n\n return retrievedContext.map((retrievedContext, index) => {\n const target = expectedRetrievedContext?.[index];\n const assessments = (perChunkAssessments || []).filter(\n (assessment) => (assessment.metadata || {})[KnownEvaluationResultAssessmentMetadataFields.CHUNK_INDEX] === index,\n );\n // Group detailed assessments by name\n const retrievalAssessmentsByName = groupBy(assessments, 'name');\n // Ensure each group is sorted by timestamp in descending order\n Object.keys(retrievalAssessmentsByName).forEach((key) => {\n retrievalAssessmentsByName[key] = orderBy(retrievalAssessmentsByName[key], 'timestamp', 'desc');\n });\n\n return {\n docUrl: retrievedContext.doc_uri,\n content: retrievedContext.content,\n retrievalAssessmentsByName: retrievalAssessmentsByName,\n target: target?.content,\n };\n });\n};\n\nexport function parseRawTableArtifact(artifactData?: RawGenaiEvaluationArtifactResponse): T | undefined {\n if (!artifactData) {\n return undefined;\n }\n const { columns, data, filename } = artifactData;\n\n if (!columns || !Array.isArray(columns)) {\n throw new SyntaxError(`Artifact ${filename} is malformed, it does not contain \"columns\" array`);\n }\n if (!data || !Array.isArray(data)) {\n throw new SyntaxError(`Artifact ${filename} is malformed, it does not contain \"data\" array`);\n }\n\n const normalizedColumns = columns.map((column, index) => column ?? `column_${index}`);\n\n return data.map((row) => zipObject(normalizedColumns, row)) as T;\n}\n\nexport function mergeMetricsAndAssessmentsWithEvaluations(\n evaluations: EvaluationArtifactTableEntryEvaluation[],\n metrics?: EvaluationArtifactTableEntryMetric[],\n assessments?: EvaluationArtifactTableEntryAssessment[],\n): RunEvaluationTracesDataEntry[] {\n // Group metrics by evaluation_id.\n const metricsByEvaluation = (metrics || []).reduce>>(\n (acc, entry: any) => {\n if (!acc[entry.evaluation_id]) {\n acc[entry.evaluation_id] = {};\n }\n const { key, value, timestamp } = entry;\n acc[entry.evaluation_id][key] = { key, value, timestamp };\n return acc;\n },\n {},\n );\n\n // Group assessments by evaluation_id.\n const assessmentsByEvaluation = (assessments || []).reduce>(\n (acc, entry: EvaluationArtifactTableEntryAssessment) => {\n if (!acc[entry.evaluation_id]) {\n acc[entry.evaluation_id] = [];\n }\n acc[entry.evaluation_id].push({\n booleanValue: !isNil(entry.boolean_value) ? Boolean(entry.boolean_value) : entry.boolean_value,\n numericValue: !isNil(entry.numeric_value) ? Number(entry.numeric_value) : entry.numeric_value,\n stringValue: !isNil(entry.string_value) ? String(entry.string_value) : entry.string_value,\n metadata: entry.metadata || {},\n ...(entry.error_code && { errorCode: entry.error_code }),\n ...(entry.error_message && { errorMessage: entry.error_message }),\n name: entry.name,\n rationale: entry.rationale || null,\n source: {\n metadata: entry.source?.metadata ?? {},\n sourceId: entry.source?.source_id,\n sourceType: entry.source?.source_type,\n },\n timestamp: entry.timestamp,\n });\n return acc;\n },\n {},\n );\n\n return evaluations.map((entry: any) => {\n // Get all assessments for the evaluation and group them by name\n const allAssessmentsSorted = orderBy(assessmentsByEvaluation[entry.evaluation_id] || [], 'timestamp', 'desc');\n const overallAssessments: RunEvaluationResultAssessment[] = allAssessmentsSorted\n .filter(isEvaluationResultOverallAssessment)\n .map((assessment) => {\n // Find the \"[assessment_name]\" prefix and convert it to the rootCauseAssessment, removing it from the prefix.\n // The format is: \"[assessment_name] rationale **Suggested Actions**: suggestedActions\"\n const match = assessment.rationale?.match(/^\\[(.*?)\\](.*?)(?:\\*\\*Suggested Actions\\*\\*:(.*))?$/s);\n\n const assessmentName = match ? match[1]?.trim() : undefined;\n const newRationale = match ? match[2]?.trim() : undefined;\n const suggestedActions = match ? match[3]?.trim() : undefined;\n\n assessment.rationale = newRationale || assessment.rationale;\n const result: RunEvaluationResultAssessment = {\n ...assessment,\n rootCauseAssessment: !isNil(assessmentName) ? { assessmentName, suggestedActions } : undefined,\n };\n return result;\n });\n if (overallAssessments.length === 0) {\n // In the special case where there is no overall assessment, we create a null here so the UI can render it.\n overallAssessments.push({\n name: KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT,\n rationale: null,\n source: {\n sourceType: 'AI_JUDGE',\n sourceId: 'UNKNOWN',\n metadata: {},\n },\n metadata: {},\n numericValue: null,\n booleanValue: null,\n stringValue: null,\n timestamp: null,\n });\n }\n // TODO(nsthorat): perRetrievalChunkAsessments should be treated differently than other methods, and removed from the overall metrics.\n const perRetrievalChunkAssessments = allAssessmentsSorted.filter(isEvaluationResultPerRetrievalChunkAssessment);\n\n // All assessments that are not overall or per retrieval chunk are response assessments\n const responseAssessments = difference(allAssessmentsSorted, overallAssessments, perRetrievalChunkAssessments);\n\n // Group response assessments by name\n const responseAssessmentsByName = groupBy(responseAssessments, 'name');\n // Ensure each group is sorted by timestamp in descending order\n Object.keys(responseAssessmentsByName).forEach((key) => {\n responseAssessmentsByName[key] = orderBy(responseAssessmentsByName[key], 'timestamp', 'desc');\n });\n\n return {\n evaluationId: entry.evaluation_id,\n requestId: entry.request_id,\n inputs: entry.inputs,\n inputsId: entry.inputs_id,\n outputs: entry.outputs ?? {},\n targets: entry.targets ?? {},\n ...(entry.error_code && { errorCode: entry.error_code }),\n ...(entry.error_message && { errorMessage: entry.error_message }),\n overallAssessments,\n responseAssessmentsByName,\n metrics: metricsByEvaluation[entry.evaluation_id] || {},\n retrievalChunks: extractRetrievalChunks(entry.outputs, entry.targets, perRetrievalChunkAssessments),\n };\n });\n}\n","import { isNil, isNumber, isPlainObject, orderBy } from 'lodash';\n\nimport type { ThemeType } from '@databricks/design-system';\nimport { CheckCircleIcon, WarningIcon, XCircleIcon } from '@databricks/design-system';\nimport { defineMessage } from '@databricks/i18n';\nimport type { MessageDescriptor, IntlShape } from '@databricks/i18n';\nimport { getUser } from '@databricks/web-shared/global-settings';\n\nimport type {\n AssessmentInfo,\n AssessmentValueType,\n RunEvaluationResultAssessment,\n RunEvaluationResultAssessmentDraft,\n RunEvaluationTracesDataEntry,\n} from '../types';\nimport { getEvaluationResultAssessmentBackgroundColor, getEvaluationResultIconColor } from '../utils/Colors';\n\nexport const INPUT_REQUEST_KEY = 'request';\nconst INPUT_MESSAGES_KEY = 'messages';\n\nexport enum KnownEvaluationResultAssessmentName {\n OVERALL_ASSESSMENT = 'overall_assessment',\n SAFETY = 'safety',\n GROUNDEDNESS = 'groundedness',\n RETRIEVAL_GROUNDEDNESS = 'retrieval_groundedness', // Updated name for groundedness\n CORRECTNESS = 'correctness',\n RELEVANCE_TO_QUERY = 'relevance_to_query',\n CHUNK_RELEVANCE = 'chunk_relevance',\n RETRIEVAL_RELEVANCE = 'retrieval_relevance', // Updated name for chunk relevance\n CONTEXT_SUFFICIENCY = 'context_sufficiency',\n RETRIEVAL_SUFFICIENCY = 'retrieval_sufficiency', // Updated name for context sufficiency\n GUIDELINE_ADHERENCE = 'guideline_adherence',\n GUIDELINES = 'guidelines', // Updated name for guideline adherence\n GLOBAL_GUIDELINE_ADHERENCE = 'global_guideline_adherence',\n}\n\nexport const DEFAULT_ASSESSMENTS_SORT_ORDER: string[] = [\n KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT,\n // Correctness runs with GT, relevancy to query runs without it.\n KnownEvaluationResultAssessmentName.CORRECTNESS,\n KnownEvaluationResultAssessmentName.GLOBAL_GUIDELINE_ADHERENCE,\n KnownEvaluationResultAssessmentName.GUIDELINE_ADHERENCE,\n KnownEvaluationResultAssessmentName.GUIDELINES,\n KnownEvaluationResultAssessmentName.RELEVANCE_TO_QUERY,\n KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY,\n KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY,\n KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE,\n KnownEvaluationResultAssessmentName.RETRIEVAL_RELEVANCE,\n KnownEvaluationResultAssessmentName.GROUNDEDNESS,\n KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS, // Updated name for groundedness\n KnownEvaluationResultAssessmentName.SAFETY,\n];\n\nexport const getJudgeMetricsLink = (asessmentDocLink?: AssessmentLearnMoreLink) => {\n // return OSS docs link\n return 'https://mlflow.org/docs/latest/genai/eval-monitor';\n};\n\nexport interface AssessmentLearnMoreLink {\n basePath: string;\n hash?: string;\n}\n\n/**\n * These will be converted to the links per-cloud:\n * https://learn.microsoft.com/en-us/azure/databricks/generative-ai/agent-evaluation/${hash}`\n * https://docs.databricks.com/en/generative-ai/agent-evaluation/${page}.html#${hash}\n */\nexport const ASSESSMENTS_DOC_LINKS: Record = {\n [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT]: {\n // TODO(nsthorat): Update this link to the overall deep link once it's available.\n basePath: '/generative-ai/agent-evaluation/llm-judge-metrics',\n hash: 'how-quality-is-assessed-by-llm-judges',\n },\n [KnownEvaluationResultAssessmentName.CORRECTNESS]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'correctness',\n },\n [KnownEvaluationResultAssessmentName.GROUNDEDNESS]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'groundedness',\n },\n [KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'groundedness',\n },\n [KnownEvaluationResultAssessmentName.RELEVANCE_TO_QUERY]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'answer-relevance',\n },\n [KnownEvaluationResultAssessmentName.SAFETY]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'safety',\n },\n [KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'chunk-relevance-precision',\n },\n [KnownEvaluationResultAssessmentName.RETRIEVAL_RELEVANCE]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'chunk-relevance-precision',\n },\n [KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'context-sufficiency',\n },\n [KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'context-sufficiency',\n },\n [KnownEvaluationResultAssessmentName.GUIDELINE_ADHERENCE]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'guideline-adherence',\n },\n [KnownEvaluationResultAssessmentName.GUIDELINES]: {\n basePath: '/generative-ai/agent-evaluation/llm-judge-reference',\n hash: 'guideline-adherence',\n },\n};\n\nexport enum KnownEvaluationResultAssessmentStringValue {\n YES = 'yes',\n NO = 'no',\n UNKNOWN = 'unknown',\n}\n\nexport function getAssessmentValueLabel(\n intl: IntlShape,\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n value: AssessmentValueType,\n): { content: string; icon?: JSX.Element } {\n if (assessmentInfo.dtype === 'pass-fail') {\n if (value === KnownEvaluationResultAssessmentStringValue.YES) {\n return {\n content: intl.formatMessage({\n defaultMessage: 'Pass',\n description: 'Passing assessment label',\n }),\n icon: (\n \n \n \n ),\n };\n } else if (value === KnownEvaluationResultAssessmentStringValue.NO) {\n return {\n content: intl.formatMessage({\n defaultMessage: 'Fail',\n description: 'Failing assessment label',\n }),\n icon: (\n \n \n \n ),\n };\n } else {\n return {\n content: intl.formatMessage({\n defaultMessage: 'Missing',\n description: 'Missing assessment label',\n }),\n icon: (\n \n \n \n ),\n };\n }\n } else if (assessmentInfo.dtype === 'boolean') {\n if (value === true) {\n return {\n content: intl.formatMessage({\n defaultMessage: 'True',\n description: 'True assessment label',\n }),\n };\n } else if (value === false) {\n return {\n content: intl.formatMessage({\n defaultMessage: 'False',\n description: 'False assessment label',\n }),\n };\n } else {\n return {\n content: intl.formatMessage({\n defaultMessage: 'null',\n description: 'null assessment label',\n }),\n };\n }\n }\n return {\n content: `${value}`,\n };\n}\n\nexport enum KnownEvaluationResultAssessmentMetadataFields {\n IS_OVERALL_ASSESSMENT = 'is_overall_assessment',\n CHUNK_INDEX = 'chunk_index',\n IS_COPIED_FROM_AI = 'is_copied_from_ai',\n}\n\nexport const KnownEvaluationResultAssessmentOutputLabel: Record = {\n response: defineMessage({\n defaultMessage: 'Model output',\n description: 'Evaluation review > Response section > model output > title',\n }),\n};\n\nexport const EXPECTED_FACTS_FIELD_NAME = 'expected_facts';\n\nexport const KnownEvaluationResultAssessmentTargetLabel: Record = {\n expected_response: defineMessage({\n defaultMessage: 'Expected output',\n description: 'Evaluation review > Response section > expected output > title',\n }),\n [EXPECTED_FACTS_FIELD_NAME]: defineMessage({\n defaultMessage: 'Expected facts',\n description: 'Evaluation review > Response section > expected facts > title',\n }),\n};\n\nexport const KnownEvaluationResultAssessmentValueLabel: Record = {\n [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT]: defineMessage({\n defaultMessage: 'Overall',\n description: 'Evaluation results > known type of evaluation result assessment > overall assessment.',\n }),\n [KnownEvaluationResultAssessmentName.CORRECTNESS]: defineMessage({\n defaultMessage: 'Correctness',\n description:\n 'Evaluation results > known type of evaluation result assessment > correctness assessment. Used to indicate if the result is correct in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Correctness: mostly yes, have gaps\"',\n }),\n [KnownEvaluationResultAssessmentName.GROUNDEDNESS]: defineMessage({\n defaultMessage: 'Groundedness',\n description:\n 'Evaluation results > known type of evaluation result assessment > groundedness assessment. Used to indicate if the result is grounded in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Groundedness: moderately grounded\"',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS]: defineMessage({\n defaultMessage: 'Retrieval groundedness',\n description:\n 'Evaluation results > known type of evaluation result assessment > retrieval groundedness assessment. Used to indicate if the result is grounded in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Retrieval groundedness: moderately grounded\"',\n }),\n [KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY]: defineMessage({\n defaultMessage: 'Context sufficiency',\n description:\n 'Evaluation results > known type of evaluation result assessment > context sufficiency assessment. Used to indicate if the retrieved context is sufficient to generate the expected response. Label displayed if user provided custom value, e.g. \"Context Sufficiency: mostly sufficient\"',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY]: defineMessage({\n defaultMessage: 'Retrieval sufficiency',\n description:\n 'Evaluation results > known type of evaluation result assessment > retrieval sufficiency assessment. Used to indicate if the retrieved context is sufficient to generate the expected response. Label displayed if user provided custom value, e.g. \"Retrieval sufficiency: mostly sufficient\"',\n }),\n [KnownEvaluationResultAssessmentName.RELEVANCE_TO_QUERY]: defineMessage({\n defaultMessage: 'Relevance',\n description:\n 'Evaluation results > known type of evaluation result assessment > relevance assessment. Used to indicate if the result is relevant to query in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Relevance: moderate\"',\n }),\n [KnownEvaluationResultAssessmentName.SAFETY]: defineMessage({\n defaultMessage: 'Safety',\n description:\n 'Evaluation results > known type of evaluation result assessment > safety assessment. Used to indicate if the result is safe in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Safety: moderate\"',\n }),\n [KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE]: defineMessage({\n defaultMessage: 'Chunk relevance',\n description:\n 'Evaluation results > known type of evaluation result assessment > chunk relevance assessment. Used to indicate if the result is relevant to source data chunk in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Chunk relevance: moderate\"',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_RELEVANCE]: defineMessage({\n defaultMessage: 'Retrieval relevance',\n description:\n 'Evaluation results > known type of evaluation result assessment > retrieval relevance assessment. Used to indicate if the result is relevant to source data chunk in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Retrieval relevance: moderate\"',\n }),\n [KnownEvaluationResultAssessmentName.GUIDELINE_ADHERENCE]: defineMessage({\n defaultMessage: 'Guideline adherence',\n description:\n 'Evaluation results > known type of evaluation result assessment > guideline adherence assessment. Used to indicate if the result adheres to the guidelines in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Guideline adherence: moderate\"',\n }),\n [KnownEvaluationResultAssessmentName.GUIDELINES]: defineMessage({\n defaultMessage: 'Guidelines',\n description:\n 'Evaluation results > known type of evaluation result assessment > guidelines assessment. Used to indicate if the result adheres to the guidelines in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Guidelines: moderate\"',\n }),\n [KnownEvaluationResultAssessmentName.GLOBAL_GUIDELINE_ADHERENCE]: defineMessage({\n defaultMessage: 'Global guideline adherence',\n description:\n 'Evaluation results > known type of evaluation result assessment > global guideline adherence assessment. Used to indicate if the result adheres to the global guidelines in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Global guideline adherence: moderate\"',\n }),\n};\n\nexport const KnownEvaluationResultAssessmentValueMissingTooltip: Record = {\n [KnownEvaluationResultAssessmentName.CORRECTNESS]: defineMessage({\n defaultMessage:\n 'Correctness assessment is missing. This is likely because you have not provided an expected response (ground truth) or grading notes.',\n description:\n 'Evaluation results > known type of evaluation result assessment > correctness assessment. Used to indicate if the result is correct in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Correctness: mostly yes, have gaps\"',\n }),\n [KnownEvaluationResultAssessmentName.GROUNDEDNESS]: defineMessage({\n defaultMessage:\n 'Groundedness assessment is missing. This is likely because your agent is not returning retrieved_context.',\n description:\n 'Evaluation results > known type of evaluation result assessment > groundedness assessment. Used to indicate if the result is grounded in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Groundedness: moderately grounded\"',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS]: defineMessage({\n defaultMessage:\n 'Retrieval Groundedness assessment is missing. This is likely because your agent is not returning retrieved_context.',\n description:\n 'Evaluation results > known type of evaluation result assessment > retrieval groundedness assessment. Used to indicate if the result is grounded in context of LLMs evaluation. Label displayed if user provided custom value, e.g. \"Retrieval Groundedness: moderately grounded\"',\n }),\n [KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY]: defineMessage({\n defaultMessage:\n 'Context sufficiency assessment is missing. This is likely because your agent is not returning retrieved_context.',\n description:\n 'Evaluation results > known type of evaluation result assessment > context sufficiency assessment. Used to indicate if the retrieved context is sufficient to generate the expected response. Label displayed if user provided custom value, e.g. \"Context Sufficiency: mostly sufficient\"',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY]: defineMessage({\n defaultMessage:\n 'Retrieval sufficiency assessment is missing. This is likely because your agent is not returning retrieved_context.',\n description:\n 'Evaluation results > known type of evaluation result assessment > retrieval sufficiency assessment. Used to indicate if the retrieved context is sufficient to generate the expected response. Label displayed if user provided custom value, e.g. \"Retrieval sufficiency: mostly sufficient\"',\n }),\n};\n\nexport const KnownEvaluationResultAssessmentValueDescription: Record = {\n [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT]: defineMessage({\n defaultMessage: 'The overall assessment passes when all of the judges pass.',\n description:\n 'Evaluation results > known type of evaluation result assessment > overall assessment > description of overall assessment',\n }),\n [KnownEvaluationResultAssessmentName.CORRECTNESS]: defineMessage({\n defaultMessage:\n \"The correctness LLM judge gives a binary evaluation and written rationale on whether the agent's generated response is factually accurate and semantically similar to the provided ground-truth response or grading notes.\",\n description:\n 'Evaluation results > known type of evaluation result assessment > description of correctness assessment.',\n }),\n [KnownEvaluationResultAssessmentName.GROUNDEDNESS]: defineMessage({\n defaultMessage:\n \"The groundedness LLM judge returns a binary evaluation and written rationale on whether the generated response is factually consistent with the agent's retrieved context.\",\n description: 'Evaluation results > known type of evaluation result assessment > description of groundedness judge.',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS]: defineMessage({\n defaultMessage:\n \"The retrieval groundedness LLM judge returns a binary evaluation and written rationale on whether the generated response is factually consistent with the agent's retrieved context.\",\n description:\n 'Evaluation results > known type of evaluation result assessment > description of retrieval groundedness judge.',\n }),\n [KnownEvaluationResultAssessmentName.RELEVANCE_TO_QUERY]: defineMessage({\n defaultMessage:\n 'The relevance_to_query LLM judge determines whether the response is relevant to the input request.',\n description: 'Evaluation results > known type of evaluation result assessment > description of relevance judge.',\n }),\n [KnownEvaluationResultAssessmentName.SAFETY]: defineMessage({\n defaultMessage:\n 'The safety LLM judge returns a binary rating and a written rationale on whether the generated response has harmful or toxic content.',\n description: 'Evaluation results > known type of evaluation result assessment > description of safety judge.',\n }),\n [KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE]: defineMessage({\n defaultMessage:\n 'The chunk-relevance-precision LLM judge determines whether the chunks returned by the retriever are relevant to the input request. Precision is calculated as the number of relevant chunks returned divided by the total number of chunks returned. For example, if the retriever returns four chunks, and the LLM judge determines that three of the four returned documents are relevant to the request, then llm_judged/chunk_relevance/precision is 0.75.',\n description: 'Evaluation results > known type of evaluation result assessment > chunk relevance judge.',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_RELEVANCE]: defineMessage({\n defaultMessage:\n 'The retrieval-relevance LLM judge determines whether the chunks returned by the retriever are relevant to the input request. Precision is calculated as the number of relevant chunks returned divided by the total number of chunks returned. For example, if the retriever returns four chunks, and the LLM judge determines that three of the four returned documents are relevant to the request, then llm_judged/chunk_relevance/precision is 0.75.',\n description: 'Evaluation results > known type of evaluation result assessment > retrieval relevance judge.',\n }),\n [KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY]: defineMessage({\n defaultMessage:\n 'The context sufficiency LLM judge determines whether the retrieved context is sufficient to generate the expected response.',\n description: 'Evaluation results > known type of evaluation result assessment > context sufficiency judge.',\n }),\n [KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY]: defineMessage({\n defaultMessage:\n 'The retrieval sufficiency LLM judge determines whether the retrieved context is sufficient to generate the expected response.',\n description: 'Evaluation results > known type of evaluation result assessment > retrieval sufficiency judge.',\n }),\n [KnownEvaluationResultAssessmentName.GUIDELINE_ADHERENCE]: defineMessage({\n defaultMessage:\n 'The guideline adherence LLM judge determines whether the response adheres to the guidelines provided.',\n description: 'Evaluation results > known type of evaluation result assessment > guideline adherence judge.',\n }),\n [KnownEvaluationResultAssessmentName.GUIDELINES]: defineMessage({\n defaultMessage:\n 'The guidelines LLM judge determines whether the response adheres to the guidelines provided. All responses must adhere to guidelines.',\n description: 'Evaluation results > known type of evaluation result assessment > guidelines judge.',\n }),\n [KnownEvaluationResultAssessmentName.GLOBAL_GUIDELINE_ADHERENCE]: defineMessage({\n defaultMessage:\n 'The global guideline adherence LLM judge determines whether the response adheres to the global guidelines provided. All responses must adhere to global guidelines.',\n description: 'Evaluation results > known type of evaluation result assessment > global guideline adherence judge.',\n }),\n};\n\nexport const KnownEvaluationResultAssessmentValueMapping: Record> = {\n [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Pass',\n description:\n 'Evaluation results > overall assessment > pass value label. Displayed if evaluation result is overall considered as approved by LLM judge or human.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Fail',\n description:\n 'Evaluation results > overall assessment > fail value label. Displayed if evaluation result is overall considered as disapproved by LLM judge or human.',\n }),\n },\n [KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Relevant',\n description:\n 'Evaluation results > chunk relevancy assessment > positive value label. Displayed if evaluation result is considered as relevant to the query.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Irrelevant',\n description:\n 'Evaluation results > chunk relevancy assessment > negative value label. Displayed if evaluation result is considered as irrelevant to the query.',\n }),\n },\n [KnownEvaluationResultAssessmentName.RETRIEVAL_RELEVANCE]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Relevant',\n description:\n 'Evaluation results > retrieval relevancy assessment > positive value label. Displayed if evaluation result is considered as relevant to the query.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Irrelevant',\n description:\n 'Evaluation results > retrieval relevancy assessment > negative value label. Displayed if evaluation result is considered as irrelevant to the query.',\n }),\n },\n [KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Context sufficient',\n description:\n 'Evaluation results > context sufficiency assessment > positive value label. Displayed if retrieved context is sufficient to generate the expected response.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Context insufficient',\n description:\n 'Evaluation results > context sufficiency assessment > negative value label. Displayed if retrieved context is insufficient to generate the expected response.',\n }),\n },\n [KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Sufficient',\n description:\n 'Evaluation results > retrieval sufficiency assessment > positive value label. Displayed if retrieved context is sufficient to generate the expected response.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Insufficient',\n description:\n 'Evaluation results > retrieval sufficiency assessment > negative value label. Displayed if retrieved context is insufficient to generate the expected response.',\n }),\n },\n [KnownEvaluationResultAssessmentName.RELEVANCE_TO_QUERY]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Relevant',\n description:\n 'Evaluation results > relevancy assessment > positive value label. Displayed if evaluation result is considered as irrelevant to the query.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Irrelevant',\n description:\n 'Evaluation results > relevancy assessment > negative value label. Displayed if evaluation result is considered as irrelevant to the query.',\n }),\n },\n [KnownEvaluationResultAssessmentName.GROUNDEDNESS]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Grounded',\n description:\n 'Evaluation results > grounded assessment > positive value label. Displayed if evaluation result is considered as grounded.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Not grounded',\n description:\n 'Evaluation results > grounded assessment > negative value label. Displayed if evaluation result is considered as not grounded.',\n }),\n },\n [KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Grounded',\n description:\n 'Evaluation results > retrieval grounded assessment > positive value label. Displayed if evaluation result is considered as grounded.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Not grounded',\n description:\n 'Evaluation results > retrieval grounded assessment > negative value label. Displayed if evaluation result is considered as not grounded.',\n }),\n },\n [KnownEvaluationResultAssessmentName.CORRECTNESS]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Correct',\n description:\n 'Evaluation results > correctness assessment > positive value label. Displayed if evaluation result is considered as correct.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Incorrect',\n description:\n 'Evaluation results > correctness assessment > negative value label. Displayed if evaluation result is considered as incorrect.',\n }),\n },\n [KnownEvaluationResultAssessmentName.SAFETY]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Safe',\n description:\n 'Evaluation results > safety assessment > positive value label. Displayed if evaluation result is considered as safe.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Unsafe',\n description:\n 'Evaluation results > safety assessment > negative value label. Displayed if evaluation result is considered as unsafe.',\n }),\n },\n [KnownEvaluationResultAssessmentName.GUIDELINE_ADHERENCE]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Adheres to guidelines',\n description:\n 'Evaluation results > guideline adherence assessment > positive value label. Displayed if evaluation result adheres to the guidelines.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Violates guidelines',\n description:\n 'Evaluation results > guideline adherence assessment > negative value label. Displayed if evaluation result does not adhere to the guidelines.',\n }),\n },\n [KnownEvaluationResultAssessmentName.GUIDELINES]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Adheres to guidelines',\n description:\n 'Evaluation results > guidelines assessment > positive value label. Displayed if evaluation result adheres to the guidelines.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Violates guidelines',\n description:\n 'Evaluation results > guidelines assessment > negative value label. Displayed if evaluation result does not adhere to the guidelines.',\n }),\n },\n [KnownEvaluationResultAssessmentName.GLOBAL_GUIDELINE_ADHERENCE]: {\n [KnownEvaluationResultAssessmentStringValue.YES]: defineMessage({\n defaultMessage: 'Adheres to global guidelines',\n description:\n 'Evaluation results > global guideline adherence assessment > positive value label. Displayed if evaluation result adheres to the global guidelines.',\n }),\n [KnownEvaluationResultAssessmentStringValue.NO]: defineMessage({\n defaultMessage: 'Violates global guidelines',\n description:\n 'Evaluation results > global guideline adherence assessment > negative value label. Displayed if evaluation result does not adhere to the global guidelines.',\n }),\n },\n};\n\nconst isAssessmentAiGenerated = (assessment: RunEvaluationResultAssessment) => {\n return assessment?.source?.sourceType === 'AI_JUDGE';\n};\n\n/**\n * Returns the title for the given evaluation result.\n * If the evaluation has an input request, it will be used as the title. Otherwise, the evaluation ID will be used.\n * Stringifies the value if it's an object or an array.\n */\nexport const getEvaluationResultTitle = (evaluation: RunEvaluationTracesDataEntry): string => {\n // Use the request as the title if defined.\n let title = getEvaluationResultInputTitle(evaluation, INPUT_REQUEST_KEY);\n\n if (isNil(title)) {\n title = getEvaluationResultInputTitle(evaluation, INPUT_MESSAGES_KEY);\n }\n\n // If the title is still undefined, JSON-serialize the inputs.\n if (isNil(title) && !isNil(evaluation.inputs) && Object.keys(evaluation.inputs).length > 0) {\n title = stringifyValue(evaluation.inputs);\n }\n\n return title ?? evaluation.evaluationId;\n};\n\n/**\n * Returns the title for the given evaluation result and input key.\n * This is different than getEvaluationResultTitle in that it computes a title per input key. getEvaluationResultTitle returns a title for the\n * whole row (used in the header of an evaluation modal).\n */\nexport const getEvaluationResultInputTitle = (\n evaluation: RunEvaluationTracesDataEntry,\n inputKey: string,\n): string | undefined => {\n if (!isNil(evaluation.inputsTitle)) {\n return typeof evaluation.inputsTitle === 'string' ? evaluation.inputsTitle : JSON.stringify(evaluation.inputsTitle);\n }\n // Use the request as the title if defined.\n let title: string | undefined = undefined;\n // Use the last message content as the title if defined.\n const input = evaluation.inputs[inputKey];\n if (\n isPlainObject(input) &&\n !isNil(input[INPUT_MESSAGES_KEY]) &&\n Array.isArray(input[INPUT_MESSAGES_KEY]) &&\n !isNil(input[INPUT_MESSAGES_KEY][0]?.content)\n ) {\n title = input[INPUT_MESSAGES_KEY][input[INPUT_MESSAGES_KEY].length - 1]?.content;\n } else if (!isNil(input) && Array.isArray(input) && !isNil(input[0]?.content)) {\n // Try to parse OpenAI messages.\n title = input[input.length - 1]?.content;\n } else {\n title = input ? stringifyValue(input) : undefined;\n }\n\n return title;\n};\n\nexport const isEvaluationResultOverallAssessment = (assessmentEntry: RunEvaluationResultAssessment) =>\n assessmentEntry.metadata?.[KnownEvaluationResultAssessmentMetadataFields.IS_OVERALL_ASSESSMENT] === true;\n\nexport const isEvaluationResultPerRetrievalChunkAssessment = (assessmentEntry: RunEvaluationResultAssessment) =>\n isNumber(assessmentEntry.metadata?.[KnownEvaluationResultAssessmentMetadataFields.CHUNK_INDEX]);\n\nexport const getEvaluationResultAssessmentValue = (\n assessment: RunEvaluationResultAssessment,\n): AssessmentValueType | undefined => {\n const value = assessment.stringValue ?? assessment.numericValue ?? assessment.booleanValue;\n if (isNil(value)) {\n return undefined;\n }\n return value;\n};\n\n/**\n * Add alpha channel to the given hex color.\n */\nexport function withAlpha(hexColor: string, opacity: number): string {\n let color = hexColor;\n const startsWithHash = color.startsWith('#');\n if (startsWithHash) {\n color = hexColor.slice(1);\n }\n const alpha = Math.round(Math.min(Math.max(opacity, 0), 1) * 255);\n const hexAlpha = alpha.toString(16).toUpperCase();\n return `${startsWithHash ? '#' : ''}${color}${hexAlpha}`;\n}\n\n/**\n * A list of known response assessment names, used to populate suggestions\n */\nexport const KnownEvaluationResponseAssessmentNames = [\n KnownEvaluationResultAssessmentName.GUIDELINE_ADHERENCE,\n KnownEvaluationResultAssessmentName.GUIDELINES,\n KnownEvaluationResultAssessmentName.GLOBAL_GUIDELINE_ADHERENCE,\n KnownEvaluationResultAssessmentName.RELEVANCE_TO_QUERY,\n KnownEvaluationResultAssessmentName.CONTEXT_SUFFICIENCY,\n KnownEvaluationResultAssessmentName.RETRIEVAL_SUFFICIENCY,\n KnownEvaluationResultAssessmentName.CORRECTNESS,\n KnownEvaluationResultAssessmentName.GROUNDEDNESS,\n KnownEvaluationResultAssessmentName.RETRIEVAL_GROUNDEDNESS,\n KnownEvaluationResultAssessmentName.SAFETY,\n];\n\n/**\n * A list of known retrieval assessment names, used to populate suggestions\n */\nexport const KnownEvaluationRetrievalAssessmentNames = [KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE];\n\n/**\n * Creates a draft assessment object with the given values.\n */\nexport const createDraftEvaluationResultAssessmentObject = ({\n name,\n isOverallAssessment,\n value,\n rationale,\n metadata = {},\n}: {\n isOverallAssessment: boolean;\n name: string;\n value: string | boolean;\n rationale?: string;\n metadata?: RunEvaluationResultAssessment['metadata'];\n}): RunEvaluationResultAssessmentDraft => {\n // Use current user's email to set as source ID\n const sourceId = getUser() ?? '';\n\n const resultMetadata = isOverallAssessment\n ? { ...metadata, [KnownEvaluationResultAssessmentMetadataFields.IS_OVERALL_ASSESSMENT]: true }\n : metadata;\n\n const booleanValue = typeof value === 'boolean' ? value : null;\n const stringValue = typeof value !== 'boolean' ? value : null;\n\n return {\n booleanValue: booleanValue,\n numericValue: null,\n stringValue: stringValue,\n name,\n metadata: resultMetadata,\n rationale: rationale ?? null,\n source: {\n sourceId,\n sourceType: 'HUMAN',\n metadata: {},\n },\n timestamp: Date.now(),\n isDraft: true,\n };\n};\n\nexport const shouldRepeatExistingOriginalOverallAiAssessment = (\n sourceEvaluationResult: RunEvaluationTracesDataEntry,\n pendingAssessmentEntries: RunEvaluationResultAssessmentDraft[],\n) =>\n sourceEvaluationResult.overallAssessments.length > 0 &&\n sourceEvaluationResult.overallAssessments.every(isAssessmentAiGenerated) &&\n !pendingAssessmentEntries.some(isEvaluationResultOverallAssessment);\n\nexport const copyAiOverallAssessmentAsHumanAssessment = (\n sourceEvaluationResult: RunEvaluationTracesDataEntry,\n): RunEvaluationResultAssessmentDraft | null => {\n const firstAiOverallAssessment = sourceEvaluationResult.overallAssessments.find(isAssessmentAiGenerated);\n\n if (!firstAiOverallAssessment) {\n return null;\n }\n\n const sourceId = getUser() ?? '';\n\n return {\n ...firstAiOverallAssessment,\n timestamp: Date.now(),\n isDraft: true,\n source: {\n sourceType: 'HUMAN',\n sourceId,\n metadata: {},\n },\n metadata: {\n ...firstAiOverallAssessment.metadata,\n // Explicitly marking it as reviewed to indicate this assessment is copied from AI\n [KnownEvaluationResultAssessmentMetadataFields.IS_COPIED_FROM_AI]: true,\n },\n };\n};\n\nexport const isDraftAssessment = (\n assessment: RunEvaluationResultAssessment | RunEvaluationResultAssessmentDraft,\n): assessment is RunEvaluationResultAssessmentDraft => 'isDraft' in assessment && assessment.isDraft;\n\n/**\n * Returns a list of detailed assessments.\n *\n * For well-known assessments, the list is sorted based on the known stable order;\n * for other assessments, the list is sorted based on the timestamp of the first appearance\n * of the assessment (last item in the group).\n */\nexport const getOrderedAssessments = (assessmentsByName: Record) =>\n orderBy(Object.entries(assessmentsByName), ([key, assessments], index) => {\n // If we're dealing with a known detailed assessment, we want to sort it based on its index in the known names list\n // so its position is stable\n const indexInKnownNames = DEFAULT_ASSESSMENTS_SORT_ORDER.indexOf(key as KnownEvaluationResultAssessmentName);\n\n if (indexInKnownNames !== -1) {\n // If it's a known detailed assessment, sort by its index in the known names list\n return indexInKnownNames;\n } else {\n // Otherwise, sort by the timestamp of the last item in the group\n return assessments[assessments.length - 1]?.timestamp ?? index;\n }\n });\n\nexport const isEvaluationResultReviewedAlready = (evaluationResult: RunEvaluationTracesDataEntry) =>\n evaluationResult.overallAssessments\n ?.filter((assessment) => !isDraftAssessment(assessment))\n .some((assessment) => !isAssessmentAiGenerated(assessment)) ?? false;\n\nexport const hasBeenEditedByHuman = (assessment: RunEvaluationResultAssessment) =>\n // It is not AI generated, and it doesn't have the `IS_FROM_AI` metadata field set to true\n assessment.source?.sourceType === 'HUMAN' &&\n !assessment.metadata?.[KnownEvaluationResultAssessmentMetadataFields.IS_COPIED_FROM_AI];\n\nexport const getEvaluationResultAssessmentChunkIndex = (assessment: RunEvaluationResultAssessment) =>\n assessment.metadata?.[KnownEvaluationResultAssessmentMetadataFields.CHUNK_INDEX];\n\n// Auto select the first non-empty evaluation ID if no evaluation ID is selected\nexport const autoSelectFirstNonEmptyEvaluationId = (\n evaluationResults: RunEvaluationTracesDataEntry[] | null,\n selectedEvaluationId: string | undefined,\n setSelectedEvaluationId: (evaluationId: string | undefined) => void,\n) => {\n if (!selectedEvaluationId && evaluationResults) {\n // Find first non-empty evaluationId in data\n const firstNonEmpty = evaluationResults.find((evaluation) => evaluation.evaluationId);\n if (firstNonEmpty) {\n setSelectedEvaluationId(firstNonEmpty.evaluationId);\n }\n }\n};\n\n/**\n * Converts the given value to a string if it's an object or an array.\n */\nexport const stringifyValue = (value: any) => {\n return isPlainObject(value) || Array.isArray(value) ? JSON.stringify(value, undefined, 2) : value;\n};\n\n/**\n * Utility function: generates suggestions for the assessment values based on original assessment and options.\n */\nexport const getAssessmentValueSuggestions = (\n intl: IntlShape,\n originalAssessment?: RunEvaluationResultAssessment,\n assessmentHistory?: RunEvaluationResultAssessment[],\n assessmentInfos?: AssessmentInfo[],\n) => {\n // If we're starting with an existing assessment, we should suggest the values that are relevant to it.\n if (originalAssessment) {\n const mapping = KnownEvaluationResultAssessmentValueMapping[originalAssessment.name];\n if (!mapping) {\n return [];\n }\n\n return Object.entries(mapping).map(([key, value]) => {\n return { key, label: intl.formatMessage(value), rootAssessmentName: originalAssessment.name };\n });\n }\n\n // If we're starting with a new assessment, we only suggest 'boolean' values and a new value.\n return (assessmentInfos || [])\n .filter((assessmentInfo) => assessmentInfo.dtype === 'boolean')\n .map((assessmentInfo) => ({\n key: assessmentInfo.name,\n label: assessmentInfo.name,\n rootAssessmentName: assessmentInfo.name,\n // Disabled when the assessment already exists.\n disabled: assessmentHistory?.some((assessment) => assessment.name === assessmentInfo.name),\n }));\n};\n\n/**\n * Returns true if the assessment is missing.\n * An assessment is considered missing if it doesn't have a value, rationale or error message.\n */\nexport const isAssessmentMissing = (assessment?: RunEvaluationResultAssessment) => {\n if (!assessment) {\n return false;\n } else {\n const hasRationale = Boolean(assessment.rationale);\n const hasValue = !isNil(getEvaluationResultAssessmentValue(assessment));\n const hasErrorMessage = Boolean(assessment.errorMessage);\n return !(hasRationale || hasValue || hasErrorMessage);\n }\n};\n\n/**\n * Checks if the given value is a retrieved context.\n * A retrieved context is a list of objects with a `doc_uri` and `content` field.\n */\nexport const isRetrievedContext = (value: any): boolean => {\n return Array.isArray(value) && value.every((v) => isPlainObject(v) && 'doc_uri' in v && 'content' in v);\n};\n","import { isNil } from 'lodash';\n\nimport type { ThemeType } from '@databricks/design-system';\n\nimport { KnownEvaluationResultAssessmentStringValue, withAlpha } from '../components/GenAiEvaluationTracesReview.utils';\nimport type { AssessmentInfo, AssessmentValueType, RunEvaluationResultAssessment } from '../types';\n\n// Taken from figma: https://www.figma.com/design/2B1KMp9x624WrxaASrSv9B/Tiles-UX?node-id=3205-87588&t=1MwrDNNRIOSODm4D-0\nexport const AGGREGATE_SCORE_CHANGE_BACKGROUND_COLORS = {\n // Tag green\n up: '#02B30214',\n // Tag coral\n down: '#F000400F',\n};\n\n// tagTextCoral\nexport const AGGREGATE_SCORE_CHANGE_TEXT_COLOR = '#64172B';\n\n// From https://www.figma.com/design/HvkTlHxw4sKE77wDlRBDt2/Evaluation-UX?node-id=2996-40835&t=uqVDwh0gqqRJI3jS-0\nexport const CURRENT_RUN_COLOR = '#077A9D';\nexport const COMPARE_TO_RUN_COLOR = '#FFAB00';\n\nconst PASS_BARCHART_BAR_COLOR = '#99DDB4';\nconst FAIL_BARCHART_BAR_COLOR = '#FCA4A1';\nconst ERROR_BARCHART_BAR_COLOR = '#f09065';\n\nconst TAG_PASS_COLOR = '#02B30214'; // From tagBackgroundLime.\n\nexport const getEvaluationResultIconColor = (\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n assessment?: RunEvaluationResultAssessment | { stringValue: string; errorMessage?: string },\n) => {\n if (assessmentInfo.dtype === 'pass-fail') {\n // Return the color based on the assessment value\n if (assessment?.stringValue === KnownEvaluationResultAssessmentStringValue.YES) {\n return theme.isDarkMode ? theme.colors.green400 : theme.colors.green600;\n }\n if (assessment?.stringValue === KnownEvaluationResultAssessmentStringValue.NO) {\n return theme.isDarkMode ? theme.colors.red400 : theme.colors.red600;\n }\n }\n if (assessment?.errorMessage) {\n return theme.colors.textValidationWarning;\n }\n return theme.colors.grey400;\n};\n\nexport const getEvaluationResultAssessmentBackgroundColor = (\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n assessment?: RunEvaluationResultAssessment | { stringValue: string; booleanValue?: string; errorMessage?: string },\n iconOnly = false,\n) => {\n if (assessmentInfo.dtype === 'pass-fail') {\n // Return the color based on the assessment value\n if (assessment?.stringValue === KnownEvaluationResultAssessmentStringValue.YES) {\n return TAG_PASS_COLOR;\n }\n if (assessment?.stringValue === KnownEvaluationResultAssessmentStringValue.NO) {\n return theme.isDarkMode ? withAlpha(theme.colors.red800, 0.6) : theme.colors.red200;\n }\n if (!iconOnly && assessment?.errorMessage) {\n return '';\n }\n } else if (assessmentInfo.dtype === 'boolean') {\n if (isNil(assessment?.booleanValue)) {\n return '';\n }\n return assessment.booleanValue ? TAG_PASS_COLOR : theme.isDarkMode ? theme.colors.red800 : theme.colors.red200;\n }\n return '';\n};\n\nexport const getEvaluationResultTextColor = (\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n assessment?: RunEvaluationResultAssessment | { stringValue?: string; booleanValue?: boolean; errorMessage?: string },\n) => {\n if (assessment?.errorMessage) {\n return theme.colors.textValidationWarning;\n }\n\n if (assessmentInfo.dtype === 'pass-fail') {\n // Return the color based on the assessment value\n if (assessment?.stringValue === KnownEvaluationResultAssessmentStringValue.YES) {\n return theme.isDarkMode ? theme.colors.green400 : theme.colors.green600;\n } else if (assessment?.stringValue === KnownEvaluationResultAssessmentStringValue.NO) {\n return theme.isDarkMode ? theme.colors.red400 : theme.colors.red600;\n } else {\n return theme.colors.textSecondary;\n }\n } else if (assessmentInfo.dtype === 'boolean') {\n if (isNil(assessment?.booleanValue)) {\n return theme.colors.textSecondary;\n }\n return theme.colors.textPrimary;\n } else if (assessmentInfo.dtype === 'unknown') {\n return theme.colors.textSecondary;\n }\n return theme.colors.textPrimary;\n};\n\nexport const getAssessmentValueBarBackgroundColor = (\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n assessmentValue: AssessmentValueType,\n isError?: boolean,\n) => {\n if (isError) {\n return ERROR_BARCHART_BAR_COLOR;\n }\n if (assessmentInfo.dtype === 'pass-fail') {\n // Return the color based on the assessment value\n if (assessmentValue === KnownEvaluationResultAssessmentStringValue.YES) {\n return PASS_BARCHART_BAR_COLOR;\n }\n if (assessmentValue === KnownEvaluationResultAssessmentStringValue.NO) {\n return FAIL_BARCHART_BAR_COLOR;\n }\n return theme.isDarkMode ? theme.colors.grey800 : theme.colors.grey200;\n } else if (assessmentInfo.dtype === 'boolean') {\n if (isNil(assessmentValue)) {\n return theme.isDarkMode ? theme.colors.grey800 : theme.colors.grey200;\n }\n return assessmentValue ? PASS_BARCHART_BAR_COLOR : FAIL_BARCHART_BAR_COLOR;\n }\n return theme.isDarkMode ? theme.colors.grey800 : theme.colors.grey200;\n};\n","/**\n * This file re-exports the appropriate package for routing based on the environment.\n *\n * Duplicate of mlflow/web/js/src/common/utils/RoutingUtils.tsx, because unfortunately\n * this package is located in web-shared and we can't directly access it from here.\n */\n/* eslint-disable no-restricted-imports */\nimport React from 'react';\n/**\n * Import React Router V6 parts\n */\nimport {\n BrowserRouter,\n MemoryRouter,\n HashRouter,\n matchPath,\n generatePath,\n Navigate,\n Route,\n Outlet as OutletDirect,\n Link as LinkDirect,\n useNavigate as useNavigateDirect,\n useLocation as useLocationDirect,\n useParams as useParamsDirect,\n useSearchParams as useSearchParamsDirect,\n createHashRouter,\n RouterProvider,\n Routes,\n type To,\n type NavigateOptions,\n type Location,\n type NavigateFunction,\n type Params,\n} from 'react-router-dom';\n\nconst useLocation = useLocationDirect;\n\nconst useSearchParams = useSearchParamsDirect;\n\nconst useParams = useParamsDirect;\n\nconst useNavigate = useNavigateDirect;\n\nconst Outlet = OutletDirect;\n\nconst Link = LinkDirect;\n\nexport {\n // React Router V6 API exports\n BrowserRouter,\n MemoryRouter,\n HashRouter,\n Link,\n useNavigate,\n useLocation,\n useParams,\n useSearchParams,\n generatePath,\n matchPath,\n Navigate,\n Route,\n Routes,\n Outlet,\n\n // Exports used to build hash-based data router\n createHashRouter,\n RouterProvider,\n};\n\nexport const createLazyRouteElement = (\n // Load the module's default export and turn it into React Element\n componentLoader: () => Promise<{ default: React.ComponentType }>,\n) => React.createElement(React.lazy(componentLoader));\nexport const createRouteElement = (component: React.ComponentType) => React.createElement(component);\n\nexport type { Location, NavigateFunction, Params, To, NavigateOptions };\n","import { useCallback, useMemo } from 'react';\n\nimport type { AssessmentFilter, AssessmentInfo, AssessmentValueType } from '../types';\nimport { useSearchParams } from '../utils/RoutingUtils';\n\nconst QUERY_PARAM_KEY = 'assessmentFilter';\nconst VALUE_SEPARATOR = '::';\n\n/**\n * Query param-powered hook that returns the compare to run uuid when comparison is enabled.\n */\nexport const useAssessmentFilters = (assessmentInfos: AssessmentInfo[]) => {\n const [searchParams, setSearchParams] = useSearchParams();\n\n const assessmentFilters: AssessmentFilter[] = useMemo(() => {\n const assessmentFiltersUrl = searchParams.getAll(QUERY_PARAM_KEY) ?? [];\n\n return assessmentFiltersUrl.reduce((filters, urlFilter) => {\n const [run, assessmentName, filterValueString, filterType] = urlFilter.split(VALUE_SEPARATOR);\n const assessmentInfo = assessmentInfos?.find((info) => info.name === assessmentName);\n if (assessmentInfo) {\n const filterValue = serializedStringToAssessmentValue(assessmentInfo, filterValueString);\n filters.push({\n run,\n assessmentName,\n filterValue,\n filterType: filterType === '' ? undefined : filterType,\n } as AssessmentFilter);\n }\n return filters;\n }, []);\n }, [assessmentInfos, searchParams]);\n\n const setAssessmentFilters = useCallback(\n (filters: AssessmentFilter[] | undefined, replace = false) => {\n setSearchParams(\n (params: URLSearchParams) => {\n params.delete(QUERY_PARAM_KEY);\n\n if (filters) {\n filters.forEach((filter) => {\n params.append(\n QUERY_PARAM_KEY,\n [\n filter.run,\n filter.assessmentName,\n assessmentValueToSerializedString(filter.filterValue),\n filter.filterType,\n ].join(VALUE_SEPARATOR),\n );\n });\n }\n\n return params;\n },\n { replace },\n );\n },\n [setSearchParams],\n );\n\n return [assessmentFilters, setAssessmentFilters] as const;\n};\n\nexport function serializedStringToAssessmentValueV2(value: string): AssessmentValueType {\n if (value === 'undefined') {\n return undefined;\n }\n\n // Handle boolean values\n if (value === 'true') {\n return true;\n }\n if (value === 'false') {\n return false;\n }\n\n // TODO(nsthorat): handle float / int types here.\n return value;\n}\n\nexport function serializedStringToAssessmentValue(assessmentInfo: AssessmentInfo, value: string): AssessmentValueType {\n if (assessmentInfo.dtype === 'pass-fail') {\n if (value === 'undefined') {\n return undefined;\n }\n return value;\n } else if (assessmentInfo.dtype === 'boolean') {\n if (value === 'true') {\n return true;\n } else if (value === 'false') {\n return false;\n } else {\n return undefined;\n }\n }\n // TODO(nsthorat): handle float / int types here.\n return value;\n}\n\nexport function assessmentValueToSerializedString(value: AssessmentValueType): string {\n if (value === undefined || value === null) return 'undefined';\n return `${value}`;\n}\n","import { useMemo, useState } from 'react';\n\nimport type { EvaluationsOverviewTableSort, TracesTableColumn } from '../types';\n\nexport const useTableSort = (\n selectedColumns: TracesTableColumn[],\n initialTableSort?: EvaluationsOverviewTableSort,\n): [EvaluationsOverviewTableSort | undefined, (sort: EvaluationsOverviewTableSort | undefined) => void] => {\n const [tableSort, setTableSort] = useState(\n initialTableSort && selectedColumns.find((c) => c.id === initialTableSort.key) ? initialTableSort : undefined,\n );\n\n // This is to keep table sort in sync with selected columns.\n // e.g. if the user deselects the column that is currently used for sorting,\n // we should clear the sort.\n const derivedTableSort = useMemo(() => {\n if (!tableSort) return undefined;\n\n if (!selectedColumns.find((c) => c.id === tableSort.key)) {\n return undefined;\n }\n\n return tableSort;\n }, [tableSort, selectedColumns]);\n\n return [derivedTableSort, setTableSort];\n};\n","import type { Table } from '@tanstack/react-table';\nimport React, { createContext, useMemo, useState } from 'react';\n\nimport type { EvalTraceComparisonEntry } from './types';\n\ntype TraceRow = EvalTraceComparisonEntry & { multiline?: boolean };\n\nexport interface GenAITracesTableContextValue {\n /** TanStack table instance (may be undefined until grandchild mounts) */\n table: Table | undefined;\n /** Grandchild calls this once when it builds the table */\n setTable: (tbl: Table | undefined) => void;\n\n selectedRowIds: string[];\n /** Grandchild updates this on every selection change */\n setSelectedRowIds: (rowIds: string[]) => void;\n}\nexport const GenAITracesTableContext = createContext>({\n table: undefined,\n setTable: () => {},\n selectedRowIds: [],\n setSelectedRowIds: () => {},\n});\n\ninterface GenAITracesTableProviderProps {\n children: React.ReactNode;\n}\n\nexport const GenAITracesTableProvider: React.FC = ({ children }) => {\n const [table, setTable] = useState | undefined>();\n const [selectedRowIds, setSelectedRowIds] = useState([]);\n\n const value = useMemo(() => ({ table, setTable, selectedRowIds, setSelectedRowIds }), [table, selectedRowIds]);\n\n return {children};\n};\n","import React, { useState } from 'react';\n\nimport { Modal, Typography } from '@databricks/design-system';\nimport { FormattedMessage, useIntl } from '@databricks/i18n';\n\nimport type { RunEvaluationTracesDataEntry } from '../types';\n\nexport const GenAiDeleteTraceModal = ({\n experimentIds,\n visible,\n selectedTraces,\n handleClose,\n deleteTraces,\n}: {\n experimentIds: string[];\n visible: boolean;\n selectedTraces: RunEvaluationTracesDataEntry[];\n handleClose: () => void;\n deleteTraces: (experimentId: string, traceIds: string[]) => Promise;\n}) => {\n const intl = useIntl();\n const [errorMessage, setErrorMessage] = useState('');\n const [isLoading, setIsLoading] = useState(false);\n const tracesToDelete = selectedTraces.map((trace) => trace.evaluationId);\n\n const submitDeleteTraces = async () => {\n try {\n await deleteTraces(experimentIds[0] ?? '', tracesToDelete);\n handleClose();\n } catch (e: any) {\n setErrorMessage(\n intl.formatMessage({\n defaultMessage: 'An error occured while attempting to delete traces. Please refresh the page and try again.',\n description: 'Experiment page > traces view controls > Delete traces modal > Error message',\n }),\n );\n }\n setIsLoading(false);\n };\n\n const handleOk = () => {\n submitDeleteTraces();\n setIsLoading(true);\n };\n\n return (\n traces view controls > Delete traces modal > Title\"\n values={{ count: tracesToDelete.length }}\n />\n }\n visible={visible}\n onCancel={handleClose}\n okText={\n traces view controls > Delete traces modal > Delete button\"\n values={{ count: tracesToDelete.length }}\n />\n }\n onOk={handleOk}\n okButtonProps={{ loading: isLoading, danger: true }}\n >\n {errorMessage && {errorMessage}}\n \n \n traces view controls > Delete traces modal > Confirmation message title\"\n values={{\n count: tracesToDelete.length,\n }}\n />\n \n \n \n traces view controls > Delete traces modal > Confirmation message\"\n />\n \n \n );\n};\n","export const shouldEnableRunEvaluationReviewUIWriteFeatures = () => {\n return false;\n};\n\nexport const shouldEnableTagGrouping = () => {\n return true;\n};\n\nexport const shouldEnableUnifiedEvalTab = () => {\n return false;\n};\n\nexport const shouldUseRunIdFilterInSearchTraces = () => {\n return false;\n};\n\n/**\n * Page size for MLflow traces 3.0 search api used in eval tab\n */\nexport const getMlflowTracesSearchPageSize = () => {\n // OSS backend limit is 500\n return 500;\n};\n\n/**\n * Total number of traces that will be fetched via mlflow traces 3.0 search api in eval tab\n */\nexport const getEvalTabTotalTracesLimit = () => {\n return 10000;\n};\n","import type { ModelTrace, ModelTraceInfo, ModelTraceSpan } from '../model-trace-explorer';\n\nexport type AssessmentDType = 'string' | 'numeric' | 'boolean' | 'pass-fail' | 'unknown';\nexport type AssessmentType = 'AI_JUDGE' | 'HUMAN' | 'CODE';\n\n// Reflects structure logged by mlflow.log_table()\nexport interface RawGenaiEvaluationArtifactResponse {\n columns?: (string | null)[];\n data?: (string | number | null | boolean | Record)[][];\n filename: string;\n}\n\nexport interface AssessmentInfo {\n name: string;\n displayName: string;\n // True when the assessment comes from a built-in judge.\n isKnown: boolean;\n isOverall: boolean;\n // The metric that produced the assessment. Defined as the name of the judge or custom metric function that produced the assessment.\n metricName: string;\n source?: RunEvaluationResultAssessmentSource;\n isCustomMetric: boolean;\n isEditable: boolean;\n isRetrievalAssessment: boolean;\n // The type of the assessment value.\n dtype: AssessmentDType;\n uniqueValues: Set;\n\n // Display metadata.\n docsLink: string;\n missingTooltip: string;\n description: string;\n\n // True if if the assesment contains at least one error\n containsErrors?: boolean;\n}\n\ninterface RootCauseAssessmentInfo {\n assessmentName: string;\n suggestedActions?: string;\n}\n\nexport interface EvaluationArtifactTableEntryAssessment {\n evaluation_id: string;\n\n name: string;\n\n boolean_value: boolean | null;\n numeric_value: number | null;\n string_value: string | null;\n rationale: string | null;\n\n source: {\n source_type: AssessmentType;\n source_id: string;\n metadata: any;\n };\n\n metadata?: Record;\n\n timestamp: number;\n\n error_code?: string;\n error_message?: string;\n}\n\nexport interface EvaluationArtifactTableEntryMetric {\n evaluation_id: string;\n key: string;\n value: number;\n timestamp: number;\n}\n\nexport interface EvaluationArtifactTableEntryEvaluation {\n evaluation_id: string;\n inputs_id: string;\n request_id: string;\n run_id?: string;\n\n inputs: Record;\n outputs: Record;\n targets: Record;\n}\n\nexport type RunEvaluationResultAssessmentSource = {\n sourceType: AssessmentType;\n sourceId: string;\n metadata: Record;\n};\n\nexport type RunEvaluationResultAssessment = {\n name: string;\n rationale?: string | null;\n source?: RunEvaluationResultAssessmentSource;\n metadata?: Record;\n errorCode?: string;\n errorMessage?: string;\n numericValue?: number | null;\n booleanValue?: boolean | null;\n stringValue?: string | null;\n // Root cause assessment points to the assessment name causing the failure.\n rootCauseAssessment?: RootCauseAssessmentInfo | null;\n timestamp?: number | null;\n};\n\nexport type AssessmentValueType = string | boolean | number | undefined;\n\nexport type AssessmentRunCounts = Map;\n\nexport interface AssessmentAggregates {\n assessmentInfo: AssessmentInfo;\n\n // Counts for the current run and other run.\n currentCounts?: AssessmentRunCounts;\n otherCounts?: AssessmentRunCounts;\n\n // Numeric values for the current run and other run.\n currentNumericValues?: number[];\n otherNumericValues?: number[];\n\n currentNumRootCause: number;\n otherNumRootCause: number;\n\n // Numeric aggregate counts for the current run.\n currentNumericAggregate?: NumericAggregate;\n\n assessmentFilters: AssessmentFilter[];\n}\n\nexport interface EvaluationsOverviewTableSort {\n key: string;\n type: TracesTableColumnType;\n asc: boolean;\n}\n\nexport interface TraceActions {\n exportToEvals?: {\n getTrace?: (requestId?: string, traceId?: string) => Promise;\n };\n deleteTracesAction?: {\n deleteTraces: (experimentId: string, traceIds: string[]) => Promise;\n };\n editTags?: {\n showEditTagsModalForTrace: (trace: ModelTraceInfo) => void;\n EditTagsModal: React.ReactNode;\n };\n}\n\n// @deprecated, use TableFilter instead\nexport interface AssessmentFilter {\n assessmentName: string;\n filterValue: AssessmentValueType;\n // Only defined when filtering on an assessment for RCA values.\n filterType?: 'rca' | undefined;\n run: string;\n}\nexport type TableFilter = {\n // The column group (e.g. \"Assessments\") or a specific column (e.g. \"execution_duration\")\n column: TracesTableColumnGroup | string;\n // Should be defined if a column group is used.\n key?: string;\n operator: FilterOperator;\n value: TableFilterValue;\n};\n\nexport type TableFilterValue = string | boolean | number | undefined;\n\nexport interface TableFilterOption {\n value: string;\n renderValue: () => string | React.ReactNode;\n}\n\nexport interface TableFilterOptions {\n source: TableFilterOption[];\n}\n\nexport enum FilterOperator {\n EQUALS = '=',\n GREATER_THAN = '>',\n LESS_THAN = '<',\n GREATER_THAN_OR_EQUALS = '>=',\n LESS_THAN_OR_EQUALS = '<=',\n}\n\nexport interface AssessmentDropdownSuggestionItem {\n label: string;\n key: string;\n rootAssessmentName?: string;\n disabled?: boolean;\n}\n\nexport interface RunEvaluationResultAssessmentDraft extends RunEvaluationResultAssessment {\n isDraft: true;\n}\n\nexport type RunEvaluationResultMetric = {\n key: string;\n value: number;\n timestamp: number;\n};\n\nexport type RunEvaluationTracesRetrievalChunk = {\n docUrl: string;\n content: string;\n retrievalAssessmentsByName?: Record;\n target?: string;\n};\n\n// TODO(nsthorat): Move these to the shared types location:\n// https://src.dev.databricks.com/databricks-eng/universe/-/blob/webapp/web/js/genai/shared/types.ts\n// The shared type does not yet support TraceInfoV3.\n// I had to add these here because the types in genai/shared/types are TraceV2.\n// The types in trace-explorer are also TraceV2.\nexport type AssessmentV3 = {\n assessment_id: string;\n assessment_name: string;\n trace_id: string;\n span_id?: string;\n create_time: string;\n last_update_time: string;\n feedback?: {\n value: string | number | boolean;\n error?: {\n error_code?: string;\n error_message?: string;\n };\n };\n expectation?: {\n value: string | string[];\n serialized_value?: {\n serialization_format?: string;\n value: string | string[];\n };\n error?: {\n error_code?: string;\n error_message?: string;\n };\n };\n metadata?: Record;\n rationale?: string;\n error?: {\n error_code?: string;\n error_message?: string;\n };\n source?: {\n source_type?: 'HUMAN' | 'LLM_JUDGE' | 'CODE';\n source_id?: string;\n };\n};\n\nexport type TraceInfoV3 = {\n trace_id: string;\n client_request_id?: string;\n trace_location: {\n type: 'MLFLOW_EXPERIMENT' | 'INFERENCE_TABLE';\n mlflow_experiment?: { experiment_id: string };\n inference_table?: { full_table_name: string };\n };\n request?: string;\n request_preview?: string;\n response?: string;\n response_preview?: string;\n request_time: string;\n execution_duration?: string;\n state: 'STATE_UNSPECIFIED' | 'OK' | 'ERROR' | 'IN_PROGRESS';\n trace_metadata?: Record;\n tags?: Record;\n assessments?: AssessmentV3[];\n};\n\nexport type TraceV3 = {\n info: TraceInfoV3;\n data: {\n spans: ModelTraceSpan[];\n };\n};\n\n/**\n * An entity encompassing single review evaluation data.\n */\nexport type RunEvaluationTracesDataEntry = {\n evaluationId: string;\n requestId: string;\n inputsTitle?: string;\n inputs: Record;\n inputsId: string;\n outputs: Record;\n targets: Record;\n errorCode?: string;\n errorMessage?: string;\n requestTime?: string;\n overallAssessments: RunEvaluationResultAssessment[];\n responseAssessmentsByName: Record<\n // Keyed by assessment name (e.g. \"overall_judgement\", \"readability_score\" etc.)\n string,\n RunEvaluationResultAssessment[]\n >;\n metrics: Record;\n retrievalChunks?: RunEvaluationTracesRetrievalChunk[];\n\n // NOTE(nsthorat): We will slowly migrate to this type.\n traceInfo?: TraceInfoV3;\n};\n\nexport interface EvalTraceComparisonEntry {\n currentRunValue?: RunEvaluationTracesDataEntry;\n otherRunValue?: RunEvaluationTracesDataEntry;\n}\n\nexport interface SaveAssessmentsQuery {\n savePendingAssessments: (\n runUuid: string,\n evaluationId: string,\n pendingAssessmentEntries: RunEvaluationResultAssessmentDraft[],\n ) => void;\n isSaving: boolean;\n}\n\n// Internal type used to determine behavior of different types of columns.\n// We should try to move away from this and start to use TracesTableColumnGroup instead.\nexport enum TracesTableColumnType {\n ASSESSMENT = 'ASSESSMENT',\n TRACE_INFO = 'TRACE_INFO',\n INPUT = 'INPUT',\n // This is a hack so that internal agent monitoring can display request time.\n INTERNAL_MONITOR_REQUEST_TIME = 'INTERNAL_MONITOR_REQUEST_TIME',\n}\n\n// This represents columns that are grouped together.\n// For example, each assessment is its own column, but they are all grouped under the \"Assessments\" column group.\nexport enum TracesTableColumnGroup {\n ASSESSMENT = 'ASSESSMENT',\n TAG = 'TAG',\n INFO = 'INFO',\n}\n\nexport const TracesTableColumnGroupToLabelMap = {\n [TracesTableColumnGroup.ASSESSMENT]: 'Assessments',\n [TracesTableColumnGroup.TAG]: 'Tags',\n // We don't show a label for the info column group\n [TracesTableColumnGroup.INFO]: '\\u00A0',\n};\n\nexport interface TracesTableColumn {\n // This is the assessment name for assessments, and a static string for trace info and input columns\n id: string;\n label: string;\n type: TracesTableColumnType;\n group?: TracesTableColumnGroup;\n\n // TODO: Remove this field once migration to trace info v3 is complete\n assessmentInfo?: AssessmentInfo;\n}\n\nexport interface TableFilterFormState {\n filters: TableFilter[];\n}\n\n// A bucket of a numeric aggregate.\nexport type NumericAggregateCount = {\n // The lower bound of the bucket, inclusive.\n lower: number;\n // The upper bound of the bucket, exclusive except for the last bucket.\n upper: number;\n // The number of values in the bucket.\n count: number;\n};\n\n// A numeric aggregate with the min, mid, and max values, and the counts of values in each bucket.\nexport type NumericAggregate = {\n min: number;\n max: number;\n maxCount: number;\n counts: NumericAggregateCount[];\n};\n","import { isNil } from 'lodash';\nimport { useMemo } from 'react';\n\nimport type { IntlShape } from '@databricks/i18n';\n\nimport { KnownEvaluationResultAssessmentName } from '../enum';\nimport type { AssessmentInfo, RunEvaluationTracesDataEntry, TraceInfoV3, TracesTableColumn } from '../types';\nimport { TracesTableColumnGroup, TracesTableColumnType } from '../types';\nimport { shouldEnableTagGrouping } from '../utils/FeatureUtils';\nimport {\n createCustomMetadataColumnId,\n createTagColumnId,\n MLFLOW_INTERNAL_PREFIX,\n shouldUseTraceInfoV3,\n} from '../utils/TraceUtils';\n\nexport const USER_COLUMN_ID = 'user';\nexport const SESSION_COLUMN_ID = 'session';\nexport const RESPONSE_COLUMN_ID = 'response';\nexport const TRACE_ID_COLUMN_ID = 'trace_id';\nexport const REQUEST_TIME_COLUMN_ID = 'request_time';\nexport const EXECUTION_DURATION_COLUMN_ID = 'execution_duration';\nexport const STATE_COLUMN_ID = 'state';\nexport const SOURCE_COLUMN_ID = 'source';\nexport const TAGS_COLUMN_ID = 'tags';\nexport const TRACE_NAME_COLUMN_ID = 'trace_name';\nexport const INPUTS_COLUMN_ID = 'request';\nexport const RUN_NAME_COLUMN_ID = 'run_name';\nexport const LOGGED_MODEL_COLUMN_ID = 'logged_model';\nexport const TOKENS_COLUMN_ID = 'tokens';\nexport const CUSTOM_METADATA_COLUMN_ID = 'custom_metadata';\n\nexport const SORTABLE_INFO_COLUMNS = [EXECUTION_DURATION_COLUMN_ID, REQUEST_TIME_COLUMN_ID, SESSION_COLUMN_ID];\n// Columns that are sortable by the server. Server-side sorting should be prioritized over client-side sorting.\nexport const SERVER_SORTABLE_INFO_COLUMNS = [EXECUTION_DURATION_COLUMN_ID, REQUEST_TIME_COLUMN_ID];\n\n// This is a short term fix to not display any additional assessments with the trace info v3 migration.\n// Long term we should decide how to best display these assessments.\nconst EXCLUDED_ASSESSMENT_NAMES = [\n KnownEvaluationResultAssessmentName.CHUNK_RELEVANCE,\n KnownEvaluationResultAssessmentName.TOTAL_INPUT_TOKEN_COUNT,\n KnownEvaluationResultAssessmentName.TOTAL_OUTPUT_TOKEN_COUNT,\n KnownEvaluationResultAssessmentName.TOTAL_TOKEN_COUNT,\n KnownEvaluationResultAssessmentName.DOCUMENT_RECALL,\n KnownEvaluationResultAssessmentName.DOCUMENT_RATINGS,\n];\n\nconst ASSESSMENT_COLUMN_ID_SUFFIX = '_assessment_column';\n\n// Add a suffix to the assessment name as the id to make it work for blank names.\nexport function createAssessmentColumnId(assessmentName: string) {\n return assessmentName + ASSESSMENT_COLUMN_ID_SUFFIX;\n}\n\nexport const useTableColumns = (\n intl: IntlShape,\n currentEvaluationResults: RunEvaluationTracesDataEntry[],\n assessmentInfos: AssessmentInfo[],\n runUuid: string | undefined,\n otherEvaluationResults?: RunEvaluationTracesDataEntry[],\n isTraceInfoV3Override?: boolean,\n) => {\n const allColumns: TracesTableColumn[] = useMemo(() => {\n const isTraceInfoV3 = isTraceInfoV3Override ?? shouldUseTraceInfoV3(currentEvaluationResults);\n let inputCols = [];\n if (!isTraceInfoV3) {\n let inputKeys = new Set();\n let traceInfoColumns = new Set();\n\n currentEvaluationResults.forEach((result) => {\n const { inputs } = result;\n inputKeys = new Set([...inputKeys, ...Object.keys(inputs || {})]);\n\n traceInfoColumns = new Set([\n ...traceInfoColumns,\n ...Object.keys(result.traceInfo || {}),\n ] as (keyof TraceInfoV3)[]);\n });\n\n inputCols = [...inputKeys].map((key) => ({\n id: key,\n label: key,\n type: TracesTableColumnType.INPUT,\n }));\n } else {\n inputCols = [\n {\n id: INPUTS_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Request',\n description: 'Column label for request',\n }),\n type: TracesTableColumnType.INPUT,\n group: TracesTableColumnGroup.INFO,\n },\n ];\n }\n\n const assessmentColumns = assessmentInfos\n .map((assessmentInfo) => ({\n id: createAssessmentColumnId(assessmentInfo.name),\n label: assessmentInfo.displayName,\n type: TracesTableColumnType.ASSESSMENT,\n assessmentInfo,\n group: TracesTableColumnGroup.ASSESSMENT,\n }))\n .filter(\n (assessment) =>\n // retrieval columns should not be displayed in the table since they don't apply to the overall trace\n !assessment.assessmentInfo.isRetrievalAssessment &&\n !EXCLUDED_ASSESSMENT_NAMES.includes(assessment.assessmentInfo.name as KnownEvaluationResultAssessmentName),\n );\n\n let infoCols;\n if (isTraceInfoV3) {\n infoCols = [\n {\n id: TRACE_ID_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Trace ID',\n description: 'Column label for trace ID',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: TRACE_NAME_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Trace name',\n description: 'Column label for trace name',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: RESPONSE_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Response',\n description: 'Column label for response',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: USER_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'User',\n description: 'Column label for user',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: SESSION_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Session',\n description: 'Column label for session',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: EXECUTION_DURATION_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Execution time',\n description: 'Column label for execution time',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: REQUEST_TIME_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Request time',\n description: 'Column label for request time',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: STATE_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'State',\n description: 'Column label for state',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: SOURCE_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Source',\n description: 'Column label for source',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: LOGGED_MODEL_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Version',\n description: 'Column label for logged model',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n {\n id: TOKENS_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Tokens',\n description: 'Column label for tokens',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n // Only show run name column on experiment level traces, where runUuid is not provided\n isNil(runUuid) && {\n id: RUN_NAME_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Run name',\n description: 'Column label for run name',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n },\n !shouldEnableTagGrouping() && {\n id: TAGS_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Tags',\n description: 'Column label for tags',\n }),\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.TAG,\n },\n ];\n\n const allResults = [...currentEvaluationResults, ...(otherEvaluationResults || [])];\n // Populate custom metadata columns\n const customMetadataColumns: Record = {};\n allResults.forEach((result) => {\n const traceMetadata = result.traceInfo?.trace_metadata;\n if (traceMetadata) {\n Object.keys(traceMetadata).forEach((key) => {\n if (!key.startsWith(MLFLOW_INTERNAL_PREFIX) && !customMetadataColumns[key]) {\n customMetadataColumns[key] = {\n id: createCustomMetadataColumnId(key),\n label: key,\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.INFO,\n };\n }\n });\n }\n });\n infoCols = [...infoCols, ...Object.values(customMetadataColumns)];\n\n if (shouldEnableTagGrouping()) {\n const tagColumnRecords: Record = {};\n allResults\n .map((result) => result.traceInfo?.tags)\n .forEach((tag) => {\n Object.keys(tag || {}).forEach((key) => {\n if (!key.startsWith(MLFLOW_INTERNAL_PREFIX) && !tagColumnRecords[key]) {\n tagColumnRecords[key] = {\n id: createTagColumnId(key),\n label: key,\n type: TracesTableColumnType.TRACE_INFO,\n group: TracesTableColumnGroup.TAG,\n };\n }\n });\n });\n const tagColumns = Object.values(tagColumnRecords);\n\n infoCols = [...infoCols, ...tagColumns];\n }\n } else {\n infoCols = currentEvaluationResults.some((result) => !isNil(result.requestTime))\n ? [\n {\n id: REQUEST_TIME_COLUMN_ID,\n label: intl.formatMessage({\n defaultMessage: 'Request time',\n description: 'Column label for request time',\n }),\n type: TracesTableColumnType.INTERNAL_MONITOR_REQUEST_TIME,\n },\n ]\n : [];\n }\n\n return [...inputCols, ...infoCols, ...assessmentColumns].filter((col): col is TracesTableColumn => Boolean(col));\n }, [currentEvaluationResults, intl, assessmentInfos, runUuid, otherEvaluationResults, isTraceInfoV3Override]);\n\n return allColumns;\n};\n","import { isNil, uniq } from 'lodash';\n\nimport { ModelTraceSpanType } from '@databricks/web-shared/model-trace-explorer';\nimport type { ModelTrace, ModelTraceInfo, RetrieverDocument } from '@databricks/web-shared/model-trace-explorer';\n\nimport { stringifyValue } from '../components/GenAiEvaluationTracesReview.utils';\nimport { KnownEvaluationResultAssessmentName } from '../enum';\nimport { CUSTOM_METADATA_COLUMN_ID, TAGS_COLUMN_ID } from '../hooks/useTableColumns';\nimport type {\n AssessmentType,\n AssessmentV3,\n RunEvaluationResultAssessment,\n RunEvaluationResultAssessmentSource,\n RunEvaluationTracesDataEntry,\n RunEvaluationTracesRetrievalChunk,\n TraceInfoV3,\n} from '../types';\n\n// This is the key used by the eval harness to record\n// which chunk a given retrieval assessment corresponds to.\nconst MLFLOW_SPAN_OUTPUT_KEY = 'span_output_key';\n\nconst MLFLOW_ASSESSMENT_ROOT_CAUSE_ASSESSMENT = 'root_cause_assessment';\nconst MLFLOW_ASSESSMENT_ROOT_CAUSE_RATIONALE = 'root_cause_rationale';\nconst MLFLOW_ASSESSMENT_SUGGESTED_ACTION = 'suggested_action';\nexport const MLFLOW_SOURCE_RUN_KEY = 'mlflow.sourceRun';\n\nexport const MLFLOW_INTERNAL_PREFIX = 'mlflow.';\n\nexport const getRowIdFromEvaluation = (evaluation?: RunEvaluationTracesDataEntry) => {\n return evaluation?.evaluationId || '';\n};\n\nexport const getRowIdFromTrace = (trace?: TraceInfoV3) => {\n return trace?.trace_id || '';\n};\n\nexport const getTagKeyFromColumnId = (columnId: string) => {\n return columnId.split(':').pop();\n};\n\nexport const getCustomMetadataKeyFromColumnId = (columnId: string) => {\n return columnId.split(':').pop();\n};\n\nexport const createTagColumnId = (tagKey: string) => {\n return `${TAGS_COLUMN_ID}:${tagKey}`;\n};\n\nexport const createCustomMetadataColumnId = (metadataKey: string) => {\n return `${CUSTOM_METADATA_COLUMN_ID}:${metadataKey}`;\n};\n\nexport const getTracesTagKeys = (traces: TraceInfoV3[]): string[] => {\n return uniq(\n traces\n .map((result) => {\n return Object.keys(result.tags || {}).filter((key) => key && !key.startsWith(MLFLOW_INTERNAL_PREFIX));\n })\n .flat(),\n );\n};\n\n/**\n * This is currently only used to support the edit tags flow which only requires request id + tags\n */\nexport const convertTraceInfoV3ToModelTraceInfo = (trace: TraceInfoV3) => {\n const kvArray = (obj?: Record): { key: string; value: string }[] | undefined =>\n obj ? Object.entries(obj).map(([key, value]) => ({ key, value })) : undefined;\n\n const model: ModelTraceInfo = {\n request_id: trace.client_request_id ?? trace.trace_id,\n tags: kvArray(trace.tags),\n };\n\n return model;\n};\n\n// This function checks if the traceInfo field is present in the first entry of the evalResults array.\n// We assume that all entries in evalResults will either contain traceInfo or not.\nexport const shouldUseTraceInfoV3 = (evalResults: RunEvaluationTracesDataEntry[]): boolean => {\n return evalResults.length > 0 && Boolean(evalResults[0].traceInfo);\n};\n\nconst safelyParseValue = (val: string): string | T => {\n try {\n return JSON.parse(val);\n } catch {\n return val;\n }\n};\n\nexport const getTraceInfoInputs = (traceInfo: TraceInfoV3) => {\n return traceInfo.request_preview || traceInfo.request || traceInfo.trace_metadata?.['mlflow.traceInputs'] || '';\n};\n\nexport const getTraceInfoOutputs = (traceInfo: TraceInfoV3) => {\n return traceInfo.response_preview || traceInfo.response || traceInfo.trace_metadata?.['mlflow.traceOutputs'] || '';\n};\n\nconst isExpectationAssessment = (assessment: AssessmentV3): boolean => {\n return Boolean(assessment.expectation);\n};\n\nconst LIST_TRACES_IGNORE_ASSESSMENTS = ['agent/latency_seconds'];\n\nfunction processExpectationAssessment(assessment: AssessmentV3, targets: Record): void {\n const assessmentName = assessment.assessment_name;\n const assessmentValue = assessment.expectation?.value || assessment.expectation?.serialized_value?.value;\n\n if (Array.isArray(assessmentValue) && assessmentValue.length > 0) {\n targets[assessmentName] = assessmentValue.map((val) => {\n return safelyParseValue(val);\n });\n } else if (typeof assessmentValue === 'string') {\n targets[assessmentName] = safelyParseValue(assessmentValue);\n } else {\n targets[assessmentName] = [];\n }\n}\n\nfunction processFeedbackAssessment(\n assessment: AssessmentV3,\n overallAssessments: RunEvaluationResultAssessment[],\n responseAssessmentsByName: Record,\n): void {\n const assessmentName = assessment.assessment_name;\n const evalResultAssessment = convertFeedbackAssessmentToRunEvalAssessment(assessment);\n\n if (assessmentName === KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT) {\n overallAssessments.push(evalResultAssessment);\n }\n if (!responseAssessmentsByName[assessmentName]) {\n responseAssessmentsByName[assessmentName] = [];\n }\n\n responseAssessmentsByName[assessmentName].push(evalResultAssessment);\n}\n\nconst convertAssessmentV3Source = (assessment: AssessmentV3): RunEvaluationResultAssessmentSource | undefined => {\n if (!assessment.source?.source_type) {\n return undefined;\n }\n const sourceType = assessment.source?.source_type;\n\n let runEvalSourceType: AssessmentType;\n if (sourceType === 'LLM_JUDGE') {\n runEvalSourceType = 'AI_JUDGE';\n } else {\n runEvalSourceType = sourceType;\n }\n\n return {\n sourceType: runEvalSourceType,\n sourceId: assessment.source?.source_id || '',\n metadata: {},\n };\n};\n\nconst convertFeedbackAssessmentToRunEvalAssessment = (assessment: AssessmentV3): RunEvaluationResultAssessment => {\n const assessmentValue = assessment.feedback?.value;\n const isOverallAssessment = assessment.assessment_name === KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT;\n const source = convertAssessmentV3Source(assessment);\n const error = assessment.feedback?.error || assessment.error;\n return {\n name: assessment.assessment_name,\n stringValue: typeof assessmentValue === 'string' ? assessmentValue : undefined,\n booleanValue: typeof assessmentValue === 'boolean' ? assessmentValue : undefined,\n numericValue: typeof assessmentValue === 'number' ? assessmentValue : undefined,\n errorCode: error?.error_code,\n errorMessage: error?.error_message,\n rationale: assessment.metadata?.[MLFLOW_ASSESSMENT_ROOT_CAUSE_RATIONALE] || assessment.rationale,\n source,\n rootCauseAssessment: isOverallAssessment\n ? {\n assessmentName: assessment.metadata?.[MLFLOW_ASSESSMENT_ROOT_CAUSE_ASSESSMENT] || '',\n suggestedActions: assessment.metadata?.[MLFLOW_ASSESSMENT_SUGGESTED_ACTION],\n }\n : undefined,\n metadata: assessment.metadata,\n };\n};\n\nexport const convertTraceInfoV3ToRunEvalEntry = (traceInfo: TraceInfoV3): RunEvaluationTracesDataEntry => {\n const evaluationId = getRowIdFromTrace(traceInfo);\n\n // Prepare containers for our assessments.\n const overallAssessments: RunEvaluationResultAssessment[] = [];\n const responseAssessmentsByName: Record = {};\n const targets: Record = {};\n\n traceInfo.assessments?.forEach((assessment) => {\n const assessmentName = assessment.assessment_name;\n if (LIST_TRACES_IGNORE_ASSESSMENTS.includes(assessmentName)) {\n return;\n }\n if (isExpectationAssessment(assessment)) {\n processExpectationAssessment(assessment, targets);\n } else {\n processFeedbackAssessment(assessment, overallAssessments, responseAssessmentsByName);\n }\n });\n\n // trace server has input/output in request/response field, and mlflow tracking server has it in the metadata\n const rawInputs = getTraceInfoInputs(traceInfo);\n const rawOutputs = getTraceInfoOutputs(traceInfo);\n\n let inputsTitle = rawInputs;\n let inputs: Record = {};\n let outputs: Record = {};\n try {\n inputs = JSON.parse(rawInputs);\n\n // Try to parse OpenAI messages\n const messages = inputs['messages'];\n if (Array.isArray(messages) && !isNil(messages[0]?.content)) {\n inputsTitle = messages[messages.length - 1]?.content;\n } else {\n inputsTitle = stringifyValue(inputs);\n }\n } catch {\n inputs = {\n request: rawInputs,\n };\n }\n\n try {\n outputs = { response: JSON.parse(rawOutputs) };\n } catch {\n outputs = { response: rawOutputs };\n }\n return {\n evaluationId,\n requestId: traceInfo.client_request_id || evaluationId,\n inputsId: evaluationId,\n inputsTitle,\n inputs,\n outputs,\n targets,\n overallAssessments,\n responseAssessmentsByName,\n metrics: {},\n traceInfo,\n };\n};\n\nexport const applyTraceInfoV3ToEvalEntry = (\n evalResults: RunEvaluationTracesDataEntry[],\n): RunEvaluationTracesDataEntry[] => {\n if (!shouldUseTraceInfoV3(evalResults)) {\n return evalResults;\n }\n return evalResults.map((result) => {\n if (!result.traceInfo) {\n return result;\n }\n // Convert the single TraceInfo to a single RunEvaluationTracesDataEntry\n const converted = convertTraceInfoV3ToRunEvalEntry(result.traceInfo);\n // Merge the newly converted fields with the existing data\n return {\n ...result,\n ...converted,\n };\n });\n};\n\nexport const isTraceExportable = (entry: RunEvaluationTracesDataEntry) => {\n let responseJson;\n try {\n responseJson = JSON.parse(entry.outputs['response']);\n } catch {\n if (!entry.outputs['response']) {\n return false;\n }\n // entry.outputs.response may already be parsed in case of external monitors\n // so try using it directly here.\n responseJson = entry.outputs['response'];\n }\n if (isNil(responseJson)) {\n return false;\n }\n\n const responseIsChatCompletion =\n (Array.isArray(responseJson['messages']) && !isNil(responseJson['messages']?.[0]?.['content'])) ||\n (Array.isArray(responseJson['choices']) && !isNil(responseJson['choices']?.[0]?.['message']?.['content']));\n\n return responseIsChatCompletion;\n};\n\nexport function getRetrievedContextFromTrace(\n responseAssessmentsByName: Record,\n trace: ModelTrace | undefined,\n): RunEvaluationTracesRetrievalChunk[] | undefined {\n if (isNil(trace)) {\n return undefined;\n }\n let docUriKey = 'doc_uri';\n const tags = trace.info.tags as Record | undefined;\n if (tags?.['retrievers']) {\n const retrieverInfos = safelyParseValue<{ doc_uri: string; chunk_id: string }[]>(tags['retrievers']);\n if (typeof retrieverInfos === 'object' && retrieverInfos.length > 0) {\n docUriKey = retrieverInfos[0].doc_uri;\n }\n }\n\n const retrievalSpans = trace.data.spans.filter(\n (span) =>\n span.attributes?.['mlflow.spanType'] &&\n safelyParseValue(span.attributes?.['mlflow.spanType']) === ModelTraceSpanType.RETRIEVER,\n );\n if (retrievalSpans.length === 0) {\n return [];\n }\n\n // Return the last retrieval span chronologically since it is the one analyzed by our judges.\n const spanOutputs = retrievalSpans.at(-1)?.attributes?.['mlflow.spanOutputs'];\n if (!spanOutputs) {\n return [];\n }\n\n const outputs = safelyParseValue(spanOutputs) as RetrieverDocument[];\n if (!Array.isArray(outputs)) {\n return [];\n }\n\n const retrievalChunks = outputs.map((doc, index) => {\n return {\n docUrl: doc.metadata?.[docUriKey],\n content: doc.page_content,\n retrievalAssessmentsByName: getRetrievalAssessmentsByName(responseAssessmentsByName, index),\n };\n });\n\n return retrievalChunks;\n}\n\nconst getRetrievalAssessmentsByName = (\n responseAssessmentsByName: Record,\n chunkIndex: number,\n): Record => {\n const filteredResponseAssessmentsByName = Object.fromEntries(\n Object.entries(responseAssessmentsByName)\n .map(([key, assessments]) => [\n key,\n assessments.filter((assessment) => Number(assessment?.metadata?.[MLFLOW_SPAN_OUTPUT_KEY]) === chunkIndex),\n ])\n .filter(([key, filteredAssessments]) => filteredAssessments.length > 0),\n );\n\n return filteredResponseAssessmentsByName;\n};\n","import type { RowSelectionState } from '@tanstack/react-table';\nimport { isNil } from 'lodash';\nimport { useCallback, useContext, useMemo, useState } from 'react';\n\nimport { Button, Tooltip, DropdownMenu, ChevronDownIcon } from '@databricks/design-system';\nimport { useIntl } from '@databricks/i18n';\n\nimport { GenAITracesTableContext } from './GenAITracesTableContext';\nimport { GenAiDeleteTraceModal } from './components/GenAiDeleteTraceModal';\nimport type { RunEvaluationTracesDataEntry, TraceActions, TraceInfoV3 } from './types';\nimport { shouldEnableTagGrouping } from './utils/FeatureUtils';\nimport { applyTraceInfoV3ToEvalEntry, convertTraceInfoV3ToModelTraceInfo, getRowIdFromTrace } from './utils/TraceUtils';\n\ninterface GenAITracesTableActionsProps {\n experimentId: string;\n // @deprecated\n selectedTraces?: RunEvaluationTracesDataEntry[];\n // @deprecated\n setRowSelection?: React.Dispatch>;\n traceActions?: TraceActions;\n traceInfos: TraceInfoV3[] | undefined;\n}\n\nexport const GenAITracesTableActions = (props: GenAITracesTableActionsProps) => {\n const { traceActions, experimentId, selectedTraces: selectedTracesFromProps, traceInfos, setRowSelection } = props;\n\n const { table, selectedRowIds } = useContext(GenAITracesTableContext);\n\n const selectedTracesFromContext: RunEvaluationTracesDataEntry[] | undefined = useMemo(\n () =>\n applyTraceInfoV3ToEvalEntry(\n selectedRowIds\n .map((rowId) => {\n const traceInfo = traceInfos?.find((trace) => getRowIdFromTrace(trace) === rowId);\n if (!traceInfo) {\n return undefined;\n }\n return {\n evaluationId: traceInfo.trace_id,\n requestId: traceInfo.client_request_id || traceInfo.trace_id,\n inputsId: traceInfo.trace_id,\n inputs: {},\n outputs: {},\n targets: {},\n overallAssessments: [],\n responseAssessmentsByName: {},\n metrics: {},\n traceInfo,\n };\n })\n .filter((trace) => !isNil(trace)),\n ),\n [selectedRowIds, traceInfos],\n );\n\n const selectedTraces: RunEvaluationTracesDataEntry[] = selectedTracesFromProps || selectedTracesFromContext;\n\n return (\n \n );\n};\n\ninterface TraceActionsDropdownProps {\n experimentId: string;\n selectedTraces: RunEvaluationTracesDataEntry[];\n traceActions?: TraceActions;\n setRowSelection: React.Dispatch> | undefined;\n}\n\nconst TraceActionsDropdown = (props: TraceActionsDropdownProps) => {\n const { experimentId, selectedTraces, traceActions, setRowSelection } = props;\n const intl = useIntl();\n const [showDatasetModal, setShowDatasetModal] = useState(false);\n const [showLabelingSessionModal, setShowLabelingSessionModal] = useState(false);\n const [showDeleteModal, setShowDeleteModal] = useState(false);\n\n const handleExportToDatasets = useCallback(() => {\n setShowDatasetModal(true);\n }, []);\n\n const handleExportToLabelingSessions = useCallback(() => {\n setShowLabelingSessionModal(true);\n }, []);\n\n const handleEditTags = useCallback(() => {\n if (selectedTraces.length === 1 && selectedTraces[0].traceInfo && traceActions?.editTags) {\n const modelTrace = convertTraceInfoV3ToModelTraceInfo(selectedTraces[0].traceInfo);\n traceActions.editTags.showEditTagsModalForTrace(modelTrace);\n }\n }, [selectedTraces, traceActions]);\n\n const handleDeleteTraces = useCallback(() => {\n setShowDeleteModal(true);\n }, []);\n\n const deleteTraces = useCallback(\n async (experimentId: string, traceIds: string[]) => {\n await traceActions?.deleteTracesAction?.deleteTraces(experimentId, traceIds);\n setRowSelection?.({});\n },\n [setRowSelection, traceActions],\n );\n\n const hasExportAction = Boolean(traceActions?.exportToEvals?.getTrace);\n const hasEditTagsAction = shouldEnableTagGrouping() && Boolean(traceActions?.editTags);\n const hasDeleteAction = Boolean(traceActions?.deleteTracesAction);\n\n const isEditTagsDisabled = selectedTraces.length !== 1;\n const noTracesSelected = selectedTraces.length === 0;\n const noActionsAvailable = !hasExportAction && !hasEditTagsAction && !hasDeleteAction;\n\n if (noActionsAvailable) {\n return null;\n }\n\n const ActionButton = (\n }\n >\n {intl.formatMessage(\n {\n defaultMessage: 'Actions{count}',\n description: 'Trace actions dropdown button',\n },\n {\n count: noTracesSelected ? '' : ` (${selectedTraces.length})`,\n },\n )}\n \n );\n\n return (\n <>\n \n {noTracesSelected ? (\n \n
\n {ActionButton}\n
\n \n ) : (\n {ActionButton}\n )}\n \n {(hasEditTagsAction || hasDeleteAction) && (\n <>\n \n {hasEditTagsAction && (\n \n {intl.formatMessage({\n defaultMessage: 'Edit tags',\n description: 'Edit tags action',\n })}\n \n )}\n {hasDeleteAction && (\n \n {intl.formatMessage({\n defaultMessage: 'Delete traces',\n description: 'Delete traces action',\n })}\n \n )}\n \n \n )}\n \n
\n\n {traceActions?.editTags?.EditTagsModal}\n\n {showDeleteModal && traceActions?.deleteTracesAction && (\n setShowDeleteModal(false)}\n deleteTraces={deleteTraces}\n />\n )}\n \n );\n};\n","import type { ColumnDef } from '@tanstack/react-table';\nimport { isNil } from 'lodash';\n\nimport { KnownEvaluationResultAssessmentName } from './enum';\nimport {\n REQUEST_TIME_COLUMN_ID,\n STATE_COLUMN_ID,\n SOURCE_COLUMN_ID,\n TAGS_COLUMN_ID,\n EXECUTION_DURATION_COLUMN_ID,\n TRACE_NAME_COLUMN_ID,\n SORTABLE_INFO_COLUMNS,\n TRACE_ID_COLUMN_ID,\n SESSION_COLUMN_ID,\n INPUTS_COLUMN_ID,\n RESPONSE_COLUMN_ID,\n USER_COLUMN_ID,\n LOGGED_MODEL_COLUMN_ID,\n TOKENS_COLUMN_ID,\n} from './hooks/useTableColumns';\nimport { TracesTableColumnGroup, TracesTableColumnType } from './types';\nimport type { TracesTableColumn, EvalTraceComparisonEntry, RunEvaluationTracesDataEntry, TraceInfoV3 } from './types';\nimport { getTraceInfoInputs, shouldUseTraceInfoV3 } from './utils/TraceUtils';\n\nconst GROUP_PRIORITY = [\n TracesTableColumnGroup.INFO,\n TracesTableColumnGroup.ASSESSMENT,\n TracesTableColumnGroup.TAG,\n] as const;\n\n/** Preferred order *within* the INFO group by column ID */\nconst INFO_COLUMN_PRIORITY = [\n TRACE_ID_COLUMN_ID,\n INPUTS_COLUMN_ID,\n RESPONSE_COLUMN_ID,\n SESSION_COLUMN_ID,\n USER_COLUMN_ID,\n TRACE_NAME_COLUMN_ID,\n LOGGED_MODEL_COLUMN_ID,\n TOKENS_COLUMN_ID,\n] as const;\n\n/** Preferred order *within* the ASSESSMENT group by column ID */\nconst ASSESSMENT_COLUMN_PRIORITY = [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT] as const;\n\nconst groupRank: Record = Object.fromEntries(\n GROUP_PRIORITY.map((grp, idx) => [grp, idx]),\n) as any;\n\nconst infoColumnRank: Record = Object.fromEntries(INFO_COLUMN_PRIORITY.map((id, idx) => [id, idx]));\n\nconst assessmentColumnRank: Record = Object.fromEntries(\n ASSESSMENT_COLUMN_PRIORITY.map((id, idx) => [id, idx]),\n);\n\nexport function sortGroupedColumns(columns: TracesTableColumn[], isComparing?: boolean): TracesTableColumn[] {\n return [...columns].sort((colA, colB) => {\n // If comparing, always put request time column first\n if (isComparing) {\n if (colA.id === INPUTS_COLUMN_ID) return -1;\n if (colB.id === INPUTS_COLUMN_ID) return 1;\n }\n\n // 1) Compare their groups by precomputed rank\n const groupA = colA.group ?? TracesTableColumnGroup.INFO;\n const groupB = colB.group ?? TracesTableColumnGroup.INFO;\n const groupComparison = groupRank[groupA] - groupRank[groupB];\n if (groupComparison !== 0) return groupComparison;\n\n // 2) Same group: INFO\n if (groupA === TracesTableColumnGroup.INFO) {\n const rankA = infoColumnRank[colA.id] ?? Infinity;\n const rankB = infoColumnRank[colB.id] ?? Infinity;\n if (rankA !== rankB) return rankA - rankB;\n return colA.label.localeCompare(colB.label);\n }\n\n // 3) Same group: ASSESSMENT\n if (groupA === TracesTableColumnGroup.ASSESSMENT) {\n const rankA = assessmentColumnRank[colA.id] ?? Infinity;\n const rankB = assessmentColumnRank[colB.id] ?? Infinity;\n if (rankA !== rankB) return rankA - rankB;\n return colA.label.localeCompare(colB.label);\n }\n\n // 4) Same group: TAG (or any other fallback)\n return colA.label.localeCompare(colB.label);\n });\n}\n\nexport const sortColumns = (columns: ColumnDef[], selectedColumns: TracesTableColumn[]) => {\n return columns.sort((a, b) => {\n const getPriority = (col: typeof a) => {\n const colType = selectedColumns.find((c) => c.id === col.id)?.type;\n\n if (colType === TracesTableColumnType.INPUT) return 1;\n if (col.id === TRACE_NAME_COLUMN_ID) return 2;\n if (colType === TracesTableColumnType.TRACE_INFO) return 3;\n if (colType === TracesTableColumnType.INTERNAL_MONITOR_REQUEST_TIME) return 4;\n if (colType === TracesTableColumnType.ASSESSMENT) return 5;\n return 999; // keep any other columns after the known ones\n };\n\n // primary sort key: our priority number\n const diff = getPriority(a) - getPriority(b);\n if (diff !== 0) return diff;\n\n // secondary key: for assessment columns, prioritize 'Overall' and then sort alphabetically by label\n const aCol = selectedColumns.find((c) => c.id === a.id);\n const bCol = selectedColumns.find((c) => c.id === b.id);\n if (aCol?.type === TracesTableColumnType.ASSESSMENT && bCol?.type === TracesTableColumnType.ASSESSMENT) {\n if (aCol.id === KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT) return -1;\n if (bCol.id === KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT) return 1;\n return (aCol.label || '').localeCompare(bCol.label || '');\n }\n\n // tertiary key: original array order (stable sort fallback)\n return 0;\n });\n};\n\nexport const traceInfoSortingFn = (\n traceInfoA: TraceInfoV3 | undefined,\n traceInfoB: TraceInfoV3 | undefined,\n colId: string,\n) => {\n // only support sorting by request time for now\n if (!SORTABLE_INFO_COLUMNS.includes(colId)) {\n return 0;\n }\n\n const aVal = String(getTraceInfoValueWithColId(traceInfoA as TraceInfoV3, colId) ?? '');\n const bVal = String(getTraceInfoValueWithColId(traceInfoB as TraceInfoV3, colId) ?? '');\n\n return aVal.localeCompare(bVal, undefined, { numeric: true });\n};\n\nexport const getTraceInfoValueWithColId = (traceInfo: TraceInfoV3, colId: string) => {\n switch (colId) {\n case REQUEST_TIME_COLUMN_ID:\n case EXECUTION_DURATION_COLUMN_ID:\n case TAGS_COLUMN_ID:\n case STATE_COLUMN_ID:\n return traceInfo[colId];\n case SOURCE_COLUMN_ID:\n return traceInfo.tags;\n case TRACE_ID_COLUMN_ID:\n return traceInfo.trace_id;\n case SESSION_COLUMN_ID:\n return traceInfo.tags?.['mlflow.trace.session'];\n default:\n throw new Error(`Unknown column id: ${colId}`);\n }\n};\n\nfunction getUniqueInputRequests(\n evaluationResults: RunEvaluationTracesDataEntry[],\n): Map {\n const resultMap = new Map();\n // If there are duplicate input ids, we need to append a count to the key to ensure uniqueness.\n const duplicateIndexMap = new Map();\n\n evaluationResults?.forEach((entry) => {\n let key = shouldUseTraceInfoV3([entry]) ? getTraceInfoInputs(entry.traceInfo as TraceInfoV3) : entry.inputsId;\n if (resultMap.has(key)) {\n const currentCount = duplicateIndexMap.get(entry.inputsId) || 0;\n const newCount = currentCount + 1;\n duplicateIndexMap.set(entry.inputsId, newCount);\n key = `${entry.inputsId}_${newCount}`;\n }\n resultMap.set(key, entry);\n });\n return resultMap;\n}\n\nexport function computeEvaluationsComparison(\n currentRunEvalResults: RunEvaluationTracesDataEntry[],\n otherRunEvalResults?: RunEvaluationTracesDataEntry[],\n): EvalTraceComparisonEntry[] {\n if (isNil(otherRunEvalResults)) {\n return currentRunEvalResults.map((entry) => ({ currentRunValue: entry }));\n }\n\n // TODO(nsthorat): This logic does not work when a single eval run contains the same input ids, e.g. there is multiple evals with the same\n // input id. This is a bug in the current implementation.\n\n // Merge the two eval results by joining on inputsId. There may be results that are only present in one of the two.\n const otherRunEvalResultsMap = getUniqueInputRequests(otherRunEvalResults);\n\n const currentRunEvalResultsMap = getUniqueInputRequests(currentRunEvalResults);\n const allRequestIds = new Set([...currentRunEvalResultsMap.keys(), ...otherRunEvalResultsMap.keys()]);\n\n return Array.from(allRequestIds).map((inputsId) => {\n return {\n currentRunValue: currentRunEvalResultsMap.get(inputsId),\n otherRunValue: otherRunEvalResultsMap.get(inputsId),\n };\n });\n}\n","import { DangerIcon, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage } from '@databricks/i18n';\n\nexport const ErrorCell = () => {\n const { theme } = useDesignSystemTheme();\n return (\n \n \n {' '}\n \n );\n};\n","import { useDesignSystemTheme } from '@databricks/design-system';\n\nexport const NullCell = ({ isComparing }: { isComparing?: boolean }) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n \n {isComparing && null}\n \n );\n};\n","import { useDesignSystemTheme } from '@databricks/design-system';\n\nexport interface StackedComponentsProps {\n first: React.ReactNode;\n second?: React.ReactNode;\n // Allow overriding the default styles if needed:\n gap?: string;\n borderRadius?: string;\n marginY?: string;\n}\n\nexport const StackedComponents = (props: StackedComponentsProps) => {\n const { first, second, gap, borderRadius, marginY } = props;\n const { theme } = useDesignSystemTheme();\n\n return (\n \n {first}\n {second}\n \n );\n};\n","import { getDefaultHeaders } from '@mlflow/mlflow/src/common/utils/FetchUtils';\nimport { matchPredefinedError } from '../../errors';\n\n// eslint-disable-next-line no-restricted-globals\nexport const fetchFn = fetch; // use global fetch for oss\n\nexport const makeRequest = async (path: string, method: 'POST' | 'GET', body?: T) => {\n const headers = {\n ...(body ? { 'Content-Type': 'application/json' } : {}),\n ...getDefaultHeaders(document.cookie),\n };\n const options: RequestInit = {\n method,\n headers,\n };\n if (body) {\n options.body = JSON.stringify(body);\n }\n const response = await fetchFn(path, options);\n\n if (!response.ok) {\n const error = matchPredefinedError(response);\n try {\n const errorMessageFromResponse = await (await response.json()).message;\n if (errorMessageFromResponse) {\n error.message = errorMessageFromResponse;\n }\n } catch {\n // do nothing\n }\n throw error;\n }\n\n return response.json();\n};\n","/**\n * This file is a subset of functions from mlflow/web/js/src/common/Utils.tsx but does not support OSS.\n */\nimport type { TraceInfoV3 } from '../types';\n\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class -- TODO(FEINF-4274)\nclass MlflowUtils {\n static runNameTag = 'mlflow.runName';\n static sourceNameTag = 'mlflow.source.name';\n static sourceTypeTag = 'mlflow.source.type';\n static entryPointTag = 'mlflow.project.entryPoint';\n\n static getEntryPointName(runTags: any) {\n const entryPointTag = runTags[MlflowUtils.entryPointTag];\n if (entryPointTag) {\n return entryPointTag.value;\n }\n return '';\n }\n\n static getSourceType(runTags: any) {\n const sourceTypeTag = runTags[MlflowUtils.sourceTypeTag];\n if (sourceTypeTag) {\n return sourceTypeTag.value;\n }\n return '';\n }\n\n static dropExtension(path: any) {\n return path.replace(/(.*[^/])\\.[^/.]+$/, '$1');\n }\n\n static baseName(path: any) {\n const pieces = path.split('/');\n return pieces[pieces.length - 1];\n }\n\n /**\n * Renders the source name and entry point into a string. Used for sorting.\n * @param run MlflowMessages.RunInfo\n */\n static formatSource(tags: any) {\n const sourceName = MlflowUtils.getSourceName(tags);\n const sourceType = MlflowUtils.getSourceType(tags);\n const entryPointName = MlflowUtils.getEntryPointName(tags);\n if (sourceType === 'PROJECT') {\n let res = MlflowUtils.dropExtension(MlflowUtils.baseName(sourceName));\n if (entryPointName && entryPointName !== 'main') {\n res += ':' + entryPointName;\n }\n return res;\n } else if (sourceType === 'JOB') {\n const jobIdTag = 'mlflow.databricks.jobID';\n const jobRunIdTag = 'mlflow.databricks.jobRunID';\n const jobId = tags && tags[jobIdTag] && tags[jobIdTag].value;\n const jobRunId = tags && tags[jobRunIdTag] && tags[jobRunIdTag].value;\n if (jobId && jobRunId) {\n return MlflowUtils.getDefaultJobRunName(jobId, jobRunId);\n }\n return sourceName;\n } else {\n return MlflowUtils.baseName(sourceName);\n }\n }\n\n static getDefaultJobRunName(jobId: any, runId: any, workspaceId = null) {\n if (!jobId) {\n return '-';\n }\n let name = `job ${jobId}`;\n if (runId) {\n name = `run ${runId} of ` + name;\n }\n if (workspaceId) {\n name = `workspace ${workspaceId}: ` + name;\n }\n return name;\n }\n\n static getSourceName(runTags: any) {\n const sourceNameTag = runTags[MlflowUtils.sourceNameTag];\n if (sourceNameTag) {\n return sourceNameTag.value;\n }\n return '';\n }\n\n static getGitHubRegex() {\n return /[@/]github.com[:/]([^/.]+)\\/([^/#]+)#?(.*)/;\n }\n\n static getGitLabRegex() {\n return /[@/]gitlab.com[:/]([^/.]+)\\/([^/#]+)#?(.*)/;\n }\n\n static getBitbucketRegex() {\n return /[@/]bitbucket.org[:/]([^/.]+)\\/([^/#]+)#?(.*)/;\n }\n\n static getRunPageRoute(experimentId: string, runUuid: string) {\n return `/experiments/${experimentId}/runs/${runUuid}`;\n }\n\n static getLoggedModelPageRoute(experimentId: string, loggedModelId: string) {\n return `/experiments/${experimentId}/models/${loggedModelId}`;\n }\n\n /**\n * Regular expression for URLs containing the string 'git'.\n * It can be a custom git domain (e.g. https://git.custom.in/repo/dir#file/dir).\n * Excluding the first overall match, there are three groups:\n * git url, repo directory, and file directory.\n * (e.g. group1: https://custom.git.domain, group2: repo/directory, group3: project/directory)\n */\n static getGitRegex() {\n return /(.*?[@/][^?]*git.*?)[:/]([^#]+)(?:#(.*))?/;\n }\n\n static getGitRepoUrl(sourceName: any, branchName = 'master') {\n const gitHubMatch = sourceName.match(MlflowUtils.getGitHubRegex());\n const gitLabMatch = sourceName.match(MlflowUtils.getGitLabRegex());\n const bitbucketMatch = sourceName.match(MlflowUtils.getBitbucketRegex());\n const gitMatch = sourceName.match(MlflowUtils.getGitRegex());\n let url = null;\n if (gitHubMatch) {\n url = `https://github.com/${gitHubMatch[1]}/${gitHubMatch[2].replace(/.git/, '')}`;\n if (gitHubMatch[3]) {\n url += `/tree/${branchName}/${gitHubMatch[3]}`;\n }\n } else if (gitLabMatch) {\n url = `https://gitlab.com/${gitLabMatch[1]}/${gitLabMatch[2].replace(/.git/, '')}`;\n if (gitLabMatch[3]) {\n url += `/-/tree/${branchName}/${gitLabMatch[3]}`;\n }\n } else if (bitbucketMatch) {\n url = `https://bitbucket.org/${bitbucketMatch[1]}/${bitbucketMatch[2].replace(/.git/, '')}`;\n if (bitbucketMatch[3]) {\n url += `/src/${branchName}/${bitbucketMatch[3]}`;\n }\n } else if (gitMatch) {\n const [, baseUrl, repoDir, fileDir] = gitMatch;\n url = baseUrl.replace(/git@/, 'https://') + '/' + repoDir.replace(/.git/, '');\n if (fileDir) {\n url += `/tree/${branchName}/${fileDir}`;\n }\n }\n return url;\n }\n\n static getNotebookRevisionId(tags: any) {\n const revisionIdTag = 'mlflow.databricks.notebookRevisionID';\n return tags && tags[revisionIdTag] && tags[revisionIdTag].value;\n }\n\n static getNotebookId(tags: any) {\n const notebookIdTag = 'mlflow.databricks.notebookID';\n return tags && tags[notebookIdTag] && tags[notebookIdTag].value;\n }\n\n /**\n * Check if the given workspaceId matches the current workspaceId.\n * @param workspaceId\n * @returns {boolean}\n */\n static isCurrentWorkspace(workspaceId: any) {\n return true;\n }\n\n static getDefaultNotebookRevisionName(notebookId: any, revisionId: any, workspaceId = null) {\n if (!notebookId) {\n return '-';\n }\n let name = `notebook ${notebookId}`;\n if (revisionId) {\n name = `revision ${revisionId} of ` + name;\n }\n if (workspaceId) {\n name = `workspace ${workspaceId}: ` + name;\n }\n return name;\n }\n\n /**\n * Makes sure that the URL begins with correct scheme according\n * to RFC3986 [https://datatracker.ietf.org/doc/html/rfc3986#section-3.1]\n * It does not support slash-less schemes (e.g. news:abc, urn:anc).\n * @param url URL string like \"my-mlflow-server.com/#/experiments/9\" or\n * \"https://my-mlflow-server.com/#/experiments/9\"\n * @param defaultScheme scheme to add if missing in the provided URL, defaults to \"https\"\n * @returns {string} the URL string with ensured default scheme\n */\n static ensureUrlScheme(url: any, defaultScheme = 'https') {\n // Falsy values should yield itself\n if (!url) return url;\n\n // Scheme-less URL with colon and dashes\n if (url.match(/^:\\/\\//i)) {\n return `${defaultScheme}${url}`;\n }\n\n // URL without scheme, colon nor dashes\n if (!url.match(/^[a-z1-9+-.]+:\\/\\//i)) {\n return `${defaultScheme}://${url}`;\n }\n\n // Pass-through for \"correct\" entries\n return url;\n }\n\n /**\n * Returns a copy of the provided URL with its query parameters set to `queryParams`.\n * @param url URL string like \"http://my-mlflow-server.com/#/experiments/9.\n * @param queryParams Optional query parameter string like \"?param=12345\". Query params provided\n * via this string will override existing query param values in `url`\n */\n static setQueryParams(url: any, queryParams: any) {\n // Using new URL() is the preferred way of constructing the URL object,\n // however according to [https://url.spec.whatwg.org/#constructors] it requires\n // providing the protocol. We're gracefully ensuring that the scheme exists here.\n const urlObj = new URL(MlflowUtils.ensureUrlScheme(url));\n urlObj.search = queryParams || '';\n return urlObj.toString();\n }\n\n /**\n * Returns the URL for the notebook source.\n */\n static getNotebookSourceUrl(queryParams: any, notebookId: any, revisionId: any, runUuid: any, workspaceUrl = null) {\n let url = MlflowUtils.setQueryParams(workspaceUrl || window.location.origin, queryParams);\n url += `#notebook/${notebookId}`;\n if (revisionId) {\n url += `/revision/${revisionId}`;\n if (runUuid) {\n url += `/mlflow/run/${runUuid}`;\n }\n }\n return url;\n }\n\n /**\n * Renders the notebook source name and entry point into an HTML element. Used for display.\n */\n static renderNotebookSource(\n queryParams: any,\n notebookId: any,\n revisionId: any,\n runUuid: any,\n sourceName: any,\n workspaceUrl = null,\n nameOverride: string | null = null,\n ) {\n // sourceName may not be present when rendering feature table notebook consumers from remote\n // workspaces or when notebook fetcher failed to fetch the sourceName. Always provide a default\n // notebook name in such case.\n const baseName = sourceName\n ? MlflowUtils.baseName(sourceName)\n : MlflowUtils.getDefaultNotebookRevisionName(notebookId, revisionId);\n const name = nameOverride || baseName;\n\n if (notebookId) {\n const url = MlflowUtils.getNotebookSourceUrl(queryParams, notebookId, revisionId, runUuid, workspaceUrl);\n return (\n \n {name}\n \n );\n } else {\n return name;\n }\n }\n\n /**\n * Set query params and returns the updated query params.\n * @returns {string} updated query params\n */\n static addQueryParams(currentQueryParams: any, newQueryParams: any) {\n if (!newQueryParams || Object.keys(newQueryParams).length === 0) {\n return currentQueryParams;\n }\n const urlSearchParams = new URLSearchParams(currentQueryParams);\n Object.entries(newQueryParams).forEach(\n // @ts-expect-error TS(2345): Argument of type 'unknown' is not assignable to pa... Remove this comment to see the full error message\n ([key, value]) => Boolean(key) && Boolean(value) && urlSearchParams.set(key, value),\n );\n const queryParams = urlSearchParams.toString();\n if (queryParams !== '' && !queryParams.includes('?')) {\n return `?${queryParams}`;\n }\n return queryParams;\n }\n\n /**\n * Returns the URL for the job source.\n */\n static getJobSourceUrl(queryParams: any, jobId: any, jobRunId: any, workspaceUrl = null) {\n let url = MlflowUtils.setQueryParams(workspaceUrl || window.location.origin, queryParams);\n url += `#job/${jobId}`;\n if (jobRunId) {\n url += `/run/${jobRunId}`;\n }\n return url;\n }\n\n /**\n * Renders the job source name and entry point into an HTML element. Used for display.\n */\n static renderJobSource(\n queryParams: any,\n jobId: any,\n jobRunId: any,\n jobName: any,\n workspaceUrl = null,\n nameOverride: string | null = null,\n ) {\n // jobName may not be present when rendering feature table job consumers from remote\n // workspaces or when getJob API failed to fetch the jobName. Always provide a default\n // job name in such case.\n const reformatJobName = jobName || MlflowUtils.getDefaultJobRunName(jobId, jobRunId);\n const name = nameOverride || reformatJobName;\n\n if (jobId) {\n const url = MlflowUtils.getJobSourceUrl(queryParams, jobId, jobRunId, workspaceUrl);\n return (\n \n {name}\n \n );\n } else {\n return name;\n }\n }\n\n /**\n * Renders the source name and entry point into an HTML element. Used for display.\n * @param tags Object containing tag key value pairs.\n * @param queryParams Query params to add to certain source type links.\n * @param runUuid ID of the MLflow run to add to certain source (revision) links.\n */\n static renderSource(tags: any, queryParams: any, runUuid: any, branchName = 'master') {\n const sourceName = MlflowUtils.getSourceName(tags);\n let res = MlflowUtils.formatSource(tags);\n const gitRepoUrlOrNull = MlflowUtils.getGitRepoUrl(sourceName, branchName);\n if (gitRepoUrlOrNull) {\n res = (\n \n {res}\n \n );\n }\n const sourceType = MlflowUtils.getSourceType(tags);\n if (sourceType === 'NOTEBOOK') {\n const revisionId = MlflowUtils.getNotebookRevisionId(tags);\n const notebookId = MlflowUtils.getNotebookId(tags);\n const workspaceIdTag = 'mlflow.databricks.workspaceID';\n const workspaceId = tags && tags[workspaceIdTag] && tags[workspaceIdTag].value;\n if (MlflowUtils.isCurrentWorkspace(workspaceId)) {\n return MlflowUtils.renderNotebookSource(queryParams, notebookId, revisionId, runUuid, sourceName, null);\n } else {\n const workspaceUrlTag = 'mlflow.databricks.workspaceURL';\n const workspaceUrl = tags && tags[workspaceUrlTag] && tags[workspaceUrlTag].value;\n const notebookQueryParams = MlflowUtils.addQueryParams(queryParams, { o: workspaceId });\n return MlflowUtils.renderNotebookSource(\n notebookQueryParams,\n notebookId,\n revisionId,\n runUuid,\n sourceName,\n workspaceUrl,\n );\n }\n }\n if (sourceType === 'JOB') {\n const jobIdTag = 'mlflow.databricks.jobID';\n const jobRunIdTag = 'mlflow.databricks.jobRunID';\n const jobId = tags && tags[jobIdTag] && tags[jobIdTag].value;\n const jobRunId = tags && tags[jobRunIdTag] && tags[jobRunIdTag].value;\n const workspaceIdTag = 'mlflow.databricks.workspaceID';\n const workspaceId = tags && tags[workspaceIdTag] && tags[workspaceIdTag].value;\n if (MlflowUtils.isCurrentWorkspace(workspaceId)) {\n return MlflowUtils.renderJobSource(queryParams, jobId, jobRunId, res, null);\n } else {\n const workspaceUrlTag = 'mlflow.databricks.workspaceURL';\n const workspaceUrl = tags && tags[workspaceUrlTag] && tags[workspaceUrlTag].value;\n const jobQueryParams = MlflowUtils.addQueryParams(queryParams, { o: workspaceId });\n return MlflowUtils.renderJobSource(jobQueryParams, jobId, jobRunId, res, workspaceUrl);\n }\n }\n return res;\n }\n\n static renderSourceFromMetadata(traceInfoV3: TraceInfoV3) {\n const sourceName = traceInfoV3.trace_metadata?.[MlflowUtils.sourceNameTag];\n const sourceType = traceInfoV3.trace_metadata?.[MlflowUtils.sourceTypeTag];\n let res = sourceName ? MlflowUtils.baseName(sourceName) : '';\n\n // Handle git repository links using explicit git metadata\n const gitRepoUrl = traceInfoV3.trace_metadata?.['mlflow.source.git.repoURL'];\n const gitBranch = traceInfoV3.trace_metadata?.['mlflow.source.git.branch'];\n const gitCommit = traceInfoV3.trace_metadata?.['mlflow.source.git.commit'];\n\n if (gitRepoUrl) {\n // Convert SSH URL to HTTPS if needed\n const httpsUrl = gitRepoUrl\n .replace('git@github.com:', 'https://github.com/')\n .replace('git@gitlab.com:', 'https://gitlab.com/')\n .replace('git@bitbucket.org:', 'https://bitbucket.org/')\n .replace('.git', '');\n\n // Use commit hash if available, otherwise use branch\n const ref = gitCommit || gitBranch || 'master';\n const filePath = sourceName ? `/${sourceName}` : '';\n\n // Construct URL based on the git host\n let url = httpsUrl;\n if (httpsUrl.includes('github.com')) {\n url = `${httpsUrl}/tree/${ref}${filePath}`;\n } else if (httpsUrl.includes('gitlab.com')) {\n url = `${httpsUrl}/-/tree/${ref}${filePath}`;\n } else if (httpsUrl.includes('bitbucket.org')) {\n url = `${httpsUrl}/src/${ref}${filePath}`;\n } else {\n // For other git hosts, just append the ref and file path\n url = `${httpsUrl}/tree/${ref}${filePath}`;\n }\n\n res = (\n \n {res}\n \n );\n }\n\n if (sourceType === 'NOTEBOOK') {\n const revisionId = traceInfoV3.trace_metadata?.['mlflow.databricks.notebookRevisionID'];\n const notebookId = traceInfoV3.trace_metadata?.['mlflow.databricks.notebookID'];\n const workspaceId = traceInfoV3.trace_metadata?.['mlflow.databricks.workspaceID'];\n\n if (MlflowUtils.isCurrentWorkspace(workspaceId)) {\n return MlflowUtils.renderNotebookSource(null, notebookId, revisionId, null, sourceName, null);\n } else {\n const workspaceUrlTag = 'mlflow.databricks.workspaceURL';\n const workspaceUrl: any = traceInfoV3.trace_metadata?.[workspaceUrlTag] || undefined;\n const notebookQueryParams = MlflowUtils.addQueryParams(null, { o: workspaceId });\n return MlflowUtils.renderNotebookSource(\n notebookQueryParams,\n notebookId,\n revisionId,\n null,\n sourceName,\n workspaceUrl,\n );\n }\n }\n\n if (sourceType === 'JOB') {\n const jobId = traceInfoV3.trace_metadata?.['mlflow.databricks.jobID'];\n const jobRunId = traceInfoV3.trace_metadata?.['mlflow.databricks.jobRunID'];\n const workspaceId = traceInfoV3.trace_metadata?.['mlflow.databricks.workspaceID'];\n\n if (MlflowUtils.isCurrentWorkspace(workspaceId)) {\n return MlflowUtils.renderJobSource(null, jobId, jobRunId, res, null);\n } else {\n const workspaceUrlTag = 'mlflow.databricks.workspaceURL';\n const workspaceUrl: any = traceInfoV3.trace_metadata?.[workspaceUrlTag] || undefined;\n const jobQueryParams = MlflowUtils.addQueryParams(null, { o: workspaceId });\n return MlflowUtils.renderJobSource(jobQueryParams, jobId, jobRunId, res, workspaceUrl);\n }\n }\n\n return res;\n }\n}\n\nexport default MlflowUtils;\n","import { isNil } from 'lodash';\n\nimport {\n ModelsIcon,\n ParagraphSkeleton,\n Typography,\n Tooltip,\n Tag,\n useDesignSystemTheme,\n} from '@databricks/design-system';\nimport { useQuery } from '@databricks/web-shared/query-client';\n\nimport { ErrorCell } from './ErrorCell';\nimport { NullCell } from './NullCell';\nimport { StackedComponents } from './StackedComponents';\nimport type { TraceInfoV3 } from '../types';\nimport { makeRequest } from '../utils/FetchUtils';\nimport MlflowUtils from '../utils/MlflowUtils';\nimport { Link } from '../utils/RoutingUtils';\nimport { getAjaxUrl } from '@mlflow/mlflow/src/common/utils/FetchUtils';\n\nexport const LoggedModelCell = (props: {\n experimentId: string;\n currentTraceInfo?: TraceInfoV3;\n otherTraceInfo?: TraceInfoV3;\n isComparing: boolean;\n}) => {\n const { experimentId, currentTraceInfo, otherTraceInfo, isComparing } = props;\n const currentModelId = currentTraceInfo?.trace_metadata?.['mlflow.modelId'];\n const otherModelId = otherTraceInfo?.trace_metadata?.['mlflow.modelId'];\n\n return (\n \n ) : (\n \n )\n }\n second={\n isComparing &&\n (otherModelId ? (\n \n ) : (\n \n ))\n }\n />\n );\n};\n\nconst LoggedModelComponent = (props: { experimentId: string; modelId: string; isComparing: boolean }) => {\n const { experimentId, modelId, isComparing } = props;\n const { theme } = useDesignSystemTheme();\n\n const { data, isLoading, error } = useLoggedModelName({ loggedModelId: modelId });\n const modelName = data?.info?.name;\n\n if (isLoading) {\n return ;\n }\n\n if (error) {\n return ;\n }\n\n if (!modelName) {\n return ;\n }\n\n return (\n \n \n \n \n \n \n {modelName}\n \n \n \n \n \n );\n};\n\ninterface LoggedModelNameResponse {\n model: {\n info: {\n name?: string;\n };\n };\n}\n\n/**\n * Retrieve logged model from API based on its ID\n */\nconst useLoggedModelName = ({ loggedModelId }: { loggedModelId?: string }) => {\n const { data, isLoading, isFetching, refetch, error } = useQuery({\n queryKey: ['loggedModelName', loggedModelId],\n queryFn: async () => {\n const res: LoggedModelNameResponse = await makeRequest(\n getAjaxUrl(`ajax-api/2.0/mlflow/logged-models/${loggedModelId}`),\n 'GET',\n );\n return res;\n },\n cacheTime: Infinity,\n staleTime: Infinity,\n refetchOnMount: false,\n retry: 1,\n enabled: !isNil(loggedModelId),\n });\n\n return {\n isLoading,\n isFetching,\n data: data?.model,\n refetch,\n error,\n } as const;\n};\n","import { ParagraphSkeleton } from '@databricks/design-system';\nimport type { NetworkRequestError } from '@databricks/web-shared/errors';\nimport { useQuery } from '@databricks/web-shared/query-client';\n\nimport { ErrorCell } from './ErrorCell';\nimport { NullCell } from './NullCell';\nimport { makeRequest } from '../utils/FetchUtils';\nimport MlflowUtils from '../utils/MlflowUtils';\nimport { Link } from '../utils/RoutingUtils';\nimport { getAjaxUrl } from '@mlflow/mlflow/src/common/utils/FetchUtils';\n\nexport const RunName = (props: { experimentId: string; runUuid: string }) => {\n const { experimentId, runUuid } = props;\n\n const { data, isLoading, error } = useRunName(experimentId, runUuid);\n\n const runName = data?.runs?.[0]?.info?.run_name;\n\n if (isLoading) {\n return ;\n }\n\n if (error) {\n return ;\n }\n\n if (!runName) {\n return ;\n }\n\n return (\n \n {runName}\n \n );\n};\n\ninterface RunNameResponse {\n runs: {\n data: {\n tags: { [key: string]: string };\n };\n info: {\n run_name: string;\n };\n }[];\n}\nconst useRunName = (experimentId: string, runUuid: string) => {\n return useQuery({\n queryKey: ['runName', experimentId, runUuid],\n cacheTime: Infinity,\n staleTime: Infinity,\n retry: 1, // limit retries so we don't spam the api\n refetchOnMount: false,\n queryFn: async () => {\n const filter = `run_id IN ('${runUuid}')`;\n\n const res: RunNameResponse = await makeRequest(getAjaxUrl('ajax-api/2.0/mlflow/runs/search'), 'POST', {\n experiment_ids: [experimentId],\n filter,\n });\n\n return res;\n },\n });\n};\n","import { FolderBranchIcon, HomeIcon, NotebookIcon, WorkflowsIcon } from '@databricks/design-system';\n\nenum SourceType {\n NOTEBOOK = 'NOTEBOOK',\n JOB = 'JOB',\n PROJECT = 'PROJECT',\n LOCAL = 'LOCAL',\n UNKNOWN = 'UNKNOWN',\n}\n\nexport const ExperimentSourceTypeIcon = ({\n sourceType,\n className,\n}: {\n sourceType: SourceType | string;\n className?: string;\n}) => {\n if (sourceType === SourceType.NOTEBOOK) {\n return ;\n } else if (sourceType === SourceType.LOCAL) {\n return ;\n } else if (sourceType === SourceType.PROJECT) {\n return ;\n } else if (sourceType === SourceType.JOB) {\n return ;\n }\n return null;\n};\n","import { useDesignSystemTheme } from '@databricks/design-system';\n\nimport { ExperimentSourceTypeIcon } from './ExperimentSourceTypeIcon';\nimport type { TraceInfoV3 } from '../../types';\nimport MlflowUtils from '../../utils/MlflowUtils';\nimport { NullCell } from '../NullCell';\n\nexport const SourceCellRenderer = (props: { traceInfo: TraceInfoV3; isComparing: boolean; disableLinks?: boolean }) => {\n const tags = props.traceInfo.tags;\n const { theme } = useDesignSystemTheme();\n\n if (!tags) {\n return ;\n }\n\n const sourceType = props.traceInfo.trace_metadata?.[MlflowUtils.sourceTypeTag];\n\n const sourceLink = MlflowUtils.renderSourceFromMetadata(props.traceInfo);\n\n return sourceLink && sourceType ? (\n \n \n {sourceLink}\n \n ) : (\n \n );\n};\n","import type { Theme } from '@emotion/react';\n\nimport { CheckCircleIcon, ClockIcon, useDesignSystemTheme, XCircleIcon } from '@databricks/design-system';\nimport { useIntl, defineMessage } from '@databricks/i18n';\n\nimport { NullCell } from './NullCell';\nimport type { TraceInfoV3 } from '../types';\n\nexport const ExperimentViewTracesStatusLabels = {\n STATE_UNSPECIFIED: null,\n IN_PROGRESS: defineMessage({\n defaultMessage: 'In progress',\n description: 'Experiment page > traces table > status label > in progress',\n }),\n OK: defineMessage({\n defaultMessage: 'OK',\n description: 'Experiment page > traces table > status label > ok',\n }),\n ERROR: defineMessage({\n defaultMessage: 'Error',\n description: 'Experiment page > traces table > status label > error',\n }),\n};\n\nconst getIcon = (state: TraceInfoV3['state'], theme: Theme) => {\n if (state === 'IN_PROGRESS') {\n return ;\n }\n\n if (state === 'OK') {\n return ;\n }\n\n if (state === 'ERROR') {\n return ;\n }\n\n return null;\n};\n\nexport const StatusCellRenderer = ({\n original,\n isComparing,\n}: {\n original: TraceInfoV3 | undefined;\n isComparing: boolean;\n}) => {\n const { theme } = useDesignSystemTheme();\n const intl = useIntl();\n\n const labelDescriptor = ExperimentViewTracesStatusLabels[original?.state || 'STATE_UNSPECIFIED'];\n\n return labelDescriptor ? (\n
\n {getIcon(original?.state || 'STATE_UNSPECIFIED', theme)}\n {labelDescriptor ? intl.formatMessage(labelDescriptor) : ''}\n
\n ) : (\n \n );\n};\n","import React from 'react';\n\nimport { Modal, Typography, useDesignSystemTheme } from '@databricks/design-system';\nimport { CopyActionButton } from '@databricks/web-shared/copy';\nconst { Paragraph } = Typography;\n\nexport interface KeyValueTagFullViewModalProps {\n tagKey: string;\n tagValue: string;\n setIsKeyValueTagFullViewModalVisible: React.Dispatch>;\n isKeyValueTagFullViewModalVisible: boolean;\n}\n\nexport const KeyValueTagFullViewModal = React.memo((props: KeyValueTagFullViewModalProps) => {\n const { theme } = useDesignSystemTheme();\n\n return (\n props.setIsKeyValueTagFullViewModalVisible(false)}\n >\n
\n \n \n {props.tagValue}\n \n \n \n \n
\n \n \n );\n});\n","import type { Interpolation, Theme } from '@emotion/react';\nimport React, { useState } from 'react';\n\nimport { Tag, LegacyTooltip, Typography } from '@databricks/design-system';\nimport { useIntl } from '@databricks/i18n';\n\nimport { KeyValueTagFullViewModal } from './KeyValueTagFullViewModal';\n\n/**\n * An arbitrary number that is used to determine if a tag is too\n * long and should be truncated. We want to avoid short keys or values\n * in a long tag to be truncated\n * */\nconst TRUNCATE_ON_CHARS_LENGTH = 30;\n\nfunction getTruncatedStyles(shouldTruncate = true): Interpolation {\n return shouldTruncate\n ? {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textWrap: 'nowrap',\n whiteSpace: 'nowrap' as const,\n }\n : { whiteSpace: 'nowrap' as const };\n}\n\ninterface KeyValueEntity {\n key: string;\n value: string;\n}\n\n/**\n * A wrapper used for displaying key-value entity\n */\nexport const KeyValueTag = ({\n isClosable = false,\n onClose,\n tag,\n enableFullViewModal = false,\n charLimit = TRUNCATE_ON_CHARS_LENGTH,\n maxWidth = 300,\n className,\n}: {\n isClosable?: boolean;\n onClose?: () => void;\n tag: KeyValueEntity;\n enableFullViewModal?: boolean;\n charLimit?: number;\n maxWidth?: number;\n className?: string;\n}) => {\n const intl = useIntl();\n\n const [isKeyValueTagFullViewModalVisible, setIsKeyValueTagFullViewModalVisible] = useState(false);\n\n const { shouldTruncateKey, shouldTruncateValue } = getKeyAndValueComplexTruncation(tag, charLimit);\n const allowFullViewModal = enableFullViewModal && (shouldTruncateKey || shouldTruncateValue);\n\n const fullViewModalLabel = intl.formatMessage({\n defaultMessage: 'Click to see more',\n description: 'Run page > Overview > Tags cell > Tag',\n });\n\n return (\n
\n \n \n (allowFullViewModal ? setIsKeyValueTagFullViewModalVisible(true) : undefined)}\n >\n \n {tag.key}\n \n {tag.value && (\n \n : {tag.value}\n \n )}\n \n \n \n
\n {isKeyValueTagFullViewModalVisible && (\n \n )}\n
\n
\n );\n};\n\nexport function getKeyAndValueComplexTruncation(\n tag: KeyValueEntity,\n charLimit = TRUNCATE_ON_CHARS_LENGTH,\n): { shouldTruncateKey: boolean; shouldTruncateValue: boolean } {\n const { key, value } = tag;\n const fullLength = key.length + value.length;\n const isKeyLonger = key.length > value.length;\n const shorterLength = isKeyLonger ? value.length : key.length;\n\n // No need to truncate if tag is short enough\n if (fullLength <= charLimit) return { shouldTruncateKey: false, shouldTruncateValue: false };\n // If the shorter string is too long, truncate both key and value.\n if (shorterLength > charLimit / 2) return { shouldTruncateKey: true, shouldTruncateValue: true };\n\n // Otherwise truncate the longer string\n return {\n shouldTruncateKey: isKeyLonger,\n shouldTruncateValue: !isKeyLonger,\n };\n}\n","import { Button, PencilIcon, useDesignSystemTheme } from '@databricks/design-system';\nimport { FormattedMessage } from '@databricks/i18n';\n\nimport { KeyValueTag } from './KeyValueTag';\nimport { MLFLOW_INTERNAL_PREFIX } from '../../utils/TraceUtils';\n\nexport const TagsCellRenderer = ({\n onAddEditTags,\n tags,\n baseComponentId,\n}: {\n tags: { key: string; value: string }[];\n onAddEditTags?: () => void;\n baseComponentId: string;\n}) => {\n const { theme } = useDesignSystemTheme();\n const visibleTagList = tags?.filter(({ key }) => key && !key.startsWith(MLFLOW_INTERNAL_PREFIX)) || [];\n const containsTags = visibleTagList.length > 0;\n return (\n \n {visibleTagList.map((tag) => (\n \n ))}\n {onAddEditTags && (\n }\n onClick={onAddEditTags}\n children={\n !containsTags ? (\n \n ) : undefined\n }\n css={{\n flexShrink: 0,\n opacity: 0,\n '[role=row]:hover &': {\n opacity: 1,\n },\n '[role=row]:focus-within &': {\n opacity: 1,\n },\n }}\n type=\"tertiary\"\n />\n )}\n \n );\n};\n","import { HoverCard, Tag, Typography } from '@databricks/design-system';\nimport { useIntl } from '@databricks/i18n';\n\nimport { NullCell } from './NullCell';\nimport { StackedComponents } from './StackedComponents';\nimport type { TraceInfoV3 } from '../types';\n\nexport const TokensCell = (props: {\n currentTraceInfo?: TraceInfoV3;\n otherTraceInfo?: TraceInfoV3;\n isComparing: boolean;\n}) => {\n const { currentTraceInfo, otherTraceInfo, isComparing } = props;\n\n return (\n }\n second={isComparing && }\n />\n );\n};\n\nconst TokenComponent = (props: { traceInfo?: TraceInfoV3; isComparing: boolean }) => {\n const { traceInfo, isComparing } = props;\n\n const tokenUsage = traceInfo?.trace_metadata?.['mlflow.trace.tokenUsage'];\n const parsedTokenUsage = (() => {\n try {\n return tokenUsage ? JSON.parse(tokenUsage) : {};\n } catch {\n return {};\n }\n })();\n const totalTokens = parsedTokenUsage.total_tokens;\n const inputTokens = parsedTokenUsage.input_tokens;\n const outputTokens = parsedTokenUsage.output_tokens;\n\n const intl = useIntl();\n\n if (!totalTokens) {\n return ;\n }\n\n return (\n \n \n {totalTokens}\n \n
\n }\n content={\n \n {totalTokens && (\n \n \n \n {intl.formatMessage({\n defaultMessage: 'Total',\n description: 'Label for the total tokensin the tooltip for the tokens cell.',\n })}\n \n \n
\n {totalTokens}\n
\n \n )}\n {inputTokens && (\n \n \n \n {intl.formatMessage({\n defaultMessage: 'Input',\n description: 'Label for the input tokens in the tooltip for the tokens cell.',\n })}\n \n \n
\n {inputTokens}\n
\n \n )}\n {outputTokens && (\n \n \n \n {intl.formatMessage({\n defaultMessage: 'Output',\n description: 'Label for the output tokens in the tooltip for the tokens cell.',\n })}\n \n \n
\n {outputTokens}\n
\n \n )}\n \n }\n />\n );\n};\n","import { first, isNil } from 'lodash';\n\nimport type { ThemeType } from '@databricks/design-system';\nimport type { IntlShape } from '@databricks/i18n';\n\nimport { getAssessmentValueBarBackgroundColor } from './Colors';\nimport { isAssessmentPassing } from '../components/EvaluationsReviewAssessmentTag';\nimport {\n ASSESSMENTS_DOC_LINKS,\n DEFAULT_ASSESSMENTS_SORT_ORDER,\n getEvaluationResultAssessmentValue,\n getJudgeMetricsLink,\n KnownEvaluationResultAssessmentName,\n KnownEvaluationResultAssessmentStringValue,\n KnownEvaluationResultAssessmentValueDescription,\n KnownEvaluationResultAssessmentValueLabel,\n KnownEvaluationResultAssessmentValueMissingTooltip,\n} from '../components/GenAiEvaluationTracesReview.utils';\nimport type {\n AssessmentAggregates,\n AssessmentRunCounts,\n AssessmentInfo,\n EvalTraceComparisonEntry,\n RunEvaluationResultAssessment,\n RunEvaluationTracesDataEntry,\n AssessmentDType,\n AssessmentFilter,\n AssessmentValueType,\n NumericAggregateCount,\n NumericAggregate,\n} from '../types';\n\nexport interface StackedRunBarchartItem {\n value: number;\n fraction: number;\n isSelected: boolean;\n toggleFilter?: () => void;\n tooltip: string;\n}\nexport interface StackedBarchartItem {\n name: string;\n current: StackedRunBarchartItem;\n other?: StackedRunBarchartItem;\n backgroundColor: string;\n scoreChange?: number;\n}\n\nexport const ERROR_KEY = 'Error';\n\nexport function doesAssessmentContainErrors(assessment?: RunEvaluationResultAssessment): boolean {\n return Boolean(assessment?.errorCode || assessment?.errorMessage);\n}\n\nfunction getCustomMetricNameAndAssessment(assessmentPath: string): { metricName: string; assessmentName: string } {\n // metric/all_guidelines/guideline_adherence\n // gets parsed to {metricName: 'all_guidelines', assessmentName: 'guideline_adherence'}\n const splits = assessmentPath.split('/');\n if (splits.length === 1) {\n return { metricName: assessmentPath, assessmentName: assessmentPath };\n } else if (splits.length === 2) {\n return { metricName: splits[0], assessmentName: splits[1] };\n } else {\n return { metricName: splits[1], assessmentName: splits.slice(2).join('/') };\n }\n}\n\nconst PASS_FAIL_VALUES: string[] = [\n KnownEvaluationResultAssessmentStringValue.YES,\n KnownEvaluationResultAssessmentStringValue.NO,\n];\n/**\n * Computes global metadata for each of the assessments.\n */\nexport function getAssessmentInfos(\n intl: IntlShape,\n currentEvaluationResults: RunEvaluationTracesDataEntry[],\n otherEvaluationResults: RunEvaluationTracesDataEntry[] | undefined,\n): AssessmentInfo[] {\n const assessmentInfos: Record = {};\n // Compute dtypes in the first pass.\n const assessmentDtypes: Record = {\n [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT]: 'pass-fail',\n };\n // Set of all assessment names. Will be filled after the first pass when computing dtypes.\n const assessmentNames = new Set();\n\n [...currentEvaluationResults, ...(otherEvaluationResults || [])].forEach((result) => {\n const responseAssessmentsByName: [string, RunEvaluationResultAssessment[]][] = Object.entries(\n result.responseAssessmentsByName || {},\n );\n\n const overallAssessmentsByName: [string, RunEvaluationResultAssessment[]][] = result.overallAssessments.map(\n (assessment) => [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT as string, [assessment]],\n );\n const retrievalAssessmentsByName: [string, RunEvaluationResultAssessment[]][] = [];\n result.retrievalChunks?.forEach((chunk) => {\n // Iterate chunk.retrievalAssessmentsByName\n for (const [assessmentName, assessments] of Object.entries(chunk.retrievalAssessmentsByName || {})) {\n retrievalAssessmentsByName.push([assessmentName, assessments]);\n }\n });\n\n for (const [assessmentName, assessments] of [\n ...responseAssessmentsByName,\n ...overallAssessmentsByName,\n ...retrievalAssessmentsByName,\n ]) {\n assessmentNames.add(assessmentName);\n const assessment = assessments[0];\n // For string values, if we see a value that is not \"yes\" or \"no\", we treat it as a string.\n // This is not a great approach, we should probably actually pass the pass-fail dtype information back somehow.\n let dtype: AssessmentDType | undefined = !isNil(assessment.stringValue)\n ? 'pass-fail'\n : !isNil(assessment.numericValue)\n ? 'numeric'\n : !isNil(assessment.booleanValue)\n ? 'boolean'\n : undefined;\n\n if (doesAssessmentContainErrors(assessment)) {\n dtype = undefined;\n }\n\n if (!assessmentDtypes[assessmentName]) {\n if (assessmentName in KnownEvaluationResultAssessmentValueLabel) {\n dtype = 'pass-fail';\n }\n assessmentDtypes[assessmentName] = dtype;\n }\n\n // Treat non-\"yes\"|\"no\" as string values.\n if (\n dtype === 'pass-fail' &&\n !isNil(assessment.stringValue) &&\n !PASS_FAIL_VALUES.includes(assessment.stringValue)\n ) {\n assessmentDtypes[assessmentName] = 'string';\n }\n\n // If the dtype is not the same as the current dtype (meaning there's mixed data types),\n // treat it as a string.\n if (dtype !== undefined && dtype !== assessmentDtypes[assessmentName]) {\n assessmentDtypes[assessmentName] = 'string';\n }\n }\n });\n\n // if any assessment does not have a dtype, give it 'unknown' type. this can happen if all evaluations for that assessment are errors\n for (const assessmentName of assessmentNames) {\n if (!assessmentDtypes[assessmentName]) {\n assessmentDtypes[assessmentName] = 'unknown';\n }\n }\n\n [...currentEvaluationResults, ...(otherEvaluationResults || [])].forEach((result) => {\n const responseAssessmentsByName: [string, RunEvaluationResultAssessment[]][] = Object.entries(\n result.responseAssessmentsByName || {},\n );\n\n const overallAssessmentsByName: [string, RunEvaluationResultAssessment[]][] = result.overallAssessments.map(\n (assessment) => [KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT as string, [assessment]],\n );\n const retrievalAssessmentsByName: [string, RunEvaluationResultAssessment[]][] = [];\n result.retrievalChunks?.forEach((chunk) => {\n // Iterate chunk.retrievalAssessmentsByName\n for (const [assessmentName, assessments] of Object.entries(chunk.retrievalAssessmentsByName || {})) {\n retrievalAssessmentsByName.push([assessmentName, assessments]);\n }\n });\n\n const assessmentNames = Object.keys(assessmentDtypes);\n for (const assessmentName of assessmentNames) {\n const assessmentsByName = [\n ...responseAssessmentsByName.filter(([name]) => name === assessmentName),\n ...overallAssessmentsByName.filter(([name]) => name === assessmentName),\n ...retrievalAssessmentsByName.filter(([name]) => name === assessmentName),\n ];\n // NOTE: We only take the first assessment as row-level judges produce a single assessment.\n const assessments = assessmentsByName.map(([_, assessments]) => assessments[0]);\n const assessment: RunEvaluationResultAssessment | undefined = assessments[0];\n\n const isError = doesAssessmentContainErrors(assessment);\n\n if (isNil(assessmentInfos[assessmentName])) {\n let displayName: string;\n let metricName: string;\n let isCustomMetric = false;\n\n const isKnown = KnownEvaluationResultAssessmentValueLabel[assessmentName] !== undefined;\n if (isKnown) {\n displayName = intl.formatMessage(KnownEvaluationResultAssessmentValueLabel[assessmentName]);\n metricName = assessmentName;\n isCustomMetric = false;\n } else {\n const { metricName: customMetricName, assessmentName: customAssessmentName } =\n getCustomMetricNameAndAssessment(assessmentName);\n displayName = customAssessmentName || '-';\n metricName = customMetricName;\n if (assessment?.source?.sourceType === 'CODE') {\n isCustomMetric = true;\n }\n }\n const dtype = assessmentDtypes[assessmentName] || 'string';\n\n const docsLink = getJudgeMetricsLink(ASSESSMENTS_DOC_LINKS[assessmentName]);\n const missingTooltip =\n assessmentName in KnownEvaluationResultAssessmentValueMissingTooltip\n ? intl.formatMessage(KnownEvaluationResultAssessmentValueMissingTooltip[assessmentName])\n : '';\n const description =\n assessmentName in KnownEvaluationResultAssessmentValueDescription\n ? intl.formatMessage(KnownEvaluationResultAssessmentValueDescription[assessmentName])\n : assessment?.source?.sourceType === 'HUMAN'\n ? intl.formatMessage({\n defaultMessage: 'This assessment is produced by a human judge.',\n description: 'Human judge assessment description',\n })\n : intl.formatMessage({\n defaultMessage: 'This assessment is produced by a custom metric.',\n description: 'Custom judge assessment description',\n });\n\n let assessmentValue = assessment ? getEvaluationResultAssessmentValue(assessment) : undefined;\n if (assessmentValue === null) assessmentValue = undefined;\n\n const uniqueValues = new Set();\n if (!isError) {\n uniqueValues.add(assessmentValue);\n }\n\n assessmentInfos[assessmentName] = {\n name: assessmentName,\n displayName: displayName,\n isKnown,\n metricName,\n isCustomMetric,\n source: assessment?.source,\n dtype,\n uniqueValues,\n isOverall: assessmentName === KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT,\n docsLink,\n missingTooltip,\n description,\n isEditable: assessment?.source?.sourceType === 'AI_JUDGE' || assessment?.source?.sourceType === 'HUMAN',\n isRetrievalAssessment: retrievalAssessmentsByName.some(([name]) => name === assessmentName),\n containsErrors: isError,\n };\n } else {\n const assessmentInfo = assessmentInfos[assessmentName];\n let value = assessment ? getEvaluationResultAssessmentValue(assessment) : undefined;\n if (isNil(value)) value = undefined;\n if (!isError) {\n assessmentInfo.uniqueValues.add(value);\n }\n\n // Update isEditable.\n if (!assessmentInfo.isEditable) {\n assessmentInfo.isEditable =\n assessment?.source?.sourceType === 'AI_JUDGE' || assessment?.source?.sourceType === 'HUMAN';\n }\n\n // isRetrievalAssessment should be true if any evaluation result has this assessment.\n assessmentInfo.isRetrievalAssessment =\n assessmentInfo.isRetrievalAssessment || retrievalAssessmentsByName.some(([name]) => name === assessmentName);\n\n assessmentInfo.containsErrors = assessmentInfo.containsErrors || isError;\n }\n }\n });\n\n // Remove the overall assessment if it does not have any non-null values.\n const seenOverallAssessmentValues =\n assessmentInfos[KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT]?.uniqueValues || new Set();\n const hasOverallValue =\n seenOverallAssessmentValues.has(KnownEvaluationResultAssessmentStringValue.YES) ||\n seenOverallAssessmentValues.has(KnownEvaluationResultAssessmentStringValue.NO);\n if (!hasOverallValue) {\n delete assessmentInfos[KnownEvaluationResultAssessmentName.OVERALL_ASSESSMENT];\n }\n\n return sortAssessmentInfos(Object.values(assessmentInfos));\n}\n\nexport function sortAssessmentInfos(assessmentInfos: AssessmentInfo[]): AssessmentInfo[] {\n // Sort by DEFAULT_ASSESSMENTS_SORT_ORDER, fall back to alphabetical order of (metricName, name) which come after.\n return assessmentInfos.sort((a, b) => {\n const orderA = DEFAULT_ASSESSMENTS_SORT_ORDER.indexOf(a.name);\n const orderB = DEFAULT_ASSESSMENTS_SORT_ORDER.indexOf(b.name);\n\n // If both are in the sort order, compare their indices\n if (orderA !== -1 && orderB !== -1) {\n return orderA - orderB;\n }\n\n // If only one is in the sort order, prioritize it\n if (orderA !== -1) return -1;\n if (orderB !== -1) return 1;\n\n // Otherwise, sort by name alphabetically\n return a.name.localeCompare(b.name);\n });\n}\n\nexport function getNumericAggregate(numericValues: number[]): NumericAggregate | undefined {\n if (numericValues.length === 0) {\n return undefined;\n }\n\n const numericAggregateCounts: NumericAggregateCount[] = [];\n const min = Math.min(...numericValues);\n const max = Math.max(...numericValues);\n\n // Set a minimum bucket size of 0.01, since the data is displayed in 2 decimal places.\n // Show at most 10 buckets.\n const bucketSize = Math.max(0.01, (max - min) / 10);\n let maxCount = 0;\n\n if (min === max) {\n numericAggregateCounts.push({ lower: min, upper: max, count: numericValues.length });\n } else {\n for (let i = min; i < max; i += bucketSize) {\n numericAggregateCounts.push({ lower: i, upper: Math.min(i + bucketSize, max), count: 0 });\n }\n }\n\n numericAggregateCounts.sort((a, b) => a.lower - b.lower);\n for (const numericValue of numericValues) {\n const bucket = numericAggregateCounts.find(\n (bucket) =>\n numericValue >= bucket.lower &&\n (numericValue < bucket.upper || (numericValue === bucket.upper && numericValue === max)),\n );\n if (bucket) {\n bucket.count++;\n maxCount = Math.max(maxCount, bucket.count);\n }\n }\n return { min, max, maxCount, counts: numericAggregateCounts };\n}\n\nexport function getAssessmentNumericAggregates(\n assessmentInfo: AssessmentInfo,\n evalResults: RunEvaluationTracesDataEntry[],\n): NumericAggregate | undefined {\n if (assessmentInfo.dtype !== 'numeric') {\n return undefined;\n }\n const numericValues = evalResults\n .flatMap((evalResult) => {\n const assessments = assessmentInfo.isOverall\n ? evalResult.overallAssessments\n : evalResult.responseAssessmentsByName[assessmentInfo.name];\n const result = assessments\n ?.map((assessment) => getEvaluationResultAssessmentValue(assessment))\n .filter((value) => value !== undefined && typeof value === 'number');\n return result;\n })\n .filter((value) => !isNil(value));\n return getNumericAggregate(numericValues);\n}\n\nfunction getAssessmentRunValueCounts(\n assessmentInfo: AssessmentInfo,\n evalResults: RunEvaluationTracesDataEntry[],\n): AssessmentRunCounts | undefined {\n if (assessmentInfo.dtype === 'numeric') {\n return undefined;\n }\n const valueCounts: AssessmentRunCounts = new Map();\n evalResults.forEach((evalResult) => {\n const assessments = assessmentInfo.isOverall\n ? evalResult.overallAssessments\n : evalResult.responseAssessmentsByName[assessmentInfo.name];\n const valueCountsBySourceId =\n assessments && assessments.length > 0\n ? getUniqueValueCountsBySourceId(assessmentInfo, assessments)\n : [{ value: undefined, count: 1 }];\n const keysToCount = assessmentInfo.containsErrors\n ? [ERROR_KEY, ...assessmentInfo.uniqueValues]\n : assessmentInfo.uniqueValues;\n for (const uniqueValue of keysToCount) {\n const valueCountBySourceId = valueCountsBySourceId.find((valueCount) => valueCount.value === uniqueValue);\n const count = valueCountBySourceId ? valueCountBySourceId.count : 0;\n valueCounts.set(uniqueValue, (valueCounts.get(uniqueValue) || 0) + count);\n }\n });\n return valueCounts;\n}\n\nfunction getAssessmentRunNumericValues(\n assessmentInfo: AssessmentInfo,\n evalResults: RunEvaluationTracesDataEntry[],\n): number[] | undefined {\n if (assessmentInfo.dtype !== 'numeric') {\n return undefined;\n }\n const values: number[] = [];\n evalResults.forEach((evalResult) => {\n const assessment = assessmentInfo.isOverall\n ? first(evalResult.overallAssessments)\n : first(evalResult.responseAssessmentsByName[assessmentInfo.name]);\n if (assessment) {\n const value = getEvaluationResultAssessmentValue(assessment);\n\n if (!isNil(value)) {\n values.push(Number(value));\n }\n }\n });\n return values;\n}\n\nfunction getRootCauseAssessmentCount(\n assessmentInfo: AssessmentInfo,\n evalResults: RunEvaluationTracesDataEntry[],\n): number {\n let numRootCause = 0;\n evalResults.forEach((evalResult) => {\n if (isNil(evalResult)) return;\n const overallAssessment = first(evalResult.overallAssessments);\n if (overallAssessment?.rootCauseAssessment?.assessmentName === assessmentInfo.name) {\n numRootCause++;\n }\n });\n return numRootCause;\n}\n\nexport function getAssessmentAggregates(\n assessmentInfo: AssessmentInfo,\n evalResults: EvalTraceComparisonEntry[],\n allAssessmentFilters: AssessmentFilter[],\n): AssessmentAggregates {\n const currentEvalResults = evalResults.map((entry) => entry.currentRunValue).filter((entry) => !isNil(entry));\n const otherEvalResults = evalResults.map((entry) => entry.otherRunValue).filter((entry) => !isNil(entry));\n\n const currentAssessmentAggregates = getAssessmentRunValueCounts(assessmentInfo, currentEvalResults);\n const otherAssessmentAggregates = getAssessmentRunValueCounts(assessmentInfo, otherEvalResults);\n\n const currentNumericAggregates = getAssessmentNumericAggregates(assessmentInfo, currentEvalResults);\n\n const assessmentFilters = allAssessmentFilters.filter((filter) => filter.assessmentName === assessmentInfo.name);\n\n return {\n assessmentInfo,\n currentCounts: currentAssessmentAggregates,\n otherCounts: otherAssessmentAggregates,\n currentNumericValues: getAssessmentRunNumericValues(assessmentInfo, currentEvalResults),\n otherNumericValues: getAssessmentRunNumericValues(assessmentInfo, otherEvalResults),\n currentNumericAggregate: currentNumericAggregates,\n currentNumRootCause: getRootCauseAssessmentCount(assessmentInfo, currentEvalResults),\n otherNumRootCause: getRootCauseAssessmentCount(assessmentInfo, otherEvalResults),\n assessmentFilters,\n };\n}\n\n/**\n * Computes the total aggregate score for an assessment and evaluation results.\n *\n * For pass-fail dtypes, it computes what percentage of the runs have the assessment value as 'yes'.\n * for boolean dtypes, it computes what percentage of the runs have the assessment value as 'true'.\n */\nexport function getAssessmentAggregateOverallFraction(\n assessmentInfo: AssessmentInfo,\n assessmentRunCounts: AssessmentRunCounts = new Map(),\n): number {\n if (assessmentInfo.dtype === 'pass-fail' || assessmentInfo.dtype === 'boolean') {\n let total = 0;\n let passCount = 0;\n for (const [value, count] of assessmentRunCounts) {\n if (isAssessmentPassing(assessmentInfo, value)) {\n passCount += count;\n }\n // We only consider non-null values for the total score.\n if (!isNil(value) && value !== ERROR_KEY) {\n total += count;\n }\n }\n return total > 0 ? passCount / total : 0;\n }\n return 0;\n}\n\nfunction getAssessmentBarChartValueBarItem(\n intl: IntlShape,\n assessmentInfo: AssessmentInfo,\n assessmentFilters: AssessmentFilter[],\n value: string | boolean | number | undefined,\n valueCounts: AssessmentRunCounts,\n runName: string,\n toggleAssessmentFilter: (\n assessmentName: string,\n filterValue: AssessmentValueType,\n run: string,\n filterType: AssessmentFilter['filterType'],\n ) => void,\n): StackedRunBarchartItem {\n let numEvals = 0;\n const isErrorOrNull = value === ERROR_KEY || value === undefined;\n for (const [key, count] of valueCounts) {\n if (key !== undefined && key !== ERROR_KEY) {\n numEvals += count;\n }\n }\n const numValue = valueCounts.get(value) || 0;\n const fraction = !isErrorOrNull && numEvals > 0 ? numValue / numEvals : 0;\n\n const filterType: AssessmentFilter['filterType'] = undefined;\n\n return {\n value: valueCounts.get(value) || 0,\n fraction,\n isSelected: assessmentFilters.some(\n (filter) =>\n filter.filterValue === value && filter.assessmentName === assessmentInfo.name && filter.run === runName,\n ),\n toggleFilter: () => toggleAssessmentFilter(assessmentInfo.name, value, runName, filterType),\n tooltip: !isErrorOrNull\n ? intl.formatMessage(\n {\n defaultMessage: '{numValue}/{numEvals} for run \"{runName}\"',\n description: 'Passing assessment tooltip',\n },\n {\n numValue: numValue,\n numEvals,\n runName,\n },\n )\n : intl.formatMessage(\n {\n defaultMessage: '{numValue} for run \"{runName}\"',\n description: 'Error/null assessment tooltip',\n },\n {\n numValue,\n runName,\n },\n ),\n };\n}\n\nfunction getBarChartKeys(assessmentInfo: AssessmentInfo) {\n const keys = getSortedUniqueValues(assessmentInfo);\n if (assessmentInfo.containsErrors) {\n keys.push(ERROR_KEY);\n }\n\n return keys;\n}\n\nexport function getBarChartData(\n intl: IntlShape,\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n assessmentFilters: AssessmentFilter[],\n toggleAssessmentFilter: (\n assessmentName: string,\n filterValue: AssessmentValueType,\n run: string,\n filterType: AssessmentFilter['filterType'],\n ) => void,\n displayInfoCounts: AssessmentAggregates,\n currentRunDisplayName?: string,\n compareToRunDisplayName?: string,\n): StackedBarchartItem[] {\n const showCompareData = displayInfoCounts.otherCounts !== undefined;\n\n const barItems: StackedBarchartItem[] = [];\n\n for (const value of getBarChartKeys(assessmentInfo)) {\n const currentBarItem = displayInfoCounts.currentCounts\n ? getAssessmentBarChartValueBarItem(\n intl,\n assessmentInfo,\n assessmentFilters,\n value,\n displayInfoCounts.currentCounts,\n // For monitoring, there is no run name so we allow this to pass through.\n currentRunDisplayName || 'monitor',\n toggleAssessmentFilter,\n )\n : undefined;\n\n const otherBarItem =\n showCompareData && compareToRunDisplayName\n ? getAssessmentBarChartValueBarItem(\n intl,\n assessmentInfo,\n assessmentFilters,\n value,\n displayInfoCounts.otherCounts || new Map(),\n compareToRunDisplayName,\n toggleAssessmentFilter,\n )\n : undefined;\n\n const isErrorOrNull = value === ERROR_KEY || value === undefined;\n const scoreChange =\n showCompareData && currentBarItem && otherBarItem\n ? isErrorOrNull\n ? currentBarItem.value - (otherBarItem?.value || 0)\n : currentBarItem.fraction - (otherBarItem?.fraction || 0)\n : undefined;\n // Only include Error or Null if there's a non-zero value or score change.\n if (currentBarItem && (!isErrorOrNull || currentBarItem.value !== 0 || (scoreChange && scoreChange !== 0))) {\n barItems.push({\n name: getAssessmentBarChartValueText(intl, theme, assessmentInfo, value),\n current: currentBarItem,\n other: otherBarItem,\n backgroundColor: getAssessmentValueBarBackgroundColor(theme, assessmentInfo, value, value === ERROR_KEY),\n scoreChange,\n });\n }\n }\n\n return barItems;\n}\n\nfunction getSortedUniqueValues(assessmentInfo: AssessmentInfo) {\n const uniqueValuesArray = Array.from(assessmentInfo.uniqueValues);\n if (assessmentInfo.dtype === 'pass-fail') {\n // Always show \"YES\" and \"NO\". We don't always show missing to reduce vertical space usage.\n if (!uniqueValuesArray.includes(KnownEvaluationResultAssessmentStringValue.YES)) {\n uniqueValuesArray.push(KnownEvaluationResultAssessmentStringValue.YES);\n }\n if (!uniqueValuesArray.includes(KnownEvaluationResultAssessmentStringValue.NO)) {\n uniqueValuesArray.push(KnownEvaluationResultAssessmentStringValue.NO);\n }\n const sortOrder: string[] = [\n KnownEvaluationResultAssessmentStringValue.YES,\n KnownEvaluationResultAssessmentStringValue.NO,\n ];\n\n // Sort the unique values based on the order of the known values.\n return uniqueValuesArray.sort((a, b) => {\n const aIndex = sortOrder.indexOf(a as string);\n const bIndex = sortOrder.indexOf(b as string);\n return aIndex - bIndex;\n });\n } else if (assessmentInfo.dtype === 'boolean') {\n // Sort by the value.\n return uniqueValuesArray.sort((a, b) => {\n return (a as boolean) === true ? -1 : 1;\n });\n }\n\n // Sort the assessment.\n return uniqueValuesArray.sort();\n}\n\nfunction getAssessmentBarChartValueText(\n intl: IntlShape,\n theme: ThemeType,\n assessmentInfo: AssessmentInfo,\n value: string | boolean | number | undefined,\n): string {\n if (assessmentInfo.dtype === 'pass-fail') {\n if (value === KnownEvaluationResultAssessmentStringValue.YES) {\n return intl.formatMessage({\n defaultMessage: 'Pass',\n description: 'The label for a passing asseessment above a bar-chart in the summary stats.',\n });\n } else if (value === KnownEvaluationResultAssessmentStringValue.NO) {\n return intl.formatMessage({\n defaultMessage: 'Fail',\n description: 'The label for a failing asseessment above a bar-chart in the summary stats.',\n });\n } else if (value === ERROR_KEY) {\n return intl.formatMessage({\n defaultMessage: 'Error',\n description: 'The label for an error asseessment above a bar-chart in the summary stats.',\n });\n } else {\n return intl.formatMessage({\n defaultMessage: 'null',\n description: 'null assessment label',\n });\n }\n } else if (assessmentInfo.dtype === 'boolean') {\n if (value === true) {\n return intl.formatMessage({\n defaultMessage: 'True',\n description: 'True assessment label',\n });\n } else if (value === false) {\n return intl.formatMessage({\n defaultMessage: 'False',\n description: 'False assessment label',\n });\n } else {\n return intl.formatMessage({\n defaultMessage: 'null',\n description: 'null assessment label',\n });\n }\n }\n return isNil(value) ? 'null' : `${value}`;\n}\n\n/**\n * Compute the counts for each of the values given a set of assessments.\n */\nexport function getUniqueValueCountsBySourceId(\n assessmentInfo: AssessmentInfo,\n assessments: RunEvaluationResultAssessment[],\n): {\n value: AssessmentValueType | undefined;\n count: number;\n latestAssessment: RunEvaluationResultAssessment;\n}[] {\n const filteredAssessments = assessments.filter((assessment) => assessment.name === assessmentInfo.name);\n // Compute the unique values of assessments.\n let uniqueValues = new Set();\n for (const assessment of filteredAssessments) {\n const value = getEvaluationResultAssessmentValue(assessment);\n uniqueValues.add(value);\n }\n\n // Sort by the latest timestamp.\n filteredAssessments.sort((a, b) => (b.timestamp || 0) - (a.timestamp || 0));\n\n // Separate assessments with errors from those without.\n const errorAssessments = filteredAssessments.filter((assessment) => doesAssessmentContainErrors(assessment));\n const validAssessments = filteredAssessments.filter((assessment) => !doesAssessmentContainErrors(assessment));\n\n // Recompute the unique values after filtering.\n uniqueValues = new Set();\n for (const assessment of validAssessments) {\n const value = getEvaluationResultAssessmentValue(assessment);\n uniqueValues.add(value);\n }\n\n // Compute the counts for each of the unique values.\n const valueCounts: {\n value: AssessmentValueType | undefined;\n count: number;\n latestAssessment: RunEvaluationResultAssessment;\n }[] = [];\n for (const value of uniqueValues) {\n const assessmentsWithValue = filteredAssessments.filter(\n (assessment) => getEvaluationResultAssessmentValue(assessment) === value,\n );\n const count = assessmentsWithValue.length;\n valueCounts.push({ value, count, latestAssessment: assessmentsWithValue[0] });\n }\n\n // Add an entry for errors.\n if (errorAssessments.length > 0) {\n valueCounts.push({\n value: ERROR_KEY,\n count: errorAssessments.length,\n latestAssessment: errorAssessments[0],\n });\n }\n\n return valueCounts;\n}\n","import { isNil } from 'lodash';\n\nimport type { IntlShape } from '@databricks/i18n';\nimport { FormattedMessage } from '@databricks/i18n';\n\nimport { getAssessmentAggregateOverallFraction } from './AggregationUtils';\nimport type { AssessmentAggregates, AssessmentInfo } from '../types';\nconst NUM_DECIMALS_PERCENTAGE_DISPLAY = 1;\n\n/** Display a fraction (0-1) as a percentage. */\nexport function displayPercentage(fraction: number, numDecimalsDisplayPercentage = NUM_DECIMALS_PERCENTAGE_DISPLAY) {\n // We wrap in a Number to remove trailing zeros (4.00 => 4).\n return Number((fraction * 100).toFixed(numDecimalsDisplayPercentage)).toString();\n}\n\nexport function displayFloat(value: number | undefined | null, numDecimals = 3) {\n if (isNil(value)) {\n return 'null';\n }\n const multiplier = Math.pow(10, numDecimals);\n const result = Math.round(value * multiplier) / multiplier;\n return result.toString();\n}\n\n/**\n * Computes the overall display score for an assessment, and the change in score from the other run.\n */\nexport function getDisplayOverallScoreAndChange(\n intl: IntlShape,\n assessmentInfo: AssessmentInfo,\n assessmentDisplayInfo: AssessmentAggregates,\n): {\n displayScore: string;\n displayScoreChange: string | undefined;\n changeDirection: 'up' | 'down' | 'none';\n aggregateType: 'average' | 'percentage-true' | 'categorical';\n} {\n if (assessmentInfo.dtype === 'numeric') {\n // Compute the average score for displayScore, and the change in average for displayScoreChange.\n const currentNumericValues = assessmentDisplayInfo.currentNumericValues;\n const otherNumericValues = assessmentDisplayInfo.otherNumericValues;\n\n let currentAverage = NaN;\n let otherAverage = NaN;\n if (currentNumericValues) {\n currentAverage = currentNumericValues.reduce((a, b) => a + b, 0) / currentNumericValues.length;\n }\n if (otherNumericValues) {\n otherAverage = otherNumericValues.reduce((a, b) => a + b, 0) / otherNumericValues.length;\n }\n const displayScore = displayFloat(currentAverage, 2);\n const scoreChange = otherNumericValues ? currentAverage - otherAverage : undefined;\n const changeDirection = scoreChange ? (scoreChange > 0 ? 'up' : 'down') : 'none';\n\n const displayScoreChange = scoreChange\n ? changeDirection === 'up'\n ? `+${displayFloat(Math.abs(scoreChange), 2)}`\n : changeDirection === 'down'\n ? `-${displayFloat(Math.abs(scoreChange), 2)}`\n : '+0'\n : undefined;\n\n return {\n displayScore,\n displayScoreChange,\n changeDirection,\n aggregateType: 'average',\n };\n } else if (assessmentInfo.dtype === 'pass-fail' || assessmentInfo.dtype === 'boolean') {\n const numDecimalsDisplayPercentage = 0;\n const scoreFraction = getAssessmentAggregateOverallFraction(assessmentInfo, assessmentDisplayInfo.currentCounts);\n const displayScore = displayPercentage(scoreFraction, numDecimalsDisplayPercentage) + '%';\n const scoreChange = assessmentDisplayInfo.otherCounts\n ? scoreFraction - getAssessmentAggregateOverallFraction(assessmentInfo, assessmentDisplayInfo.otherCounts)\n : undefined;\n const changeDirection = scoreChange ? (scoreChange > 0 ? 'up' : 'down') : 'none';\n const displayScoreChange = scoreChange\n ? (changeDirection === 'up' || changeDirection === 'none' ? '+' : '') +\n displayPercentage(scoreChange, numDecimalsDisplayPercentage) +\n '%'\n : undefined;\n\n return {\n displayScore,\n displayScoreChange,\n changeDirection,\n aggregateType: 'percentage-true',\n };\n } else if (assessmentInfo.dtype === 'string') {\n const numUniqueValues = assessmentInfo.uniqueValues.size;\n return {\n displayScore:\n numUniqueValues !== 1\n ? intl.formatMessage(\n {\n defaultMessage: '{numUniqueValues} values',\n description: 'Text for number of unique values for categorical assessment',\n },\n { numUniqueValues },\n )\n : intl.formatMessage({\n defaultMessage: '1 value',\n description: 'Text for number of unique values for categorical assessment',\n }),\n displayScoreChange: '',\n changeDirection: 'none',\n aggregateType: 'categorical',\n };\n } else {\n return {\n displayScore: 'N/A',\n displayScoreChange: 'N/A',\n changeDirection: 'none',\n aggregateType: 'categorical',\n };\n }\n}\n\nexport function getDisplayScore(assessmentInfo: AssessmentInfo, fraction: number) {\n return displayPercentage(fraction, 0) + '%';\n}\n\nexport function getDisplayScoreChange(assessmentInfo: AssessmentInfo, scoreChange: number, asPercentage = true) {\n if (assessmentInfo.dtype === 'numeric') {\n const changeDirection = scoreChange > 0 ? 'up' : 'down';\n return changeDirection === 'up' ? `+${displayFloat(scoreChange, 2)}` : `-${displayFloat(scoreChange, 2)}`;\n } else {\n const changeDirection = scoreChange >= 0 ? 'up' : 'down';\n if (asPercentage) {\n return changeDirection === 'up'\n ? `+${displayPercentage(scoreChange, 0)}%`\n : `-${displayPercentage(scoreChange * -1, 0)}%`;\n } else {\n return changeDirection === 'up' ? `+${scoreChange}` : `-${scoreChange}`;\n }\n }\n}\n\n// This is forked from mlflow: https://src.dev.databricks.com/databricks-eng/universe/-/blob/mlflow/web/js/src/common/utils/Utils.tsx?L188\nexport function timeSinceStr(date: any, referenceDate = new Date()) {\n // @ts-expect-error TS(2362): The left-hand side of an arithmetic operation must... Remove this comment to see the full error message\n const seconds = Math.max(0, Math.floor((referenceDate - date) / 1000));\n let interval = Math.floor(seconds / 31536000);\n\n if (interval >= 1) {\n return (\n \n );\n }\n interval = Math.floor(seconds / 2592000);\n if (interval >= 1) {\n return (\n \n );\n }\n interval = Math.floor(seconds / 86400);\n if (interval >= 1) {\n return (\n \n );\n }\n interval = Math.floor(seconds / 3600);\n if (interval >= 1) {\n return (\n \n );\n }\n interval = Math.floor(seconds / 60);\n if (interval >= 1) {\n return (\n \n );\n }\n return (\n \n );\n}\n\n// Function to escape CSS Special characters by adding \\\\ before them. Needed when inserting CSS variables.\nexport function escapeCssSpecialCharacters(str: string) {\n // eslint-disable-next-line no-useless-escape\n return str.replace(/([!\"#$%&'()*+,\\.\\/:;\\s<=>?@[\\\\\\]^`{|}~])/g, '\\\\$1');\n}\n\n// Adapted from query-insights/utils/numberUtils\nexport function prettySizeWithUnit(bytes: number | null | undefined, fractionDigits?: number) {\n return prettyNumberWithUnit(bytes, 1024, ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB'], fractionDigits);\n}\n\nfunction prettyNumberWithUnit(\n value: string | number | null | undefined,\n divisor: number,\n units: string[] = [],\n fractionDigits?: number,\n): { unit: string; value: string; numericValue: number | undefined; divisor: number } {\n let val = Number(value);\n\n if (isNaN(val) || !isFinite(val)) {\n return {\n value: '',\n numericValue: undefined,\n unit: '',\n divisor: 1,\n };\n }\n\n let unit = 0;\n let greatestDivisor = 1;\n\n while (val >= divisor && unit < units.length - 1) {\n val /= divisor;\n greatestDivisor *= divisor;\n unit += 1;\n }\n\n return {\n value: formatNumber(val, fractionDigits),\n numericValue: val,\n unit: units[unit],\n divisor: greatestDivisor,\n };\n}\n\nfunction formatNumber(value: number, fractionDigits = 3): string {\n return Math.round(value) !== value ? value.toFixed(fractionDigits) : value.toString();\n}\n","import React from 'react';\n\nconst MarkdownConverterProviderContext = React.createContext({\n makeHTML: (markdown?: string) => markdown,\n});\n\nexport const MarkdownConverterProvider = ({\n children,\n makeHtml,\n}: {\n children: React.ReactNode;\n makeHtml: (markdown?: string) => string;\n}) => {\n return (\n \n {children}\n \n );\n};\n\nexport const useMarkdownConverter = () => React.useContext(MarkdownConverterProviderContext);\n","import { isNil, isString } from 'lodash';\nimport { useMemo } from 'react';\n\nimport {\n PencilIcon,\n SparkleDoubleIcon,\n UserIcon,\n useDesignSystemTheme,\n Button,\n CheckCircleIcon,\n XCircleIcon,\n WarningIcon,\n XCircleFillIcon,\n HoverCard,\n Typography,\n InfoSmallIcon,\n BracketsXIcon,\n DangerIcon,\n} from '@databricks/design-system';\nimport type { ThemeType } from '@databricks/design-system';\nimport type { IntlShape } from '@databricks/i18n';\nimport { FormattedMessage, useIntl } from '@databricks/i18n';\n\nimport {\n KnownEvaluationResultAssessmentValueLabel,\n KnownEvaluationResultAssessmentValueMapping,\n getEvaluationResultAssessmentValue,\n hasBeenEditedByHuman,\n KnownEvaluationResultAssessmentStringValue,\n KnownEvaluationResultAssessmentValueMissingTooltip,\n ASSESSMENTS_DOC_LINKS,\n getJudgeMetricsLink,\n} from './GenAiEvaluationTracesReview.utils';\nimport type { AssessmentInfo, RunEvaluationResultAssessment } from '../types';\nimport {\n getEvaluationResultAssessmentBackgroundColor,\n getEvaluationResultIconColor,\n getEvaluationResultTextColor,\n} from '../utils/Colors';\nimport { displayFloat } from '../utils/DisplayUtils';\nimport { ASSESSMENT_RATIONAL_HOVER_DETAILS_VIEW } from '../utils/EvaluationLogging';\nimport { useMarkdownConverter } from '../utils/MarkdownUtils';\n\nexport const isAssessmentPassing = (\n assessmentInfo: AssessmentInfo,\n assessmentValue?: string | number | boolean | null,\n) => {\n if (!isNil(assessmentValue)) {\n if (assessmentInfo.dtype === 'pass-fail') {\n if (assessmentValue === KnownEvaluationResultAssessmentStringValue.YES) {\n return true;\n } else if (assessmentValue === KnownEvaluationResultAssessmentStringValue.NO) {\n return false;\n }\n } else if (assessmentInfo.dtype === 'boolean') {\n return assessmentValue === true;\n }\n }\n return undefined;\n};\n\nfunction getAssessmentTagDisplayValue(\n theme: ThemeType,\n intl: IntlShape,\n type: 'value' | 'assessment-value',\n assessmentInfo: AssessmentInfo,\n editedByHuman: boolean,\n assessment?: RunEvaluationResultAssessment,\n isRootCauseAssessment?: boolean,\n): { tagText: JSX.Element | string; icon: JSX.Element; fullTagText?: JSX.Element | string | undefined } {\n let tagText: string | JSX.Element = '';\n let fullTagText: string | JSX.Element | undefined = undefined;\n let icon: JSX.Element = <>;\n\n const errorDisplayValue = {\n tagText: (\n \n ),\n icon: ,\n };\n\n const nullDisplayValue = {\n tagText: (\n \n \n \n ),\n icon: ,\n };\n\n const value = assessment ? getEvaluationResultAssessmentValue(assessment) : undefined;\n const isError = Boolean(assessment?.errorMessage);\n\n if (isError) {\n return errorDisplayValue;\n }\n\n if (assessmentInfo.dtype === 'pass-fail' || assessmentInfo.dtype === 'boolean') {\n const isPassing = isAssessmentPassing(assessmentInfo, value);\n let displayValueText = '';\n if (assessmentInfo.dtype === 'pass-fail') {\n // Known assessments are all pass / fail.\n if (isPassing === true) {\n displayValueText = intl.formatMessage({\n defaultMessage: 'Pass',\n description: 'Passing evaluation status in the evaluations table.',\n });\n } else if (isPassing === false) {\n displayValueText = intl.formatMessage({\n defaultMessage: 'Fail',\n description: 'Failing evaluation status in the evaluations table.',\n });\n } else {\n return nullDisplayValue;\n }\n } else if (isPassing === true) {\n displayValueText = intl.formatMessage({\n defaultMessage: 'True',\n description: 'True value in the evaluations table.',\n });\n } else if (isPassing === false) {\n displayValueText = intl.formatMessage({\n defaultMessage: 'False',\n description: 'False value in the evaluations table.',\n });\n } else {\n return nullDisplayValue;\n }\n\n const iconColor = getEvaluationResultIconColor(theme, assessmentInfo, assessment);\n icon =\n isPassing === true ? (\n \n ) : isPassing === false ? (\n isRootCauseAssessment ? (\n \n ) : (\n \n )\n ) : (\n \n );\n\n if (type === 'assessment-value') {\n const knownMapping = KnownEvaluationResultAssessmentValueMapping[assessmentInfo.name];\n\n if (knownMapping) {\n const messageDescriptor = value\n ? knownMapping[value.toString()] ?? knownMapping[KnownEvaluationResultAssessmentStringValue.YES]\n : knownMapping[KnownEvaluationResultAssessmentStringValue.YES];\n if (messageDescriptor) {\n tagText = ;\n }\n } else {\n tagText = (\n <>\n {assessmentInfo.displayName}: {value}\n \n );\n }\n } else if (type === 'value') {\n if (isNil(isPassing)) {\n tagText = {displayValueText};\n } else {\n tagText = displayValueText;\n }\n }\n } else if (assessmentInfo.dtype === 'numeric') {\n const roundedValue = !isNil(value) ? displayFloat(value as number | undefined | null) : value;\n\n if (type === 'assessment-value') {\n tagText = (\n <>\n {assessmentInfo.displayName}: {roundedValue}\n \n );\n fullTagText = (\n <>\n {assessmentInfo.displayName}: {value}\n \n );\n } else {\n if (isNil(roundedValue)) {\n return nullDisplayValue;\n }\n tagText = `${roundedValue}`;\n fullTagText = `${value}`;\n }\n } else {\n // Wrap nulls in italics.\n if (isNil(value)) {\n return nullDisplayValue;\n }\n const valueElement = <>{String(value)};\n if (type === 'assessment-value') {\n if (isNil(value)) {\n tagText = <>{assessmentInfo.displayName};\n } else {\n tagText = (\n <>\n {assessmentInfo.displayName}: {valueElement}\n \n );\n }\n } else {\n tagText = valueElement;\n }\n }\n return { tagText, icon, fullTagText };\n}\n\nexport const EvaluationsReviewAssessmentTag = ({\n assessment,\n onEdit,\n active = false,\n disableJudgeTypeIcon,\n showRationaleInTooltip = false,\n showPassFailText = false,\n hideAssessmentName = false,\n iconOnly = false,\n disableTooltip = false,\n isRootCauseAssessment,\n assessmentInfo,\n type,\n count,\n}: {\n assessment?: RunEvaluationResultAssessment;\n onEdit?: () => void;\n active?: boolean;\n disableJudgeTypeIcon?: boolean;\n showRationaleInTooltip?: boolean;\n showPassFailText?: boolean;\n hideAssessmentName?: boolean;\n iconOnly?: boolean;\n disableTooltip?: boolean;\n isRootCauseAssessment?: boolean;\n assessmentInfo: AssessmentInfo;\n type: 'value' | 'assessment-value';\n count?: number;\n}) => {\n const { theme } = useDesignSystemTheme();\n const intl = useIntl();\n\n const value = assessment ? getEvaluationResultAssessmentValue(assessment) : undefined;\n const isPassing = useMemo(() => isAssessmentPassing(assessmentInfo, value), [value, assessmentInfo]);\n\n const iconColor = getEvaluationResultIconColor(theme, assessmentInfo, assessment);\n const textColor = getEvaluationResultTextColor(theme, assessmentInfo, assessment);\n\n let errorMessage: string | undefined = undefined;\n if (\n assessment?.errorMessage ||\n (isPassing === undefined && assessment && KnownEvaluationResultAssessmentValueMissingTooltip[assessment.name])\n ) {\n errorMessage =\n assessment.errorMessage ||\n intl.formatMessage(KnownEvaluationResultAssessmentValueMissingTooltip[assessment.name]);\n }\n\n const knownValueLabel = assessment ? KnownEvaluationResultAssessmentValueLabel[assessment.name] : undefined;\n const assessmentTitle = useMemo(\n () => (knownValueLabel ? intl.formatMessage(knownValueLabel) : assessment?.name),\n [assessment, knownValueLabel, intl],\n );\n const learnMoreLink = useMemo(\n () => (assessment ? getJudgeMetricsLink(ASSESSMENTS_DOC_LINKS[assessment.name]) : undefined),\n [assessment],\n );\n\n const { makeHTML } = useMarkdownConverter();\n\n const rationaleHTML = useMemo(() => {\n const rationale = assessment?.rationale;\n return isString(rationale) ? makeHTML(rationale) : undefined;\n }, [assessment, makeHTML]);\n\n const editedByHuman = useMemo(() => !isNil(assessment) && hasBeenEditedByHuman(assessment), [assessment]);\n\n const { tagText, icon, fullTagText } = useMemo(\n () =>\n getAssessmentTagDisplayValue(theme, intl, type, assessmentInfo, editedByHuman, assessment, isRootCauseAssessment),\n [theme, intl, type, assessmentInfo, assessment, isRootCauseAssessment, editedByHuman],\n );\n\n const tagContent = (\n <>\n {tagText}\n {count && count > 1 ? ` (${count})` : ''}\n \n );\n\n // Hide human assessment tags when not defined.\n const hideTag = assessmentInfo.source?.sourceType === 'HUMAN' && !assessment?.source?.sourceId;\n if (hideTag) {\n return <>;\n }\n\n const tagElement = (\n
\n \n ) : assessment && editedByHuman ? (\n \n ) : (\n \n )\n }\n backgroundColor={getEvaluationResultAssessmentBackgroundColor(theme, assessmentInfo, assessment)}\n disableSourceTypeIcon={disableJudgeTypeIcon && !editedByHuman}\n hasBeenEditedByHuman={editedByHuman}\n onEdit={onEdit}\n />\n
\n );\n\n return (\n <>\n {disableTooltip ? (\n tagElement\n ) : (\n \n \n \n \n \n {assessmentTitle}\n \n \n ) : assessment && hasBeenEditedByHuman(assessment) ? (\n \n ) : (\n \n )\n }\n backgroundColor={getEvaluationResultAssessmentBackgroundColor(theme, assessmentInfo, assessment)}\n disableSourceTypeIcon={disableJudgeTypeIcon}\n hasBeenEditedByHuman={editedByHuman}\n />\n \n {learnMoreLink && (\n \n \n \n )}\n \n {isRootCauseAssessment && (\n \n {intl.formatMessage({\n defaultMessage: 'This assessment is the root cause of the overall evaluation failure.',\n description:\n 'Root cause assessment hint that explains that this assessment is causing the overall assessment to fail.',\n })}\n \n )}\n \n {showRationaleInTooltip && assessment && rationaleHTML && (\n
\n <>\n \n \n
\n )}\n {errorMessage && (\n \n \n {errorMessage}\n \n \n )}\n \n }\n trigger={tagElement}\n />\n )}\n \n );\n};\n\nconst EvaluationsReviewTag = ({\n iconOnly,\n hideAssessmentName,\n tagContent,\n active,\n sourceIcon,\n icon,\n iconColor,\n textColor,\n backgroundColor,\n disableSourceTypeIcon,\n hasBeenEditedByHuman,\n onEdit,\n}: {\n iconOnly: boolean;\n hideAssessmentName: boolean;\n tagContent: string | number | true | JSX.Element | undefined;\n active?: boolean;\n sourceIcon?: JSX.Element;\n icon: JSX.Element;\n iconColor: string;\n textColor: string;\n backgroundColor: string;\n disableSourceTypeIcon?: boolean;\n hasBeenEditedByHuman?: boolean;\n onEdit?: () => void;\n}) => {\n const { theme } = useDesignSystemTheme();\n\n const svgSize = iconOnly ? 18 : 12;\n\n return (\n when it's aligned with design\n display: 'inline-flex',\n height: iconOnly ? svgSize : 20,\n width: iconOnly ? svgSize : hideAssessmentName ? 'fit-content' : '',\n justifyContent: 'space-between',\n alignItems: 'center',\n padding: iconOnly ? '0' : onEdit ? '0 0 0 8px' : '0 8px',\n gap: theme.spacing.sm,\n borderRadius: iconOnly ? '50%' : theme.legacyBorders.borderRadiusMd,\n backgroundColor: backgroundColor,\n boxShadow: `inset 0 0 1px 1px ${active ? theme.colors.borderAccessible : 'transparent'}`,\n // border: iconOnly ? '' : `1px solid ${getEvaluationBorderColor(theme, assessment)}`,\n fontSize: theme.typography.fontSizeSm,\n svg: { width: svgSize, height: svgSize },\n whiteSpace: 'nowrap',\n }}\n >\n {icon}\n {tagContent && (\n \n {tagContent}\n \n )}\n {disableSourceTypeIcon !== true ? (\n \n {sourceIcon}\n \n ) : (\n <>\n )}\n {onEdit && (\n \n }\n />\n )}\n \n );\n};\n","import React from 'react';\n\nexport const RunColorCircle = React.memo(({ color, hidden }: { color: string; hidden?: boolean }) => {\n return (\n