


'''simple docstring'''






def lowerCamelCase__     (		__lowerCamelCase			:				int				):







   '''simple docstring'''




   _UpperCAmelCase  :  List[str]				       =len(__lowerCamelCase				)
   _UpperCAmelCase  :  List[Any]				       =sum(__lowerCamelCase				)

   _UpperCAmelCase  :  Dict				       =[[False for x in range(s + 1				)] for y in range(n + 1				)]

   for i in range(1			,       n + 1				):
      _UpperCAmelCase  :  int				       =True

   for i in range(1			,       s + 1				):
      _UpperCAmelCase  :  Any				       =False

   for i in range(1			,       n + 1				):
      for j in range(1			,       s + 1				):
         _UpperCAmelCase  :  str				       =dp[i][j - 1]

         if arr[i - 1] <= j:
            _UpperCAmelCase  :  str				       =dp[i][j] or dp[i - 1][j - arr[i - 1]]

   for j in range(int(s / 2				)			,       -1			,       -1				):
      if dp[n][j] is True:
         _UpperCAmelCase  :  str				       =s - 2 * j
         break

   return diff





'''simple docstring'''






import argparse


lowercase				='docs/source/_static/js/custom.js'





def lowerCamelCase__     (		__lowerCamelCase			:				List[Any]				):







   '''simple docstring'''




   with open(__lowerCamelCase			,       encoding='utf-8'			,       newline='\n'				) as f:
      _UpperCAmelCase  :  Optional[Any]				       =f.readlines()
   _UpperCAmelCase  :  Dict				       =0

   # First let's put the right version
   while not lines[index].startswith('const stableVersion ='				):
      index += 1
   _UpperCAmelCase  :  Tuple				       =f"const stableVersion = \"v{version}\"\n"

   # Then update the dictionary
   while not lines[index].startswith('const versionMapping = {'				):
      index += 1

   # We go until the end
   while not lines[index].startswith('}'				):
      index += 1
   # We add the new version at the end
   lines[index - 1] += f"    \"v{version}\": \"v{version}\",\n"

   with open(__lowerCamelCase			,       'w'			,       encoding='utf-8'			,       newline='\n'				) as f:
      f.writelines(__lowerCamelCase				)


if __name__ == "__main__":
 lowercase				=argparse.ArgumentParser()
 parser.add_argument('--version', help='Release version.')
 lowercase				=parser.parse_args()
 update_custom_js(args.version)

