| 1 | /* |
| 2 | * This is the source code of Telegram for Android v. 5.x.x. |
| 3 | * It is licensed under GNU GPL v. 2 or later. |
| 4 | * You should have received a copy of the license in this archive (see LICENSE). |
| 5 | * |
| 6 | * Copyright Nikolai Kudashov, 2013-2018. |
| 7 | */ |
| 8 | |
| 9 | package tw.nekomimi.nekogram; |
| 10 | |
| 11 | import android.content.Context; |
| 12 | import android.graphics.Canvas; |
| 13 | import android.graphics.PorterDuff; |
| 14 | import android.graphics.PorterDuffColorFilter; |
| 15 | import android.os.Build; |
| 16 | import android.text.InputType; |
| 17 | import android.text.TextUtils; |
| 18 | import android.util.TypedValue; |
| 19 | import android.view.Gravity; |
| 20 | import android.view.View; |
| 21 | import android.view.ViewGroup; |
| 22 | import android.view.inputmethod.EditorInfo; |
| 23 | import android.widget.FrameLayout; |
| 24 | import android.widget.ImageView; |
| 25 | import android.widget.LinearLayout; |
| 26 | import android.widget.ScrollView; |
| 27 | import android.widget.TextView; |
| 28 | |
| 29 | import org.telegram.messenger.AndroidUtilities; |
| 30 | import org.telegram.messenger.LocaleController; |
| 31 | import org.telegram.messenger.R; |
| 32 | import org.telegram.messenger.SharedConfig; |
| 33 | import org.telegram.ui.ActionBar.ActionBar; |
| 34 | import org.telegram.ui.ActionBar.ActionBarMenuItem; |
| 35 | import org.telegram.ui.ActionBar.BaseFragment; |
| 36 | import org.telegram.ui.ActionBar.Theme; |
| 37 | import org.telegram.ui.ActionBar.ThemeDescription; |
| 38 | import org.telegram.ui.Cells.TextCheckCell; |
| 39 | import org.telegram.ui.Cells.TextInfoPrivacyCell; |
| 40 | import org.telegram.ui.Components.EditTextBoldCursor; |
| 41 | import org.telegram.ui.Components.LayoutHelper; |
| 42 | |
| 43 | import java.util.ArrayList; |
| 44 | |
| 45 | import cn.hutool.core.util.StrUtil; |
| 46 | |
| 47 | public class RelayBatonSettingsActivity extends BaseFragment { |
| 48 | |
| 49 | private EditTextBoldCursor[] inputFields; |
| 50 | |
| 51 | private EditTextBoldCursor serverField; |
| 52 | private EditTextBoldCursor usernameField; |
| 53 | private EditTextBoldCursor passwordField; |
| 54 | private TextCheckCell esniField; |
| 55 | private EditTextBoldCursor remarksField; |
| 56 | |
| 57 | private ScrollView scrollView; |
| 58 | private LinearLayout linearLayout2; |
| 59 | private LinearLayout inputFieldsContainer; |
| 60 | |
| 61 | private TextInfoPrivacyCell bottomCell; |
| 62 | |
| 63 | private SharedConfig.RelayBatonProxy currentProxyInfo; |
| 64 | private RelayBatonLoader.Bean currentBean; |
| 65 | |
| 66 | private boolean ignoreOnTextChange; |
| 67 | |
| 68 | private static final int done_button = 1; |
| 69 | |
| 70 | public class TypeCell extends FrameLayout { |
| 71 | |
| 72 | private TextView textView; |
| 73 | private ImageView checkImage; |
| 74 | private boolean needDivider; |
| 75 | |
| 76 | public TypeCell(Context context) { |
| 77 | super(context); |
| 78 | |
| 79 | setWillNotDraw(false); |
| 80 | |
| 81 | textView = new TextView(context); |
| 82 | textView.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText)); |
| 83 | textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 16); |
| 84 | textView.setLines(1); |
| 85 | textView.setMaxLines(1); |
| 86 | textView.setSingleLine(true); |
| 87 | textView.setEllipsize(TextUtils.TruncateAt.END); |
| 88 | textView.setGravity((LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.CENTER_VERTICAL); |
| 89 | addView(textView, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.TOP, LocaleController.isRTL ? 23 + 48 : 21, 0, LocaleController.isRTL ? 21 |
| 90 | |
| 91 | checkImage = new ImageView(context); |
| 92 | checkImage.setColorFilter(new PorterDuffColorFilter(Theme.getColor(Theme.key_featuredStickers_addedIcon), PorterDuff.Mode.SRC_IN)); |
| 93 | checkImage.setImageResource(R.drawable.sticker_added); |
| 94 | addView(checkImage, LayoutHelper.createFrame(19, 14, (LocaleController.isRTL ? Gravity.LEFT : Gravity.RIGHT) | Gravity.CENTER_VERTICAL, 21, 0, 21, 0)); |
| 95 | |
| 96 | } |
| 97 | |
| 98 | @Override |
| 99 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { |
| 100 | super.onMeasure(MeasureSpec.makeMeasureSpec(MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(AndroidUtilities.dp(50) + (needDivider ? 1 : 0), MeasureSpec.EXACTLY)); |
| 101 | } |
| 102 | |
| 103 | public void setValue(String name, boolean checked, boolean divider) { |
| 104 | textView.setText(name); |
| 105 | checkImage.setVisibility(checked ? VISIBLE : INVISIBLE); |
| 106 | needDivider = divider; |
| 107 | } |
| 108 | |
| 109 | public void setTypeChecked(boolean value) { |
| 110 | checkImage.setVisibility(value ? VISIBLE : INVISIBLE); |
| 111 | } |
| 112 | |
| 113 | @Override |
| 114 | protected void onDraw(Canvas canvas) { |
| 115 | if (needDivider) { |
| 116 | canvas.drawLine(0, getMeasuredHeight() - 1, getMeasuredWidth(), getMeasuredHeight() - 1, Theme.dividerPaint); |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | public RelayBatonSettingsActivity() { |
| 122 | super(); |
| 123 | currentBean = new RelayBatonLoader.Bean(); |
| 124 | } |
| 125 | |
| 126 | public RelayBatonSettingsActivity(SharedConfig.RelayBatonProxy proxyInfo) { |
| 127 | super(); |
| 128 | currentProxyInfo = proxyInfo; |
| 129 | currentBean = proxyInfo.bean; |
| 130 | } |
| 131 | |
| 132 | |
| 133 | @Override |
| 134 | public void onResume() { |
| 135 | super.onResume(); |
| 136 | AndroidUtilities.requestAdjustResize(getParentActivity(), classGuid); |
| 137 | } |
| 138 | |
| 139 | @Override |
| 140 | public View createView(Context context) { |
| 141 | actionBar.setTitle(LocaleController.getString("ProxyDetails", R.string.ProxyDetails)); |
| 142 | actionBar.setBackButtonImage(R.drawable.ic_ab_back); |
| 143 | actionBar.setAllowOverlayTitle(false); |
| 144 | if (AndroidUtilities.isTablet()) { |
| 145 | actionBar.setOccupyStatusBar(false); |
| 146 | } |
| 147 | |
| 148 | actionBar.setActionBarMenuOnItemClick(new ActionBar.ActionBarMenuOnItemClick() { |
| 149 | @Override |
| 150 | public void onItemClick(int id) { |
| 151 | if (id == -1) { |
| 152 | finishFragment(); |
| 153 | } else if (id == done_button) { |
| 154 | |
| 155 | if (getParentActivity() == null) { |
| 156 | return; |
| 157 | } |
| 158 | |
| 159 | if (StrUtil.isBlank(serverField.getText())) { |
| 160 | |
| 161 | serverField.requestFocus(); |
| 162 | AndroidUtilities.showKeyboard(serverField); |
| 163 | |
| 164 | return; |
| 165 | |
| 166 | } |
| 167 | |
| 168 | if (StrUtil.isBlank(usernameField.getText())) { |
| 169 | |
| 170 | usernameField.requestFocus(); |
| 171 | AndroidUtilities.showKeyboard(usernameField); |
| 172 | |
| 173 | return; |
| 174 | |
| 175 | } |
| 176 | |
| 177 | if (StrUtil.isBlank(passwordField.getText())) { |
| 178 | |
| 179 | passwordField.requestFocus(); |
| 180 | AndroidUtilities.showKeyboard(passwordField); |
| 181 | |
| 182 | return; |
| 183 | |
| 184 | } |
| 185 | |
| 186 | |
| 187 | currentBean.setServer(serverField.getText().toString()); |
| 188 | currentBean.setUsername(usernameField.getText().toString()); |
| 189 | currentBean.setPassword(passwordField.getText().toString()); |
| 190 | currentBean.setEsni(esniField.isChecked()); |
| 191 | currentBean.setRemarks(remarksField.getText().toString()); |
| 192 | |
| 193 | if (currentProxyInfo == null) { |
| 194 | currentProxyInfo = new SharedConfig.RelayBatonProxy(currentBean); |
| 195 | SharedConfig.addProxy(currentProxyInfo); |
| 196 | SharedConfig.setCurrentProxy(currentProxyInfo); |
| 197 | } else { |
| 198 | currentProxyInfo.proxyCheckPingId = 0; |
| 199 | currentProxyInfo.availableCheckTime = 0; |
| 200 | currentProxyInfo.ping = 0; |
| 201 | SharedConfig.saveProxyList(); |
| 202 | SharedConfig.setProxyEnable(false); |
| 203 | } |
| 204 | |
| 205 | finishFragment(); |
| 206 | |
| 207 | } |
| 208 | } |
| 209 | }); |
| 210 | |
| 211 | ActionBarMenuItem doneItem = actionBar.createMenu().addItemWithWidth(done_button, R.drawable.ic_done, AndroidUtilities.dp(56)); |
| 212 | doneItem.setContentDescription(LocaleController.getString("Done", R.string.Done)); |
| 213 | |
| 214 | fragmentView = new FrameLayout(context); |
| 215 | FrameLayout frameLayout = (FrameLayout) fragmentView; |
| 216 | fragmentView.setBackgroundColor(Theme.getColor(Theme.key_windowBackgroundGray)); |
| 217 | |
| 218 | scrollView = new ScrollView(context); |
| 219 | scrollView.setFillViewport(true); |
| 220 | AndroidUtilities.setScrollViewEdgeEffectColor(scrollView, Theme.getColor(Theme.key_actionBarDefault)); |
| 221 | frameLayout.addView(scrollView, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT)); |
| 222 | |
| 223 | linearLayout2 = new LinearLayout(context); |
| 224 | linearLayout2.setOrientation(LinearLayout.VERTICAL); |
| 225 | scrollView.addView(linearLayout2, new ScrollView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); |
| 226 | |
| 227 | inputFieldsContainer = new LinearLayout(context); |
| 228 | inputFieldsContainer.setOrientation(LinearLayout.VERTICAL); |
| 229 | inputFieldsContainer.setBackgroundColor(Theme.getColor(Theme.key_windowBackgroundWhite)); |
| 230 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { |
| 231 | // bring to front for transitions |
| 232 | inputFieldsContainer.setElevation(AndroidUtilities.dp(1f)); |
| 233 | inputFieldsContainer.setOutlineProvider(null); |
| 234 | } |
| 235 | linearLayout2.addView(inputFieldsContainer, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT)); |
| 236 | |
| 237 | inputFields = new EditTextBoldCursor[4]; |
| 238 | |
| 239 | for (int a = 0; a < 4; a++) { |
| 240 | FrameLayout container = new FrameLayout(context); |
| 241 | EditTextBoldCursor cursor = mkCursor(); |
| 242 | inputFields[a] = cursor; |
| 243 | cursor.setImeOptions(EditorInfo.IME_ACTION_NEXT | EditorInfo.IME_FLAG_NO_EXTRACT_UI); |
| 244 | switch (a) { |
| 245 | case 0: |
| 246 | serverField = cursor; |
| 247 | cursor.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); |
| 248 | cursor.setHintText(LocaleController.getString("UseProxyAddress", R.string.UseProxyAddress)); |
| 249 | cursor.setText(currentBean.getServer()); |
| 250 | break; |
| 251 | case 1: |
| 252 | usernameField = cursor; |
| 253 | cursor.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); |
| 254 | cursor.setHintText(LocaleController.getString("UseProxyUsername", R.string.UseProxyUsername)); |
| 255 | cursor.setText(currentBean.getUsername()); |
| 256 | break; |
| 257 | case 2: |
| 258 | passwordField = cursor; |
| 259 | cursor.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); |
| 260 | cursor.setHintText(LocaleController.getString("UseProxyPassword", R.string.UseProxyPassword)); |
| 261 | cursor.setText(currentBean.getPassword()); |
| 262 | break; |
| 263 | case 3: |
| 264 | remarksField = cursor; |
| 265 | cursor.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); |
| 266 | cursor.setHintText(LocaleController.getString("ProxyRemarks", R.string.ProxyRemarks)); |
| 267 | cursor.setText(currentBean.getRemarks()); |
| 268 | break; |
| 269 | } |
| 270 | cursor.setSelection(cursor.length()); |
| 271 | |
| 272 | cursor.setPadding(0, 0, 0, 0); |
| 273 | container.addView(cursor, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT, Gravity.LEFT | Gravity.TOP, 17, a == 0 ? 12 : 0, 17, 0)); |
| 274 | |
| 275 | } |
| 276 | |
| 277 | inputFieldsContainer.addView((View) serverField.getParent(), LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 64)); |
| 278 | inputFieldsContainer.addView((View) usernameField.getParent(), LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 64)); |
| 279 | inputFieldsContainer.addView((View) passwordField.getParent(), LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 64)); |
| 280 | |
| 281 | FrameLayout container = new FrameLayout(context); |
| 282 | esniField = new TextCheckCell(context); |
| 283 | esniField.setBackground(Theme.getSelectorDrawable(false)); |
| 284 | esniField.setTextAndCheck(LocaleController.getString("ESNI", R.string.ESNI), currentBean.getEsni(), false); |
| 285 | esniField.setOnClickListener((v) -> esniField.setChecked(!esniField.isChecked())); |
| 286 | container.addView(esniField, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT, Gravity.LEFT | Gravity.TOP, 0, 0, 0, 0)); |
| 287 | inputFieldsContainer.addView(container, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 64)); |
| 288 | |
| 289 | inputFieldsContainer.addView((View) remarksField.getParent(), LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, 64)); |
| 290 | |
| 291 | bottomCell = new TextInfoPrivacyCell(context); |
| 292 | bottomCell.setBackground(Theme.getThemedDrawable(context, R.drawable.greydivider_bottom, Theme.key_windowBackgroundGrayShadow)); |
| 293 | bottomCell.setText(LocaleController.getString("ProxyInfoSS", R.string.ProxyInfoSS)); |
| 294 | linearLayout2.addView(bottomCell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT)); |
| 295 | |
| 296 | return fragmentView; |
| 297 | |
| 298 | } |
| 299 | |
| 300 | EditTextBoldCursor mkCursor() { |
| 301 | |
| 302 | EditTextBoldCursor cursor = new EditTextBoldCursor(getParentActivity()); |
| 303 | cursor.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 16); |
| 304 | cursor.setHintColor(Theme.getColor(Theme.key_windowBackgroundWhiteHintText)); |
| 305 | cursor.setTextColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText)); |
| 306 | cursor.setBackground(null); |
| 307 | cursor.setCursorColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText)); |
| 308 | cursor.setCursorSize(AndroidUtilities.dp(20)); |
| 309 | cursor.setCursorWidth(1.5f); |
| 310 | cursor.setSingleLine(true); |
| 311 | cursor.setGravity((LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.CENTER_VERTICAL); |
| 312 | cursor.setHeaderHintColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlueHeader)); |
| 313 | cursor.setTransformHintToHeader(true); |
| 314 | cursor.setLineColors(Theme.getColor(Theme.key_windowBackgroundWhiteInputField), Theme.getColor(Theme.key_windowBackgroundWhiteInputFieldActivated), Theme.getColor(Theme.key_windowBackgroundWhiteRedText3)); |
| 315 | return cursor; |
| 316 | |
| 317 | } |
| 318 | |
| 319 | @Override |
| 320 | protected void onTransitionAnimationEnd(boolean isOpen, boolean backward) { |
| 321 | if (isOpen && !backward && currentProxyInfo == null) { |
| 322 | serverField.requestFocus(); |
| 323 | AndroidUtilities.showKeyboard(serverField); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | @Override |
| 328 | public ArrayList<ThemeDescription> getThemeDescriptions() { |
| 329 | final ThemeDescription.ThemeDescriptionDelegate delegate = () -> { |
| 330 | if (inputFields != null) { |
| 331 | for (int i = 0; i < inputFields.length; i++) { |
| 332 | inputFields[i].setLineColors(Theme.getColor(Theme.key_windowBackgroundWhiteInputField), |
| 333 | Theme.getColor(Theme.key_windowBackgroundWhiteInputFieldActivated), |
| 334 | Theme.getColor(Theme.key_windowBackgroundWhiteRedText3)); |
| 335 | } |
| 336 | } |
| 337 | }; |
| 338 | ArrayList<ThemeDescription> arrayList = new ArrayList<>(); |
| 339 | arrayList.add(new ThemeDescription(fragmentView, ThemeDescription.FLAG_BACKGROUND, null, null, null, null, Theme.key_windowBackgroundGray)); |
| 340 | arrayList.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_BACKGROUND, null, null, null, null, Theme.key_actionBarDefault)); |
| 341 | arrayList.add(new ThemeDescription(scrollView, ThemeDescription.FLAG_LISTGLOWCOLOR, null, null, null, null, Theme.key_actionBarDefault)); |
| 342 | arrayList.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_ITEMSCOLOR, null, null, null, null, Theme.key_actionBarDefaultIcon)); |
| 343 | arrayList.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_TITLECOLOR, null, null, null, null, Theme.key_actionBarDefaultTitle)); |
| 344 | arrayList.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_SELECTORCOLOR, null, null, null, null, Theme.key_actionBarDefaultSelector)); |
| 345 | arrayList.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_SEARCH, null, null, null, null, Theme.key_actionBarDefaultSearch)); |
| 346 | arrayList.add(new ThemeDescription(actionBar, ThemeDescription.FLAG_AB_SEARCHPLACEHOLDER, null, null, null, null, Theme.key_actionBarDefaultSearchPlaceholder)); |
| 347 | arrayList.add(new ThemeDescription(inputFieldsContainer, ThemeDescription.FLAG_BACKGROUND, null, null, null, null, Theme.key_windowBackgroundWhite)); |
| 348 | arrayList.add(new ThemeDescription(linearLayout2, 0, new Class[]{View.class}, Theme.dividerPaint, null, null, Theme.key_divider)); |
| 349 | |
| 350 | arrayList.add(new ThemeDescription(null, 0, null, null, null, null, delegate, Theme.key_windowBackgroundWhiteBlueText4)); |
| 351 | arrayList.add(new ThemeDescription(null, 0, null, null, null, null, delegate, Theme.key_windowBackgroundWhiteGrayText2)); |
| 352 | |
| 353 | |
| 354 | if (inputFields != null) { |
| 355 | for (int a = 0; a < inputFields.length; a++) { |
| 356 | arrayList.add(new ThemeDescription(inputFields[a], ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteBlackText)); |
| 357 | arrayList.add(new ThemeDescription(inputFields[a], ThemeDescription.FLAG_HINTTEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteHintText)); |
| 358 | arrayList.add(new ThemeDescription(inputFields[a], ThemeDescription.FLAG_HINTTEXTCOLOR | ThemeDescription.FLAG_PROGRESSBAR, null, null, null, null, Theme.key_windowBackgroundWhiteBlueHeader)); |
| 359 | arrayList.add(new ThemeDescription(inputFields[a], ThemeDescription.FLAG_CURSORCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteBlackText)); |
| 360 | arrayList.add(new ThemeDescription(null, 0, null, null, null, delegate, Theme.key_windowBackgroundWhiteInputField)); |
| 361 | arrayList.add(new ThemeDescription(null, 0, null, null, null, delegate, Theme.key_windowBackgroundWhiteInputFieldActivated)); |
| 362 | arrayList.add(new ThemeDescription(null, 0, null, null, null, delegate, Theme.key_windowBackgroundWhiteRedText3)); |
| 363 | } |
| 364 | } else { |
| 365 | arrayList.add(new ThemeDescription(null, ThemeDescription.FLAG_TEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteBlackText)); |
| 366 | arrayList.add(new ThemeDescription(null, ThemeDescription.FLAG_HINTTEXTCOLOR, null, null, null, null, Theme.key_windowBackgroundWhiteHintText)); |
| 367 | } |
| 368 | |
| 369 | arrayList.add(new ThemeDescription(bottomCell, ThemeDescription.FLAG_BACKGROUNDFILTER, new Class[]{TextInfoPrivacyCell.class}, null, null, null, Theme.key_windowBackgroundGrayShadow)); |
| 370 | arrayList.add(new ThemeDescription(bottomCell, 0, new Class[]{TextInfoPrivacyCell.class}, new String[]{"textView"}, null, null, null, Theme.key_windowBackgroundWhiteGrayText4)); |
| 371 | arrayList.add(new ThemeDescription(bottomCell, ThemeDescription.FLAG_LINKCOLOR, new Class[]{TextInfoPrivacyCell.class}, new String[]{"textView"}, null, null, null, Theme.key_windowBackgroundWhiteLinkText)); |
| 372 | |
| 373 | return arrayList; |
| 374 | } |
| 375 | } |
| 376 | |